示例#1
0
function custom_style()
{
    $banner_bg = ft_of_get_option('banner_background');
    $blog_bg = ft_of_get_option('blog_background');
    $subhead_bg = ft_of_get_option('subhead_background');
    ?>
	<style type="text/css">
	
		#subheader   { background-image: url(<?php 
    echo $subhead_bg;
    ?>
); }
		.home-blog   { background-image: url(<?php 
    echo $blog_bg;
    ?>
); }
		.home-banners { background-image: url(<?php 
    echo $banner_bg;
    ?>
); }
	</style>
<?php 
}
示例#2
0
function custom_style()
{
    $main_color = ft_of_get_option('fabthemes_primary_color');
    $link_color = ft_of_get_option('fabthemes_link_color');
    $hover_color = ft_of_get_option('fabthemes_hover_color');
    ?>
	<style type="text/css">
	
		.pushy,.menu-btn{ background: <?php 
    echo $main_color;
    ?>
; }
		a,a:visited{ color:<?php 
    echo $link_color;
    ?>
;}
		a:hover,a:focus,a:active { color:<?php 
    echo $hover_color;
    ?>
; }
	
	</style>
<?php 
}
示例#3
0
* and that other 'pages' on your WordPress site will use a
* different template.
*
* @package fabthemes
* @since fabthemes 1.0
*/
get_header();
?>

	<img id="cycle-loader" src="../lib/images/ajax-loader.gif" />

	<div id="maximage">

				<?php 
$count = ft_of_get_option('fabthemes_slide_number');
$slidecat = ft_of_get_option('fabthemes_slide_categories');
$query = new WP_Query(array('cat' => $slidecat, 'posts_per_page' => $count, 'post_type' => 'slide'));
if ($query->have_posts()) {
    while ($query->have_posts()) {
        $query->the_post();
        ?>
	 	
		 		<?php 
        $thumb = get_post_thumbnail_id();
        $img_url = wp_get_attachment_url($thumb, 'full');
        ?>
						
				<img class="slide-image" src="<?php 
        echo $img_url;
        ?>
"/>
示例#4
0
 WordPress Theme</a>
	  		</div>		
		</div><!-- .site-info -->
	</footer><!-- #colophon .site-footer -->
</div><!-- #page .hfeed .site -->

<?php 
wp_footer();
if (is_single()) {
    ?>
<script type="text/javascript">
		jQuery.backstretch("<?php 
    get_image_url();
    ?>
  ");
</script>
<?php 
} elseif (!is_front_page()) {
    ?>
<script type="text/javascript">
	jQuery.backstretch("<?php 
    echo ft_of_get_option('fabthemes_defaultbg');
    ?>
  ");
</script>
<?php 
}
?>
</body>
</html>
示例#5
0
?>
"><img src="<?php 
echo $ban3;
?>
" alt="<?php 
echo $alt3;
?>
" style="vertical-align:bottom;" /></a>
</li>

<li>
<?php 
$ban4 = ft_of_get_option('fabthemes_banner4');
$url4 = ft_of_get_option('fabthemes_url4');
$lab4 = ft_of_get_option('fabthemes_lab4');
$alt4 = ft_of_get_option('fabthemes_alt4');
?>
<a rel="nofollow" href="<?php 
echo $url4;
?>
" title="<?php 
echo $lab4;
?>
"><img src="<?php 
echo $ban4;
?>
" alt="<?php 
echo $alt4;
?>
" style="vertical-align:bottom;" /></a>
</li>
示例#6
0
<?php

/**
 * The Template for displaying all single posts.
 *
 * @package web2feel
 */
get_header();
?>

<div class="page-head">
	<div class="container">
		<div class="row">
			<div class="col-12">
				<?php 
$port_cat = ft_of_get_option('fabthemes_portfolio');
if (in_category($port_cat)) {
    ?>
				<h3> Portfolio item </h3> 
				<p> Project item from your portfolio</p>
				<?php 
} else {
    ?>
				<h3> Blog post </h3> 
				<p> Article from your blog</p>
				<?php 
}
?>
			</div>
			
		</div>
示例#7
0
echo ft_of_get_option('fabthemes_middle_icon');
?>
"></i></span>
				<h3>  <?php 
echo ft_of_get_option('fabthemes_middle_title');
?>
</h3>
				<p> <?php 
echo ft_of_get_option('fabthemes_middle_text');
?>
 </p>
			</div>	
			
			<div class="col-sm-4 homewidget">
				<span><i class="glyphicon <?php 
echo ft_of_get_option('fabthemes_right_icon');
?>
"></i></span>
				<h3> <?php 
echo ft_of_get_option('fabthemes_right_title');
?>
</h3>
				<p> <?php 
echo ft_of_get_option('fabthemes_right_text');
?>
 </p>
			</div>	
			
		</div>
	</div>
</div>
示例#8
0
	<header id="masthead" class="site-header" role="banner">
		<div class="container"> <div class="row"> 
			<div class="col-md-12">
				<div class="top-bar">
					<span><?php 
_e('Tendencia :', 'fabthemes');
?>
</span>
					<div id="ticker-box">
						<div class="ticker">
							<?php 
$ticker_cat = ft_of_get_option('fabthemes_ticker_cat', '1');
?>
							<?php 
$ticker_count = ft_of_get_option('fabthemes_ticker_count', '3');
?>
							<?php 
get_news_ticker($ticker_cat, $ticker_count);
?>
						</div>
					</div>
				</div>
			</div>
			<div class="col-md-6">	
				<div class="site-branding">
					
	<?php 
if (get_theme_mod(FT_scope::tool()->optionsName . '_logo', '') != '') {
    ?>
				<h1 class="site-title logo"><a class="mylogo" rel="home" href="<?php 
示例#9
0
		.column {
		    margin: 0px 0px 0px 47px;
		}
	}

	
</style>

	<div class="col-md-12 intro-me clearfix">
		<h2> <?php 
echo ft_of_get_option('fabthemes_welcome_title');
?>
</h2>
		<p> <?php 
echo ft_of_get_option('fabthemes_welcome_text');
?>
 </p>
	</div>
	
	
	<div id="primary" class="content-area ">
		<main id="main" class="site-main" role="main">
			<div class="description">
				<h1 class="page-title">CONTACT US</h1> 
				<?php 
$cat_text = get_page_by_title('Contact us info', 'ARRAY_A', 'post');
$cat_text = $cat_text['post_content'];
?>
				<div class="column"><p><?php 
echo $cat_text;
示例#10
0
		
			<div class="social-links">
				<ul>
					<li class="twitter"> <a href="http://twitter.com/<?php 
echo ft_of_get_option('fabthemes_twitter');
?>
"></a> </li>
					<li class="facebook"> <a href="<?php 
echo ft_of_get_option('fabthemes_facebook');
?>
"></a> </li>
					<li class="gplus"> <a href="<?php 
echo ft_of_get_option('fabthemes_gplus');
?>
"></a> </li>
					<li class="in"> <a href="<?php 
echo ft_of_get_option('fabthemes_linkedin');
?>
"></a> </li>
					<li class="feed"> <a href="<?php 
bloginfo('rss2_url');
?>
"></a> </li>
				</ul>
			</div>
			
		</div>
		
	</header><!-- #masthead .site-header -->

示例#11
0
function exclude_category($query)
{
    $port_cat = ft_of_get_option('fabthemes_portfolio');
    if ($query->is_home() && $query->is_main_query()) {
        $query->set('cat', '-' . $port_cat . '');
    }
}
示例#12
0
		
			
		</div>
	
</div>
<?php 
}
wp_reset_postdata();
?>
</div></div></div>
<!-- Blog posts -->


<!-- Testimonials -->
<div class="home-testimonials"><div class="container"><div class="row">
	<?php 
$testim = ft_of_get_option('testim_number', '');
?>
	<?php 
if (shortcode_exists('woothemes_testimonials')) {
    do_action('woothemes_testimonials', array('limit' => $testim, 'size' => 80, 'orderby' => 'date'));
}
?>
 
	
	
</div></div></div>
<!-- Testimonials -->

<?php 
get_footer();
示例#13
0
                    <div class="row">
                        <div class="col-md-12">
                            <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
                            <!-- MiddleResponsiveAd -->
                            <ins class="adsbygoogle"
                                 style="display:block"
                                 data-ad-client="ca-pub-5532357103461788"
                                 data-ad-slot="5517270559"
                                 data-ad-format="auto"></ins>
                            <script>
                                (adsbygoogle = window.adsbygoogle || []).push({});
                            </script>
                        </div>
                    </div>
                    <?php 
$promocat = ft_of_get_option('fabthemes_promo_cat', '9');
?>
                    <?php 
get_promo_items($promocat);
?>
                </div>
            </div>
            <div class="row">
                <div class="col-md-12">
                    <div class="row">
                        <div class="col-md-12">
                            <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
                            <!-- MiddleResponsiveAd -->
                            <ins class="adsbygoogle"
                                 style="display:block"
                                 data-ad-client="ca-pub-5532357103461788"
示例#14
0
<?php

header("Content-type: text/css;");
if (file_exists('../../../../wp-load.php')) {
    include '../../../../wp-load.php';
} else {
    include '../../../../../wp-load.php';
}
?>

<?php 
// Styles
$primary = ft_of_get_option('fabthemes_primary_color', '#769A38');
$secondary = ft_of_get_option('fabthemes_secondary_color', '');
$link = ft_of_get_option('fabthemes_link_color', '');
$hover = ft_of_get_option('fabthemes_hover_color', '');
?>
.search-right .search-form .search-submit,
.fab-pagination span,
.main-navigation li:hover > a,
.main-navigation .current_page_item a, .main-navigation .current-menu-item a,
.main-navigation ul ul,
#secondary .widget #side-tab ul#myTab li.active a,
#secondary .widget #side-tab ul#myTab li a:hover,
#secondary .widget .tagcloud a,
#footer-widgets .widget .tagcloud a,
#comments #respond p.form-submit input
{
	background: <?php 
echo $primary;
?>
示例#15
0
</head>

<body <?php 
body_class();
?>
>

<div id="page" class="hfeed site">

	<header id="masthead" class="site-header" role="banner">
	
		<div class="topbar">
			<div class="container"><div class="row">
				<div class="col-xs-6 top-left">
					<?php 
echo ft_of_get_option('header_text', 'Enter some info here');
?>
				</div>
				<div class="col-xs-6 top-right">
					<?php 
wp_loginout();
?>
 
					<?php 
if (!is_user_logged_in()) {
    ?>
					<a href="<?php 
    echo wp_registration_url();
    ?>
" title="Register"><?php 
    _e('Register', 'cartel');
示例#16
0
    }
    ?>

                    <?php 
}
// end of the loop.
?>

                </main><!-- #main -->
            </div><!-- #primary -->
        </div>
        <div class="col-md-4">
            <div class="row">
                <div class="col-md-12">
                    <?php 
$promotitle = ft_of_get_option('fabthemes_promo_title', 'Promoted');
?>
                    <h3 class="section-title"><span><?php 
_e($promotitle, 'fabthemes');
?>
</span></h3>
                    <div class="row">
                        <div class="col-md-12">
                            <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
                            <!-- MiddleResponsiveAd -->
                            <ins class="adsbygoogle"
                                 style="display:block"
                                 data-ad-client="ca-pub-5532357103461788"
                                 data-ad-slot="5517270559"
                                 data-ad-format="auto"></ins>
                            <script>
示例#17
0
*
Template name:Homepage

* @package fabframe
*/
get_header();
?>

<div id="hblock">

<div id="home-slider">


<ul class="slides-container">
<?php 
$slidecount = ft_of_get_option('fabthemes_slidecount', '5');
$args = array('posts_per_page' => 5, 'post_type' => 'slide');
$myposts = get_posts($args);
foreach ($myposts as $post) {
    setup_postdata($post);
    ?>
	<li>
		    <?php 
    $thumb = get_post_thumbnail_id();
    $img_url = wp_get_attachment_url($thumb, 'full');
    //get full URL to image (use "large" or "medium" if the images too big)
    ?>
		   <img src="<?php 
    echo $img_url;
    ?>
" />
    the_content(__('Continue reading <span class="meta-nav">&rarr;</span>', 'fabframe'));
    ?>
					</div>
				</article><!-- #post-## -->

				<?php 
}
// end of the loop.
?>
				<div class="row">
					<div class="col-xs-5 navprev"> <i class="glyphicon glyphicon-chevron-left"></i> <?php 
previous_post_link('%link', 'Previous');
?>
 </div>
					<?php 
$portpage = ft_of_get_option('fabthemes_port_page', '');
?>
					<div class="col-xs-2 navport"> <a href="<?php 
echo get_page_link($portpage);
?>
"> <i class="glyphicon glyphicon-th-large"></i> </a></div>
					<div class="col-xs-5 navnext"><?php 
next_post_link('%link', 'Next');
?>
  <i class="glyphicon glyphicon-chevron-right"></i></div>
				</div>
				
				
				
			</main><!-- #main -->
		</div><!-- #primary -->