Пример #1
0
/**
 * Get videos which are in queue
 * 
 * @version 5.0
 */
function izap_get_queue()
{
    $queue_status = izap_is_queue_running_izap_videos() ? elgg_echo('izap_videos:running') : elgg_echo('izap_videos:notRunning');
    $queue_object = new izapQueue();
    echo elgg_view(GLOBAL_IZAP_VIDEOS_PLUGIN . '/queue_status', array('status' => $queue_status, 'total' => $queue_object->count(), 'queue_videos' => $queue_object->get()));
    exit;
}
Пример #2
0
 * iZAP Videos plugin by iionly
 * (based on version 3.71b of the original izap_videos plugin for Elgg 1.7)
 * Contact: iionly@gmx.de
 * https://github.com/iionly
 *
 * Original developer of the iZAP Videos plugin:
 * @package Elgg videotizer, by iZAP Web Solutions
 * @license GNU Public License version 2
 * @Contact iZAP Team "<*****@*****.**>"
 * @Founder Tarun Jangra "<*****@*****.**>"
 * @link http://www.izap.in/
 *
 */
$queueStatus = izapIsQueueRunning_izap_videos() ? elgg_echo('izap_videos:running') : elgg_echo('izap_videos:notRunning');
$queue_object = new izapQueue();
$queuedVideos = $queue_object->get();
?>

<div>
	<h3>
		<?php 
echo elgg_echo('izap_videos:queueStatus') . $queueStatus . ' (' . izap_count_queue() . ')';
?>
	</h3>
<?php 
if (count($queuedVideos)) {
    ?>
		<table class="izap_table">
		<tbody>
	<?php 
    $i = 0;
Пример #3
0
<?php

/**
 * iZAP izap_videos
 *
 * @package Elgg videotizer, by iZAP Web Solutions.
 * @license GNU Public License version 3
 * @Contact iZAP Team "<*****@*****.**>"
 * @Founder Tarun Jangra "<*****@*****.**>"
 * @link http://www.izap.in/
 * 
 */
admin_gatekeeper();
$queue_object = new izapQueue();
foreach ($queue_object->get(get_input('guid')) as $key => $prods) {
    get_entity($prods['guid'])->delete();
}
system_message(elgg_echo('izap_videos:adminSettings:reset_queue'));
forward($_SERVER['HTTP_REFERER']);
exit;