?> " /> <input type="hidden" id="returnurl" name="returnurl" value="<?php echo !empty($return_url) ? trailingslashit(admin_url()) . $return_url : ''; ?> " /> <div id="dynwid"> <?php $DW_Role = new DW_Role(); $DW_Role->admin(); $DW_Date = new DW_Date(); $DW_Date->admin(); $DW_WPML = new DW_WPML(); $DW_WPML->admin(); $DW_QT = new DW_QT(); $DW_QT->admin(); $DW_Browser = new DW_Browser(); $DW_Browser->admin(); $DW_Tpl = new DW_Tpl(); $DW_Tpl->admin(); $DW_Front_page = new DW_Front_page(); $DW_Front_page->admin(); $DW_Single = new DW_Single(); $DW_Single->admin(); $DW_Attachment = new DW_Attachment(); $DW_Attachment->admin(); $DW_Page = new DW_Page(); $DW_Page->admin(); $DW_Author = new DW_Author(); $DW_Author->admin();
if (!empty($pod_page_exists['page_template'])) { $tpl = $pod_page_exists['page_template']; } } $DW->template = basename($tpl); $DW->message('Template = ' . $DW->template); } // WPML Plugin support include_once DW_MODULES . 'wpml_module.php'; if (DW_WPML::detect(FALSE)) { $curlang = DW_WPML::detectLanguage(); } // QT Plugin support include_once DW_MODULES . 'qt_module.php'; if (DW_QT::detect(FALSE)) { $curlang = DW_QT::detectLanguage(); } foreach ($sidebars as $sidebar_id => $widgets) { // Only processing active sidebars with widgets if ($sidebar_id != 'wp_inactive_widgets' && count($widgets) > 0 && is_array($widgets)) { foreach ($widgets as $widget_key => $widget_id) { // Check if the widget has options set if (in_array($widget_id, $DW->dynwid_list)) { $act = array(); $opt = $DW->getOpt($widget_id, $DW->whereami, FALSE); $DW->message('Number of rules to check for widget ' . $widget_id . ': ' . count($opt)); $init = array_merge(array('display'), $DW->overrule_maintype); foreach ($init as $m) { ${$m} = TRUE; } // First run > The defaults
/** * dynWid::registerOverrulers() Overrule module regsitering * */ public function registerOverrulers() { include_once DW_MODULES . 'browser_module.php'; include_once DW_MODULES . 'date_module.php'; include_once DW_MODULES . 'day_module.php'; include_once DW_MODULES . 'week_module.php'; include_once DW_MODULES . 'role_module.php'; include_once DW_MODULES . 'tpl_module.php'; include_once DW_MODULES . 'url_module.php'; include_once DW_MODULES . 'device_module.php'; include_once DW_MODULES . 'ip_module.php'; DW_Browser::checkOverrule('DW_Browser'); DW_Date::checkOverrule('DW_Date'); DW_Day::checkOverrule('DW_Day'); DW_Week::checkOverrule('DW_Week'); DW_Role::checkOverrule('DW_Role'); DW_Tpl::checkOverrule('DW_Tpl'); DW_URL::checkOverrule('DW_URL'); DW_URL::checkOverrule('DW_Device'); DW_URL::checkOverrule('DW_IP'); // WPML Plugin Support include_once DW_MODULES . 'wpml_module.php'; DW_WPML::detectLanguage(); // QT Plugin Support include_once DW_MODULES . 'qt_module.php'; DW_QT::detectLanguage(); }