示例#1
0
 function admin_bar_array()
 {
     $m = array();
     $suffix = pl_tools_active() ? 'down' : 'right';
     $m[] = array('pos' => 10, 'parent' => '', 'id' => 'pl-ab-menu', 'title' => sprintf('<i class="pl-icon pl-icon-pagelines"></i> <i class="pl-icon pl-icon-action pl-icon-caret-%s"></i>', $suffix), 'rel' => 'plBuilder', 'href' => PL()->urls->editor);
     $m[] = array('pos' => 50, 'id' => 'pl-ab-builder', 'title' => sprintf('<i class="pl-icon pl-icon-list-alt"></i> %s', __('Page Editor', 'pl-platform')), 'rel' => 'plBuilder', 'href' => PL()->urls->editor);
     if (pl_tools_active()) {
         $m[] = array('pos' => 300, 'id' => 'pl-ab-off', 'rel' => '_plDeactivate', 'title' => sprintf('<i class="pl-icon pl-icon-remove"></i> %s', __('Turn Off', 'pl-platform')), 'href' => esc_url(PL()->urls->deactivate));
     }
     $m = apply_filters('pl_ab_menu', $m);
     return apply_filters('pl_ab_menu_always', $m);
 }
示例#2
0
 function initialize_libs()
 {
     /** Config Classes */
     global $pl_page;
     $pl_page = new PL_Page();
     /** Maps Data */
     global $maps_data_handler;
     $maps_data_handler = new PL_Map_Data();
     /** Section Handling Classes */
     global $pl_sections_data;
     $pl_sections_data = new PL_Section_Data();
     pl_hook('pl_after_data_setup');
     /** The media library link and iFrame handling */
     global $pl_medialib;
     $pl_medialib = new PL_Media_Library();
     /** AJAX */
     global $plajaxinit;
     $plajaxinit = new PLAJAXInit();
     global $pl_data_save;
     $pl_data_save = new PL_Save_Data();
     /** Base AJAX Handling API */
     global $plajaxupload;
     $plajaxupload = new PLAJAXUpload();
     /** Sections AJAX Loading */
     global $plsectionsload;
     $plsectionsload = new PL_Sections_Load();
     /** BINDING */
     /** Binding and handling of binds */
     global $plbinding;
     $plbinding = new PL_Binding();
     if (pl_tools_active()) {
         do_action('pl_reset_sections');
         new PL_Workarea($this);
     } else {
         new PL_JSON();
         new PL_UI_Site();
     }
     // run installer init actions
     if (is_admin()) {
         PL()->operations->init();
     }
 }