function shiword_custom_background_plus_style()
{
    if (shiword_is_printpreview() || shiword_is_mobile()) {
        return;
    }
    $background = get_background_image();
    $color = get_background_color();
    if (!$background && !$color) {
        return;
    }
    $style = $color ? "background-color: #{$color};" : '';
    if ($background) {
        $style .= " background-image: url('{$background}');";
    }
    ?>
	<style type="text/css"> 
		body { <?php 
    echo trim($style);
    ?>
 }
		#fixedfoot_cont { <?php 
    echo trim($style);
    ?>
 }
		#head_cont { background-color: #<?php 
    echo trim($color);
    ?>
; }
	</style>
<?php 
}
Beispiel #2
0
    function shiword_fixed_footer()
    {
        if (shiword_is_printpreview()) {
            return;
        }
        // useless in print preview
        ?>

<!-- begin fixed footer -->

<div id="fixedfoot_cont">
	<div id="fixedfoot_bg">
		<div id="fixedfoot">
			<div id="fixedfoot_overlay">
				<?php 
        shiword_qbar();
        ?>
				<?php 
        shiword_statusbar();
        ?>
				<?php 
        shiword_navbuttons();
        ?>
			</div>
		</div>
	</div>
	<div id="bottom_fade"></div>
	<div id="fixedfoot_reflect"></div>
</div>

<!-- end fixed footer -->

<?php 
    }
Beispiel #3
0
 function shiword_scripts()
 {
     if (shiword_is_mobile() || is_admin() || shiword_is_printpreview() || !shiword_get_opt('shiword_jsani')) {
         return;
     }
     //thickbox script
     if (shiword_get_opt('shiword_thickbox')) {
         wp_enqueue_script('thickbox');
     }
     //tinynav script
     if (shiword_get_opt('shiword_tinynav')) {
         wp_enqueue_script('shiword-tinynav', get_template_directory_uri() . '/js/tinynav/tinynav.min.js', array('jquery'), shiword_get_info('version'), true);
     }
     wp_enqueue_script('shiword-script', get_template_directory_uri() . '/js/animations.min.js', array('jquery', 'hoverIntent'), shiword_get_info('version'), true);
     //shiword js
     $data = array('script_modules' => shiword_get_js_modules(), 'slider_speed' => shiword_get_opt('shiword_sticky_speed') ? shiword_get_opt('shiword_sticky_speed') : '2500', 'slider_pause' => shiword_get_opt('shiword_sticky_pause') ? shiword_get_opt('shiword_sticky_pause') : '2000', 'post_expander_wait' => esc_js(__('Post loading, please wait...', 'shiword')), 'quote_link_text' => esc_js(__('Quote', 'shiword')), 'quote_link_info' => esc_attr(__('Add selected text as a quote', 'shiword')), 'quote_link_alert' => esc_js(__('Nothing to quote. First of all you should select some text...', 'shiword')));
     wp_localize_script('shiword-script', 'shiword_l10n', $data);
 }
Beispiel #4
0
	<?php 
    shiword_hook_comments_list_before();
    ?>

	<ol class="commentlist">
		<?php 
    wp_list_comments('type=comment');
    ?>
	</ol>

	<?php 
    shiword_hook_comments_list_after();
    ?>

<?php 
}
?>

<?php 
if (comments_open() && !shiword_is_printpreview()) {
    ?>
	<?php 
    comment_form();
}
?>

<!-- end comments -->

<?php 
shiword_hook_comments_after();
Beispiel #5
0
				It looks like you're using an old and insecure version of Internet Explorer. Using an outdated browser makes your computer unsafe. For the best WordPress experience, please update your browser
			</div>
			<![endif]-->

			<?php 
shiword_hook_footer_after();
?>

		</div> <!-- end #maincontent -->

		<?php 
shiword_fixed_footer();
?>

		<?php 
if (shiword_is_printpreview()) {
    ?>
		<div id="close_preview">
			<a id="close_button" title="<?php 
    _e('Close', 'shiword');
    ?>
" href="<?php 
    echo get_permalink($post->ID);
    ?>
"><?php 
    _e('Close', 'shiword');
    ?>
</a>
			<a href="javascript:window.print()" title="<?php 
    _e('Print', 'shiword');
    ?>
Beispiel #6
0
    function the_slider()
    {
        global $post;
        if (shiword_is_printpreview()) {
            return;
        }
        // no slider in print preview
        $posts_list = get_option('shiword_slideshow');
        //get the selected posts list
        if (!isset($posts_list) || empty($posts_list)) {
            return;
        }
        // if no post is selected, exit
        $args = array('post__in' => $posts_list, 'post_type' => 'any', 'orderby' => 'post__in', 'post_status' => 'publish', 'no_found_rows' => true, 'posts_per_page' => -1, 'ignore_sticky_posts' => true);
        $r = new WP_Query($args);
        if ($r->have_posts()) {
            ?>
			<div id="sw_slider-wrap">
				<div id="sw_sticky_slider">
<?php 
            while ($r->have_posts()) {
                $r->the_post();
                $post_author = !shiword_get_opt('shiword_sticky_author') ? '' : '<span class="sw-slider-auth">' . sprintf(__('by %s', 'shiword'), get_the_author()) . '</span>';
                ?>
						<div class="sss_item">
							<div class="sss_inner_item">
								<a href="<?php 
                echo esc_url(get_permalink());
                ?>
" title="<?php 
                the_title_attribute();
                ?>
">
									<?php 
                echo shiword_get_the_thumb(array('width' => 120, 'height' => 120, 'class' => 'alignleft'));
                ?>
								</a>
								<div style="padding-left: 130px;">
									<h2 class="storytitle"><a href="<?php 
                echo get_permalink($post->ID);
                ?>
" title="<?php 
                the_title_attribute();
                ?>
"><?php 
                the_title();
                ?>
</a></h2> <?php 
                echo $post_author;
                ?>
									<div class="storycontent">
										<?php 
                the_excerpt();
                ?>
									</div>
								</div>
							</div>
						</div>
<?php 
            }
            ?>
				</div>
				<div class="sw_slider-fade"> </div>
				<?php 
            if ($r->post_count > 1) {
                ?>
					<div class="sw_slider-skip toright"> </div>
					<div class="sw_slider-skip toleft"> </div>
				<?php 
            }
            ?>
			</div>
<?php 
        }
        wp_reset_postdata();
    }