function widget($args, $instance)
 {
     $html = '';
     extract($args, EXTR_SKIP);
     /* Our variables from the widget settings. */
     $title = apply_filters('widget_title', $instance['title'], $instance, $this->id_base);
     $form = $instance['form'];
     $social = $instance['social'];
     $single = $instance['single'];
     $page = $instance['page'];
     /* Determine whether or not to display the widget. */
     if (!is_singular() || $single != 'on' && is_single() || $page != 'on' && is_page()) {
         /* Before widget (defined by themes). */
         echo $before_widget;
         /* Widget content. */
         // Add actions for plugins/themes to hook onto.
         do_action('widget_woo_subscribe_top');
         woo_subscribe_connect('true', $title, $form, $social);
         // Add actions for plugins/themes to hook onto.
         do_action('widget_woo_subscribe_bottom');
         /* After widget (defined by themes). */
         echo $after_widget;
     }
     // End IF Statement
 }
    function widget($args, $instance)
    {
        extract($args);
        $title = $instance['title'];
        $form = '';
        if (array_key_exists('form', $instance)) {
            $form = $instance['form'];
        }
        $social = '';
        if (array_key_exists('social', $instance)) {
            $social = $instance['social'];
        }
        $single = '';
        if (array_key_exists('single', $instance)) {
            $single = $instance['single'];
        }
        $page = '';
        if (array_key_exists('page', $instance)) {
            $page = $instance['page'];
        }
        if (!is_singular() or $single == 'on' and is_single() or $page == 'on' and is_page()) {
            ?>
			<?php 
            echo $before_widget;
            ?>
			<?php 
            woo_subscribe_connect('true', $title, $form, $social);
            ?>
	        <?php 
            echo $after_widget;
            ?>
        
		<?php 
        }
    }
    function widget($args, $instance)
    {
        $instance = $this->woo_enforce_defaults($instance);
        extract($args, EXTR_SKIP);
        extract($instance, EXTR_SKIP);
        if (!is_singular() || $single != 'on' && is_single() || $page != 'on' && is_page()) {
            ?>
			<?php 
            echo $before_widget;
            ?>
			<?php 
            woo_subscribe_connect('true', $title, $form, $social);
            ?>
			<?php 
            echo $after_widget;
            ?>
		<?php 
        }
    }
Exemple #4
0
            echo get_author_posts_url(get_the_author_meta('ID'));
            ?>
">
									<?php 
            printf(__('View all posts by %s <span class="meta-nav">&rarr;</span>', 'woothemes'), get_the_author());
            ?>
								</a>
							</div><!-- #profile-link	-->
						</div><!-- .post-entries -->
					</aside><!-- .post-author-box -->
					<?php 
        }
        ?>
	
					<?php 
        woo_subscribe_connect();
        ?>
	
		        <nav id="post-entries" class="fix">
		            <div class="nav-prev fl"><?php 
        previous_post_link('%link', '<span class="meta-nav">&larr;</span> %title');
        ?>
</div>
		            <div class="nav-next fr"><?php 
        next_post_link('%link', '%title <span class="meta-nav">&rarr;</span>');
        ?>
</div>
		        </nav><!-- #post-entries -->
	            <?php 
        // Determine wether or not to display comments here, based on "Theme Options".
        if (isset($woo_options['woo_comments']) && in_array($woo_options['woo_comments'], array('post', 'both'))) {
Exemple #5
0
									</ul>
						    	</section>
						    	<?php 
            }
            ?>
						    	<div class="contact-social<?php 
            if (isset($woo_options['woo_contact_panel']) && $woo_options['woo_contact_panel'] == 'true' || isset($woo_options['woo_contact_subscribe_and_connect']) && $woo_options['woo_contact_subscribe_and_connect'] == 'true') {
                ?>
 col-right<?php 
            }
            ?>
">

						    		<?php 
            if (isset($woo_options['woo_contact_subscribe_and_connect']) && $woo_options['woo_contact_subscribe_and_connect'] == 'true') {
                woo_subscribe_connect('true');
            }
            ?>

						    	</div>

						    	<div class="clear"></div>

						    	</div><!-- /.location-twitter -->

                        </section>

                    <?php 
            if (isset($hasError) || isset($captchaError)) {
                ?>
                        <p class="alert"><?php 
						    		<?php 
            if (isset($woo_options['woo_contact_twitter']) && $woo_options['woo_contact_twitter'] != '') {
                ?>
						    		<section id="twitter">
						    			<h3>Twitter</h3>
						    			<ul id="twitter_update_list_123"><li></li></ul>
						    			<?php 
                echo woo_twitter_script(123, $woo_options['woo_contact_twitter'], 1);
                ?>
						    		</section>
						    		<?php 
            }
            ?>
						    		<?php 
            if (isset($woo_options['woo_contact_subscribe_and_connect']) && $woo_options['woo_contact_subscribe_and_connect'] == 'true') {
                woo_subscribe_connect('true', $title, 'on', 'off', 'true');
            }
            ?>
			    		
						    	
						    	</div>
						    	
						    	</div><!-- /.location-twitter -->
	                        
                        </section>
                        
                        <?php 
            if (isset($woo_options['woo_contactform_map_coords']) && $woo_options['woo_contactform_map_coords'] != '') {
                $geocoords = $woo_options['woo_contactform_map_coords'];
            } else {
                $geocoords = '';