本文整理汇总了PHP中woo_subscribe_connect函数的典型用法代码示例。如果您正苦于以下问题:PHP woo_subscribe_connect函数的具体用法?PHP woo_subscribe_connect怎么用?PHP woo_subscribe_connect使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了woo_subscribe_connect函数的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: widget
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
}
示例2: widget
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
}
}
示例3: widget
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
}
}
示例4: get_author_posts_url
echo get_author_posts_url(get_the_author_meta('ID'));
?>
">
<?php
printf(__('View all posts by %s <span class="meta-nav">→</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">←</span> %title');
?>
</div>
<div class="nav-next fr"><?php
next_post_link('%link', '%title <span class="meta-nav">→</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'))) {
示例5: woo_subscribe_connect
</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
示例6: woo_twitter_script
<?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 = '';