<?php /** * dynwid_worker.php - The worker does the actual work. * * @version $Id: dynwid_worker.php 939272 2014-06-26 19:44:38Z qurl $ * @copyright 2011 Jacco Drabbe */ $DW->message('Worker START'); $DW->message('WhereAmI = ' . $DW->whereami); // Registering Custom Post Type & Custom Taxonomy to $DW (object overload) include DW_MODULES . 'custompost_module.php'; DWModule::registerPlugin(DW_CustomPost::$plugin); // Device $DW->device = wp_is_mobile() ? 'mobile' : 'desktop'; $DW->message('Device = ' . $DW->device); // Template if (!is_archive() && !is_404()) { $tpl = get_page_template(); if ($DW->whereami == 'pods') { global $pod_page_exists; 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)) {