• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP vpanel_options函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中vpanel_options函数的典型用法代码示例。如果您正苦于以下问题:PHP vpanel_options函数的具体用法?PHP vpanel_options怎么用?PHP vpanel_options使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了vpanel_options函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: widgets_init

function widgets_init()
{
    global $post;
    $sidebars = get_option('sidebars');
    if ($sidebars) {
        $before_widget = '<div id="%1$s" class="widget %2$s">';
        $after_widget = '</div>';
        $before_title = '<h3 class="widget_title">';
        $after_title = '</h3>';
        foreach ($sidebars as $sidebar) {
            register_sidebar(array('name' => esc_html($sidebar), 'id' => sanitize_title(esc_html($sidebar)), 'before_widget' => $before_widget, 'after_widget' => $after_widget, 'before_title' => $before_title, 'after_title' => $after_title));
        }
    }
    $footer_layout = vpanel_options("footer_layout");
    $before_widget = '<div id="%1$s" class="widget %2$s">';
    $after_widget = '</div>';
    $before_title = '<h3 class="widget_title">';
    $after_title = '</h3>';
    if ($footer_layout == "footer_1c" || $footer_layout == "footer_2c" || $footer_layout == "footer_3c" || $footer_layout == "footer_4c" || $footer_layout == "footer_5c") {
        register_sidebar(array('name' => __("The first footer widget area", "vbegy"), 'id' => "footer_1c_sidebar", 'before_widget' => $before_widget, 'after_widget' => $after_widget, 'before_title' => $before_title, 'after_title' => $after_title));
    }
    if ($footer_layout == "footer_2c" || $footer_layout == "footer_3c" || $footer_layout == "footer_4c" || $footer_layout == "footer_5c") {
        register_sidebar(array('name' => __("The Second footer widget area", "vbegy"), 'id' => "footer_2c_sidebar", 'before_widget' => $before_widget, 'after_widget' => $after_widget, 'before_title' => $before_title, 'after_title' => $after_title));
    }
    if ($footer_layout == "footer_3c" || $footer_layout == "footer_4c" || $footer_layout == "footer_5c") {
        register_sidebar(array('name' => __("The Third footer widget area", "vbegy"), 'id' => "footer_3c_sidebar", 'before_widget' => $before_widget, 'after_widget' => $after_widget, 'before_title' => $before_title, 'after_title' => $after_title));
    }
    if ($footer_layout == "footer_4c" || $footer_layout == "footer_5c") {
        register_sidebar(array('name' => __("The Fourth footer widget area", "vbegy"), 'id' => "footer_4c_sidebar", 'before_widget' => $before_widget, 'after_widget' => $after_widget, 'before_title' => $before_title, 'after_title' => $after_title));
    }
}
开发者ID:bunnywong,项目名称:freshlinker,代码行数:31,代码来源:widget_functions.php


示例2: widget

    function widget($args, $instance)
    {
        extract($args);
        $title = apply_filters('widget_title', $instance['title']);
        if (is_user_logged_in()) {
            echo $before_widget;
            if ($title) {
                echo $before_title . esc_attr($title) . $after_title;
            }
            ?>
				<div class="widget_profile">
					<?php 
            $out = '';
            $user_login = get_userdata(get_current_user_id());
            $active_points = vpanel_options("active_points");
            $out .= '
						<ul class="user_quick_links">
							<li><a href="' . vpanel_get_user_url($user_login->ID) . '"><i class="icon-home"></i>' . __("Profile page", "vbegy") . '</a></li>
							<li><a href="' . esc_url(add_query_arg("u", esc_attr($user_login->ID), get_page_link(vpanel_options('question_user_page')))) . '"><i class="icon-question-sign"></i>' . __("Questions", "vbegy") . '</a></li>
							<li><a href="' . esc_url(add_query_arg("u", esc_attr($user_login->ID), get_page_link(vpanel_options('answer_user_page')))) . '"><i class="icon-comment"></i>' . __("Answers", "vbegy") . '</a></li>
							<li><a href="' . esc_url(add_query_arg("u", esc_attr($user_login->ID), get_page_link(vpanel_options('favorite_user_page')))) . '"><i class="icon-star"></i>' . __("Favorite Questions", "vbegy") . '</a></li>
							<li><a href="' . esc_url(add_query_arg("u", esc_attr($user_login->ID), get_page_link(vpanel_options('i_follow_user_page')))) . '"><i class="icon-user-md"></i>' . __("Authors I Follow", "vbegy") . '</a></li>
							<li><a href="' . esc_url(add_query_arg("u", esc_attr($user_login->ID), get_page_link(vpanel_options('followers_user_page')))) . '"><i class="icon-user"></i>' . __("Followers", "vbegy") . '</a></li>';
            if ($active_points == 1) {
                $out .= '<li><a href="' . esc_url(add_query_arg("u", esc_attr($user_login->ID), get_page_link(vpanel_options('point_user_page')))) . '"><i class="icon-heart"></i>' . __("Points", "vbegy") . '</a></li>';
            }
            $out .= '<li><a href="' . esc_url(add_query_arg("u", esc_attr($user_login->ID), get_page_link(vpanel_options('follow_question_page')))) . '"><i class="icon-question-sign"></i>' . __("Follow questions", "vbegy") . '</a></li>
							<li><a href="' . esc_url(add_query_arg("u", esc_attr($user_login->ID), get_page_link(vpanel_options('follow_answer_page')))) . '"><i class="icon-comment"></i>' . __("Follow answers", "vbegy") . '</a></li>
							<li><a href="' . esc_url(add_query_arg("u", esc_attr($user_login->ID), get_page_link(vpanel_options('post_user_page')))) . '"><i class="icon-file-alt"></i>' . __("Posts", "vbegy") . '</a></li>
							<li><a href="' . esc_url(add_query_arg("u", esc_attr($user_login->ID), get_page_link(vpanel_options('follow_post_page')))) . '"><i class="icon-file-alt"></i>' . __("Follow posts", "vbegy") . '</a></li>
							<li><a href="' . esc_url(add_query_arg("u", esc_attr($user_login->ID), get_page_link(vpanel_options('follow_comment_page')))) . '"><i class="icon-comments"></i>' . __("Follow comments", "vbegy") . '</a></li>
							<li><a href="' . get_page_link(vpanel_options('user_edit_profile_page')) . '"><i class="icon-pencil"></i>' . __("Edit profile", "vbegy") . '</a></li>
							<li><a href="' . wp_logout_url(home_url()) . '"><i class="icon-signout"></i>' . __("Logout", "vbegy") . '</a></li>
						</ul>';
            ?>
				</div>
				<?php 
            echo $out;
            echo $after_widget;
        }
    }
开发者ID:bunnywong,项目名称:freshlinker,代码行数:41,代码来源:profile_links.php


示例3: do_shortcode

    echo do_shortcode("[ask_login]");
    ?>
										</div>
									</div><!-- End page-content -->
								</div><!-- End col-md-6 -->
								<?php 
    if (!is_user_logged_in()) {
        ?>
									<div class="col-md-6">
										<div class="page-content">
											<h2><?php 
        _e("Register Now", "vbegy");
        ?>
</h2>
											<p><?php 
        echo stripslashes(vpanel_options("register_content"));
        ?>
</p>
											<a class="button small color signup"><?php 
        _e("Create an account", "vbegy");
        ?>
</a>
										</div><!-- End page-content -->
									</div><!-- End col-md-6 -->
								<?php 
    }
    ?>
							</div><!-- End row -->
						</div><!-- End login -->
						<?php 
    get_footer();
开发者ID:bunnywong,项目名称:freshlinker,代码行数:31,代码来源:header.php


示例4: wp_redirect

<?php

/* Template name: Follow question */
global $user_ID;
if (empty($_GET['u'])) {
    wp_redirect(home_url());
}
$user_login = get_userdata($_GET['u']);
if (empty($user_login)) {
    wp_redirect(home_url());
}
$owner = false;
if ($user_ID == $user_login->ID) {
    $owner = true;
}
if (vpanel_options("show_point_favorite") == 0 && $owner == false) {
    wp_redirect(home_url());
}
get_header();
include get_template_directory() . '/includes/author-head.php';
$following_me = get_user_meta($user_login->ID, "following_me");
$following_me_array = $following_me[0];
if (is_array($following_me_array)) {
    $following_me_array = array_filter($following_me_array);
}
?>
	<div class="page-content page-content-user">
		<div class="user-questions">
			<?php 
if (isset($following_me_array) && is_array($following_me_array) && !empty($following_me_array)) {
    $paged = get_query_var("paged") != "" ? (int) get_query_var("paged") : (get_query_var("page") != "" ? (int) get_query_var("page") : 1);
开发者ID:bunnywong,项目名称:freshlinker,代码行数:31,代码来源:template-question_follow.php


示例5: process_vpanel_edit_posts

function process_vpanel_edit_posts()
{
    global $posted;
    set_time_limit(0);
    $errors = new WP_Error();
    $posted = array();
    $fields = array('ID', 'title', 'comment', 'category', 'attachment', 'post_tag');
    foreach ($fields as $field) {
        if (isset($_POST[$field])) {
            $posted[$field] = trim(stripslashes(htmlspecialchars($_POST[$field])));
        } else {
            $posted[$field] = '';
        }
    }
    /* Validate Required Fields */
    $get_post = isset($posted['ID']) ? (int) $posted['ID'] : 0;
    $get_post_q = get_post($get_post);
    if (isset($get_post) && $get_post != 0 && $get_post_q && get_post_type($get_post) == "post") {
        $user_login_id_l = get_user_by("id", $get_post_q->post_author);
        if ($user_login_id_l->ID != get_current_user_id()) {
            $errors->add('required-field', '<strong>' . __("Error", "vbegy") . ' :&nbsp;</strong> ' . __("Sorry you can't edit this post .", "vbegy"));
        }
    } else {
        $errors->add('required-field', '<strong>' . __("Error", "vbegy") . ' :&nbsp;</strong> ' . __("Sorry no post select or not found .", "vbegy"));
    }
    if (empty($posted['title'])) {
        $errors->add('required-field', '<strong>' . __("Error", "vbegy") . ' :&nbsp;</strong> ' . __("There are required fields ( title ).", "vbegy"));
    }
    if (empty($posted['category']) || $posted['category'] == '-1') {
        $errors->add('required-field', '<strong>' . __("Error", "vbegy") . ' :&nbsp;</strong> ' . __("There are required fields ( category ).", "vbegy"));
    }
    if (vpanel_options("content_post") == 1) {
        if (empty($posted['comment'])) {
            $errors->add('required-field', '<strong>' . __("Error", "vbegy") . ' :&nbsp;</strong> ' . __("There are required fields ( content ).", "vbegy"));
        }
    }
    if (sizeof($errors->errors) > 0) {
        return $errors;
    }
    $post_id = $get_post;
    /* Edit post */
    $data = array('ID' => esc_attr($post_id), 'post_content' => esc_attr($posted['comment']), 'post_title' => esc_attr($posted['title']), 'post_name' => esc_attr($posted['title']));
    wp_update_post($data);
    $terms = array();
    if ($posted['category']) {
        $terms[] = get_term_by('id', $posted['category'], 'category')->slug;
    }
    if (sizeof($terms) > 0) {
        wp_set_object_terms($post_id, $terms, 'category');
    }
    $attachment = '';
    require_once ABSPATH . "wp-admin" . '/includes/image.php';
    require_once ABSPATH . "wp-admin" . '/includes/file.php';
    if (isset($_FILES['attachment']) && !empty($_FILES['attachment']['name'])) {
        $attachment = wp_handle_upload($_FILES['attachment'], array('test_form' => false), current_time('mysql'));
        if (isset($attachment['error'])) {
            $errors->add('upload-error', __("Attachment Error: ", "vbegy") . $attachment['error']);
            return $errors;
        }
    }
    if ($attachment) {
        $attachment_data = array('post_mime_type' => $attachment['type'], 'post_title' => preg_replace('/\\.[^.]+$/', '', basename($attachment['file'])), 'post_content' => '', 'post_status' => 'inherit', 'post_author' => !is_user_logged_in() && $add_post_no_register == 1 ? 0 : get_current_user_id());
        $attachment_id = wp_insert_attachment($attachment_data, $attachment['file'], $post_id);
        $attachment_metadata = wp_generate_attachment_metadata($attachment_id, $attachment['file']);
        wp_update_attachment_metadata($attachment_id, $attachment_metadata);
        set_post_thumbnail($post_id, $attachment_id);
    }
    /* Tags */
    if (isset($posted['post_tag']) && $posted['post_tag']) {
        $tags = explode(',', trim(stripslashes($posted['post_tag'])));
        $tags = array_map('strtolower', $tags);
        $tags = array_map('trim', $tags);
        if (sizeof($tags) > 0) {
            wp_set_object_terms($post_id, $tags, 'post_tag');
        }
    }
    do_action('vpanel_edit_posts', $post_id);
    /* Successful */
    return $post_id;
}
开发者ID:bunnywong,项目名称:freshlinker,代码行数:80,代码来源:functions_ask.php


示例6: get_header

<?php

get_header();
global $vbegy_sidebar;
$blog_style = vpanel_options("home_display");
get_template_part("loop-question", "archive");
vpanel_pagination();
get_footer();
开发者ID:bunnywong,项目名称:freshlinker,代码行数:8,代码来源:archive-question.php


示例7: get_header

<?php

get_header();
global $vbegy_sidebar;
$blog_style = vpanel_options("home_display");
$vbegy_sidebar_all = vpanel_options("sidebar_layout");
if ($post->post_type == "question") {
    get_template_part("loop-question", "search");
} else {
    get_template_part("loop", "search");
}
vpanel_pagination();
get_footer();
开发者ID:bunnywong,项目名称:freshlinker,代码行数:13,代码来源:search.php


示例8: widget

    function widget($args, $instance)
    {
        extract($args);
        $title = apply_filters('widget_title', $instance['title']);
        $user_per_page = (int) $instance['user_per_page'];
        $active_points = vpanel_options("active_points");
        if ($active_points == 1) {
            echo $before_widget;
            if ($title) {
                echo $before_title . esc_attr($title) . $after_title;
            }
            ?>
				<div class="widget_highest_points">
					<ul>
						<?php 
            $blogusers = get_users(array('fields' => 'all_with_meta', 'order' => 'DESC', 'meta_query' => array(array('key' => 'points', 'value' => 1, 'compare' => '>=', 'type' => 'number'))));
            usort($blogusers, 'cmp');
            $i = 0;
            foreach ($blogusers as $user) {
                $i++;
                $points_u = get_user_meta($user->ID, "points", true);
                $user_profile_page = vpanel_get_user_url($user->ID);
                $you_avatar = get_the_author_meta('you_avatar', $user->ID);
                ?>
							<li>
								<div class="author-img">
									<a href="<?php 
                echo $user_profile_page;
                ?>
">
										<?php 
                if ($you_avatar) {
                    $you_avatar_img = get_aq_resize_url(esc_attr($you_avatar), "full", 65, 65);
                    echo "<img alt='" . $user->display_name . "' src='" . $you_avatar_img . "'>";
                } else {
                    echo get_avatar(get_the_author_meta('user_email', $user->ID), '60', '');
                }
                ?>
									</a>
								</div> 
								<h6><a href="<?php 
                echo $user_profile_page;
                ?>
"><?php 
                echo $user->display_name;
                ?>
</a></h6>
								<span class="comment"><?php 
                echo $points_u != "" ? $points_u : "0";
                ?>
 <?php 
                _e("Points", "vbegy");
                ?>
</span>
								<div class="clearfix"></div>
							</li>
						<?php 
                if ($i == $user_per_page) {
                    break;
                }
            }
            ?>
					</ul>
				</div>
				<?php 
            echo $after_widget;
        }
    }
开发者ID:bunnywong,项目名称:freshlinker,代码行数:68,代码来源:highest_points.php


示例9: cancel_comment_reply_link

		        </div>
	        	<div class="cancel-comment-reply"><?php 
        cancel_comment_reply_link();
        ?>
</div>
		        <p class="form-submit">
		        	<input name="submit" type="submit" id="submit" value="<?php 
        _e('Post Comment', 'vbegy');
        ?>
" class="button small color">
		        	<?php 
        comment_id_fields();
        ?>
		        	<?php 
        do_action('comment_form', $post->ID);
        ?>
		        </p>
		    </form>
		<?php 
    } else {
        ?>
			<p class="no-login-comment"><?php 
        printf(__('You must <a href="%s" class="login-comments">login</a> or <a href="%s" class="signup">register</a> to add a new comment .', 'vbegy'), get_page_link(vpanel_options('login_register_page')), get_page_link(vpanel_options('login_register_page')));
        ?>
</p>
		<?php 
    }
    ?>
	</div>
<?php 
}
开发者ID:bunnywong,项目名称:freshlinker,代码行数:31,代码来源:comments.php


示例10: the_author_posts_link

            the_author_posts_link();
            ?>
</span>
					    <span class="meta-date"><i class="icon-time"></i><?php 
            the_time($date_format);
            ?>
</span>
					    <span class="meta-comment"><i class="icon-comments-alt"></i><?php 
            comments_popup_link(__('0 Comments', 'vbegy'), __('1 Comment', 'vbegy'), '% ' . __('Comments', 'vbegy'));
            ?>
</span>
					</div>
				<?php 
        }
        ?>
				<div class="post-content">
					<?php 
        the_content();
        ?>
					<div class="clearfix"></div>
				</div>
			</div><!-- End post-inner -->
		</article><!-- End article.post -->
		<?php 
        $post_comments = vpanel_options("post_comments");
        if ($post_comments == 1 && $post_comments_s == "" || $post_comments == 1 && isset($custom_page_setting) && $custom_page_setting == 0 || $post_comments == 1 && isset($custom_page_setting) && $custom_page_setting == 1 && isset($post_comments_s) && $post_comments_s != 0 || isset($custom_page_setting) && $custom_page_setting == 1 && isset($post_comments_s) && $post_comments_s == 1) {
            comments_template();
        }
    }
}
get_footer();
开发者ID:bunnywong,项目名称:freshlinker,代码行数:31,代码来源:page.php


示例11: ob_start

<?php

ob_start();
/* Template Name: Edit post */
get_header();
$get_post = isset($_GET["edit_post"]) ? (int) $_GET["edit_post"] : 0;
$get_post_p = get_post($get_post);
$can_edit_post = vpanel_options("can_edit_post");
if (have_posts()) {
    while (have_posts()) {
        the_post();
        ?>
		<div class="page-content">
			<div class="boxedtitle page-title"><h2><?php 
        the_title();
        ?>
</h2></div>
			<?php 
        the_content();
        if (isset($get_post) && $get_post != 0 && $get_post_p && get_post_type($get_post) == "post") {
            if ($can_edit_post == 1 && $get_post_p->post_author != 0) {
                $user_login_id_l = get_user_by("id", $get_post_p->post_author);
                if ($user_login_id_l->ID == get_current_user_id()) {
                    echo do_shortcode("[vpanel_edit_post]");
                } else {
                    _e("Sorry you can't edit this post .", "vbegy");
                }
            } else {
                _e("Sorry you can't edit this post .", "vbegy");
            }
        } else {
开发者ID:bunnywong,项目名称:freshlinker,代码行数:31,代码来源:template-edit_post.php


示例12: vpanel_options

</span>
			<?php 
    $question_bump = vpanel_options("question_bump");
    if ($question_bump == 1 && isset($question_bump_template) && $question_bump_template == true) {
        ?>
				<span class="question-points"><i class="icon-heart"></i><?php 
        $question_points = get_post_meta($post->ID, 'question_points', true);
        echo $question_points != "" ? $question_points : 0;
        ?>
 <?php 
        _e("points", "vbegy");
        ?>
</span>
			<?php 
    }
    $active_vote = vpanel_options("active_vote");
    if ($question_vote_show == 1 && $active_vote == 1) {
        ?>
				<span class="single-question-vote-result question_vote_result"><?php 
        echo $question_vote != "" ? $question_vote : 0;
        ?>
</span>
				<ul class="single-question-vote">
					<?php 
        if (is_user_logged_in()) {
            ?>
						<li><a href="#" id="question_vote_down-<?php 
            echo $post->ID;
            ?>
" class="single-question-vote-down question_vote_down<?php 
            echo isset($_COOKIE['question_vote' . $post->ID]) ? " " . $_COOKIE['question_vote' . $post->ID] . "-" . $post->ID : "";
开发者ID:bunnywong,项目名称:freshlinker,代码行数:31,代码来源:question.php


示例13: wp_redirect

if (empty($_GET['u'])) {
    wp_redirect(home_url());
}
$user_login = get_userdata($_GET['u']);
if (empty($user_login)) {
    wp_redirect(home_url());
}
$owner = false;
if ($user_ID == $user_login->ID) {
    $owner = true;
}
if (vpanel_options("show_point_favorite") == 0 && $owner == false) {
    wp_redirect(home_url());
}
get_header();
$active_points = vpanel_options("active_points");
if ($active_points == 1) {
    include get_template_directory() . '/includes/author-head.php';
    ?>
		<div class="page-content page-content-user">
			<div class="user-questions">
				<?php 
    $rows_per_page = get_option("posts_per_page");
    $_points = get_user_meta($user_login->ID, $user_login->user_login . "_points", true);
    $paged = get_query_var("paged") != "" ? (int) get_query_var("paged") : (get_query_var("page") != "" ? (int) get_query_var("page") : 1);
    for ($points = 1; $points <= $_points; $points++) {
        $point_one[] = get_user_meta($user_login->ID, $user_login->user_login . "_points_" . $points);
    }
    if (isset($point_one) and is_array($point_one)) {
        $point = array_reverse($point_one);
        $current = max(1, $paged);
开发者ID:bunnywong,项目名称:freshlinker,代码行数:31,代码来源:template-user_points.php


示例14: woocommerce_bn_cart_button

 function woocommerce_bn_cart_button()
 {
     $nav_cart = vpanel_options('nav_cart');
     $nav_cart = 1;
     if ($nav_cart == 1) {
         if (class_exists('woocommerce')) {
             global $woocommerce;
             $cart_url = $woocommerce->cart->get_cart_url();
             $num = $woocommerce->cart->cart_contents_count;
         }
         $in_woo = vpanel_options('nav_cart_in_woo');
         $output = '<li><a href="' . $cart_url . '" class="nav-button nav-cart"><i class="enotype-icon-cart"></i><span class="numofitems" data-num="' . $num . '">' . $num . '</span></a></li>';
         if ($in_woo) {
             if (function_exists('is_woocommerce') && woocommerce_is_woocommerce_page()) {
                 return $output;
             }
         } else {
             return $output;
         }
     }
 }
开发者ID:bunnywong,项目名称:freshlinker,代码行数:21,代码来源:woocommerce.php


示例15: wp_reset_query

								</ul>
							</div><!-- End related-posts -->
						<?php 
                            }
                            $post = $orig_post;
                            wp_reset_query();
                        }
                    } else {
                        if ($value_r == "comments") {
                            $post_comments = vpanel_options("post_comments");
                            if ($post_comments == 1 && $post_comments_s == "" || $post_comments == 1 && isset($custom_page_setting) && $custom_page_setting == 0 || $post_comments == 1 && isset($custom_page_setting) && $custom_page_setting == 1 && isset($post_comments_s) && $post_comments_s != 0 || isset($custom_page_setting) && $custom_page_setting == 1 && isset($post_comments_s) && $post_comments_s == 1) {
                                comments_template("/question-comments.php");
                            }
                        } else {
                            if ($value_r == "next_previous") {
                                $post_navigation = vpanel_options("post_navigation");
                                if ($post_navigation == 1 && $post_navigation_s == "" || $post_navigation == 1 && isset($custom_page_setting) && $custom_page_setting == 0 || $post_navigation == 1 && isset($custom_page_setting) && $custom_page_setting == 1 && isset($post_navigation_s) && $post_navigation_s != 0 || isset($custom_page_setting) && $custom_page_setting == 1 && isset($post_navigation_s) && $post_navigation_s == 1) {
                                    ?>
						<div class="post-next-prev clearfix">
						    <p class="prev-post">
						        <?php 
                                    previous_post_link('%link', '<i class="icon-double-angle-left"></i>' . __('&nbsp;Previous question', 'vbegy'));
                                    ?>
						    </p>
						    <p class="next-post">
						    	<?php 
                                    next_post_link('%link', __('Next question&nbsp;', 'vbegy') . '<i class="icon-double-angle-right"></i>');
                                    ?>
						    </p>
						</div><!-- End post-next-prev -->
					<?php 
开发者ID:bunnywong,项目名称:freshlinker,代码行数:31,代码来源:single-question.php


示例16: vbegy_login_logo

function vbegy_login_logo()
{
    if (vpanel_options("login_logo") != "") {
        echo '<style type="text/css"> h1 a {  background-image:url(' . vpanel_options("login_logo") . ')  !important; background-size: auto !important; } </style>';
    }
}
开发者ID:bunnywong,项目名称:freshlinker,代码行数:6,代码来源:functions.php


示例17: ask_edit_profile_shortcode

function ask_edit_profile_shortcode($atts, $content = null)
{
    global $user_identity, $posted, $public_display;
    $out = '';
    if (!is_user_logged_in()) {
        $out .= '<div class="note_error"><strong>' . __("Please login to edit profile .", "vbegy") . '</strong></div>
		<div class="form-style form-style-3">
			' . do_shortcode("[ask_login]") . '
		</div>';
    } else {
        do_action('ask_edit_profile_form');
        $out .= '<form class="edit-profile-form vpanel_form" method="post" enctype="multipart/form-data">';
        $user_info = get_userdata(get_current_user_id());
        $you_avatar = get_the_author_meta('you_avatar', $user_info->ID);
        $url = get_the_author_meta('url', $user_info->ID);
        $twitter = get_the_author_meta('twitter', $user_info->ID);
        $facebook = get_the_author_meta('facebook', $user_info->ID);
        $youtube = get_the_author_meta('youtube', $user_info->ID);
        $google = get_the_author_meta('google', $user_info->ID);
        $linkedin = get_the_author_meta('linkedin', $user_info->ID);
        $follow_email = get_the_author_meta('follow_email', $user_info->ID);
        $display_name = get_the_author_meta('display_name', $user_info->ID);
        $country = get_the_author_meta('country', $user_info->ID);
        $city = get_the_author_meta('city', $user_info->ID);
        $age = get_the_author_meta('age', $user_info->ID);
        $phone = get_the_author_meta('phone', $user_info->ID);
        $sex = get_the_author_meta('sex', $user_info->ID);
        $instagram = get_the_author_meta('instagram', $user_info->ID);
        $pinterest = get_the_author_meta('pinterest', $user_info->ID);
        $out .= '
			
			<div class="form-inputs clearfix">
				<p>
					<label>' . __("First Name", "vbegy") . '</label>
					<input name="first_name" id="first_name" type="text" value="' . $user_info->first_name . '">
				</p>
				<p>
					<label>' . __("Last Name", "vbegy") . '</label>
					<input name="last_name" id="last_name" type="text" value="' . $user_info->last_name . '">
				</p>
				<p>
					<label>' . __("Display name", "vbegy") . '</label>
					<input name="display_name" id="display_name" type="text" value="' . $user_info->display_name . '">
				</p>
				<p>
					<label for="email" class="required">' . __("E-Mail", "vbegy") . '<span>*</span></label>
					<input name="email" id="email" type="email" value="' . $user_info->user_email . '">
				</p>
				<p>
					<label for="newpassword" class="required">' . __("Password", "vbegy") . '<span>*</span></label>
					<input name="pass1" id="newpassword" type="password" value="">
				</p>
				<p>
					<label for="newpassword2" class="required">' . __("Confirm Password", "vbegy") . '<span>*</span></label>
					<input name="pass2" id="newpassword2" type="password" value="">
				</p>
				<p>
					<label for="follow_email">' . __("Follow-up email", "vbegy") . '</label>
					<input name="follow_email" id="follow_email" type="text" value="' . $follow_email . '">
				</p>';
        $phone_register = vpanel_options("phone_register");
        $phone_required = vpanel_options("phone_required");
        $user_phone = vpanel_options("user_phone");
        if ($phone_register == 1 && $user_phone != 1) {
            $out .= '<p>
						<label for="phone" ' . ($phone_required == 1 ? 'class="required"' : '') . '>' . __("Phone", "vbegy") . ($phone_required == 1 ? '<span>*</span>' : '') . '</label>
						<input type="text" ' . ($phone_required == 1 ? 'class="required-item"' : '') . ' name="phone" id="phone" value="' . $phone . '">
					</p>';
        }
        $country_register = vpanel_options("country_register");
        $country_required = vpanel_options("country_required");
        $city_register = vpanel_options("city_register");
        $city_required = vpanel_options("city_required");
        $age_register = vpanel_options("age_register");
        $age_required = vpanel_options("age_required");
        $sex_register = vpanel_options("sex_register");
        $sex_required = vpanel_options("sex_required");
        $user_country = vpanel_options("user_country");
        $user_city = vpanel_options("user_city");
        $user_age = vpanel_options("user_age");
        $user_sex = vpanel_options("user_sex");
        $user_url = vpanel_options("user_url");
        if ($country_register == 1 && $user_country != 1) {
            $out .= '
					<p>
						<label for="country" ' . ($country_required == 1 ? 'class="required"' : '') . '>' . __("Country", "vbegy") . ($country_required == 1 ? '<span>*</span>' : '') . '</label>
						<span class="styled-select">
							<select name="country" id="country" ' . ($country_required == 1 ? 'class="required-item"' : '') . '>
								<option value="">' . __('Select a country&hellip;', 'vbegy') . '</option>';
            foreach (vpanel_get_countries() as $key => $value) {
                $out .= '<option value="' . esc_attr($key) . '"' . selected($country, esc_attr($key), false) . '>' . esc_html($value) . '</option>';
            }
            $out .= '</select>
						</span>
					</p>';
        }
        if ($city_register == 1 && $user_city != 1) {
            $out .= '<p>
						<label for="city" ' . ($city_required == 1 ? 'class="required"' : '') . '>' . __("City", "vbegy") . ($city_required == 1 ? '<span>*</span>' : '') . '</label>
						<input type="text" ' . ($city_required == 1 ? 'class="required-item"' : '') . ' name="city" id="city" value="' . $city . '">
//.........这里部分代码省略.........
开发者ID:bunnywong,项目名称:freshlinker,代码行数:101,代码来源:shortcode_ask.php


示例18: dynamic_sidebar

                                                        dynamic_sidebar(sanitize_title($vbegy_what_sidebar));
                                                    } else {
                                                        if ($vbegy_what_sidebar == "" || $vbegy_what_sidebar == "default") {
                                                            $else_sidebar = vpanel_options("else_sidebar");
                                                            if ($else_sidebar == "" || $else_sidebar == "default") {
                                                                dynamic_sidebar('sidebar_default');
                                                            } else {
                                                                dynamic_sidebar(sanitize_title($else_sidebar));
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            } else {
                                $else_sidebar = vpanel_options("else_sidebar");
                                if ($else_sidebar == "" || $else_sidebar == "default") {
                                    dynamic_sidebar('sidebar_default');
                                } else {
                                    dynamic_sidebar(sanitize_title($else_sidebar));
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
开发者ID:bunnywong,项目名称:freshlinker,代码行数:31,代码来源:sidebar.php


示例19: vpanel_options

<?php

global $blog_style, $vbegy_sidebar_all;
$posts_meta = vpanel_options("post_meta");
$date_format = vpanel_options("date_format") ? vpanel_options("date_format") : get_option("date_format");
if (have_posts()) {
    while (have_posts()) {
        the_post();
        $vbegy_what_post = rwmb_meta('vbegy_what_post', 'select', $post->ID);
        $vbegy_sidebar = $vbegy_sidebar_all;
        $vbegy_google = rwmb_meta('vbegy_google', "textarea", $post->ID);
        $video_id = rwmb_meta('vbegy_video_post_id', "select", $post->ID);
        $video_type = rwmb_meta('vbegy_video_post_type', "text", $post->ID);
        $vbegy_slideshow_type = rwmb_meta('vbegy_slideshow_type', 'select', $post->ID);
        if ($video_type == 'youtube') {
            $type = "http://www.youtube.com/embed/" . $video_id;
        } else {
            if ($video_type == 'vimeo') {
                $type = "http://player.vimeo.com/video/" . $video_id;
            } else {
                if ($video_type == 'daily') {
                    $type = "http://www.dailymotion.com/swf/video/" . $video_id;
                }
            }
        }
        ?>
	<article <?php 
        post_class('post  clearfix ' . ($blog_style == "blog_2" ? "blog_2" : "") . ( 

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP vpn_ipsec_configure函数代码示例发布时间:2022-05-23
下一篇:
PHP vp_option函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap