当前位置: 首页>>代码示例>>PHP>>正文


PHP themerex_get_file_dir函数代码示例

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


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

示例1: widget

    /**
     * How to display the widget on the screen.
     */
    function widget($args, $instance)
    {
        extract($args);
        global $wp_query, $post;
        global $THEMEREX_CURRENT_SIDEBAR;
        /* Our variables from the widget settings. */
        $title = apply_filters('widget_title', isset($instance['title']) ? $instance['title'] : '');
        $number = isset($instance['number']) ? (int) $instance['number'] : '';
        $show_date = isset($instance['show_date']) ? (int) $instance['show_date'] : 0;
        $show_image = isset($instance['show_image']) ? (int) $instance['show_image'] : 0;
        $show_author = isset($instance['show_author']) ? (int) $instance['show_author'] : 0;
        $show_counters = isset($instance['show_counters']) ? (int) $instance['show_counters'] : 0;
        $category = isset($instance['category']) ? (int) $instance['category'] : 0;
        $show_counters = $show_counters ? get_theme_option("blog_counters") : '';
        $output = '';
        if ($THEMEREX_CURRENT_SIDEBAR == 'top') {
            $output .= '<div class="columnsWrap"><div class="columns1_2">';
        }
        $args = array('numberposts' => $number, 'offset' => 0, 'orderby' => 'post_date', 'order' => 'DESC', 'post_type' => 'post', 'post_status' => current_user_can('read_private_pages') && current_user_can('read_private_posts') ? array('publish', 'private') : 'publish', 'ignore_sticky_posts' => 1, 'suppress_filters' => true);
        if ($category > 0) {
            $args['category'] = $category;
        }
        $ex = get_theme_option('exclude_cats');
        if (!empty($ex)) {
            $args['category__not_in'] = explode(',', $ex);
        }
        $recent_posts = wp_get_recent_posts($args, OBJECT);
        $post_number = 0;
        foreach ($recent_posts as $post) {
            $post_number++;
            require themerex_get_file_dir('/templates/page-part-widgets-posts.php');
            if ($THEMEREX_CURRENT_SIDEBAR == 'top' && $post_number == round($number / 2)) {
                $output .= '
					</div><div class="columns1_2">
				';
            }
            if ($post_number >= $number) {
                break;
            }
        }
        if ($THEMEREX_CURRENT_SIDEBAR == 'top') {
            $output .= '</div></div>';
        }
        if (!empty($output)) {
            /* Before widget (defined by themes). */
            echo balanceTags($before_widget);
            /* Display the widget title if one was input (before and after defined by themes). */
            echo balanceTags($before_title) . esc_html($title) . balanceTags($after_title);
            echo balanceTags($output);
            /* After widget (defined by themes). */
            echo balanceTags($after_widget);
        }
    }
开发者ID:WestBayResidential,项目名称:wbrsorg,代码行数:56,代码来源:widget-recent-posts.php

示例2: themerex_callback_ajax_search

 function themerex_callback_ajax_search()
 {
     global $_REQUEST, $post, $wp_query;
     if (!wp_verify_nonce($_REQUEST['nonce'], 'ajax_nonce')) {
         die;
     }
     $response = array('error' => '', 'data' => '');
     $s = $_REQUEST['text'];
     if (!empty($s)) {
         $show_types = get_theme_option('ajax_search_types');
         $show_date = get_theme_option('ajax_search_posts_date') == 'yes' ? 1 : 0;
         $show_image = get_theme_option('ajax_search_posts_image') == 'yes' ? 1 : 0;
         $show_author = get_theme_option('ajax_search_posts_author') == 'yes' ? 1 : 0;
         $show_counters = get_theme_option('ajax_search_posts_counters') == 'yes' ? get_theme_option('blog_counters') : '';
         $args = array('post_status' => 'publish', 'orderby' => 'date', 'order' => 'desc', 'posts_per_page' => max(1, min(10, get_theme_option('ajax_search_posts_count'))), 's' => esc_html($s));
         // Filter post types
         if (!empty($show_types)) {
             $args['post_type'] = explode(',', $show_types);
         }
         // Exclude categories
         $ex = get_theme_option('exclude_cats');
         if (!empty($ex)) {
             $args['category__not_in'] = explode(',', $ex);
         }
         $args = apply_filters('ajax_search_query', $args);
         $post_number = 0;
         $output = '';
         if (!isset($wp_query)) {
             $wp_query = new WP_Query($args);
         } else {
             query_posts($args);
         }
         while (have_posts()) {
             the_post();
             $post_number++;
             require themerex_get_file_dir('/templates/page-part-widgets-posts.php');
         }
         if (empty($output)) {
             $output .= '<article class="post_item">' . __('Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'themerex') . '</article>';
         } else {
             $output .= '<article class="post_item"><a href="#" class="post_more">' . __('More results &hellip;', 'themerex') . '</a></article>';
         }
         $response['data'] = $output;
     } else {
         $response['error'] = __('The query string is empty!', 'themerex');
     }
     echo json_encode($response);
     die;
 }
开发者ID:amankatoch,项目名称:wp-plugin,代码行数:49,代码来源:functions.php

示例3: import_widgets

 function import_widgets()
 {
     if (empty($this->options['file_with_widgets'])) {
         return;
     }
     echo '<br><b>' . __('Import Widgets ...', 'themerex') . '</b><br>';
     flush();
     // Register custom widgets
     $widgets = array();
     $sidebars = get_theme_option('custom_sidebars');
     if (is_array($sidebars) && count($sidebars) > 0) {
         foreach ($sidebars as $i => $sb) {
             if (trim(chop($sb)) == '') {
                 continue;
             }
             $widgets['custom-sidebar-' . $i] = $sb;
         }
     }
     themerex_widgets_init($widgets);
     // Import widgets
     $widgets_txt = themerex_fgc(themerex_get_file_dir('/admin/tools/importer/data/' . $this->options['file_with_widgets']));
     $data = unserialize(base64_decode($widgets_txt));
     // Replace upload url in options
     foreach ($data as $k => $v) {
         foreach ($v as $k1 => $v1) {
             if (is_array($v1)) {
                 foreach ($v1 as $k2 => $v2) {
                     if (is_array($v2)) {
                         foreach ($v2 as $k3 => $v3) {
                             $v2[$k3] = $this->replace_uploads($v3);
                         }
                         $v1[$k2] = $v2;
                     } else {
                         $v1[$k2] = $this->replace_uploads($v2);
                     }
                 }
                 $v[$k1] = $v1;
             } else {
                 $v[$k1] = $this->replace_uploads($v1);
             }
         }
         update_option($k, $v);
     }
 }
开发者ID:WestBayResidential,项目名称:wbrsorg,代码行数:44,代码来源:importer.php

示例4: import_sliders

 function import_sliders()
 {
     // Royal Sliders
     if (!empty($this->options['file_with_royal_sliders'])) {
         echo '<br><b>' . __('Import Royal sliders ...', 'themerex') . '</b><br>';
         flush();
         global $wpdb;
         $sliders_txt = themerex_fgc(themerex_get_file_dir('/admin/tools/importer/data/' . $this->options['file_with_royal_sliders']));
         $data = unserialize(base64_decode($sliders_txt));
         if (is_array($data) && count($data) > 0) {
             foreach ($data as $slider => $slides) {
                 if ($slider == 'royal') {
                     $values = '';
                     $fields = '';
                     foreach ($slides as $slide) {
                         $f = '';
                         $v = '';
                         foreach ($slide as $field => $value) {
                             $f .= ($f ? ',' : '') . "'" . $field . "'";
                             $v .= ($v ? ',' : '') . "'" . addslashes($value) . "'";
                         }
                         if ($fields == '') {
                             $fields = '(' . $f . ')';
                         }
                         $values .= ($values ? ',' : '') . '(' . $v . ')';
                     }
                     $q = "REPLACE INTO {$wpdb->prefix}new_royalsliders VALUES {$values}";
                     $wpdb->query($q);
                 }
             }
         }
     }
     // Revolution Sliders
     if (file_exists(WP_PLUGIN_DIR . '/revslider/revslider.php')) {
         require_once WP_PLUGIN_DIR . '/revslider/revslider.php';
         $dir = get_template_directory() . '/admin/tools/importer/data/revslider';
         if (is_dir($dir)) {
             $hdir = @opendir($dir);
             if ($hdir) {
                 echo '<br><b>' . __('Import Revolution sliders ...', 'themerex') . '</b><br>';
                 flush();
                 $slider = new RevSlider();
                 while (($file = readdir($hdir)) !== false) {
                     $pi = pathinfo($dir . '/' . $file);
                     if (substr($file, 0, 1) == '.' || is_dir($dir . '/' . $file) || $pi['extension'] != 'zip') {
                         continue;
                     }
                     if ($this->debug) {
                         printf(__('Slider "%s":', 'themerex'), $file);
                     }
                     if (!is_array($_FILES)) {
                         $_FILES = array();
                     }
                     $_FILES["import_file"] = array("tmp_name" => $dir . '/' . $file);
                     $response = $slider->importSliderFromPost();
                     if ($response["success"] == false) {
                         if ($this->debug) {
                             echo ' ' . __('imported', 'themerex') . '<br>';
                         }
                     } else {
                         if ($this->debug) {
                             echo ' ' . __('import error', 'themerex') . '<br>';
                         }
                     }
                     flush();
                 }
                 @closedir($hdir);
             }
         }
     } else {
         if ($this->debug) {
             printf(__('Can not locate Revo plugin: %s', 'themerex'), WP_PLUGIN_DIR . '/revslider/revslider.php<br>');
             flush();
         }
     }
 }
开发者ID:derwegas,项目名称:strubbelkinder,代码行数:76,代码来源:importer.php

示例5: themerex_get_file_dir

<?php

$post_title_tag = $opt['style'] == 'list' ? 'li' : 'h4';
require themerex_get_file_dir('/templates/page-part-reviews-summary.php');
$title = '<' . $post_title_tag . ' class="sc_blogger_title sc_title' . (in_array($opt['style'], array('accordion_1', 'accordion_2')) ? ' sc_accordion_title' : '') . '">' . ((!isset($opt['links']) || $opt['links']) && !in_array($opt['style'], array('accordion_1', 'accordion_2')) ? '<a href="' . $post_data['post_link'] . '">' : '') . (themerex_substr($opt['style'], 0, 6) == 'bubble' ? '<span class="sc_title_bubble_icon ' . ($post_data['post_icon'] != '' ? ' ' . $post_data['post_icon'] : '') . '"' . ($post_data['bubble_color'] != '' ? ' style="background-color:' . $post_data['bubble_color'] . '"' : '') . '></span>' : '') . (in_array($opt['style'], array('accordion_1', 'accordion_2')) ? '<span class="sc_accordion_icon"></span>' : '') . $post_data['post_title'] . ((!isset($opt['links']) || $opt['links']) && !in_array($opt['style'], array('accordion_1', 'accordion_2')) ? '</a>' : '') . '</' . $post_title_tag . '>' . (in_array($opt['style'], array('accordion_1', 'accordion_2', 'list')) ? '' : $reviewsBlock);
if ($opt['style'] == 'list') {
    echo $title;
} else {
    $thumb = $post_data['post_thumb'] && themerex_strpos($opt['style'], 'image') !== false ? '<div class="thumb">' . ($post_data['post_link'] != '' ? '<a href="' . $post_data['post_link'] . '">' . $post_data['post_thumb'] . '</a>' : $post_data['post_thumb']) . '</div>' : '';
    $info = sc_param_is_on($opt['info']) ? '<div class="sc_blogger_info">' . (themerex_strpos($opt['style'], 'image') !== false || themerex_strpos($opt['style'], 'accordion') !== false ? '<div class="squareButton light ico sc_blogger_more"><a class="icon-link" title="" href="' . $post_data['post_link'] . '">' . ($opt['readmore'] ? $opt['readmore'] : __('More', 'themerex')) . '</a></div><div class="sc_blogger_author">' . __('Posted by', 'themerex') : __('by', 'themerex')) . ' <a href="' . $post_data['post_author_url'] . '" class="post_author">' . $post_data['post_author'] . '</a>' . ($opt['counters'] != 'none' ? ' <span class="separator">|</span> ' . ($opt['orderby'] == 'comments' || $opt['counters'] == 'comments' ? __('Comments', 'themerex') : __('Views', 'themerex')) . ' <span class="comments_number">' . ($opt['orderby'] == 'comments' || $opt['counters'] == 'comments' ? $post_data['post_comments'] : $post_data['post_views']) . '</span>' : '') . (themerex_strpos($opt['style'], 'image') !== false || themerex_strpos($opt['style'], 'accordion') !== false ? '</div>' : '') . '</div>' : '';
    if ($opt['dir'] == 'horizontal' && $opt['style'] != 'date') {
        ?>
		<div class="columns1_<?php 
        echo $opt['posts_visible'];
        ?>
 column_item_<?php 
        echo $opt['number'];
        echo ($opt['number'] % 2 == 1 ? ' odd' : ' even') . ($opt['number'] == 1 ? ' first' : '') . ($opt['number'] == $opt['posts_on_page'] ? ' columns_last' : '');
        //. (sc_param_is_on($opt['scroll']) ? ' sc_scroll_slide swiper-slide' : '');
        ?>
">

		<?php 
    }
    ?>
<article class="sc_blogger_item<?php 
    echo (in_array($opt['style'], array('accordion_1', 'accordion_2')) ? ' sc_accordion_item' : '') . ($opt['number'] == $opt['posts_on_page'] && !sc_param_is_on($opt['loadmore']) ? ' sc_blogger_item_last' : '');
    //. (sc_param_is_on($opt['scroll']) && ($opt['dir'] == 'vertical' || $opt['style'] == 'date') ? ' sc_scroll_slide swiper-slide' : '');
    ?>
"<?php 
    echo $opt['dir'] == 'horizontal' && $opt['style'] == 'date' ? ' style="width:' . 100 / $opt['posts_on_page'] . '%"' : '';
开发者ID:amankatoch,项目名称:wp-plugin,代码行数:31,代码来源:post-layout-blogger.php

示例6: widget

    /**
     * How to display the widget on the screen.
     */
    function widget($args, $instance)
    {
        extract($args);
        global $wp_query, $post;
        global $THEMEREX_CURRENT_SIDEBAR;
        /* Our variables from the widget settings. */
        $title = apply_filters('widget_title', isset($instance['title']) ? $instance['title'] : '');
        $title_tabs = array(isset($instance['title_popular']) ? $instance['title_popular'] : '', isset($instance['title_commented']) ? $instance['title_commented'] : '', isset($instance['title_liked']) ? $instance['title_liked'] : '');
        $number = isset($instance['number']) ? (int) $instance['number'] : '';
        $show_date = isset($instance['show_date']) ? (int) $instance['show_date'] : 0;
        $show_image = isset($instance['show_image']) ? (int) $instance['show_image'] : 0;
        $show_author = isset($instance['show_author']) ? (int) $instance['show_author'] : 0;
        $show_counters = isset($instance['show_counters']) ? (int) $instance['show_counters'] : 0;
        $category = isset($instance['category']) ? (int) $instance['category'] : 0;
        $output = $tabs = '';
        if ($THEMEREX_CURRENT_SIDEBAR == 'top') {
            $output .= '<div class="columnsWrap">';
        }
        $rnd = str_replace('.', '', mt_rand());
        for ($i = 0; $i < 3; $i++) {
            $args = array('post_type' => 'post', 'post_status' => current_user_can('read_private_pages') && current_user_can('read_private_posts') ? array('publish', 'private') : 'publish', 'post_password' => '', 'posts_per_page' => $number, 'ignore_sticky_posts' => 1, 'order' => 'DESC');
            if ($i == 0) {
                // Most popular
                $args['meta_key'] = 'post_views_count';
                $args['orderby'] = 'meta_value_num';
                $show_counters = $show_counters ? 'views' : '';
            } else {
                if ($i == 2) {
                    // Most liked
                    $args['meta_key'] = 'post_likes_count';
                    $args['orderby'] = 'meta_value_num';
                    $show_counters = $show_counters ? 'likes' : '';
                } else {
                    // Most commented
                    $args['orderby'] = 'comment_count';
                    $show_counters = $show_counters ? 'comments' : '';
                }
            }
            if ($category > 0) {
                $args['cat'] = $category;
            }
            $ex = get_theme_option('exclude_cats');
            if (!empty($ex)) {
                $args['category__not_in'] = explode(',', $ex);
            }
            query_posts($args);
            /* Loop posts */
            if (have_posts()) {
                if ($THEMEREX_CURRENT_SIDEBAR == 'top') {
                    $output .= '
						<div class="tab_content columns1_3" id="widget_popular_' . $i . '">
							<h2 class="widgetSubtitle">' . $title_tabs[$i] . '</h2>
					';
                } else {
                    $tabs .= '<li ><a href="#widget_popular_' . $rnd . '_' . $i . '">' . $title_tabs[$i] . '</a></li>';
                    $output .= '
						<div class="tab_content" id="widget_popular_' . $rnd . '_' . $i . '"' . ($i == 1 && !$output ? ' style="display: block;"' : '') . '>
					';
                }
                $post_number = 0;
                while (have_posts()) {
                    the_post();
                    $post_number++;
                    require themerex_get_file_dir('/templates/page-part-widgets-posts.php');
                    if ($post_number >= $number) {
                        break;
                    }
                }
                $output .= '
					</div>
				';
            }
        }
        if ($THEMEREX_CURRENT_SIDEBAR == 'top') {
            $output .= '</div>';
        }
        /* Restore main wp_query and current post data in the global var $post */
        wp_reset_query();
        wp_reset_postdata();
        if (!empty($output)) {
            themerex_enqueue_script('jquery-ui-tabs', false, array('jquery', 'jquery-ui-core'), null, true);
            /* Before widget (defined by themes). */
            echo balanceTags($before_widget);
            /* Display the widget title if one was input (before and after defined by themes). */
            if ($title) {
                echo balanceTags($before_title) . esc_html($title) . balanceTags($after_title);
            }
            echo '
				<div class="popular_and_commented_tabs' . ($THEMEREX_CURRENT_SIDEBAR == 'top' ? '' : ' tabs_area') . '">
					' . ($THEMEREX_CURRENT_SIDEBAR == 'top' ? '' : '
					<ul class="tabs">
						' . $tabs . '
					</ul>
					') . $output . '
				</div>
			';
            /* After widget (defined by themes). */
//.........这里部分代码省略.........
开发者ID:WestBayResidential,项目名称:wbrsorg,代码行数:101,代码来源:widget-popular-posts.php

示例7: themerex_get_file_url

 function themerex_get_file_url($file)
 {
     return themerex_get_file_dir($file, true);
 }
开发者ID:WestBayResidential,项目名称:wbrsorg,代码行数:4,代码来源:_wp_utils.php

示例8: _e

        _e('Tags:', 'themerex');
        ?>
							<?php 
        echo balanceTags($post_data['post_tags_links']);
        ?>
						</div>
					<?php 
    }
    ?>
				</div>

			<?php 
}
stopWrapper(3);
?>

	<?php 
if (!$post_data['post_protected']) {
    require themerex_get_file_dir('/templates/page-part-author-info.php');
    require themerex_get_file_dir('/templates/page-part-related-posts.php');
    get_template_part('templates/page-part-comments');
}
?>

<?php 
stopWrapper();
?>

<?php 
require themerex_get_file_dir('/templates/page-part-views-counter.php');
开发者ID:WestBayResidential,项目名称:wbrsorg,代码行数:30,代码来源:post-layout-single-portfolio.php

示例9: widget

    /**
     * How to display the widget on the screen.
     */
    function widget($args, $instance)
    {
        extract($args);
        global $wp_query, $post;
        global $THEMEREX_CURRENT_SIDEBAR;
        /* Our variables from the widget settings. */
        $title = apply_filters('widget_title', isset($instance['title']) ? $instance['title'] : '');
        $number = isset($instance['number']) ? (int) $instance['number'] : '';
        $show_date = isset($instance['show_date']) ? (int) $instance['show_date'] : 0;
        $show_image = isset($instance['show_image']) ? (int) $instance['show_image'] : 0;
        $show_author = isset($instance['show_author']) ? (int) $instance['show_author'] : 0;
        $show_counters = isset($instance['show_counters']) ? (int) $instance['show_counters'] : 0;
        $category = isset($instance['category']) ? (int) $instance['category'] : 0;
        $show_counters = $show_counters == 2 ? 'stars' : ($show_counters == 1 ? 'rating' : '');
        $output = '';
        if ($THEMEREX_CURRENT_SIDEBAR == 'top') {
            $output .= '<div class="columnsWrap"><div class="columns1_2">';
        }
        $post_rating = 'reviews_avg' . (get_theme_option('reviews_first') == 'author' ? '' : '2');
        $args = array('post_type' => 'post', 'post_status' => current_user_can('read_private_pages') && current_user_can('read_private_posts') ? array('publish', 'private') : 'publish', 'post_password' => '', 'posts_per_page' => $number, 'ignore_sticky_posts' => 1, 'order' => 'DESC', 'orderby' => 'date', 'meta_query' => array(array('key' => $post_rating, 'value' => 0, 'compare' => '>', 'type' => 'NUMERIC')));
        if ($category > 0) {
            $args['cat'] = $category;
        }
        $ex = get_theme_option('exclude_cats');
        if (!empty($ex)) {
            $args['category__not_in'] = explode(',', $ex);
        }
        query_posts($args);
        /* Loop posts */
        if (have_posts()) {
            $post_number = 0;
            while (have_posts()) {
                the_post();
                $post_number++;
                require themerex_get_file_dir('/templates/page-part-widgets-posts.php');
                if ($THEMEREX_CURRENT_SIDEBAR == 'top' && $post_number == round($number / 2)) {
                    $output .= '
						</div><div class="columns1_2">
					';
                }
                if ($post_number >= $number) {
                    break;
                }
            }
        }
        if ($THEMEREX_CURRENT_SIDEBAR == 'top') {
            $output .= '</div></div>';
        }
        /* Restore main wp_query and current post data in the global var $post */
        wp_reset_query();
        wp_reset_postdata();
        if (!empty($output)) {
            /* Before widget (defined by themes). */
            echo $before_widget;
            /* Display the widget title if one was input (before and after defined by themes). */
            if ($title) {
                echo $before_title . $title . $after_title;
            }
            echo '
				<div class="recent_reviews">
					' . $output . '
				</div>
			';
            /* After widget (defined by themes). */
            echo $after_widget;
        }
    }
开发者ID:derwegas,项目名称:strubbelkinder,代码行数:70,代码来源:widget-recent-reviews.php

示例10: themerex_get_file_dir

<?php

//====================================== Editor area ========================================
if ($post_data['post_edit_enable']) {
    require_once themerex_get_file_dir('/admin/theme-options.php');
    wp_register_script('wp-color-picker', get_site_url() . '/wp-admin/js/color-picker.min.js', array('jquery'), '1.0', true);
    themerex_enqueue_style('fontello-admin', themerex_get_file_url('/admin/css/fontello/css/fontello-admin.css'), array(), null);
    themerex_enqueue_style('frontend-editor-style', themerex_get_file_url('/js/editor/_editor.css'), array('main-style'), null);
    themerex_enqueue_script('frontend-editor', themerex_get_file_url('/js/editor/_editor.js'), array(), null, true);
    themerex_options_load_scripts();
    themerex_options_prepare_js($post_data['post_type'] == 'page' ? 'page' : 'post');
    themerex_shortcodes_load_scripts();
    themerex_shortcodes_prepare_js();
    ?>
	<div id="frontend_editor">
		<div id="frontend_editor_inner">
			<form method="post">
				<label id="frontend_editor_post_title_label" for="frontend_editor_post_title"><?php 
    _e('Title', 'themerex');
    ?>
</label>
				<input type="text" name="frontend_editor_post_title" id="frontend_editor_post_title" value="<?php 
    echo esc_attr($post_data['post_title']);
    ?>
" />
				<?php 
    $ajax_nonce = wp_create_nonce('themerex_editor_nonce');
    $ajax_url = admin_url('admin-ajax.php');
    wp_editor($post_data['post_content_original'], 'frontend_editor_post_content', array('wpautop' => true, 'textarea_rows' => 16));
    ?>
				<label id="frontend_editor_post_excerpt_label" for="frontend_editor_post_excerpt"><?php 
开发者ID:WestBayResidential,项目名称:wbrsorg,代码行数:31,代码来源:page-part-editor-area.php

示例11: themerex_get_file_dir

<?php

global $themerex_options_delimiter, $themerex_options_data;
$themerex_options_data = null;
$themerex_options_delimiter = ',';
require_once themerex_get_file_dir('/admin/theme-custom.php');
//-----------------------------------------------------------------------------------
// Load required styles and scripts for Options Page
//-----------------------------------------------------------------------------------
add_action("admin_enqueue_scripts", 'themerex_options_load_scripts');
function themerex_options_load_scripts()
{
    // WP Color Picker
    themerex_enqueue_style('wp-color-picker', false, array(), null);
    // ThemeREX options styles
    themerex_enqueue_style('themerex-options-style', themerex_get_file_url('/admin/css/theme-options.css'), array(), null);
    themerex_enqueue_style('themerex-options-style-datepicker', themerex_get_file_url('/admin/css/theme-options-datepicker.css'), array(), null);
    // ThemeREX messages script
    themerex_enqueue_style('themerex-messages-style', themerex_get_file_url('/js/messages/_messages.css'), array(), null);
    // PrettyPhoto
    themerex_enqueue_style('prettyphoto-style', themerex_get_file_url('/js/prettyphoto/css/prettyPhoto.css'), array(), null);
    // WP core scripts
    wp_enqueue_media();
    themerex_enqueue_script('wp-color-picker', false, array('jquery'), null, true);
    // jQuery scripts
    themerex_enqueue_script('jquery-ui-core', false, array('jquery'), null, true);
    themerex_enqueue_script('jquery-ui-tabs', false, array('jquery', 'jquery-ui-core'), null, true);
    themerex_enqueue_script('jquery-ui-accordion', false, array('jquery', 'jquery-ui-core'), null, true);
    themerex_enqueue_script('jquery-ui-sortable', false, array('jquery', 'jquery-ui-core'), null, true);
    themerex_enqueue_script('jquery-ui-draggable', false, array('jquery', 'jquery-ui-core'), null, true);
    themerex_enqueue_script('jquery-ui-datepicker', false, array('jquery', 'jquery-ui-core'), null, true);
开发者ID:derwegas,项目名称:strubbelkinder,代码行数:31,代码来源:theme-options.php

示例12: themerex_admin_register_plugins

 function themerex_admin_register_plugins()
 {
     $plugins = array(array('name' => 'WooCommerce', 'slug' => 'woocommerce', 'required' => false), array('name' => 'Visual Composer', 'slug' => 'js_composer', 'source' => themerex_get_file_dir('/plugins/js_composer.zip'), 'required' => false), array('name' => 'Revolution Slider', 'slug' => 'revslider', 'source' => themerex_get_file_dir('/plugins/revslider.zip'), 'required' => false), array('name' => 'Royal Slider', 'slug' => 'royalslider', 'source' => themerex_get_file_dir('/plugins/royalslider.zip'), 'required' => false));
     $theme_text_domain = 'themerex';
     $config = array('domain' => $theme_text_domain, 'default_path' => '', 'parent_menu_slug' => 'themes.php', 'parent_url_slug' => 'themes.php', 'menu' => 'install-required-plugins', 'has_notices' => true, 'is_automatic' => true, 'message' => '', 'strings' => array('page_title' => __('Install Required Plugins', 'themerex'), 'menu_title' => __('Install Plugins', 'themerex'), 'installing' => __('Installing Plugin: %s', 'themerex'), 'oops' => __('Something went wrong with the plugin API.', 'themerex'), 'notice_can_install_required' => _n_noop('This theme requires the following plugin: %1$s.', 'This theme requires the following plugins: %1$s.'), 'notice_can_install_recommended' => _n_noop('This theme recommends the following plugin: %1$s.', 'This theme recommends the following plugins: %1$s.'), 'notice_cannot_install' => _n_noop('Sorry, but you do not have the correct permissions to install the %s plugin. Contact the administrator of this site for help on getting the plugin installed.', 'Sorry, but you do not have the correct permissions to install the %s plugins. Contact the administrator of this site for help on getting the plugins installed.'), 'notice_can_activate_required' => _n_noop('The following required plugin is currently inactive: %1$s.', 'The following required plugins are currently inactive: %1$s.'), 'notice_can_activate_recommended' => _n_noop('The following recommended plugin is currently inactive: %1$s.', 'The following recommended plugins are currently inactive: %1$s.'), 'notice_cannot_activate' => _n_noop('Sorry, but you do not have the correct permissions to activate the %s plugin. Contact the administrator of this site for help on getting the plugin activated.', 'Sorry, but you do not have the correct permissions to activate the %s plugins. Contact the administrator of this site for help on getting the plugins activated.'), 'notice_ask_to_update' => _n_noop('The following plugin needs to be updated to its latest version to ensure maximum compatibility with this theme: %1$s.', 'The following plugins need to be updated to their latest version to ensure maximum compatibility with this theme: %1$s.'), 'notice_cannot_update' => _n_noop('Sorry, but you do not have the correct permissions to update the %s plugin. Contact the administrator of this site for help on getting the plugin updated.', 'Sorry, but you do not have the correct permissions to update the %s plugins. Contact the administrator of this site for help on getting the plugins updated.'), 'install_link' => _n_noop('Begin installing plugin', 'Begin installing plugins'), 'activate_link' => _n_noop('Activate installed plugin', 'Activate installed plugins'), 'return' => __('Return to Required Plugins Installer', 'themerex'), 'plugin_activated' => __('Plugin activated successfully.', 'themerex'), 'complete' => __('All plugins installed and activated successfully. %s', 'themerex'), 'nag_type' => 'updated'));
     tgmpa($plugins, $config);
 }
开发者ID:riaface,项目名称:GrowBeyond,代码行数:7,代码来源:functions.php

示例13: getIconsList

 function getIconsList($prepend_inherit = false)
 {
     $list = array();
     if ($prepend_inherit) {
         $list['inherit'] = __("Inherit", 'themerex');
     }
     return array_merge($list, parseIconsClasses(themerex_get_file_dir("/css/fontello/css/fontello-codes.css")));
 }
开发者ID:WestBayResidential,项目名称:wbrsorg,代码行数:8,代码来源:theme-lists.php

示例14: getPostShare

        ?>
 
			</div>
			<?php 
    }
}
//postshare
echo getPostShare(get_custom_option('set_post_info', null, $post_data['post_id']), $post_data);
//pass end
?>

		</article>

		<?php 
require get_template_directory() . '/templates/page-part-reviews-block.php';
//editor
if (!$post_data['post_protected'] && $post_data['post_edit_enable']) {
    require themerex_get_file_dir('/templates/page-part-editor-area.php');
}
?>
		
	</section>

	<?php 
if (!$post_data['post_protected']) {
    require get_template_directory() . '/templates/page-part-author-info.php';
    require get_template_directory() . '/templates/page-part-related-posts.php';
    require get_template_directory() . '/templates/page-part-comments.php';
}
require get_template_directory() . '/templates/page-part-views-counter.php';
echo $main_div ? '</div>' : '';
开发者ID:riaface,项目名称:GrowBeyond,代码行数:31,代码来源:post-layout-single-standard.php

示例15: bloginfo

<?php 
}
?>
	<link rel="profile" href="http://gmpg.org/xfn/11" />
	<link rel="pingback" href="<?php 
bloginfo('pingback_url');
?>
" />
    <?php 
$favicon = get_custom_option('favicon');
if (!$favicon) {
    $skin = themerex_escape_shell_cmd(get_custom_option('theme_skin'));
    if (file_exists(themerex_get_file_dir('/skins/' . $skin . '/images/favicon.ico'))) {
        $favicon = themerex_get_file_url('/skins/' . $skin . '/images/favicon.ico');
    }
    if (!$favicon && file_exists(themerex_get_file_dir('favicon.ico'))) {
        $favicon = themerex_get_file_url('favicon.ico');
    }
}
if ($favicon) {
    ?>
		<link rel="icon" type="image/x-icon" href="<?php 
    echo esc_attr($favicon);
    ?>
" />
    <?php 
}
?>
	<!--[if lt IE 9]>
	<script src="<?php 
echo themerex_get_file_url('/js/html5.js');
开发者ID:WestBayResidential,项目名称:wbrsorg,代码行数:31,代码来源:header.php


注:本文中的themerex_get_file_dir函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。