<!-- Start : Sidebar Section --> <div id="secondary-content" class="sidebar"> <div id="sidebar-wrapper"> <?php // Load sidebar widgets if (is_single()) { //get_template_part('partials/widgets/widget','ads'); get_template_part('partials/widgets/widget', 'facebook'); echo '<div id="non_sticky_wrapper">'; get_template_part('partials/widgets/widget', 'ads300x250'); $check_mobile = detect_mobile(); if ($check_mobile === false) { dynamic_sidebar('warrior-single-sidebar'); } //get_template_part('partials/widgets/widget', 'tripzillaPkgs'); //get_template_part('partials/widgets/widget', 'enquirySideber'); //only show at desktop if ($check_mobile === false) { get_template_part('partials/widgets/widget', 'ads300x600'); } echo "</div>"; ?> <div id="sticky_div"></div> <?php } elseif (is_page() && !is_page('front-page')) { if (is_active_sidebar('warrior-page-sidebar')) { dynamic_sidebar('warrior-page-sidebar'); get_template_part('partials/widgets/widget', 'enquirySideber'); } else { echo '<div class="container"><p class="no-widget">'; wp_kses(_e('There\'s no widget assigned. You can start assigning widgets to "Page Sidebar" widget area from the <a href="' . admin_url('/widgets.php') . '">Widgets</a> page.', 'newmagz'), array('a' => array('href' => array())));
<?php $mobile = detect_mobile(); ?> <!doctype html> <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]--> <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]--> <!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]--> <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title>Dinner and a Suit</title> <meta name="description" content=""> <meta name="viewport" content="width=device-width"> <link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?> /css/jquery.fancybox-1.3.4.css" type="text/css" /> <link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?> /css/style.css" type="text/css" /> <script src="<?php echo get_template_directory_uri();
<?php global $virtue; ?> <?php if (!empty($virtue['mobile_switch'])) { $mobile_slider = $virtue['mobile_switch']; } else { $mobile_slider = ''; } if (!empty($virtue['choose_slider'])) { $slider = $virtue['choose_slider']; } else { $slider = 'mock_flex'; } if (detect_mobile() && $mobile_slider == '1') { $slider = $virtue['choose_mobile_slider']; if ($slider == "flex") { get_template_part('templates/mobile_home/mobileflex', 'slider'); } else { if ($slider == "video") { get_template_part('templates/mobile_home/mobilevideo', 'block'); } } } else { ?> <?php if ($slider == "flex") { get_template_part('templates/home/flex', 'slider'); } else { if ($slider == "thumbs") { get_template_part('templates/home/thumb', 'slider');
</div><!-- #container --> <?php do_atomic('close_body'); // dschool_close_body ?> <?php wp_footer(); // wp_footer ?> <?php /* Pin the menu to top of the browser window on scroll*/ if (is_front_page() && !detect_mobile()) { ?> <script type='text/javascript'> function moveScroller() { var a = function() { var b = jQuery(window).scrollTop(); var d = jQuery("#scroller-anchor").offset().top; var c = jQuery(".home #menu-primary"); if (b>d) { c.css({position:"fixed",top:"0px"}) } else { if (b<=d) {
<link rel="profile" href="http://gmpg.org/xfn/11" /> <link rel="pingback" href="<?php bloginfo('pingback_url'); ?> " /> <?php wp_head(); // wp_head ?> </head> <body class="<?php hybrid_body_class(); if (detect_mobile()) { echo " mobile"; } ?> "> <?php do_atomic('open_body'); // dschool_open_body ?> <div id="container"> <?php if (!is_front_page()) { get_template_part('menu', 'primary');
function insertAdAfterParagraph($insertion, $paragraph_id, $content) { $closing_p = '</p>'; $paragraphs = explode($closing_p, $content); $paragraph_id_for_desktop = $paragraph_id[0]; $check_mobile = detect_mobile(); if ($check_mobile == true) { foreach ($paragraphs as $index => $paragraph) { // Only add closing tag to non-empty paragraphs if (trim($paragraph)) { // Adding closing markup now, rather than at implode, means insertion // is outside of the paragraph markup, and not just inside of it. $paragraphs[$index] .= $closing_p; } if (in_array($index + 1, $paragraph_id)) { $paragraphs[$index] .= '<div class="google_ads_mobile" style="clear:both;float:left;width:100%;margin:0 0 20px 0;">' . $insertion . '</div>'; } } } if ($check_mobile == false) { foreach ($paragraphs as $index => $paragraph) { // Only add closing tag to non-empty paragraphs if (trim($paragraph)) { $paragraphs[$index] .= $closing_p; } if ($paragraph_id_for_desktop == $index + 1) { $paragraphs[$index] .= '<div class="google_ads_mobile" style="clear:both;width:100%;margin:0 0 20px 0;background:red;height:100px;">' . $insertion . '</div>'; } } } return implode('', $paragraphs); }