Ejemplo n.º 1
0
		<?php 
    if ($current_asset['title'] != $current_asset['location']) {
        echo str_replace('"', '&quot;', $current_asset['title']);
    } else {
        echo str_replace('"', '&quot;', basename($current_asset['title']));
    }
    ?>
	</h3>
	<?php 
    if ($page_message) {
        echo '<p><span class="highlightcopy">' . $page_message . '</span></p>';
    }
    ?>
	<p class="smalltext fadedtext">
		size: <?php 
    echo AdminHelper::bytesToSize($current_asset['size']);
    ?>
, &nbsp; stored on: <?php 
    echo AdminHelper::getConnectionName($current_asset['connection_id']);
    ?>
<br />
		location: <?php 
    echo $current_asset['location'];
    ?>
		<?php 
    if ($cash_admin->getStoredData('is_favorite')) {
        echo '<br /><br /><span class="icon heart_fill"></span> this asset is a favorite<br />';
    }
    ?>
	</p><p>
		<?php 
Ejemplo n.º 2
0
        } else {
            echo '<div class="row_seperator">.</div>';
        }
        echo '<ul class="assetbrowse">';
        if ($connection_id != 0) {
            foreach ($list_assets['directories'] as $location => $directory) {
                echo '<li><a href="' . ADMIN_WWW_BASE_PATH . '/assets/browse/connection/' . $connection_id . '/' . $location . '"><span class="icon folder_fill"></span> <b>/ ' . basename($directory) . '</b></a></li>';
            }
            foreach ($list_assets['assets'] as $asset) {
                if ($asset['title'] == $asset['location']) {
                    $asset_title = basename($asset['location']);
                } else {
                    $asset_title = $asset['title'];
                }
                echo '<li><a href="' . ADMIN_WWW_BASE_PATH . '/assets/edit/file/' . $asset['id'] . '"><span class="icon document_alt_fill"></span> ' . $asset_title . '</a>';
                echo '<br /><span class="icon"></span> <span class="smalltext fadedtext nobr">' . $asset['location'] . '</span><br /><span class="icon"></span> <span class="smalltext fadedtext nobr">' . AdminHelper::bytesToSize($asset['size']) . ', accessed: [int]</span></li>';
            }
        } else {
            foreach ($local_assets_reponse['payload'] as $asset) {
                if ($asset['title'] == $asset['location']) {
                    $asset_title = basename($asset['location']);
                } else {
                    $asset_title = $asset['title'];
                }
                echo '<li><a href="' . ADMIN_WWW_BASE_PATH . '/assets/edit/file/' . $asset['id'] . '"><span class="icon document_alt_fill"></span> ' . $asset_title . '</a>';
                echo '<br /><span class="icon"></span> <span class="smalltext fadedtext nobr">' . $asset['location'] . '</span><br /><span class="icon"></span> <span class="smalltext fadedtext nobr"> accessed: [int]</span></li>';
            }
        }
        echo '</ul>';
    }
}