<label for="mobile-menu-state" class="hamburger"> <i class="bar"></i> <i class="bar"></i> <i class="bar"></i> <i class="bar"></i> </label> <hgroup class="<?php echo $logo_columns; ?> columns"> <h1 id="logo"><?php echo cudazi_get_logo(); ?> </h1> <?php if (!cudazi_get_option('disable_tagline', false)) { ?> <h2 id="site-description"><?php bloginfo('description'); ?> </h2> <?php } ?> </hgroup> <nav class="<?php echo $menu_columns; ?> columns" id="navigation" role="navigation"> <?php wp_nav_menu(array('menu_class' => 'sf-menu clearfix', 'theme_location' => 'primary', 'fallback_cb' => 'cudazi_menu_fallback'));
function cudazi_google_analytics_code() { $google_analytics_code = cudazi_get_option('google_analytics_code', false); if ($google_analytics_code) { ?> <!-- Added via wp_footer + theme settings --> <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', '<?php echo $google_analytics_code; ?> ']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script> <!-- // Added via wp_footer + theme settings --> <?php } }
<span class="post-comment-link"><?php comments_popup_link(__('0 Responses', 'cudazi'), __('1 Response', 'cudazi'), __('% Responses', 'cudazi'), null, ''); ?> </span><?php } ?> <?php } ?> <?php // // Show tags, categories or nothing // $post_footer_cats_tags = cudazi_get_option('post_footer_cats_tags', 'tags'); if ($post_footer_cats_tags == 'tags') { ?> <span class="post-tags"><?php the_tags('', ', ', ''); ?> </span> <?php } else { if ($post_footer_cats_tags == 'categories') { ?> <span class="post-tags"><?php the_category(', '); ?> </span> <?php
<?php /** * Portfolio Archive Template * - Used / included inside other page templates */ get_header(); // Comes across as true if loading this template from within a page template global $from_page_template; // Portfolio options, set if page is being pulled through portfolio page template global $portfolio_options; // Defaults $columns = cudazi_get_option('portfolio_columns_default', 4); // Override if set via portfolio options array if (isset($portfolio_options['columns'])) { $columns = $portfolio_options['columns']; } // Assign grid size based on columns if ($columns == 1) { $grid_size = 'sixteen'; } else { if ($columns == 2) { $grid_size = 'eight'; } else { $columns = 4; $grid_size = 'four'; } } ?>