Esempio n. 1
0
<?php

/**
 * Default Homepage
 *
 * @package Alaya_framework
 * @subpackage City News
 * @since 1.0
 */
get_header();
get_template_part('_archive', esc_attr(alaya_opt('default_home_template')));
get_template_part('tpl/tpl', 'bottom');
get_footer();
Esempio n. 2
0
}
if ($alaya_taxs) {
    $alaya_tax_ids = array();
    foreach ($alaya_taxs as $individual_tax) {
        $alaya_tax_ids[] = $individual_tax->term_id;
    }
    $posts_to_show = 3;
    if ($alaya_option['single_related_posts_show_by'] == 'related_cat') {
        // Loop argumnetsnts show posts by category
        $args = array('category__in' => $alaya_tax_ids, 'post__not_in' => array($post->ID), 'posts_per_page' => $posts_to_show, 'ignore_sticky_posts' => 1);
    } else {
        // Loop argumnetsnts show posts by category
        $args = array('tag__in' => $alaya_tax_ids, 'post__not_in' => array($post->ID), 'posts_per_page' => $posts_to_show, 'ignore_sticky_posts' => 1);
    }
    $alaya_related_posts = new WP_Query($args);
    if ($alaya_related_posts->have_posts() && alaya_opt('related_posts') == 1) {
        ?>
	
    <section class="related-posts">
    
        <h3 class="section-title"><?php 
        _e('You may also like', 'alaya');
        ?>
</h3>
    
        <div class="grids">
            <?php 
        while ($alaya_related_posts->have_posts()) {
            $alaya_related_posts->the_post();
            ?>
		
Esempio n. 3
0
 * @subpackage City News
 * @since 1.0
 */
?>
      
      
      <!--1200px Grid-->
      <div id="cn_content" class="container row">
          
          <div id="breadcrumbs">
	         <div class="navi"><?php 
alaya_breadcrumbs();
?>
</div> 
	         <?php 
if (!null == alaya_opt('post_share') && alaya_opt('post_share') == 1) {
    ?>
	         <div class="share">
		          <?php 
    echo alaya_share(get_the_ID());
    ?>
	         </div>
	         <?php 
}
?>
          </div>
          
	      <!--Main Content-->
	      <div id="main" class="twelve columns">
	        <div class="standard_blog">          	                  
	           <?php 
Esempio n. 4
0
 function end_el(&$output, $item, $depth = 0, $args = array(), $id = 0)
 {
     global $ti_option;
     if (alaya_opt('mega_menu') == 1) {
         if ($depth == 0 && 'category' == $item->object) {
             $output .= "</div>\n";
         }
     }
     $output .= "</li>\n";
 }
Esempio n. 5
0
function alaya_social()
{
    $social = '<div class="social-icons clearfix">' . PHP_EOL;
    if (null !== alaya_opt('facebook') && alaya_opt('facebook') != '') {
        $social .= '<a href="' . esc_url(alaya_opt('facebook')) . '" title="Facebook" class="facebook" target="_blank"><i class="fa fa-facebook"></i></a> ' . PHP_EOL;
    }
    if (null !== alaya_opt('twitter') && alaya_opt('twitter') != '') {
        $social .= ' <a href="' . esc_url(alaya_opt('twitter')) . '" title="Twitter" class="twitter" target="_blank"><i class="fa fa-twitter"></i></a> ' . PHP_EOL;
    }
    if (null !== 'googleplus' && alaya_opt('googleplus') != '') {
        $social .= '<a href="' . esc_url(alaya_opt('googleplus')) . '" title="Google+" class="gplus" target="_blank"><i class="fa fa-google-plus"></i></a> ' . PHP_EOL;
    }
    if (null !== alaya_opt('weibo') && alaya_opt('weibo') != '') {
        $social .= '<a href="' . esc_url(alaya_opt('weibo')) . '" title="Weibo" class="weibo" target="_blank"><i class="fa fa-weibo"></i></a> ' . PHP_EOL;
    }
    if (null !== alaya_opt('tumblr') && alaya_opt('tumblr') != '') {
        $social .= '<a href="' . esc_url(alaya_opt('tumblr')) . '" title="tumblr" class="tumblr" target="_blank"><i class="fa fa-tumblr"></i></a>  ' . PHP_EOL;
    }
    if (null !== alaya_opt('flickr') && alaya_opt('flickr') != '') {
        $social .= '<a href="' . esc_url(alaya_opt('flickr')) . '" title="Flickr" class="flickr" target="_blank"><i class="fa fa-flickr"></i></a> ' . PHP_EOL;
    }
    if (null !== alaya_opt('instagram') && alaya_opt('instagram') != '') {
        $social .= '<a href="' . esc_url(alaya_opt('instagram')) . '" title="instagram" class="instagram" target="_blank"><i class="fa fa-instagram"></i></a> ' . PHP_EOL;
    }
    if (null !== 'deviantart' && alaya_opt('deviantart') != '') {
        $social .= '<a href="' . esc_url(alaya_opt('deviantart')) . '" title="Deviantart" class="deviantart" target="_blank"><i class="fa fa-deviantart"></i></a>' . PHP_EOL;
    }
    if (null !== 'behance' && alaya_opt('behance') != '') {
        $social .= '<a href="' . esc_url(alaya_opt('behance')) . '" title="Behance" class="behance" target="_blank"><i class="fa fa-behance"></i></a> ' . PHP_EOL;
    }
    if (null !== alaya_opt('dribbble') && alaya_opt('dribbble') != '') {
        $social .= '<a href="' . esc_url(alaya_opt('dribbble')) . '" title="Dribbble" class="dribbble" target="_blank"><i class="fa fa-dribbble"></i></a> ' . PHP_EOL;
    }
    if (null !== alaya_opt('pinterest') && alaya_opt('pinterest') != '') {
        $social .= '<a href="' . esc_url(alaya_opt('pinterest')) . '" title="Pinterest" class="pinterest" target="_blank"><i class="fa fa-pinterest"></i></a>' . PHP_EOL;
    }
    if (null !== alaya_opt('youtube') && alaya_opt('youtube') != '') {
        $social .= '<a href="' . esc_url(alaya_opt('youtube')) . '" title="Youtube" class="youtube" target="_blank"><i class="fa fa-youtube"></i></a>' . PHP_EOL;
    }
    if (null !== alaya_opt('vimeo') && alaya_opt('vimeo') != '') {
        $social .= '<a href="' . esc_url(alaya_opt('vimeo')) . '" title="Vimeo" class="vimeo" target="_blank"><i class="fa fa-vimeo-square"></i></a>' . PHP_EOL;
    }
    if (null !== alaya_opt('linkedIn') && alaya_opt('linkedIn') != '') {
        $social .= '<a href="' . esc_url(alaya_opt('linkedIn')) . '" title="linkedIn" class="linkedIn" target="_blank"><i class="fa fa-linkedin"></i></a>' . PHP_EOL;
    }
    if (null !== alaya_opt('github') && alaya_opt('github') != '') {
        $social .= '<a href="' . esc_url(alaya_opt('github')) . '" title="Github" class="github" target="_blank"><i class="fa fa-github"></i></a>' . PHP_EOL;
    }
    if (null !== alaya_opt('xing') && alaya_opt('xing') != '') {
        $social .= '<a href="' . esc_url(alaya_opt('xing')) . '" title="Xing" class="xing" target="_blank"><i class="fa fa-xing"></i></a>' . PHP_EOL;
    }
    if (null !== alaya_opt('yelp') && alaya_opt('yelp') != '') {
        $social .= '<a href="' . esc_url(alaya_opt('yelp')) . '" title="yelp" class="yelp" target="_blank"><i class="fa fa-yelp"></i></a>' . PHP_EOL;
    }
    if (null !== alaya_opt('vk') && alaya_opt('vk') != '') {
        $social .= '<a href="' . esc_url(alaya_opt('vk')) . '" title="vk" class="vk" target="_blank"><i class="fa fa-vk"></i></a> ' . PHP_EOL;
    }
    if (null !== alaya_opt('bloglovin') && alaya_opt('bloglovin') != '') {
        $social .= '<a href="' . esc_url(alaya_opt('bloglovin')) . '" title="bloglovin" class="bloglovin" target="_blank"><i class="fa fa-bloglovin"></i></a> ' . PHP_EOL;
    }
    if (null !== alaya_opt('rss') && alaya_opt('rss') != '') {
        $social .= '<a href="' . esc_url(alaya_opt('rss')) . '" title="Feed" class="feed" target="_blank"><i class="fa fa-rss"></i></a> ' . PHP_EOL;
    }
    $social .= '</div>' . PHP_EOL;
    $social = apply_filters('alaya_social', $social);
    return $social;
}
Esempio n. 6
0
           <div class="menu_button"><a href="javascript:void(0)"><i class="fa fa-bars"></i></a></div>
           
	       <!--Tools-->
		   <div id="tools">
			 
			<?php 
if (null == alaya_opt('search') || alaya_opt('search') == '0') {
    ?>
			   <a href="javascript:void(0);" class="search_btn"><i class="fa fa-search"></i></a>
			 <?php 
}
?>
			 
			 <?php 
if (has_nav_menu('lang_navi')) {
    ?>
			     <a href="javascript:void(0);" class="languages_btn"><i class="fa fa-globe"></i> <?php 
    _e('Languages', 'alaya');
    ?>
</a>
			 <?php 
}
?>
		   
		   </div> 
      </div> 
           
	  <?php 
set_query_var('slider_shortcode', esc_attr(alaya_opt('slider_shortcode')));
get_template_part('tpl/tpl', 'header-' . esc_attr(alaya_opt('header_style')));
Esempio n. 7
0
</span>
	          <span id="weather"></span>
	        </div>
	      </div>
	      
	      <!--Primary Menu-->
	      <nav id="primary_menu">
		     <ul class="sf-menu">
			   <?php 
wp_nav_menu(array('theme_location' => 'primary_navi', 'container' => '', 'menu_class' => '', 'echo' => true, 'walker' => new alaya_mega_menu(), 'fallback_cb' => 'alaya_default_menu', 'items_wrap' => '%3$s', 'depth' => 5));
?>
			</ul>
			
	      </nav>
	      
      </header>
      
      <?php 
if (is_home()) {
    if (alaya_opt('home_slider_cat') != '') {
        $slider_cat = alaya_cat_id(alaya_opt('home_slider_cat'));
    } else {
        $slider_cat = '';
    }
    set_query_var('enable_slider', alaya_opt('home_slider'));
    set_query_var('posts_per_slide', 1);
    set_query_var('posts_number', 3);
    set_query_var('slide_effect', 'slide');
    set_query_var('cat_id', $slider_cat);
    get_template_part('tpl/tpl', 'slider');
}
Esempio n. 8
0
/**
 * Template: Popup and side tool icons
 *
 * @package Alaya_framework
 * @subpackage City News
 * @since 1.0
 */
?>
      
      <!--Popup-->
      <div id="popup_window" class="popup_content">
        <a href="javascript:void(0)" class="close_popup"><i class="fa fa-close"></i></a>
	    
	    <?php 
if (null == alaya_opt('search') || alaya_opt('search') == '0') {
    ?>
	    <div id="popup_search" class="popup_content">
		    <h3><?php 
    _e('Searching', 'alaya');
    ?>
</h3>
		    <div class="content container">
			  <form action="<?php 
    echo esc_url(home_url('/'));
    ?>
" method="get" name="searchform" class="popup_form">
			      <div class="four columns alpha">
				    <input type="text" name="s" class="u-full-width" placeholder="<?php 
    _e('Keyword', 'alaya');
    ?>
Esempio n. 9
0
 */
?>
       
        <?php 
/* Load Content */
while (have_posts()) {
    the_post();
    set_query_var('template', 'standard');
    set_query_var('title', $title);
    set_query_var('thumbnail', $thumbnail);
    get_template_part('tpl/tpl', 'loop');
    ?>
 
	    
		<?php 
    if (!null == alaya_opt('post_author') && alaya_opt('post_author') == 1) {
        ?>
		
		<!--Author-->
		<section id="author_vcard">
		<h3 class="author-title section-title"><?php 
        _e('About Author', 'alaya');
        ?>
</h3>
		<?php 
        echo get_avatar(get_the_author_meta('ID'), 80);
        ?>
		<p><strong><?php 
        the_author_meta('nickname');
        ?>
</strong>
Esempio n. 10
0
 *
 * @package Alaya_framework
 * @subpackage City News
 * @since 1.0
 */
?>
      
      <!--Footer-->
      <footer id="footer">
        <div class="container">
	     <div class="copyright eight columns">
		      <?php 
if (!null == alaya_opt('copyright') && alaya_opt('copyright') != '') {
    ?>
                <?php 
    echo sanitize_text_field(alaya_opt('copyright'));
    ?>
		      <?php 
} else {
    ?>
		        Copyright &copy; 2015 <a href="<?php 
    echo esc_url(home_url('/'));
    ?>
" title="<?php 
    esc_html(bloginfo('name'));
    ?>
"><?php 
    esc_html(bloginfo('name'));
    ?>
</a>. All rights reserved.
		      <?php 
Esempio n. 11
0
<?php

/**
 * Template Name: Gallery Page
 *
 * @package Alaya_framework
 * @subpackage City News
 * @since 1.0
 */
get_header();
if (alaya_opt('header_style') == 2) {
    while (have_posts()) {
        the_post();
        get_template_part('tpl/tpl', 'page-title');
    }
}
get_template_part('tpl/tpl', 'gallery');
get_template_part('tpl/tpl', 'bottom');
get_footer();