Ejemplo n.º 1
0
function mw_print_admin_updates_settings_link()
{
    $active = url_param('view');
    $cls = '';
    if ($active == 'comments') {
        $cls = ' class="active" ';
    }
    $notif_html = '';
    $mname = module_name_encode('updates');
    print "<li><a class=\"item-" . $mname . "\" href=\"#option_group=" . $mname . "\">" . _e("Updates", true) . "</a></li>";
    //$notif_count = mw()->notifications_manager->get('module=comments&is_read=0&count=1');
    /*if ($notif_count > 0) {
    		$notif_html = '<sup class="mw-notif-bubble">' . $notif_count . '</sup>';
    	}*/
    //print '<li' . $cls . '><a href="' . admin_url() . 'view:comments"><span class="ico icomment">' . $notif_html . '</span><span>Comments</span></a></li>';
}
Ejemplo n.º 2
0
            $(toolbar).append(dd);
           *******************************************************/


        }


        <?php 
if (is_array($module_info)) {
    ?>
		
 
		
        <?php 
    $mod_adm = admin_url('load_module:') . module_name_encode($module_info['module']);
    ?>
        is_module_tml_holder = $(toolbar).find("#module-modal-settings-menu-holder");
        if (is_module_tml_holder.length > 0) {


            is_module_tml_holder.empty();

            var holder = mwd.createElement('div');
            holder.className = 'mw-dropdown-content';


            var html = ""
                + "<div id='module-modal-settings-menu-items' module_id='<?php 
    print $params['id'];
    ?>
Ejemplo n.º 3
0
function mw_print_admin_backup_settings_link()
{
    if (mw()->modules->is_installed('admin/backup')) {
        $active = mw()->url_manager->param('view');
        $cls = '';
        $mname = module_name_encode('admin/backup/small');
        if ($active == $mname) {
            $cls = ' class="active" ';
        }
        $notif_html = '';
        $url = admin_url('view:modules/load_module:' . $mname);
        print "<li><a class=\"item-" . $mname . "\" href=\"#option_group=" . $mname . "\">Backup</a></li>";
        //print "<li><a class=\"item-".$mname."\" href=\"".$url."\">Backup</a></li>";
    }
    if (mw()->modules->is_installed('admin/import')) {
        $active = mw()->url_manager->param('view');
        $cls = '';
        $mname = module_name_encode('admin/import');
        if ($active == $mname) {
            $cls = ' class="active" ';
        }
        $notif_html = '';
        $url = admin_url('view:modules/load_module:' . $mname);
        print "<li><a class=\"item-" . $mname . "\" href=\"#option_group=" . $mname . "\">Import</a></li>";
        //print "<li><a class=\"item-".$mname."\" href=\"".$url."\">Backup</a></li>";
    }
}
Ejemplo n.º 4
0
 public function icon_with_title($module_name, $link = true)
 {
     $params = array();
     $to_print = '';
     $params['module'] = $module_name;
     $params['ui'] = 'any';
     $params['limit'] = 1;
     $data = $this->get($params);
     $info = false;
     if (isset($data[0])) {
         $info = $data[0];
     }
     if ($link == true and $info != false) {
         $href = admin_url() . 'view:modules/load_module:' . module_name_encode($info['module']);
     } else {
         $href = '#';
     }
     if (isset($data[0])) {
         $info = $data[0];
         $tn_ico = thumbnail($info['icon'], 32, 32);
         $to_print = '<a style="background-image:url(' . $tn_ico . ')" class="module-icon-title" href="' . $href . '">' . $info['name'] . '</a>';
     }
     print $to_print;
 }
Ejemplo n.º 5
0
        }
        ?>
          
          <div class="logication_info">
            <?php 
        if (isset($item['content']) and $item['content'] != '') {
            ?>
            <?php 
            if ($mod_info != false and isset($mod_info['name'])) {
                ?>
<a href="<?php 
                if ($mod_info != false and isset($mod_info['name'])) {
                    print admin_url();
                    ?>
view:modules/load_module:<?php 
                    print module_name_encode($item['module']);
                    ?>
/mw_log:<?php 
                    print $item['id'];
                }
                ?>
" class="ellipsis"><?php 
            }
            ?>

			
			<?php 
            print html_entity_decode($item['content']);
            ?>
             <?php 
            if ($mod_info != false and isset($mod_info['name'])) {
Ejemplo n.º 6
0
?>
                    </a></li>
                  <?php 
event_trigger('mw_admin_settings_menu');
?>
                  <?php 
$settings_menu = mw()->modules->ui('admin.settings.menu');
?>
                  <?php 
if (is_array($settings_menu) and !empty($settings_menu)) {
    ?>
                  <?php 
    foreach ($settings_menu as $item) {
        ?>
                  <?php 
        $module = isset($item['module']) ? module_name_encode($item['module']) : false;
        ?>
                  <?php 
        $title = isset($item['title']) ? $item['title'] : false;
        ?>
                  <?php 
        $class = isset($item['class']) ? $item['class'] : false;
        ?>
                  <?php 
        if ($module != 'admin') {
            ?>
                  <li><a onclick="mw.url.windowHashParam('option_group', '<?php 
            print $module;
            ?>
');return false;" class="<?php 
            print $class;
Ejemplo n.º 7
0
?>
"
            autocomplete="off">
        <?php 
if (!empty($layouts)) {
    ?>
            <?php 
    $i = 0;
    $is_chosen = false;
    foreach ($layouts as $item) {
        ?>
                <?php 
        $item['layout_file'] = normalize_path($item['layout_file'], false);
        ?>
                 <?php 
        $item['layout_file'] = module_name_encode($item['layout_file']);
        ?>
                <option value="<?php 
        print $item['layout_file'];
        ?>
"
                        onclick="mw.templatePreview<?php 
        print $rand;
        ?>
.view('<?php 
        print $i;
        ?>
');"
                        data-index="<?php 
        print $i;
        ?>
Ejemplo n.º 8
0
    <small><?php 
    print $data['module'];
    ?>
</small>
   
      <?php 
    if (isset($data['description'])) {
        ?>
       <p>
      <?php 
        print $data['description'];
        ?>
      </p>
      <?php 
    }
    ?>
    
    <a href="<?php 
    print admin_url();
    ?>
view:modules/add_module:<?php 
    print module_name_encode($data['module']);
    ?>
" class="mw-ui-btn">
    <?php 
    _e("Install");
    ?>
    </a></div>
</form>
<?php 
}
Ejemplo n.º 9
0
            params.live_edit = true;
            <?php 
if (isset($data['active_site_template'])) {
    ?>
            params.preview_template = '<?php 
    print $data['active_site_template'];
    ?>
'
            <?php 
}
?>
            <?php 
if (isset($data['active_site_layout'])) {
    ?>
            params.preview_layout = '<?php 
    print module_name_encode($data['active_site_layout']);
    ?>
'
            <?php 
}
?>
            if (typeof window.mweditor !== 'undefined') {
                $(mweditor).remove();
                delete window.mweditor;
            }
			
			
			 
			
			
            mweditor = mw.admin.editor.init(area, params);