Example #1
0
    ?>
					<?php 
    while (have_posts()) {
        the_post();
        ?>
	
						<?php 
        require 'content.php';
        ?>
	
					<?php 
    }
    ?>
	
					<?php 
    king::pagination();
    ?>
	
				<?php 
} else {
    ?>
	
					<article id="post-0" class="post no-results not-found">
						<header class="entry-header">
							<h1 class="entry-title"><?php 
    _e('Nothing Found', 'king');
    ?>
</h1>
						</header><!-- .entry-header -->
	
						<div class="entry-content">
Example #2
0
					<?php 
    dynamic_sidebar('footer2-4');
    ?>
				</div><!-- #secondary -->
			<?php 
}
?>
		</div>
	
	</div>
	<div class="clearfix"></div>
	<div class="copyright_info4">
		<div class="container">
			<div class="clearfix divider_dashed10"></div>
			<div class="one_half"><?php 
echo king::esc_js($king->cfg['footerText']);
?>
</div>
		    <div class="one_half last">
		    	<a href="<?php 
echo esc_url($king->cfg['footerTerms']);
?>
">
		    		<?php 
_e('Terms of Use', KING_DOMAIN);
?>
		    	</a> 
		    	| 
		    	<a href="<?php 
echo esc_url($king->cfg['footerPrivacy']);
?>
Example #3
0
language_attributes();
?>
>
<head>
<?php 
wp_head();
?>
</head>
<body <?php 
body_class('bg-cover');
?>
>
	<div id="main" class="layout-<?php 
$mclass = $king->cfg['layout'];
if (!empty($post->post_name)) {
    if ($post->post_type == 'page') {
        $mclass .= ' page-' . $post->post_name;
    }
}
echo esc_attr($mclass);
echo ' ' . esc_attr($king->main_class);
?>
 site_wrapper">
	<?php 
/**
 * Load header path, change header via theme panel, files location themes/linstar/templates/header/
 */
king::path('header');
?>
	
Example #4
0
                ?>
	
	<div class="one_fourth animated <?php 
                echo esc_attr($eff);
                ?>
 delay-<?php 
                echo esc_attr($i);
                ?>
00ms<?php 
                if ($i % 4 == 0) {
                    echo ' last';
                }
                ?>
">
    	<?php 
                $img = king::get_featured_image($post);
                echo '<img src="' . king_createLinkImage($img, '250x250xc') . '" class="cirimg" alt="" />';
                ?>
        <div class="cinfo">
            <img src="<?php 
                echo esc_url(THEME_URI . '/assets/images/shape1.jpg');
                ?>
" alt="" class="shape1">
        	<h5><?php 
                the_title();
                ?>
</h5>
			<em><?php 
                echo esc_html($options['position']);
                ?>
</em>
Example #5
0
<?php

/**
 * 	(c) king-theme.com
 */
king::path('footer');
/*
	. change footer via theme-panel
	. location in themes/aaika/templates/footer/__file__	
*/
?>
	</div><!-- #main -->
	<?php 
wp_footer();
?>
</body>
</html>
Example #6
0
/**
*
* (C) King-Theme.com
*
*/
/********************************************************/
/*                        Actions                       */
/********************************************************/
// Constants
$theme = wp_get_theme();
if (!empty($theme['Template'])) {
    $theme = wp_get_theme($theme['Template']);
}
define('THEME_NAME', $theme['Name']);
define('KING_VERSION', $theme['Version']);
define('DS', DIRECTORY_SEPARATOR);
define('KING_FILE', __FILE__);
define('OPTIONS_PATH', dirname(__FILE__));
define('CORE_PATH', dirname(__FILE__));
define('KING_URL', get_template_directory_uri() . '/options');
define('SITE_URL', site_url());
define('SITE_URI', site_url());
define('THEME_URI', get_template_directory_uri());
define('THEME_PATH', get_template_directory());
define('KING_OPTNAME', 'king');
define('KING_DOMAIN', KING_OPTNAME);
// Shared
include 'king.class.php';
global $king;
$king = new king();
$king->init();
Example #7
0
$brc = get_post_meta($pid, '_king_page_breadcrumb', true);
?>
<div class="clearfix"></div>
<?php 
if ($brc == 'global') {
    ?>
<div class="page_title1"<?php 
    if (!empty($page_bread_bg)) {
        echo ' style="background-image:url(' . esc_url($page_bread_bg) . ')" ';
    }
    ?>
>
	<div class="container">
	    <h1><?php 
    if (!empty($page_title)) {
        echo king::esc_js($page_title);
    } else {
        _e('History Timeline', 'linstar');
    }
    ?>
</h1>
	    <div class="pagenation">
	    	&nbsp;<a href="<?php 
    echo SITE_URI;
    ?>
"><?php 
    _e('Home', 'linstar');
    ?>
</a> 
	    	<i>/</i> <?php 
    _e('History Timeline', 'linstar');
Example #8
0
    ?>
					<?php 
    while (have_posts()) {
        the_post();
        ?>
	
						<?php 
        require 'content.php';
        ?>
	
					<?php 
    }
    ?>
	
					<?php 
    king::content_nav('nav-below');
    ?>
	
				<?php 
} else {
    ?>
	
					<article id="post-0" class="post no-results not-found">
						<header class="entry-header">
							<h1 class="entry-title">Nothing Found</h1>
						</header><!-- .entry-header -->
	
						<div class="entry-content">
							<p><?php 
    _e('Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'king');
    ?>
Example #9
0
    if (is_sticky()) {
        ?>
	
							<h3 class="entry-format">
									<?php 
        _e('Featured', KING_DOMAIN);
        ?>
							</h3>
						<?php 
    }
    ?>
			
						<?php 
    if ('post' == get_post_type()) {
        if ($king->cfg['showMeta'] == 1) {
            king::posted_on('post_meta_links ');
        }
    }
    echo '</header><!-- .entry-header -->';
}
/*End of header of single post*/
if ((get_option('rss_use_excerpt') == 1 || is_search()) && !is_single() && !is_page()) {
    the_excerpt();
    echo '<a href="' . get_the_permalink() . '">' . __('read more &#187;', KING_DOMAIN) . '</a>';
} else {
    the_content(__('Read more &#187;', KING_DOMAIN));
}
wp_link_pages(array('before' => '<div class="page-link"><span>' . __('Pages:', KING_DOMAIN) . '</span>', 'after' => '</div>'));
?>
		</div><!-- .entry-content -->
		
Example #10
0
$description = $king->cfg['cs_description'];
if ($description) {
    echo esc_html($description);
} else {
    _e("Our website is under construction. We'll be here soon with our new awesome site. Get best experience with this one.", 'linstar');
}
?>
				</p>
				<div class="clearfix marb4"></div>
				<form name="myForm" action="" onSubmit="return validateForm();" method="post">
					<input type="text" name="email" class="newslesoon" value="Enter email..." onFocus="if (this.value == 'Enter email...') {this.value = '';}" onBlur="if (this.value == '') {this.value = 'Enter email...';}" >
					<input type="submit" value="Submit" class="newslesubmit">
				</form>
				<div class="clearfix"></div>
				<?php 
king::socials();
?>
			</div>
			<!-- end section -->
		</div>
	</div>
</div>
<!-- ######### JS FILES ######### -->
<script type="text/javascript" src="<?php 
echo THEME_URI;
?>
/assets/js/comingsoon/countdown.js"></script>
<!-- animations -->
<script src="<?php 
echo THEME_URI;
?>
Example #11
0
 public static function king_posts($atts = null, $content = null)
 {
     global $king;
     $atts = shortcode_atts(array('items' => 20, 'category' => '', 'per_row' => 4, 'class' => '', 'cl_class' => '', 'words' => 20, 'img_size' => '245x245', 'format' => '', 'post_type' => 'post', 'taxonomy' => 'category', 'order' => 'DESC'), $atts, 'faq');
     $atts['format'] = rawurldecode($king->ext['bd'](strip_tags($atts['format'])));
     $posts = self::get_posts($atts);
     if (!count($posts)) {
         return '<h4>' . __('Article not found', KING_DOMAIN) . '</h4> <a href="' . admin_url('post-new.php') . '"><i class="fa fa-plus"></i> Add New Article</a>';
     }
     $eff = rand(0, 10);
     if ($eff <= 2) {
         $eff = 'eff-fadeInUp';
     } else {
         if ($eff > 2 && $eff <= 4) {
             $eff = 'eff-fadeInRight';
         } else {
             if ($eff > 4 && $eff <= 8) {
                 $eff = 'eff-fadeInLeft';
             } else {
                 $eff = 'eff-flipInY';
             }
         }
     }
     $columns = array('1' => 'one_full', '2' => 'one_half', '3' => 'one_third', '4' => 'one_fourth', '5' => 'one_fifth');
     $_return = '';
     if (!empty($atts['class'])) {
         $_return = '<div class="' . esc_attr($atts['class']) . '">';
     }
     $i = 1;
     foreach ($posts as $post) {
         $title = esc_html($post->post_title);
         $des = esc_html(wp_trim_words($post->post_content, $atts['words']));
         $img_size = explode('x', $atts['img_size']);
         $_w = intval(!empty($img_size[0]) ? $img_size[0] : 245);
         $_h = intval(!empty($img_size[1]) ? $img_size[1] : 245);
         $_a = !empty($img_size[2]) ? esc_attr($img_size[2]) : 'c';
         $categories_list = get_the_category_list(__(', ', KING_DOMAIN), '', $post->ID);
         $categories = explode(',', $categories_list);
         if (count($categories) == 1) {
             $categories = $categories_list;
         } else {
             if (count($categories) > 1) {
                 $categories_list = '';
                 foreach ($categories as $categorie) {
                     if (strpos($categorie, 'Uncategorized') === false) {
                         $categories_list .= $categorie . ', ';
                     }
                 }
                 $categories_list .= '.';
                 $categories = str_replace(', .', '', $categories_list);
             } else {
                 $categories = $categories_list;
             }
         }
         $img = king_createLinkImage(king::get_featured_image($post), $_w . 'x' . $_h . 'x' . $_a);
         $link = get_permalink($post->ID);
         $_return .= '<div class="animated delay-' . $i . '00ms ' . $eff;
         if ($i % $atts['per_row'] == 0) {
             $_return .= ' last ';
         }
         if (empty($atts['cl_class'])) {
             $_return .= ' ' . esc_attr($columns[$atts['per_row']]);
         } else {
             $_return .= ' ' . $atts['cl_class'];
         }
         $_return .= '">';
         $_return .= str_replace(array('{title}', '{img}', '{des}', '{link}', '{category}'), array($title, $img, $des, $link, $categories), $atts['format']);
         $_return .= '</div>';
         $i++;
     }
     if (!empty($atts['class'])) {
         $_return .= '</div>';
     }
     return do_shortcode($_return);
 }