コード例 #1
0
ファイル: theme-admin.php プロジェクト: bunnywong/freshlinker
function jobboard_option($name)
{
    if (function_exists('vp_option')) {
        return vp_option("jobboard_option." . $name);
    }
    //endif;
}
コード例 #2
0
ファイル: helpers.php プロジェクト: GaryJones/m2xdemo
function vp_pf_option($key, $default = null)
{
    if (!function_exists('vp_option')) {
        return $default;
    }
    return vp_option(VP_PF_OPTION_KEY . '.' . $key, $default);
}
コード例 #3
0
function charityHomeLayoutSetUp()
{
    $home_1_select = vp_option("vpt_option.charity_home_1_select");
    $home_2_select = vp_option("vpt_option.charity_home_2_select");
    $home_3_select = vp_option("vpt_option.charity_home_3_select");
    $home_shoplanding = vp_option("vpt_option.charity_home_shoplanding");
    $home_layout = vp_option("vpt_option.home_layout");
    switch ($home_layout) {
        case "one":
            update_option("show_on_front", "page");
            update_option('page_on_front', $home_1_select);
            break;
        case "two":
            update_option("show_on_front", "page");
            update_option('page_on_front', $home_2_select);
            break;
        case "three":
            update_option("show_on_front", "page");
            update_option('page_on_front', $home_3_select);
            break;
        case "shoplanding":
            update_option("show_on_front", "page");
            update_option('page_on_front', $home_shoplanding);
            break;
        default:
            $front_page_id = get_option('page_on_front');
            $templatePage = get_post_meta($front_page_id, "_wp_page_template", true);
            if ($templatePage == "charity-home-one.php" || $templatePage == "charity-home-two.php" || $templatePage == "charity-home-three.php" || $templatePage == "charity-shop-landing.php") {
                update_option("show_on_front", "posts");
                update_option('page_on_front', "");
            }
            break;
    }
}
コード例 #4
0
ファイル: Options.php プロジェクト: wir/WP-Tiles
 public function get_option($name, $get_default = true)
 {
     $option = vp_option("wp_tiles." . $name);
     if ($get_default && is_null($option)) {
         $option = $this->get_defaults($name);
     }
     return apply_filters('wp_tiles_option_' . $name, $option, $get_default);
 }
コード例 #5
0
ファイル: login-form.php プロジェクト: kautzar/drpp4
function charity_login_logo() {
    $site_logo = (vp_option('vpt_option.site_logo')) ? vp_option('vpt_option.site_logo') : get_stylesheet_directory_uri() . "/assets/img/logo.png";
    $color = (vp_option('vpt_option.theme_color')) ? vp_option('vpt_option.theme_color') : '#ffffff';
    echo "<style type='text/css'>
       body.login div#login h1 a{ background-image: url('" . esc_url($site_logo) . "') !important; }
        body.login{ background-color: " . esc_attr($color) . "!important; }
    </style>";
}
コード例 #6
0
 function charityProjectPostDetailsLayout()
 {
     $layoutOption = vp_option("vpt_option.charity-project-single-layout");
     if ($layoutOption == "sidebar") {
         get_template_part("content/project/project", "detail-withsidebar");
     } else {
         get_template_part("content/project/project", "detail");
     }
 }
コード例 #7
0
ファイル: general.php プロジェクト: kautzar/drpp4
function charity_global_donation_button_shortcode($atts, $content = null)
{
    $causesId = vp_option("vpt_option.charity_global_donation_cause_id");
    if (!empty($causesId)) {
        $content = '<a data-toggle="modal" href="javascript:;" data-id="' . $causesId . '" data-target=".donate-form" class="btn btn-default charity-global-causes-' . $causesId . ' charity-donation-button">' . __("DONATE NOW", "charity") . '</a>';
    } else {
        $content = __("Select causes for global donation", "charity");
    }
    return $content;
}
コード例 #8
0
function jeg_load_shortcode()
{
    /** General shortcode */
    new VP_ShortcodeGenerator(array('name' => 'generalshortcode', 'template' => locate_template(array('admin/shortcode/generalshortcode.php'), true, true), 'modal_title' => 'Jkreativ General Shortocde', 'button_title' => 'Jkreativ General Shortocde', 'types' => array('post', 'page', 'portfolio'), 'included_pages' => array(''), 'main_image' => get_template_directory_uri() . '/assets/img/jshortcode.png', 'sprite_image' => get_template_directory_uri() . '/assets/img/jshortcode.png'));
    /** Page builder Shortcode **/
    if (vp_option('joption.enable_section_builder')) {
        new VP_ShortcodeGenerator(array('name' => 'sectionshortcode', 'template' => locate_template(array('admin/shortcode/sectionshortcode.php'), true, true), 'modal_title' => 'Jkreativ Section Shortcode', 'button_title' => 'Jkreativ Section Shortcode', 'types' => array('page', 'portfolio'), 'included_pages' => array(''), 'main_image' => get_template_directory_uri() . '/assets/img/sshortcode.png', 'sprite_image' => get_template_directory_uri() . '/assets/img/sshortcode.png'));
    }
    /** Page builder Shortcode **/
    new VP_ShortcodeGenerator(array('name' => 'creditshortcode', 'template' => locate_template(array('admin/shortcode/creditshortcode.php'), true, true), 'modal_title' => 'Jkreativ Credit Shortocde', 'button_title' => 'Jkreativ Credit Shortocde', 'types' => array(), 'included_pages' => array('toplevel_page_jeg_option'), 'main_image' => get_template_directory_uri() . '/assets/img/cshortcode.png', 'sprite_image' => get_template_directory_uri() . '/assets/img/cshortcode.png'));
}
コード例 #9
0
ファイル: setup.php プロジェクト: rku4er/vafpress-wp
function setup()
{
    $options = vp_option('vpt_option');
    add_theme_support('soil-clean-up');
    // Enable clean up from Soil
    add_theme_support('soil-relative-urls');
    // Enable relative URLs from Soil
    add_theme_support('soil-nice-search');
    // Enable nice search from Soil
    add_theme_support('soil-google-analytics', $options['ga_id']);
    // Enable Google Analytics
    //add_theme_support('soil-jquery-cdn');     // Enable jQuery from the Google CDN
    //add_theme_support('soil-js-to-footer');   // Enable js to footer
    add_theme_support('soil-nav-walker');
    // Enable clean nav walker
    add_theme_support('bootstrap-gallery');
    // Enable Bootstrap Gallery
    // Make theme available for translation
    // Community translations can be found at https://github.com/roots/sage-translations
    load_theme_textdomain('sage', get_template_directory() . '/lang');
    // Enable plugins to manage the document title
    // http://codex.wordpress.org/Function_Reference/add_theme_support#Title_Tag
    add_theme_support('title-tag');
    // Register wp_nav_menu() menus
    // http://codex.wordpress.org/Function_Reference/register_nav_menus
    register_nav_menus(['primary_navigation' => __('Primary Navigation', 'sage')]);
    // Add post thumbnails
    // http://codex.wordpress.org/Post_Thumbnails
    // http://codex.wordpress.org/Function_Reference/set_post_thumbnail_size
    // http://codex.wordpress.org/Function_Reference/add_image_size
    add_theme_support('post-thumbnails');
    add_image_size('slider', 1200, 600, true);
    //update_option( 'medium_crop', 1 ); //Turn on image crop at medium size
    // Add post formats
    // http://codex.wordpress.org/Post_Formats
    //add_theme_support('post-formats', ['aside', 'gallery', 'link', 'image', 'quote', 'video', 'audio']);
    // Add HTML5 markup for captions
    // http://codex.wordpress.org/Function_Reference/add_theme_support#HTML5
    add_theme_support('html5', ['caption', 'comment-form', 'comment-list', 'gallery', 'search-form']);
    // Tell the TinyMCE editor to use a custom stylesheet
    add_editor_style(Assets\asset_path('styles/editor-style.css'));
    // Allow shortcode execution in widgets
    add_filter('widget_text', 'do_shortcode');
    // Gets rid of the word "Archive:" in front of the Archive title
    add_filter('get_the_archive_title', function ($title) {
        if (is_post_type_archive()) {
            $title = post_type_archive_title();
        }
        return $title;
    });
    //remove_filter( 'the_content', 'wpautop' );
}
コード例 #10
0
ファイル: page-layout.php プロジェクト: Angelpm28/ong-canada
 function footer()
 {
     $layoutOption = vp_option("vpt_option.footer_layout");
     $slug = "content/footer/one";
     switch ($layoutOption) {
         case "two":
             $slug = "content/footer/two";
             break;
         case "three":
             $slug = "content/footer/three";
             break;
         default:
             $slug = "content/footer/one";
             break;
     }
     get_template_part($slug);
 }
コード例 #11
0
 function bgImage($args)
 {
     if (!empty($args['template_file'])) {
         $id = charity_get_page_template($args['template_file'], $by = "ID");
     } else {
         global $post;
         $id = $post->ID;
     }
     $bgImage = vp_metabox('breadcrumb.image', '', $id);
     $bgDefaultImage = vp_option('vpt_option.img_404');
     if (!empty($bgImage)) {
         printf('style="background-image:url(%s)"', $bgImage);
     } else {
         printf('style="background-image:url(%s)"', $bgDefaultImage);
         //default image
     }
 }
コード例 #12
0
 /**
  * Access a VafPress option with optional default value
  */
 public static function option($name, $default = null)
 {
     $option = vp_option('wpurp_option.' . $name);
     if (is_null($default)) {
         $default = self::get()->helper('vafpress_menu')->defaults($name);
     }
     // Chicory specific check
     if ('partners_integrations_chicory_enable' == $name && '1' == $option) {
         $option = vp_option('wpurp_option.partners_integrations_chicory_terms');
         if (count($option) == 0) {
             $option = '';
         } else {
             $option = '1';
         }
     }
     return is_null($option) ? $default : $option;
 }
コード例 #13
0
ファイル: volunteer.php プロジェクト: kautzar/drpp4
function charity_vc_become_volunteer($atts, $content = null)
{
    extract(shortcode_atts(array('step_1' => '', 'title_1' => '', 'content_1' => '', 'step_2' => '', 'title_2' => '', 'content_2' => '', 'step_3' => '', 'title_3' => '', 'content_3' => '', 'step_4' => '', 'title_4' => '', 'content_4' => ''), $atts, 'volunteer'));
    $return = "";
    $return .= "<section class='process-section text-center'>";
    $return .= "<header class='page-header section-header clearfix'>";
    $return .= "<h2>" . vp_option('vpt_option.ch_volunteer_process_title') . "</h2>";
    $return .= "</header>";
    $return .= "<div class='row processes'>";
    $return .= do_shortcode("[volunteer step='" . $step_1 . "' title='" . $title_1 . "']" . $content_1 . "[/volunteer]");
    $return .= do_shortcode("[volunteer step='" . $step_2 . "' title='" . $title_2 . "']" . $content_2 . "[/volunteer]");
    $return .= do_shortcode("[volunteer step='" . $step_3 . "' title='" . $title_3 . "']" . $content_3 . "[/volunteer]");
    $return .= do_shortcode("[volunteer step='" . $step_4 . "' title='" . $title_4 . "']" . $content_4 . "[/volunteer]");
    $return .= do_shortcode("[charity_join_today_button][/charity_join_today_button]");
    $return .= do_shortcode("[join_today_form][contact-form-7 id='356' title='Join Today'][/join_today_form]");
    $return .= "</div>";
    $return .= "</section>";
    return $return;
}
コード例 #14
0
 function wpbpscripts_and_styles()
 {
     if (!is_admin()) {
         // register stylesheets and js
         wp_register_style('wpbp-styles', CSS . 'wpbp.css', '', '', 'all');
         wp_register_script('wpbp-scripts', JS . 'wpbp.js', array('jquery'), '', true);
         // enqueue it all
         wp_enqueue_style('wpbp-styles');
         wp_enqueue_script('wpbp-scripts');
         if (is_singular() && comments_open() && get_option('thread_comments')) {
             wp_enqueue_script('comment-reply');
         }
         // loading Google Fonts if chosen in global theme settings
         $font_face = vp_option('wpbp_option.wpbp_body_font_face');
         $font_weight = vp_option('wpbp_option.wpbp_body_font_weight');
         $font_style = vp_option('wpbp_option.wpbp_body_font_style');
         VP_Site_GoogleWebFont::instance()->add($font_face, $font_weight, $font_style);
         VP_Site_GoogleWebFont::instance()->register_and_enqueue();
     }
 }
コード例 #15
0
ファイル: social-links.php プロジェクト: Angelpm28/ong-canada
 function singlePage($author_id)
 {
     $chy_options = array();
     $social_icons = vp_option('vpt_option.auther_social_linlk');
     if (empty($social_icons)) {
         return;
     }
     foreach ($social_icons as $social_icon) {
         $chy_options[$social_icon] = array("title" => __($social_icon, "charity"), "font-class" => "fa fa-" . $social_icon);
     }
     if (count($chy_options) > 0) {
         ?>
         <ul class="social-icons blog-page-author">
             <?php 
         foreach ($chy_options as $key => $val) {
             $this->setLink($key, $val['title'], $author_id, $val['font-class']);
         }
         ?>
         </ul>
         <?php 
     }
 }
コード例 #16
0
ファイル: home-four-news.php プロジェクト: kautzar/drpp4
 * @package     charity
 * @since       1.3.0
 */
global $more, $charityHomeNews;
$more = 0;
$charityHomeNews = "latestNewsSection";

query_posts(array("post_type" => "post", "post_status" => "publish", "posts_per_page" => 3));
if (have_posts()) :
    ?>
    <section class="latest-news ">
        <div class="container">
            <div class="row">
                <div class="col-xs-12">
                    <header class="page-header section-header clearfix">
                        <h2 class="home-four-title"><?php echo vp_option('vpt_option.ch_hfour_latest_news_title'); ?></h2>
                    </header>

                    <div class="article-list row">
                        <?php while (have_posts()) : the_post(); ?>
                            <div class="items zoom col-xs-12 col-sm-4 charity-latest-news-home-one">
                                <?php
                                $format = (get_post_format()) ? get_post_format() : "standard";
                                get_template_part('content/format/' . $format);
                                ?>
                            </div>
                        <?php endwhile; ?>
                    </div>
                </div>
            </div>
        </div>
コード例 #17
0
?>


                    <?php 
$args = array('post_type' => 'charity-causes', "post_status" => "publish", "posts_per_page" => 2);
global $more;
query_posts($args);
if (have_posts()) {
    ?>
				
                        <div class="col-xs-12 col-md-6 cause-summary">

                            <div class="row">
                                <div class="col-xs-12">
                                    <h2><?php 
    echo vp_option('vpt_option.ch_htwo_allcauses_title');
    ?>
</h2>
                                </div>
                                <?php 
    while (have_posts()) {
        the_post();
        ?>
                                    <div class="col-xs-12 col-sm-6 col-md-6 one-block">
                                        <div class="items zoom">
                                            <?php 
        if (has_post_thumbnail()) {
            ?>
                                                <a
                                                    href="<?php 
            the_permalink();
コード例 #18
0
<?php

/**
 * Custom Taxonomy: Courses /// course category
 */
?>

<?php 
// print site header
get_header();
?>

<?php 
// sidebar
$sidebar_class = '';
$sidebar_pos = vp_option('vpt_option.sidebar_position');
if ($sidebar_pos == 'left') {
    $sidebar_class = ' col-lg-push-4 col-md-push-4';
}
?>

	<div class="row no-gutter"><!-- row -->

		<div class="col-lg-8 col-md-8<?php 
echo $sidebar_class;
?>
"><!-- doc body wrapper -->
		
			<div class="col-padded"><!-- inner custom column -->
			
	        	<div class="row gutter"><!-- row -->
コード例 #19
0
ファイル: functions.php プロジェクト: j-kenneth/Expeero
 /**
  * Returns theme option value.
  *
  * @param  string $name    option name.
  * @param  mixed  $default default value.
  * @return mixed
  */
 function adventure_tours_get_option($name, $default = null)
 {
     return vp_option(VP_OPTION_KEY . '.' . $name, $default);
 }
コード例 #20
0
        <div class="overlay"></div>
        <div class="container">
            <div class="row">
                <div class="col-xs-12">
                    <div class="testimonial-slider flexslider">
                        <ul class="slides">
                            <?php 
    while (have_posts()) {
        the_post();
        $company = vp_metabox('testimonial.companey_name');
        ?>
									
                                <li>
                                    <div class="slide">
                                        <h2><?php 
        echo vp_option('vpt_option.ch_hOne_testimonial_title');
        ?>
</h2>
                                        <blockquote>
                                            <?php 
        the_content();
        ?>
                                            <footer>
                                                <span><?php 
        the_title();
        ?>
</span>
                                                <?php 
        if (!empty($company)) {
            ?>
<cite>(<?php 
コード例 #21
0
<div class="similar-project">
    <div class="row">
        <div class="col-xs-12">
            <h3><?php 
echo vp_option('vpt_option.ch_similar_project');
?>
</h3>
        </div>
        <div class="similar-project-wrapper clearfix">
            <?php 
$layoutOption = vp_option("vpt_option.charity-project-single-layout");
if ($layoutOption == "sidebar") {
    $show_post = 3;
    $project_class = 'col-xs-12 col-sm-6 col-md-4 similar-project-listing';
} else {
    $show_post = 4;
    $project_class = 'col-xs-12 col-sm-6 col-md-3 similar-project-listing';
}
?>

            <?php 
global $post;
$thePostID = $post->ID;
$project_terms = wp_get_post_terms($thePostID, 'project-type');
$get_project_term_ID = $project_terms[0]->term_id;
$project_posts = array('showposts' => $show_post, 'post_type' => 'charity-project', 'post__not_in' => array(get_the_ID()), 'tax_query' => array(array('taxonomy' => 'project-type', 'field' => 'id', 'terms' => $get_project_term_ID)));
$project_similar_post = new WP_Query($project_posts);
if ($project_similar_post->have_posts()) {
    while ($project_similar_post->have_posts()) {
        $project_similar_post->the_post();
        ?>
コード例 #22
0
ファイル: content-product.php プロジェクト: ntnvu/tcb_online
}
$image = jeg_get_image_attachment(get_post_thumbnail_id($product->id));
$thumbnail = jeg_image_resizer($image, $itw, $ith);
/** category **/
$terms = get_the_terms($product->id, 'product_cat');
$termarray = array();
if (!empty($terms)) {
    foreach ($terms as $term) {
        $termarray[] = $term->name;
        break;
    }
}
/** margin size **/
$marginsize = 0;
if (vp_option('joption.product_use_margin', 0) == 1) {
    $marginsize = vp_option('joption.product_margin_size', 5);
}
?>

<a href="<?php 
the_permalink();
?>
" class="productitem" data-width="1">
	<div class="productcontent" style='margin: <?php 
echo $marginsize;
?>
px'>
		<img src="<?php 
echo $thumbnail;
?>
" alt="<?php 
コード例 #23
0
                                        <?php 
        do_action("charity_cauese_donation_details");
        ?>
                                        <?php 
        do_action("charity_causes_donation_button", "pull-right");
        ?>
                                    </div>
                                    <?php 
        the_content();
        do_action("charity_causes_donation_button");
        ?>
                                   <!--step donation-->
											<div class="step-donation">
												<header class="donate-easy-steps section-header">
													<h2><?php 
        echo vp_option('vpt_option.ch_donation_steps_section_title');
        ?>
</h2>
												</header>
											<?php 
        if (!empty($shortCodeMeta)) {
            ?>
												<div class="text-center">
											      <?php 
            print $shortCodeMeta;
            ?>
												</div>
                                            <?php 
        }
        ?>
												<!--step donation--> 
コード例 #24
0
ファイル: single.php プロジェクト: ntnvu/tcb_online
                } else {
                    if ($template === 'extrawidth') {
                        $pageoption = array('sidebarname' => vp_metabox('jkreativ_blog_template.template.0.general_blog_wide.0.general_blog_wide_sidebar'), 'hideshare' => vp_metabox('jkreativ_blog_template.template.0.general_blog_wide.0.general_blog_extra_hide_share'), 'hidemeta' => vp_metabox('jkreativ_blog_template.template.0.general_blog_wide.0.general_blog_extra_hide_meta'));
                        get_template_part('template/blogpost/single-extra-layout');
                    }
                }
            }
        }
    } else {
        $template = vp_option('joption.single_blog_template', 'normal');
        if ($template === 'normal') {
            $pageoption = array('hideshare' => vp_option('joption.general_blog_normal_hide_share', 0), 'hidemeta' => vp_option('joption.general_blog_normal_hide_meta', 0), 'pageposition' => vp_option('joption.general_blog_normal_page_position', 'pagecenter'), 'blogwidth' => vp_option('joption.general_blog_normal_page_width', 'fullwidth'), 'usesidebar' => vp_option('joption.general_blog_normal_show_sidebar', 0), 'sidebarname' => vp_option('joption.general_blog_normal_sidebar'));
            get_template_part('template/blogpost/single-normal-layout');
        } else {
            if ($template === 'clean') {
                $pageoption = array('hideshare' => vp_option('joption.general_blog_clean_hide_share', 0), 'hidetopmeta' => vp_option('joption.general_blog_clean_hide_top_meta', 0), 'hidebottommeta' => vp_option('joption.general_blog_clean_hide_bottom_meta'));
                get_template_part('template/blogpost/single-clean-layout');
            } else {
                if ($template === 'coverwidth') {
                    $pageoption = array('hideshare' => vp_option('joption.general_blog_cover_hide_share', 0), 'hidemeta' => vp_option('joption.general_blog_cover_hide_meta', 0), 'sidebarname' => vp_option('joption.general_blog_normal_sidebar'));
                    get_template_part('template/blogpost/single-cover-layout');
                } else {
                    if ($template === 'extrawidth') {
                        $pageoption = array('hideshare' => vp_option('joption.general_blog_extra_hide_share', 0), 'hidemeta' => vp_option('joption.general_blog_extra_hide_meta', 0), 'sidebarname' => vp_option('joption.general_blog_normal_sidebar'));
                        get_template_part('template/blogpost/single-extra-layout');
                    }
                }
            }
        }
    }
}
コード例 #25
0
ファイル: two.php プロジェクト: Angelpm28/ong-canada
            </div>
            <div class="col-xs-12 col-sm-3 newsletter-social-icon">    
            	<?php 
if (is_active_sidebar('footer-two-sidebar-four')) {
    ?>
      	
            	<?php 
    dynamic_sidebar("footer-two-sidebar-four");
    ?>
   
            	<?php 
}
?>
       	
            </div>
        </div>
    </div>
    <div class="copyright">
        <div class="container">
            <div class="row">
                <div class="col-xs-12">
                    <span><?php 
print vp_option('vpt_option.copy_right');
?>
</span>
                </div>
            </div>
        </div>
    </div>
</footer>
コード例 #26
0
ファイル: shop-news.php プロジェクト: kautzar/drpp4
 *
 * @package     charity
 * @version     v.1.0
 */
global $more, $charityHomeNews;
$more=0;
$charityHomeNews = "latestNewsSection";
query_posts(array("post_type" => "post", "post_status" => "publish", "posts_per_page" => 3));
if (have_posts()) :
    ?>
    <section class="latest-news ">
        <div class="container">
            <div class="row">
                <div class="col-xs-12">
                    <header class="page-header section-header clearfix">
                        <h2><?php echo vp_option('vpt_option.ch_shop_landing_news'); ?></h2>
                    </header>

                    <div class="article-list row">
                        <?php while (have_posts()) : the_post(); ?>
                            <div class="items zoom col-xs-12 col-sm-4 charity-latest-news-home-one  charity-latest-news-shop">
                                <?php
                                $format = (get_post_format()) ? get_post_format() : "standard";
                                get_template_part('content/format/' . $format);
                                ?>
                            </div>
                        <?php endwhile; ?>
                    </div>
                </div>
            </div>
        </div>
コード例 #27
0
ファイル: our-works.php プロジェクト: kautzar/drpp4
/**
 * Charity - Our works in our story template 
 * 
 * @package     charity
 * @version     v.1.0
 */
global $more;
$args = array ('post_type' => 'charity-our-works', "post_status"=> "publish", "posts_per_page" => 4);
query_posts ( $args );
if (have_posts ()) :

?>
<section class="our-works row anim-section">
	<div class="col-xs-12">
		<header class="work-block-heading section-header">
			<h2><?php echo vp_option('vpt_option.ch_work_section'); ?></h2>
		</header>
		<div class="row">
		<?php while ( have_posts () ) : the_post ();?>
		<div <?php post_class("col-xs-12 col-sm-6 col-md-4"); ?>>
						<div class="thumbnail zoom">
							<h3><?php the_title();?></h3>
							<?php if(has_post_thumbnail()): ?>
							<a href="<?php the_permalink();?>" class="img-thumb">
								<figure>
						   <?php the_post_thumbnail('charity_our_work'); ?>
						        </figure>
						    </a>
						 <?php endif; ?>
							<?php the_content('Read More');?>
						</div>
コード例 #28
0
        <?php 
    if (vp_option('joption.enable_footer_landing') && !vp_metabox('jkreativ_page_landing_vc.disable_landing_footer')) {
        ?>
            <div class="section-footer">
                <div class="landing-footer">
                    <div class="sectioncontainer">
                        <?php 
        jeg_get_template_part('template/landing-footer');
        ?>
                    </div>
                </div>
                <div class="landing-btm-footer">
                    <div class="sectioncontainer">
                        <div class="landing-footer-copyright">
                            <?php 
        echo vp_option('joption.website_copyright', '&copy; Jegtheme 2013. All Rights Reserved.');
        ?>
                        </div>
                    </div>
                </div>
            </div>
        <?php 
    }
    ?>
    </div><!--/page wrapper-->

<?php 
} else {
    jeg_get_template_part('template/password-form');
}
get_footer();
コード例 #29
0
	</div>	
</div>
<div class="productloader bigloader"></div>
<style>
	<?php 
if (vp_option('joption.override_overlay')) {
    ?>
	.productitem .pmask {
		background : <?php 
    echo vp_option('joption.product_overlay_color');
    ?>
 
	}
	<?php 
}
?>
</style>
<script>
	(function($){
		$(document).ready(function(){
			$(".productwrapper").jproduct({
				loadAnimation : 'randomfade',
				portfoliosize : <?php 
echo vp_option('joption.product_width', 500);
?>
,
				tiletype : 'masonry'
			});
		});		
	})(jQuery);
</script>
コード例 #30
0
/**
 * Add Favicon
 */
function chy_favicon()
{
    $favicon = vp_option('vpt_option.favicon') ? vp_option('vpt_option.favicon') : get_template_directory_uri() . '/favicon.ico';
    echo '<link rel="shortcut icon" type="image/x-icon" href="' . esc_url($favicon) . '"  />';
    ?>
    <style>
        .navbar-default {
            background-color: <?php 
    echo vp_option('vpt_option.theme_color') != "" ? vp_option('vpt_option.theme_color') : '#ecc731';
    ?>
;
            border-color: <?php 
    echo vp_option('vpt_option.theme_color') != "" ? vp_option('vpt_option.theme_color') : '#e7bd15';
    ?>
;
        }
        .navbar-default .navbar-form{
            border-color: <?php 
    echo vp_option('vpt_option.theme_color') != "" ? vp_option('vpt_option.theme_color') : '#e7bd15';
    ?>
;
        }
    </style>
    <?php 
}