Ejemplo n.º 1
0
                    $template_css = WP_PLUGIN_URL . '/' . BAOL_PL_BASEFOLDER . '/css/' . $template . '.css';
                }
                if ($file_template) {
                    $this->register_zones_as_sidebars();
                    // start include Kubrick-like css (if Kubrick theme loading a css for support example)
                    $theme_data = get_theme_data(get_stylesheet_directory() . '/style.css');
                    if ($theme_data['Name'] == 'WordPress Default') {
                        wp_enqueue_style('page-layout-example', WP_PLUGIN_URL . '/' . BAOL_PL_BASEFOLDER . '/css/kubrick-example.css', array(), '0.1', 'screen');
                    }
                    // end include Kubrick-like css
                    if ($general_css) {
                        wp_enqueue_style('page-layout-general', $general_css, array(), '0.1', 'screen');
                    }
                    if ($template_css) {
                        wp_enqueue_style($template, $template_css, array(), '0.1', 'screen');
                    }
                    include $file_template;
                    die;
                }
            }
            return false;
        }
    }
    $PageLayout = new PageLayout();
    function register_layout($args)
    {
        global $PageLayout;
        return $PageLayout->register_layout($args);
    }
    $PageLayout->defaults();
}