Exemplo n.º 1
0
</a>
				<a href="images.php?category=<?php 
    echo $cat['id'];
    ?>
"><?php 
    _e('Images', 'rmcommon');
    ?>
</a>
			</span>
                        </td>
                        <td class="text-center">
                            <?php 
    if ('open' == $cat['status']) {
        echo Common\Core\Helpers\Icons::getInstance()->getIcon('svg-rmcommon-unlock text-green');
    } else {
        echo Common\Core\Helpers\Icons::getInstance()->getIcon('svg-rmcommon-lock text-orange');
    }
    ?>
                        </td>
                        <td class="sizes_data">
                            <?php 
    foreach ($cat['sizes'] as $size) {
        ?>
                                <?php 
        echo $size['name'];
        ?>
                                <?php 
        if ($size['type'] != 'none') {
            ?>
                                    (<em class="text-info"><?php 
            echo $size['type'];
Exemplo n.º 2
0
if ($cuSettings->updates && isset($xoopsOption['pagetype']) && $xoopsOption['pagetype'] == 'admin') {
    $interval = $cuSettings->updatesinterval <= 0 ? 7 : $cuSettings->updatesinterval;
    if (file_exists(XOOPS_CACHE_PATH . '/updates.chk')) {
        $updates = unserialize(base64_decode(file_get_contents(XOOPS_CACHE_PATH . '/updates.chk')));
    } else {
        $updates = array('date' => 0, 'total' => 0, 'updates' => array());
    }
    $rmTpl->add_script('updates.js', 'rmcommon', array('footer' => 1));
    if ($updates['date'] < time() - $cuSettings->updatesinterval * 86400) {
        $rmTpl->add_inline_script('(function(){rmCheckUpdates();})();', 1);
        define('RMC_CHECK_UPDATES', 1);
    } else {
        $rmTpl->add_inline_script('$(document).ready(function(){rmCallNotifier(' . $updates['total'] . ');});', 1);
    }
}
/**
 * Add ajax controller script
 */
if (defined("XOOPS_CPFUNC_LOADED") || isset($xoopsOption) && array_key_exists('pagetype', $xoopsOption) && $xoopsOption['pagetype'] == 'admin') {
    $rmTpl->add_script('cu-handler.js', 'rmcommon', array('footer' => 1, 'id' => 'cuhandler'));
    $rmTpl->add_script('jquery.validate.min.js', 'rmcommon', array('footer' => 1));
}
// Services Manager
$cuServices = Common\Core\Helpers\Services::getInstance();
$GLOBALS['cuServices'] = $cuServices;
// Icons manager
$cuIcons = Common\Core\Helpers\Icons::getInstance();
$GLOBALS['cuIcons'] = $cuIcons;
// Rewrite for JS
RMSettings::write_rewrite_js();
include_once RMCPATH . '/include/tpl_functions.php';