File: aksara/Modules/Cms/Views/partials/media/index.php

Recommend this page to a friend!
  Classes of Aby Dahana  >  Aksara  >  aksara/Modules/Cms/Views/partials/media/index.php  >  Download  
File: aksara/Modules/Cms/Views/partials/media/index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Aksara
A CodeIgniter based API and CRUD generator
Author: By
Last change: Update of aksara/Modules/Cms/Views/partials/media/index.php
Date: 3 months ago
Size: 8,676 bytes
 

Contents

Class file image Download
<div class="container-fluid pt-3 pb-3">
    <div class="row">
        <div class="col-lg-8">
            <div class="row">
                <?php
                   
if($results->directory && !isset($key))
                    {
                        echo
'
                            <div class="col-4 col-sm-3 col-xl-2 text-center">
                                <a href="'
. current_page(null, array('directory' => $results->parent_directory, 'file' => null)) . '" class="--xhr">
                                    <div class="p-3">
                                        <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH5AcVEScUSR0n1gAADxlJREFUeNrt3XmwnXV5B/DPe865XrKw5BKSACEhJGGLTUAoxsG0omJtmSlRZzqRTmurY1st08UOKiGOViRpZVrHDhWX0aodlXFhsdqx4oCADgkSIKkBzSrZCJAdsnHvPb/+8bzvPefc9dzk3JuQ6TNz5s45992e73l+v2d/Tma0aXGCDGdgBi7FazEL0zAZp2EM2vKzOnEI+/EiNmMtfolnsAl7kCzNRpWd0blbgFbGVFyFBbgyB7ADrznKK78igNuElXgYj2ErukYDzJG7Q4AGZ+KNWJgDN01NsoJSr7+9n26gz/s+fSe24BHci0e02+UV3DYyrLb+qjXgpuGdWIR5OKUBsBR3b6twWjtnjo1Xx5h4P7aNtnKOSjcHO9l/hN2H2HWAXYfifWdX7Vq9uDmM1fgW7pbZLNFqqWzd1WrAnYM/xp/jIpTqQSuXOWscsycyZxIXTWTq6QHcm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8Beh+WabNKl2MakdwaKy6k8bgNoT3UFXnb1Tsie/bEcwMOoX1S9J/c7YQYQtsXRKKm5QbR93txPZDFGOSJ46L049JJXJyPQZ4wpjY7eqgxyAfzMcjb9tXGIK/dGYmfIccgZ7arOoHGIPcHZEjGNCGRi4TdOOAg7lPbOXNMVEh1jB1iEPfBKDHbdSjMkCEGca8Se9w9ks0yJ/Ag7t50c4pJ9+06NI6Cn250RsHfg58p26W79cCNPID1FCOlypKpomJ1Qf53hmP/MYLdojjqCTwkqixOgh8jGIgWpwiOZc4Qvcpz8tcsIZ2TcLq+P4dxUPwcxk5RWtH75zD2SlKr9rZm6f8AOX/kMNhU8rMAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjAtMDctMjFUMTc6Mzk6MjAtMDQ6MDCiYzU9AAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIwLTA3LTIxVDE3OjM5OjIwLTA0OjAw0z6NgQAAAABJRU5ErkJggg==" class="img-fluid rounded" alt="..." />
                                    </div>
                                </a>
                            </div>
                        '
;
                    }
                   
                    if(
$results->data)
                    {
                        foreach(
$results->data as $key => $val)
                        {
                            if(
$val->type == 'directory')
                            {
                                echo
'
                                    <div class="col-4 col-sm-3 col-xl-2 text-center">
                                        <a href="'
. current_page(null, array('directory' => ($results->directory ? $results->directory . DIRECTORY_SEPARATOR : null) . $val->source, 'file' => null)) . '" class="--xhr">
                                            <div class="p-3">
                                                <img src="'
. get_image('_extension', 'folder.png') . '" class="img-fluid rounded" alt="..." />
                                            </div>
                                            <label class="d-block text-truncate">
                                                '
. $val->label . '
                                            </label>
                                        </a>
                                    </div>
                                '
;
                            }
                            else
                            {
                                echo
'
                                    <div class="col-4 col-sm-3 col-xl-2 text-center">
                                        <a href="'
. current_page(null, array('file' => ($results->directory ? $results->directory . DIRECTORY_SEPARATOR : null) . $val->source)) . '" class="--xhr">
                                            <div class="p-3">
                                                <img src="'
. $val->icon . '" class="img-fluid rounded" alt="..." />
                                            </div>
                                            <label class="d-block text-truncate">
                                                '
. $val->label . '
                                            </label>
                                        </a>
                                    </div>
                                '
;
                            }
                        }
                    }
               
?>
</div>
        </div>
        <div class="col-lg-4">
            <?php
               
if($results->description)
                {
                    echo
'
                        <div class="mb-5">
                            <a href="'
. base_url($results->description->server_path) . '" target="_blank">
                                <img src="'
. $results->description->icon . '" class="img-fluid rounded" alt="..." />
                            </a>
                        </div>
                        <div class="form-group">
                            <label class="d-block text-muted">
                                '
. phrase('filename') . '
                            </label>
                            <label class="d-block text-break-word">
                                '
. $results->description->name . '
                            </label>
                        </div>
                        <div class="form-group">
                            <label class="d-block text-muted">
                                '
. phrase('mime_type') . '
                            </label>
                            <label class="d-block text-break-word">
                                '
. $results->description->mime_type . '
                            </label>
                        </div>
                        <div class="form-group">
                            <label class="d-block text-muted">
                                '
. phrase('size') . '
                            </label>
                            <label class="d-block text-break-word">
                                '
. $results->description->size . '
                            </label>
                        </div>
                        <div class="form-group">
                            <label class="d-block text-muted">
                                '
. phrase('date_modified') . '
                            </label>
                            <label class="d-block text-break-word">
                                '
. date('Y-m-d H:i:s', $results->description->date) . '
                            </label>
                        </div>
                    '
;
                }
           
?>
</div>
    </div>
</div>

For more information send a message to info at phpclasses dot org.