Exemplo n.º 1
0
 function get_sections()
 {
     $sections_handler = new PageLinesSectionsHandler();
     $sections = $sections_handler->get_available_sections();
     foreach ($sections as $key => $s) {
         $this->ext[$s->id] = array('id' => $s->id, 'name' => stripslashes($s->name), 'desc' => stripslashes($s->description), 'thumb' => $s->screenshot, 'purchase' => '', 'overview' => '');
     }
 }
Exemplo n.º 2
0
 function load_libs()
 {
     if (!pl_use_editor()) {
         return;
     }
     global $plpg;
     global $pldraft;
     global $plopts;
     global $editorless;
     global $storeapi;
     global $fileopts;
     global $sections_handler;
     global $templates_handler;
     global $sections_data_handler;
     $plpg = $this->page = new PageLinesPage();
     $pldraft = $this->draft = new EditorDraft($this->page);
     $storeapi = $this->storeapi = new EditorStoreFront();
     $this->layout = new EditorLayout();
     $sections_data_handler = new PLSectionData();
     $templates_handler = new EditorTemplates();
     // Mapping
     $this->map = new PageLinesTemplates($templates_handler);
     // this needs to be rewritten and moved to mapping class
     $this->saving_utility = new PageLinesSave();
     // Must come before settings
     $this->foundry = new PageLinesFoundry();
     $this->typography = new EditorTypography($this->foundry);
     $this->importexport = new PLImportExport();
     $this->color = new EditorColor();
     $this->siteset = new EditorSettings();
     $this->extensions = new EditorExtensions();
     $less_engine = new PageLinesLESSEngine();
     $pless = new PageLinesLess();
     $fileOpts = new EditorFileOpts();
     $this->editor_less = new EditorLessHandler($pless);
     $loader = new PageLinesPageLoader();
     $help = new EditorHelpPanel();
     pagelines_register_hook('pl_after_settings_load');
     // hook
     $plopts = $this->opts = new PageLinesOpts();
     // Mobile
     $this->mobile_menu = new PageLinesMobileMenu();
     // Interfaces
     $this->xlist = new EditorXList();
     $sections_handler = new PageLinesSectionsHandler();
     $sections_handler->load_ui_actions();
     $this->settings_panel = new PageLinesSettingsPanel();
     $this->themer = new EditorThemeHandler();
     $this->code = new EditorCode($this->draft);
     $this->areas = new PageLinesAreas();
     // Editor UX Elements
     $this->interface = new EditorInterface($this->page, $this->siteset, $this->draft, $templates_handler, $this->map, $this->extensions, $this->themer);
     // Master UX Handler
     $this->handler = new PageLinesTemplateHandler($this->interface, $this->areas, $this->page, $this->siteset, $this->foundry, $this->map, $this->draft, $this->opts, $this->layout, $this->extensions);
 }