function widget($args, $instance)
    {
        extract($args);
        $aboutText = empty($instance['aboutText']) ? '' : $instance['aboutText'];
        ?>
<div class="widget-button">
	<a href="<?php 
        echo esc_url(get_permalink(get_pageId(get_option('askit_answer_page'))));
        ?>
" id="call_to_action"><span><?php 
        echo esc_html($aboutText);
        ?>
</span></a>
</div>
<?php 
    }
Example #2
0
}
?>

<?php 
get_header();
?>

<?php 
if ('on' == et_get_option('fusion_display_services', 'false')) {
    ?>
<div id="services">
	<div class="container clearfix">
	<?php 
    $blurbs_number = (int) apply_filters('et_blurbs_number', 3);
    for ($i = 1; $i <= $blurbs_number; $i++) {
        $service_query = new WP_Query(apply_filters('et_service_query_args', 'page_id=' . get_pageId(et_get_option('fusion_home_page_' . $i)), $i));
        while ($service_query->have_posts()) {
            $service_query->the_post();
            global $more;
            $more = 0;
            $page_title = ($blurb_custom_title = get_post_meta(get_the_ID(), 'Blurbtitle', true)) && '' != $blurb_custom_title ? $blurb_custom_title : apply_filters('the_title', get_the_title());
            $page_permalink = ($blurb_custom_permalink = get_post_meta(get_the_ID(), 'Blurblink', true)) && '' != $blurb_custom_permalink ? $blurb_custom_permalink : get_permalink();
            echo '<div class="service' . (1 == $i ? ' first' : '') . ($blurbs_number == $i ? ' last' : '') . '">';
            if (($page_icon = get_post_meta(get_the_ID(), 'Icon', true)) && '' != $page_icon) {
                printf('<img src="%1$s" alt="%2$s" class="icon" />', esc_attr($page_icon), esc_attr($page_title));
            }
            echo '<h3>' . $page_title . '</h3>';
            if (has_excerpt()) {
                the_excerpt();
            } else {
                the_content('');
Example #3
0
</p>
												<?php 
                        the_content('');
                        ?>
											</div> 	<!-- end .testimonials-item-content -->
										</div> <!-- end .testimonials-item-bottom -->
									</div> <!-- end .testimonials-item -->
							<?php 
                    }
                    wp_reset_postdata();
                    ?>
						<?php 
                } else {
                    ?>
							<?php 
                    $service_query = new WP_Query('page_id=' . get_pageId(html_entity_decode(get_option('mycuisine_home_page_3'))));
                    while ($service_query->have_posts()) {
                        $service_query->the_post();
                        ?>
							<?php 
                        global $more;
                        $more = 0;
                        ?>
									<h3 class="title"><?php 
                        the_title();
                        ?>
</h3>
									<?php 
                        the_content('');
                        ?>
							<?php 
                ?>
										</form>
									<?php 
            } else {
                ?>
										<p id="create_done"><?php 
                esc_html_e('The post was created.', 'AskIt');
                ?>
 <a href="<?php 
                echo esc_url(get_permalink($result));
                ?>
"><?php 
                esc_html_e('View the post', 'AskIt');
                ?>
</a> | <a href="<?php 
                echo esc_url(get_permalink(get_pageId(get_option('askit_answer_page'))));
                ?>
"><?php 
                esc_html_e('Add another.', 'AskIt');
                ?>
</a></p>
									<?php 
            }
            ?>
								</div> <!-- end #create_new_post -->

						<?php 
        }
        ?>
						<div class="clear"></div>
					</div>
Example #5
0
    if ('on' == et_get_option('nimble_display_pricing', 'on')) {
        ?>
		<div id="home-section-pricing" class="home-section">
			<div class="container">
				<hgroup class="section-title">
					<h2><?php 
        echo et_get_option('nimble_plans_text', 'Plans <span>&amp;</span> Pricing');
        ?>
</h2>
					<h3><?php 
        echo esc_html(et_get_option('nimble_plans_description_text', 'Plans &amp; Pricing section description'));
        ?>
</h3>
				</hgroup>
			<?php 
        $pricing_query = new WP_Query(apply_filters('et_pricing_query_args', 'page_id=' . get_pageId(html_entity_decode(et_get_option('nimble_home_page_pricing')))));
        if ($pricing_query->have_posts()) {
            while ($pricing_query->have_posts()) {
                $pricing_query->the_post();
                $pricing_page_url = ($custom_pricing_url = get_post_meta(get_the_ID(), 'Homelink', true)) && '' != $custom_pricing_url ? $custom_pricing_url : get_permalink();
                if (has_excerpt()) {
                    the_excerpt();
                } else {
                    the_content('');
                }
                echo '<a href="' . esc_url($pricing_page_url) . '" class="more-info">' . esc_html__('View Plans and Pricing', 'Nimble') . '</a>';
            }
        }
        ?>
			</div> <!-- end .container -->
		</div> <!-- end #home-section-pricing -->
Example #6
0
<div id="content-area">

	<?php 
if (get_option('chameleon_blog_style') == 'false') {
    ?>
	
		<?php 
    if (get_option('chameleon_display_blurbs') == 'on') {
        ?>
			<div id="services" class="clearfix">
				<?php 
        for ($i = 1; $i <= 3; $i++) {
            ?>
					<?php 
            query_posts('page_id=' . get_pageId(html_entity_decode(get_option('chameleon_home_page_' . $i))));
            while (have_posts()) {
                the_post();
                ?>
						<?php 
                global $more;
                $more = 0;
                ?>
						<?php 
                $et_service_link = get_post_meta($post->ID, 'etlink', true) ? get_post_meta($post->ID, 'etlink', true) : get_permalink();
                ?>
<div class="service<?php 
                if ($i == 3) {
                    echo ' last';
                }
                ?>
Example #7
0
}
?>
					<?php 
if (is_page()) {
    //if static homepage
    if (have_posts()) {
        while (have_posts()) {
            the_post();
            get_template_part('includes/homepage_content');
        }
    }
} else {
    if (get_option('minimal_blog_style') == 'on') {
        get_template_part('includes/blogstyle_home');
    } else {
        query_posts('page_id=' . get_pageId(html_entity_decode(get_option('minimal_home_page_1'))));
        while (have_posts()) {
            the_post();
            get_template_part('includes/homepage_content');
        }
        wp_reset_query();
    }
}
?>

			<?php 
if (get_option('minimal_blog_style') == 'false') {
    ?>
				</div> <!-- end .entry -->
			<?php 
}
Example #8
0
    query_posts('page_id=' . get_pageId(html_entity_decode(get_option('minimal_service_2'))));
    while (have_posts()) {
        the_post();
        ?>
						<?php 
        get_template_part('includes/service_content');
        ?>
					<?php 
    }
    wp_reset_query();
    ?>
				</div> <!-- end .one-third -->

				<div class="one-third">
					<?php 
    query_posts('page_id=' . get_pageId(html_entity_decode(get_option('minimal_service_3'))));
    while (have_posts()) {
        the_post();
        ?>
						<?php 
        get_template_part('includes/service_content');
        ?>
					<?php 
    }
    wp_reset_query();
    ?>
				</div> <!-- end .one-third -->

			</div> <!-- end #services -->
	<?php 
    if (get_option('minimal_featured') == 'false') {
Example #9
0
get_header();
?>

<?php 
if (get_option('feather_blog_style') == 'false') {
    ?>
	<?php 
    if (get_option('feather_display_blurbs') == 'on') {
        ?>
		<div id="blurbs" class="clearfix">
			<?php 
        for ($i = 1; $i <= 4; $i++) {
            ?>
				<?php 
            query_posts('page_id=' . get_pageId(html_entity_decode(get_option('feather_home_page_' . $i))));
            while (have_posts()) {
                the_post();
                ?>
					<?php 
                global $more;
                $more = 0;
                ?>
					<div class="blurb<?php 
                if ($i == 4) {
                    echo ' last';
                }
                ?>
">
						<?php 
                $thumb = '';