<?php /** * =============== CACTUSTHEMES.COM =================== * ======== Cactusthemes Skeleton Framework =========== * version 0.1 - created 29/4/2013 * ==================================================== */ require_once 'utility-functions.php'; require_once locate_template('/inc/mobile-detect.php'); $detect = new Mobile_Detect(); global $_device_, $_device_name_, $_is_retina_; $_device_ = $detect->isMobile() ? $detect->isTablet() ? 'tablet' : 'mobile' : 'pc'; $_device_name_ = $detect->mobileGrade(); $_is_retina_ = $detect->isRetina(); /** * Option Tree integration =========== */ /** * Optional: set 'ot_show_pages' filter to false. * This will hide the settings & documentation pages. */ add_filter('ot_show_pages', '__return_true'); /** * Optional: set 'ot_show_new_layout' filter to false. * This will hide the "New Layout" section on the Theme Options page. */ add_filter('ot_show_new_layout', '__return_false'); /** * Required: set 'ot_theme_mode' filter to true. */