Example #1
0
	</h3>
<?php 
if (count($queuedVideos)) {
    ?>
		<table class="izap_table">
		<tbody>
	<?php 
    $i = 0;
    foreach ($queuedVideos as $queuedVideo) {
        $extension_length = strlen(izap_get_file_extension($queuedVideo['main_file']));
        $outputPath = substr($queuedVideo['main_file'], 0, '-' . ($extension_length + 1));
        $ORIGNAL_name = basename($queuedVideo['main_file']);
        $ORIGNAL_size = izapFormatBytes(filesize($queuedVideo['main_file']));
        $FLV_name = basename($outputPath . '_c.flv');
        if (file_exists($outputPath . '_c.flv')) {
            $FLV_size = izapFormatBytes(filesize($outputPath . '_c.flv'));
        } else {
            $FLV_size = '0 KB';
        }
        ?>
				<tr class="<?php 
        echo !$i && izapIsQueueRunning_izap_videos() ? 'queue_selected' : '';
        ?>
">
				<td>
					<?php 
        echo $ORIGNAL_name . '<br>' . $FLV_name;
        ?>
				</td>
				<td>
					<?php 
Example #2
0
">
	<div>
		<h3 align="center">
			<?php 
echo elgg_echo('izap_videos:error_videos');
?>
		</h3>
	<?php 
if ($buggy_videos) {
    ?>
			<table class="izap_table">
			<tbody>
		<?php 
    foreach ($buggy_videos as $video_to_be_recycled) {
        $ORIGNAL_name = $video_to_be_recycled['main_file'];
        $ORIGNAL_size = izapFormatBytes(filesize($video_to_be_recycled['main_file']));
        ?>
				<tr>
				<td>
			<?php 
        echo $ORIGNAL_name;
        ?>
				<br>
				<?php 
        echo elgg_echo('izap_videos:restore_size') . $ORIGNAL_size;
        ?>
				<br>
				<a href="<?php 
        echo elgg_add_action_tokens_to_url(elgg_get_site_url() . 'action/izap_videos/admin/recycle?guid=' . $video_to_be_recycled['guid']);
        ?>
"><?php