public function init()
 {
     global $DElements, $DEstyle, $DEreveal;
     if (!is_object($DElements)) {
         $DElements = DElements::getInstance();
     }
     $this->elements = $DElements;
     $elements = get_dt_elements();
     add_action('admin_init', array($this, 'get_builder'), 999);
     add_action('wp_enqueue_scripts', array($this, 'load_front_css_style'));
     add_action('wp_footer', create_function('', 'global $DEstyle,$DEreveal;if(count($DEstyle)){print "\\n<style type=\\"text/css\\">\\n".@implode("\\n",$DEstyle)."\\n</style>\\n";}'), 99999);
     add_action('wp_head', array($this, 'load_custom_css'), 999);
     add_action('admin_menu', array($this, 'register_submenu_page'));
     add_action('network_admin_menu', array(&$this, 'register_submenu_page'));
     add_filter('the_content', array($this, 'removeWPautop'), 12);
     // after do_shortcode
     add_action('webfonts-font-loaded', array($this, 'load_webfont_front'));
 }
Example #2
0
function remove_dt_element($shortcode_id)
{
    global $DElements;
    if (!is_object($DElements)) {
        $DElements = DElements::getInstance();
    }
    $DElements->removeElement($shortcode_id);
}