コード例 #1
0
ファイル: migrate.php プロジェクト: beck24/Simplekaltura
<?php

$count = simplekaltura_migration_check();
if ($count) {
    echo elgg_echo('simplekaltura:migration:possible', array($count));
    echo '<br><br><br>';
    echo elgg_view('output/url', array('text' => elgg_echo('simplekaltura:migrate'), 'href' => 'action/simplekaltura/migrate', 'is_action' => true, 'is_trusted' => true, 'confirm' => true, 'class' => 'elgg-button elgg-button-submit'));
} else {
    echo elgg_echo('simplekaltura:migration:notpossible');
}
コード例 #2
0
ファイル: settings.php プロジェクト: beck24/Simplekaltura
// Popup width
$popupwidth_label = elgg_echo('simplekaltura:admin:popupwidth');
$popupwidth_input = elgg_view('input/text', array('name' => 'params[kaltura_popup_width]', 'value' => $popup_width));
$popup_body = <<<HTML
\t<div>
\t\t<label>{$popupwidth_label}</label>
\t\t{$popupwidth_input}
\t</div><br />
\t<div>
\t\t<label>{$popupheight_label}</label>
\t\t{$popupheight_input}
\t</div>
HTML;
echo elgg_view_module('inline', $popup_label, $popup_body);
/************** Upload Module **************/
$upload_label = elgg_echo('simplekaltura:admin:uploadconfig');
// Max upload size input
$upload_max_label = elgg_echo('simplekaltura:admin:uploadmax');
$upload_max_input = elgg_view('input/text', array('name' => 'params[kaltura_upload_max]', 'value' => $upload_max));
$upload_body = <<<HTML
\t<div>
\t\t<label>{$upload_max_label}</label>
\t\t{$upload_max_input}
\t</div>
HTML;
echo elgg_view_module('inline', $upload_label, $upload_body);
if (simplekaltura_migration_check()) {
    $url = elgg_normalize_url('admin/simplekaltura/migrate');
    $link = elgg_view('output/url', array('text' => $url, 'href' => $url));
    elgg_add_admin_notice('simplekaltura_migrate_message', elgg_echo('simplekaltura:migrate:message', array($link)));
}