Example #1
0
        } else {
            if (count(explode(".", $row['ip'])) == 4) {
                $banned_info['ip'][$row['ip']] = array('ip' => $row['ip'], 'descr' => stripslashes($row['descr']), 'date' => $row['date']);
            } elseif (strpos($row['ip'], "@") !== false) {
                $banned_info['email'][$row['ip']] = array('email' => $row['ip'], 'descr' => stripslashes($row['descr']), 'date' => $row['date']);
            } else {
                $banned_info['name'][$row['ip']] = array('name' => $row['ip'], 'descr' => stripslashes($row['descr']), 'date' => $row['date']);
            }
        }
    }
    set_vars("banned", $banned_info);
    $db->free();
}
$category_skin = "";
if ($category != '') {
    $category_id = get_ID($cat_info, $category);
} else {
    $category_id = false;
}
if ($category_id) {
    $category_skin = $cat_info[$category_id]['skin'];
}
// #################################
if ($news_name != '' or $newsid) {
    $allow_sql_skin = false;
    foreach ($cat_info as $cats) {
        if ($cats['skin'] != '') {
            $allow_sql_skin = true;
        }
    }
    if ($allow_sql_skin) {
Example #2
0
 $title = $menu_item->title;
 if ($title != 'Contact') {
     $title = '<span>the </span>' . $menu_item->title;
 }
 $url = $menu_item->url;
 $subSlug = strtolower($menu_item->title);
 if (($locations = get_nav_menu_locations()) && isset($locations[$subSlug . '_subnav'])) {
     $menu_list .= '<li class="dropdown"><a class="dropdown-toggle" href="#">' . $title . '</a>';
     $subMenu = wp_get_nav_menu_object($locations[$subSlug . '_subnav']);
     $subMenu_items = wp_get_nav_menu_items($subMenu->term_id);
     $menu_list .= '<div class="dropdown-menu"><ul class="sub-nav">';
     foreach ((array) $subMenu_items as $key => $subMenu_item) {
         $menu_list .= '<li><a href="' . $subMenu_item->url . '">' . $subMenu_item->title . '</a>';
     }
     $menu_list .= '</ul>';
     $post_objects = get_field('featured-' . $subSlug, get_ID('home'));
     if ($post_objects) {
         $menu_list .= '<ul class="featured">';
         foreach ($post_objects as $post_object) {
             foreach ($post_object as $p) {
                 $thumb = get_the_post_thumbnail($p->ID);
                 $caption = get_field('caption', $p->ID);
                 $menu_list .= '<li><a href="' . get_permalink($p->ID) . '"><div class="thumb"><div class="thumb-wrapper">' . $thumb . '</div><h3>' . $p->post_title . '</h3><p>' . $caption . '</p></div></a></li>';
             }
         }
         $menu_list .= '</ul></div>';
     }
 } else {
     $menu_list .= '<li><a href="' . $url . '">' . $title . '</a>';
 }
 $menu_list .= '</li>';
Example #3
0
						</div>
					</div>
				</div>
			</div>
	
			<?php 
if (has_post_thumbnail() && is_front_page() == false) {
    $bg = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'full');
} elseif (is_front_page() == true) {
    $bg = wp_get_attachment_image_src(get_post_thumbnail_id(get_ID('menus')), 'full');
}
$homebg = wp_get_attachment_image_src(get_post_thumbnail_id(get_ID('home')), 'full');
?>
	
			<div id="page-bg"></div>
	
		</div>
	</div>
	
	<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
	<script>window.jQuery || document.write('<script src="<?php 
echo get_template_directory_uri();
?>
/js/vendor/jquery-1.7.2.min.js"><\/script>')</script>
	
	<?php 
wp_head();
?>
	<?php 
roots_footer();
?>
Example #4
0
<?php

get_header();
?>

<div class="tabbable tabs-left">
	<?php 
echo subNav(get_ID('menus'));
?>
	<?php 
echo subContent(get_ID('menus'));
?>
</div>

<?php 
get_footer();