Example #1
0
/**
 * JavaScripts In Header
 */
function theme_enqueue_scripts()
{
    if (!is_admin()) {
        wp_enqueue_script('jqueryslidemenu', THEME_JS . '/jqueryslidemenu.js', array('jquery'), false, true);
        wp_enqueue_script('jquery-tools-tabs', THEME_JS . '/jquery.tools.tabs.min.js', array('jquery'), false, true);
        wp_enqueue_script('jquery-colorbox', THEME_JS . '/jquery.colorbox-min.js', array('jquery'), false, true);
        wp_enqueue_script('jquery-swfobject', THEME_JS . '/jquery.swfobject.1-1-1.min.js', array('jquery'), false, true);
        wp_enqueue_script('video-js', THEME_JS . '/video.js', array('jquery'), false, true);
        wp_enqueue_script('custom-js', THEME_JS . '/custom.js', array('jquery'), false, true);
        wp_register_script('cufon-yui', THEME_JS . '/cufon-yui.js', array('jquery'), false, true);
        wp_register_script('jquery-quicksand', THEME_JS . '/jquery.quicksand.min.js', array('jquery'), false, true);
        wp_register_script('jquery-easing', THEME_JS . '/jquery.easing.1.3.js', array('jquery'), false, true);
        wp_register_script('jquery-gmap', THEME_JS . '/jquery.gmap-1.1.0-min.js', array('jquery'), false, true);
        wp_register_script('jquery-tweet', THEME_JS . '/jquery.tweet.js', array('jquery'), false, true);
        wp_register_script('jquery-tools-validator', THEME_JS . '/jquery.tools.validator.min.js', array('jquery'), false, true);
        if (is_front_page()) {
            theme_generator('slideShowHeader');
        }
        if (is_singular()) {
            wp_enqueue_script('comment-reply');
        }
    }
}
Example #2
0
<?php

get_header();
theme_generator('introduce');
?>
<div id="page">
	<div class="inner right_sidebar">
		<div id="main">
			<?php 
theme_generator('breadcrumbs');
?>
			<div class="content">
			<?php 
$exclude_cats = theme_get_option('blog', 'exclude_categorys');
foreach ($exclude_cats as $key => $value) {
    $exclude_cats[$key] = -$value;
}
$page = get_query_var('paged') ? get_query_var('paged') : 1;
$s = get_query_var('s');
query_posts("s={$s}&paged={$page}&cat=" . implode(",", $exclude_cats));
get_template_part('loop', 'search');
?>
				<div class="clearboth"></div>
			</div>
			<?php 
if (function_exists('wp_pagenavi')) {
    wp_pagenavi();
}
?>
		</div>
		<?php 
?>
<div id="page">
	<div class="inner <?php 
if ($layout == 'right') {
    ?>
right_sidebar<?php 
}
if ($layout == 'left') {
    ?>
left_sidebar<?php 
}
?>
">
		<div id="main">
			<?php 
echo theme_generator('breadcrumbs', $post_id);
if (have_posts()) {
    while (have_posts()) {
        the_post();
        $image_src = theme_get_image_src(array('type' => 'attachment_id', 'value' => get_post_thumbnail_id()), array(285, 150));
        ?>
		<div class="content" <?php 
        post_class();
        ?>
>
			<div class="one_half">
				<?php 
        echo '<img width="285" height="150" src="' . $image_src . '" alt="' . get_post_meta(get_post_thumbnail_id(), '_wp_attachment_image_alt', true) . '" />';
        ?>
			</div>
			<div class="one_half last">
Example #4
0
?>
<div id="page">
	<div class="inner <?php 
if ($layout == 'right') {
    ?>
right_sidebar<?php 
}
if ($layout == 'left') {
    ?>
left_sidebar<?php 
}
?>
">
		<div id="main">
			<?php 
theme_generator('breadcrumbs', $post->ID);
?>
			<div class="content">
				<?php 
$exclude_cats = theme_get_option('blog', 'exclude_categorys');
foreach ($exclude_cats as $key => $value) {
    $exclude_cats[$key] = -$value;
}
$query_string = "cat=" . implode(",", $exclude_cats) . "&paged={$paged}";
query_posts($query_string);
get_template_part('loop', 'blog');
?>
				<div class="clearboth"></div>
			</div>
			<?php 
if (function_exists('wp_pagenavi')) {
Example #5
0
        theme_generator('blog_featured_image', $featured_image_type, $layout);
        ?>
	<div class="entry_info">
		<h2 class="entry_title"><a href="<?php 
        echo get_permalink();
        ?>
" rel="bookmark" title="<?php 
        printf(__("Permanent Link to %s", 'striking_front'), get_the_title());
        ?>
"><?php 
        the_title();
        ?>
</a></h2>
		<div class="entry_meta">
<?php 
        theme_generator('blog_meta');
        ?>
		</div>
		<div class="entry_content">
<?php 
        if (theme_get_option('blog', 'display_full')) {
            global $more;
            $more = 0;
            the_content(__('Read more &raquo;', 'striking_front'), false);
        } else {
            the_excerpt();
            ?>
		<a class="read_more_link" href="<?php 
            the_permalink();
            ?>
"><?php 
            printf(__("Permanent Link to %s", 'theme_front'), get_the_title());
            ?>
">
                <?php 
            the_title();
            ?>
                </a></h3>
              <!--div class="entry_meta">
<!?php echo theme_generator('blog_meta'); ?>
			</div-->
            </div>
            <?php 
        }
        ?>
            <?php 
        echo theme_generator('blog_featured_image', $featured_image_type, 360, '', false, $effect, true);
        ?>
			</div>
			
			<div class="one_third last">
				<div class="social_share">
					<?php 
        if (function_exists('ADDTOANY_SHARE_SAVE_KIT')) {
            ADDTOANY_SHARE_SAVE_KIT();
        }
        ?>
 
				</div>
            <ul class="list10 list_color_gray">
              <li><span>Tour Code:</span> <?php 
        echo get_post_meta($post_id, '_tour_code', true);
        wp_link_pages(array('before' => '<div class="page-link">' . __('Pages:', 'theme_front'), 'after' => '</div>'));
        ?>
        <footer>
          <?php 
        edit_post_link(__('Edit', 'theme_front'), '<p class="entry_edit">', '</p>');
        ?>
          <?php 
        if (theme_get_inherit_option($post->ID, '_related_popular', 'blog', 'related_popular')) {
            ?>
          <div class="related_popular_wrap">
            <div class="one_half"> <?php 
            echo theme_generator('blog_related_posts');
            ?>
 </div>
            <div class="one_half last"> <?php 
            echo theme_generator('blog_popular_posts');
            ?>
 </div>
            <div class="clearboth"></div>
          </div>
          <?php 
        }
        ?>
          <?php 
        if (theme_get_option('blog', 'entry_navigation')) {
            ?>
          <nav class="entry_navigation">
            <div class="nav-previous">
              <?php 
            previous_post_link('%link', '<span class="meta-nav">' . _x('&larr;', 'Previous post link', 'theme_front') . '</span> %title');
            ?>
Example #8
0
<?php

get_header();
$page = theme_get_option('homepage', 'home_page');
if ($page) {
    $page_date = get_page(wpml_get_object_id($page, 'page'));
    $content = $page_date->post_content;
} else {
    $content = theme_get_option('homepage', 'content');
}
$layout = theme_get_option('homepage', 'layout');
theme_generator('SlideShow');
?>
<div id="page" class="home">
	<div class="inner <?php 
if ($layout == 'right') {
    ?>
right_sidebar<?php 
}
if ($layout == 'left') {
    ?>
left_sidebar<?php 
}
?>
">
		<div id="main">
			<div class="content">
				<?php 
echo apply_filters('the_content', stripslashes($content));
?>
				<div class="clearboth"></div>
Example #9
0
		<div class="one_half">
			<div class="one_third"><?php 
            theme_generator('footer_sidebar');
            ?>
</div>
			<div class="one_third"><?php 
            theme_generator('footer_sidebar');
            ?>
</div>
			<div class="one_third last"><?php 
            theme_generator('footer_sidebar');
            ?>
</div>
		</div>
		<div class="one_half last"><?php 
            theme_generator('footer_sidebar');
            ?>
</div>
<?php 
            break;
    }
}
?>
		<div class="clearboth"></div>
	</div>
	<div id="footer_bottom">
		<div class="inner">
			<div id="copyright"><?php 
echo wpml_t(THEME_NAME, 'Copyright Footer Text', stripslashes(theme_get_option('footer', 'copyright')));
wp_reset_query();
// Fetch external json
Example #10
0
		<div id="main">
<?php 
if (have_posts()) {
    while (have_posts()) {
        the_post();
        ?>
			<article id="post-<?php 
        the_ID();
        ?>
" class="entry content">
<?php 
        if (theme_get_option('portfolio', 'featured_image')) {
            ?>
				<header>
					<?php 
            theme_generator('portfolio_featured_image', $layout);
            ?>
				</header>
<?php 
        }
        ?>
				<?php 
        the_content();
        ?>
				<footer>
				<?php 
        edit_post_link(__('Edit', 'striking_front'), '<p class="entry_edit">', '</p>');
        if (theme_get_option('portfolio', 'single_navigation')) {
            ?>
					<nav class="entry_navigation">
						<div class="nav-previous"><?php 
Example #11
0
$innerColor = str_replace('#', '0x', $innerColor);
$shadowDarkness = theme_get_option('slideshow', '3d_shadowDarkness');
$autoplay = theme_get_option('slideshow', '3d_autoplay');
$output = <<<XML
<?xml version="1.0" encoding="utf-8"?>
<Piecemaker>
  <Settings>
    <imageWidth>960</imageWidth>
    <imageHeight>{$height}</imageHeight>
    <segments>{$segments}</segments>
    <tweenTime>{$tweenTime}</tweenTime>
    <tweenDelay>{$tweenDelay}</tweenDelay>
    <tweenType>{$tweenType}</tweenType>
    <zDistance>{$zDistance}</zDistance>
    <expand>{$expand}</expand>
    <innerColor>{$innerColor}</innerColor>
    <textBackground>0x0064C8</textBackground>
    <shadowDarkness>{$shadowDarkness}</shadowDarkness>
    <textDistance>25</textDistance>
    <autoplay>{$autoplay}</autoplay>
  </Settings>
XML;
$images = theme_generator('slideShow_getImages');
$uploads = wp_upload_dir();
foreach ($images as $image) {
    $image['src'] = str_replace($uploads['baseurl'], '', $image['src']);
    $output .= '<Image Filename="' . $image['src'] . '"></Image>';
}
$output .= '</Piecemaker>';
header("Content-type: text/xml");
echo $output;
Example #12
0
function theme_shortcode_blog($atts, $content = null, $code)
{
    global $wp_filter;
    $the_content_filter_backup = $wp_filter['the_content'];
    extract(shortcode_atts(array('count' => 3, 'cat' => '', 'posts' => '', 'image' => 'true', 'meta' => 'true', 'full' => 'false', 'nopaging' => 'true', 'paged' => '', 'width' => '630'), $atts));
    $query = array('posts_per_page' => (int) $count, 'post_type' => 'post');
    if ($paged) {
        $query['paged'] = $paged;
    }
    if ($cat) {
        $query['cat'] = $cat;
    }
    if ($posts) {
        $query['post__in'] = explode(',', $posts);
    }
    if ($nopaging == 'false') {
        $paged = get_query_var('paged') ? get_query_var('paged') : 1;
        $query['paged'] = $paged;
    } else {
        $query['showposts'] = $count;
    }
    if ($image == 'true') {
        $featured_image_type = theme_get_option('blog', 'featured_image_type');
    } else {
        $featured_image_type = 'full';
    }
    ob_start();
    $r = new WP_Query($query);
    if ($r->have_posts()) {
        while ($r->have_posts()) {
            $r->the_post();
            ?>
<article id="post-<?php 
            the_ID();
            ?>
" class="entry entry_<?php 
            echo $featured_image_type;
            ?>
"> 
	<?php 
            if ($image == 'true') {
                theme_generator('blog_featured_image', $featured_image_type, $width);
            }
            ?>
	<div class="entry_info">
		<h2 class="entry_title"><a href="<?php 
            echo get_permalink();
            ?>
" rel="bookmark" title="<?php 
            printf(__("Permanent Link to %s", 'striking_front'), get_the_title());
            ?>
"><?php 
            the_title();
            ?>
</a></h2>
		<?php 
            if ($meta == 'true') {
                ?>
		<div class="entry_meta">
<?php 
                theme_generator('blog_meta');
                ?>
		</div>
		<?php 
            }
            ?>
		<div class="entry_content">
<?php 
            if ($full == 'true') {
                global $more;
                $more = 0;
                the_content(__("Read More", 'striking_front'), false);
            } else {
                the_excerpt();
                ?>
			<a class="read_more_link" href="<?php 
                the_permalink();
                ?>
"><?php 
                echo __('Read more &raquo;', 'striking_front');
                ?>
</a>
<?php 
            }
            ?>
		</div>
	</div>
</article>
<?php 
        }
    }
    $output = ob_get_contents();
    ob_end_clean();
    if ($nopaging == 'false') {
        ob_start();
        theme_blog_pagenavi('', '', $r, $paged);
        $output .= ob_get_clean();
    }
    wp_reset_postdata();
    $wp_filter['the_content'] = $the_content_filter_backup;
    return '[raw]' . $output . '[/raw]';
}
Example #13
0
			<div id="site_description"><?php 
            bloginfo('description');
            ?>
</div>
<?php 
        }
    }
    ?>
		</div>
<?php 
}
$top_area_type = theme_get_option('general', 'top_area_type');
switch ($top_area_type) {
    case 'html':
        if (theme_get_option('general', 'top_area_html')) {
            echo '<div id="top_area">';
            echo apply_filters('the_content', wpml_t(THEME_NAME, 'Top Area Html Code', stripslashes(theme_get_option('general', 'top_area_html'))));
            echo '</div>';
        }
        break;
    case 'wpml_flags':
        theme_generator('wpml_flags');
        break;
}
?>
		<?php 
theme_generator('menu');
?>
	</div>
</header>
Example #14
0
<?php

get_header();
theme_generator('introduce');
?>
<div id="page">
	<div class="inner right_sidebar">
		<div id="main">
			<div class="content">
				<h2><?php 
_e('Pages', 'striking_front');
?>
</h2>
				<ul>
					<?php 
wp_list_pages('depth=0&sort_column=menu_order&title_li=');
?>
		
				</ul>
				<div class="divider top"><a href="#"><?php 
_e('Top', 'striking_front');
?>
</a></div>
<?php 
$exclude_cats = theme_get_option('blog', 'exclude_categorys');
?>
				<h2><?php 
_e('Category Archives', 'striking_front');
?>
</h2>
				<ul>
Example #15
0
<?php

$lessgap = ' class="lessgap"';
if (theme_get_option('general', 'disable_breadcrumb') == false) {
    if (isset($post->ID)) {
        $disable = get_post_meta($post->ID, '_disable_breadcrumb', true);
    }
    if (!isset($disable) || $disable == -1) {
        $lessgap = '';
    }
}
?>
<aside id="sidebar">
	<div id="sidebar_content"<?php 
echo $lessgap;
?>
><?php 
if (isset($post)) {
    theme_generator('sidebar', $post->ID);
} else {
    theme_generator('sidebar');
}
?>
</div>
	<div id="sidebar_bottom"></div>
</aside>