Exemplo n.º 1
0
 function render($view)
 {
     if (empty($this->_layout_id)) {
         $this->setup_layout();
     }
     $this->_view = strtolower(preg_replace('/-+/', '-', preg_replace('/[^a-z0-9\\-\\.]/i', '-', $view)));
     if ('wp-signup.php' == $this->_view) {
         $this->_view .= ' (WordPress core file)';
     }
     $stylesheet_path = builder_stylesheet_directory();
     $template_path = builder_template_directory();
     do_action('builder_layout_engine_render_layout', $view, $this->_layout_id, $this->_layout_settings['layouts'][$this->_layout_id]);
 }
Exemplo n.º 2
0
function builder_parent_is_active()
{
    if (builder_template_directory() == builder_stylesheet_directory()) {
        return true;
    }
    return false;
}