Exemple #1
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();
     }
 }
Exemple #2
0
<?php

/**
 * Basic page handler
 *
 * @version   5.0.0
 * @author    PageLines
 */
if (!defined('ABSPATH')) {
    exit;
}
// Exit if accessed directly
pl_get_header();
pl_hook('pl_start_template');
include pl_template_path();
pl_hook('pl_after_template');
pl_get_footer();
Exemple #3
0
/**
 * Standard Footer HTML
 */
function pl_standard_foot($content)
{
    ?>
</div>
            </div><?php 
    pl_hook('pagelines_after_page');
    ?>
 

        <?php 
    echo $content;
    ?>

        </div><?php 
    pl_hook('pagelines_after_footer');
    ?>
 
      </div>
    <?php 
    wp_footer();
    ?>
    </body>
</html>
<?php 
}
Exemple #4
0
 function workarea_enqueue()
 {
     wp_deregister_script('jquery-ui');
     global $wp_styles;
     $wp_styles->queue = array('admin-bar');
     global $wp_scripts;
     $wp_scripts->queue = array();
     pl_script('pl-common', pl_framework_url('js') . '/common.js', array('jquery'), false, false);
     pl_style('pl-components', pl_framework_url('css') . '/components.css');
     pl_style('pl-editing', pl_framework_url('css') . '/workarea.css');
     pl_script('pl-editing', pl_framework_url('js') . '/editing.js', array('jquery'), false, false);
     pl_script('pl-utils', pl_framework_url('js') . '/utils.js', array('jquery'), false, false);
     /** WordPress Color Picker */
     pl_enqueue_color_picker();
     wp_enqueue_script('jquery');
     global $pl_page;
     $this->page = $pl_page;
     global $maps_data_handler;
     $this->map = $maps_data_handler;
     global $plfactory;
     $this->factory = $plfactory;
     global $plselector;
     $this->selector = $plselector;
     wp_localize_script('pl-editing', 'PLWorkarea', $this->workarea_config());
     pl_hook('pl_workarea_enqueue');
 }
Exemple #5
0
 function after_section()
 {
     pl_hook('pl_bottom_' . $this->id, $this->id);
     printf('</div></div></section>');
     pl_hook('pl_after_' . $this->id, $this->id);
 }