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

PHP themerex_enqueue_style函数代码示例

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

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



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

示例1: 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);
    // 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);
    themerex_enqueue_script('jquery-input-mask', themerex_get_file_url('/admin/js/jquery.maskedinput.1.3.1.js'), array('jquery'), null, true);
    // ThemeREX options scripts
    themerex_enqueue_script('themerex-options-script', themerex_get_file_url('/admin/js/theme-options.js'), array('jquery'), null, true);
    // ThemeREX messages script
    themerex_enqueue_script('themerex-messages', themerex_get_file_url('/js/messages/_messages.js'), array('jquery'), null, true);
}
开发者ID:riaface,项目名称:GrowBeyond,代码行数:25,代码来源:theme-options.php


示例2: pagenavi_stylesheets

function pagenavi_stylesheets()
{
    if (@file_exists(TEMPLATEPATH . '/pagenavi-css.css')) {
        themerex_enqueue_style('wp-pagenavi', get_stylesheet_directory_uri() . '/pagenavi-css.css', array(), null, 'all');
    } else {
        themerex_enqueue_style('wp-pagenavi', plugins_url('wp-pagenavi/pagenavi-css.css'), array(), null, 'all');
    }
}
开发者ID:riaface,项目名称:GrowBeyond,代码行数:8,代码来源:wp-pagenavi.php


示例3: load_scripts

 function load_scripts()
 {
     if (isset($_REQUEST['page']) && $_REQUEST['page'] == 'trx_emailer') {
         themerex_enqueue_style('trx-emailer-style', themerex_get_file_url('/admin/tools/emailer/emailer.css'), array(), null);
     }
     if (isset($_REQUEST['page']) && $_REQUEST['page'] == 'trx_emailer') {
         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('trx-emailer-script', themerex_get_file_url('/admin/tools/emailer/emailer.js'), array('jquery'), null, true);
     }
 }
开发者ID:WestBayResidential,项目名称:wbrsorg,代码行数:11,代码来源:emailer.php


示例4: load_scripts

 function load_scripts()
 {
     if (isset($_REQUEST['page']) && $_REQUEST['page'] == 'po_composer') {
         themerex_enqueue_style('po-composer-style', get_template_directory_uri() . '/admin/tools/po_composer/po_composer.css', array(), null);
     }
     if (isset($_REQUEST['page']) && $_REQUEST['page'] == 'po_composer') {
         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('po-composer-script', get_template_directory_uri() . '/admin/tools/po_composer/po_composer.js', array('jquery'), null, true);
     }
 }
开发者ID:riaface,项目名称:GrowBeyond,代码行数:11,代码来源:po_composer.php


示例5: sc_emailer

function sc_emailer($atts, $content = null)
{
    if (in_shortcode_blogger()) {
        return '';
    }
    extract(shortcode_atts(array("id" => "", "class" => "", "group" => "", "open" => "yes", "align" => "", "top" => "", "bottom" => "", "left" => "", "right" => "", "width" => "", "height" => ""), $atts));
    $s = getStyleString($top, $right, $bottom, $left, $width, $height);
    themerex_enqueue_style('fontello-admin', themerex_get_file_url('/admin/css/fontello/css/fontello-admin.css'), array(), null);
    return '<div' . ($id ? ' id="' . $id . '"' : '') . ' class="sc_emailer inputSubmitAnimation' . ($align && $align != 'none' ? ' sc_align' . $align : '') . (sc_param_is_on($open) ? ' sFocus rad4 opened' : ' radCircle') . (!empty($class) ? ' ' . $class : '') . '"' . ($s ? ' style="' . $s . '"' : '') . '>' . '<form><input type="text" class="sInput" name="email" value="" placeholder="' . __('Please, enter you email address.', 'themerex') . '" class="sInput"></form>' . '<a href="#" class="sc_emailer_button searchIcon aIco mail" title="' . __('Submit', 'themerex') . '" data-group="' . ($group ? $group : __('E-mail collector group', 'themerex')) . '"></a>' . '</div>';
}
开发者ID:amankatoch,项目名称:wp-plugin,代码行数:10,代码来源:shortcodes.php


示例6: buildGalleryTag

    function buildGalleryTag($photos, $w, $h, $zoom = false, $link = '')
    {
        $engine = get_custom_option('substitute_slider_engine');
        $gallery_text = '';
        $gallery_items_in_bg = $engine != 'chop';
        // todo: magnific & pretty
        // magnific & pretty
        themerex_enqueue_style('magnific-style', themerex_get_file_url('/js/magnific-popup/magnific-popup.css'), array(), null);
        themerex_enqueue_script('magnific', themerex_get_file_url('/js/magnific-popup/jquery.magnific-popup.min.js'), array('jquery'), null, true);
        // Load PrettyPhoto if it selected in Theme Options
        if (get_theme_option('popup_engine') == 'pretty') {
            themerex_enqueue_style('prettyphoto-style', themerex_get_file_url('/js/prettyphoto/css/prettyPhoto.css'), array(), null);
            themerex_enqueue_script('prettyphoto', themerex_get_file_url('/js/prettyphoto/jquery.prettyPhoto.min.js'), array('jquery'), 'no-compose', true);
        }
        // todo: sliders
        themerex_enqueue_style('swiperslider-style', themerex_get_file_url('/js/swiper/idangerous.swiper.css'), array(), null);
        themerex_enqueue_style('swiperslider-scrollbar-style', themerex_get_file_url('/js/swiper/idangerous.swiper.scrollbar.css'), array(), null);
        themerex_enqueue_script('swiperslider', themerex_get_file_url('/js/swiper/idangerous.swiper-2.7.js'), array('jquery'), null, true);
        themerex_enqueue_script('swiperslider-scrollbar', themerex_get_file_url('/js/swiper/idangerous.swiper.scrollbar-2.4.js'), array('jquery'), null, true);
        themerex_enqueue_script('flexslider', themerex_get_file_url('/js/jquery.flexslider.min.js'), array('jquery'), null, true);
        if (count($photos) > 0) {
            if ($engine == 'chop') {
                $effects2D = array("vertical", "horizontal", "half", "multi");
                $effects3D = array("3DBlocks", "3DFlips");
                $chop_effect = $effects2D[min(3, mt_rand(0, 3))] . '|' . $effects3D[min(1, mt_rand(0, 1))];
            }
            $id = "sc_slider_" . str_replace('.', '', mt_rand());
            $interval = mt_rand(5000, 10000);
            $gallery_text = '
				<div id="' . $id . '" class="sc_slider sc_slider_' . $engine . ($engine == 'swiper' ? ' swiper-slider-container' : '') . ' sc_slider_controls"' . (!empty($w) && themerex_strpos($w, '%') === false ? ' data-old-width="' . $w . '"' : '') . (!empty($h) && themerex_strpos($h, '%') === false ? ' data-old-height="' . $h . '"' : '') . ($engine == 'chop' ? ' data-effect="' . $chop_effect . '"' : '') . ' data-interval="' . $interval . '"' . '>
					<ul class="slides' . ($engine == 'swiper' ? ' swiper-wrapper' : '') . '"' . ($engine == 'swiper' ? ' style="height:' . $h . 'px;"' : '') . '>
					';
            $numSlide = 0;
            foreach ($photos as $photo) {
                $numSlide++;
                if ($gallery_items_in_bg) {
                    $photo_min = getResizedImageURL($photo, $w, $h);
                    $gallery_text .= '<li' . ' class="' . $engine . '-slide"' . ' style="background-image:url(' . $photo_min . ');' . (!empty($w) ? 'width:' . $w . (themerex_strpos($w, '%') !== false ? '' : 'px') . ';' : '') . (!empty($h) ? 'height:' . $h . (themerex_strpos($h, '%') !== false ? '' : 'px') . ';' : '') . '">' . ($zoom ? '<a href="' . $photo . '"></a>' : ($link ? '<a href="' . $link . '"></a>' : '')) . '</li>';
                } else {
                    $photo_min = getResizedImageTag($photo, $w, $h);
                    $gallery_text .= '<li' . ' class="' . $engine . '-slide' . ($engine == 'chop' && $numSlide == 1 ? ' cs-activeSlide' : '') . '"' . ' style="' . ($engine == 'chop' && $numSlide == 1 ? 'display:block;' : '') . (!empty($w) ? 'width:' . $w . (themerex_strpos($w, '%') !== false ? '' : 'px') . ';' : '') . (!empty($h) ? 'height:' . $h . (themerex_strpos($h, '%') !== false ? '' : 'px') . ';' : '') . '">' . ($zoom ? '<a href="' . $photo . '">' . $photo_min . '</a>' : (!empty($link) ? '<a href="' . $link . '">' . $photo_min . '</a>' : $photo_min)) . '</li>';
                }
            }
            $gallery_text .= '</ul>';
            if ($engine == 'swiper' || $engine == 'chop') {
                $gallery_text .= '
					<ul class="flex-direction-nav">
					<li><a class="flex-prev" href="#"></a></li>
					<li><a class="flex-next" href="#"></a></li>
					</ul>
				';
            }
            $gallery_text .= '</div>';
        }
        return $gallery_text;
    }
开发者ID:WestBayResidential,项目名称:wbrsorg,代码行数:56,代码来源:_wp_utils.php


示例7: frontend_scripts

 function frontend_scripts()
 {
     themerex_enqueue_style('custom-menu-style', themerex_get_file_url('/admin/tools/custom_menu/custom_menu.css'), array(), null);
     themerex_enqueue_script('custom-menu-script', themerex_get_file_url('/admin/tools/custom_menu/custom_menu.js'), array('jquery'), null, true);
 }
开发者ID:derwegas,项目名称:strubbelkinder,代码行数:5,代码来源:custom_menu.php


示例8: themerex_init_template

function themerex_init_template()
{
    // AJAX Queries settings
    global $THEMEREX_ajax_nonce, $THEMEREX_ajax_url;
    $THEMEREX_ajax_nonce = wp_create_nonce('ajax_nonce');
    $THEMEREX_ajax_url = admin_url('admin-ajax.php');
    // Set theme params from GET
    if (isset($_GET['set']) && $_GET['set'] == 1) {
        foreach ($_GET as $k => $v) {
            if (get_theme_option($k, null) !== null) {
                setcookie($k, $v, 0, '/');
                $_COOKIE[$k] = $v;
            }
        }
    }
    // Get custom options from current category / page / post / shop
    load_custom_options();
    // Reject old browsers support
    global $THEMEREX_jreject;
    $THEMEREX_jreject = false;
    if (!isset($_COOKIE['jreject'])) {
        themerex_enqueue_style('jquery_reject-style', themerex_get_file_url('/js/jreject/css/jquery.reject.css'), array(), null);
        themerex_enqueue_script('jquery_reject', themerex_get_file_url('/js/jreject/jquery.reject.js'), array('jquery'), null, true);
        setcookie('jreject', 1, 0, '/');
        $THEMEREX_jreject = true;
    }
    // Main menu
    global $THEMEREX_mainmenu;
    if (get_custom_option('show_top_panel') != 'hide') {
        $menu_slug = get_custom_option('menu_main');
        $args = array('menu' => empty($menu_slug) || $menu_slug == 'default' || is_inherit_option($menu_slug) ? '' : $menu_slug, 'container' => '', 'container_class' => '', 'container_id' => '', 'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>', 'menu_class' => '', 'menu_id' => 'mainmenu', 'echo' => false, 'fallback_cb' => '', 'before' => '', 'after' => '', 'link_before' => '', 'link_after' => '', 'depth' => 11, 'theme_location' => 'mainmenu');
        if (get_theme_option('custom_menu') == 'yes' && class_exists('themerex_walker')) {
            $args['walker'] = new themerex_walker();
        }
        $THEMEREX_mainmenu = wp_nav_menu($args);
    } else {
        $THEMEREX_mainmenu = '';
    }
    // User menu
    global $THEMEREX_usermenu;
    if (get_custom_option('show_top_panel') != 'hide' && get_custom_option('show_user_menu') == 'yes') {
        $menu_slug = get_custom_option('menu_user');
        $THEMEREX_usermenu = wp_nav_menu(array('menu' => empty($menu_slug) || $menu_slug == 'default' || is_inherit_option($menu_slug) ? '' : $menu_slug, 'container' => '', 'container_class' => '', 'container_id' => '', 'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>', 'menu_class' => '', 'menu_id' => 'usermenu', 'echo' => false, 'fallback_cb' => '', 'before' => '', 'after' => '', 'link_before' => '', 'link_after' => '', 'depth' => 11, 'theme_location' => 'usermenu'));
    } else {
        $THEMEREX_usermenu = '';
    }
    // Side menu
    global $THEMEREX_sidemenu;
    if (get_custom_option('show_left_panel') == 'yes') {
        $menu_slug = get_custom_option('menu_side');
        $THEMEREX_sidemenu = wp_nav_menu(array('menu' => empty($menu_slug) || $menu_slug == 'default' || is_inherit_option($menu_slug) ? '' : $menu_slug, 'container' => '', 'container_class' => '', 'container_id' => '', 'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>', 'menu_class' => '', 'menu_id' => 'sidemenu', 'echo' => false, 'fallback_cb' => '', 'before' => '', 'after' => '', 'link_before' => '', 'link_after' => '', 'depth' => 11, 'theme_location' => 'sidemenu'));
    } else {
        $THEMEREX_sidemenu = '';
    }
    // Panel menu
    global $THEMEREX_panelmenu;
    if (get_custom_option('show_right_panel') == 'yes') {
        $menu_slug = get_custom_option('menu_right');
        $THEMEREX_panelmenu = wp_nav_menu(array('menu' => empty($menu_slug) || $menu_slug == 'default' || is_inherit_option($menu_slug) ? '' : $menu_slug, 'container' => '', 'container_class' => '', 'container_id' => '', 'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>', 'menu_class' => '', 'menu_id' => 'panelmenu', 'echo' => false, 'fallback_cb' => '', 'before' => '', 'after' => '', 'link_before' => '', 'link_after' => '', 'depth' => 11, 'theme_location' => 'panelmenu'));
    } else {
        $THEMEREX_panelmenu = '';
    }
    // Include current skin
    $skin = themerex_escape_shell_cmd(get_custom_option('theme_skin'));
    if (file_exists(themerex_get_file_dir('/skins/' . $skin . '/' . $skin . '.php'))) {
        require_once themerex_get_file_dir('/skins/' . $skin . '/' . $skin . '.php');
    }
    // Logo image and icon from skin
    global $logo_text, $logo_slogan, $logo_icon, $logo_image, $logo_side, $logo_fixed, $logo_footer;
    $logo_text = get_custom_option('logo_text');
    $logo_slogan = get_custom_option('logo_slogan');
    $menu_align = get_custom_option('menu_align');
    if ($logo_slogan == '') {
        $logo_slogan = get_bloginfo('description');
    }
    $logo_icon = $logo_image = $logo_side = $logo_fixed = $logo_footer = '';
    if (($logo_icon = get_custom_option('logo_icon')) == '' && file_exists(themerex_get_file_dir('/skins/' . $skin . '/images/logo-icon.png'))) {
        $logo_icon = themerex_get_file_url('/skins/' . $skin . '/images/logo-icon.png');
    }
    if ($menu_align == 'left' || $menu_align == 'center') {
        if (($logo_image = get_custom_option('logo_top')) == '' && file_exists(themerex_get_file_dir('/skins/' . $skin . '/images/logo-top.png'))) {
            $logo_image = themerex_get_file_url('/skins/' . $skin . '/images/logo-top.png');
        }
    }
    if ($logo_image == '' && ($logo_image = get_custom_option('logo_image')) == '' && file_exists(themerex_get_file_dir('/skins/' . $skin . '/images/logo.png'))) {
        $logo_image = themerex_get_file_url('/skins/' . $skin . '/images/logo.png');
    }
    if (($logo_side = get_custom_option('logo_side')) == '' && file_exists(themerex_get_file_dir('/skins/' . $skin . '/images/logo-side.png'))) {
        $logo_side = themerex_get_file_url('/skins/' . $skin . '/images/logo-side.png');
    }
    if ($logo_side == '') {
        $logo_side = $logo_image;
    }
    if (($logo_fixed = get_custom_option('logo_fixed')) == '' && file_exists(themerex_get_file_dir('/skins/' . $skin . '/images/logo-fixed.png'))) {
        $logo_fixed = themerex_get_file_url('/skins/' . $skin . '/images/logo-fixed.png');
    }
    if ($logo_fixed == '') {
        $logo_fixed = $logo_image;
    }
    if (($logo_footer = get_custom_option('logo_image_footer')) == '' && file_exists(themerex_get_file_dir('/skins/' . $skin . '/images/logo-footer.png'))) {
//.........这里部分代码省略.........
开发者ID:amankatoch,项目名称:wp-plugin,代码行数:101,代码来源:functions.php


示例9: sc_banner

function sc_banner($atts, $content = null)
{
    if (in_shortcode_blogger()) {
        return '';
    }
    extract(shortcode_atts(array("id" => "", "src" => "", "url" => "", "title" => "", "link" => "", "target" => "", "rel" => "", "popup" => "no", "align" => "", "top" => "", "bottom" => "", "left" => "", "right" => "", "width" => "", "height" => ""), $atts));
    /*scripts & styles*/
    themerex_enqueue_style('magnific-style', get_template_directory_uri() . '/js/magnific-popup/magnific-popup.css', array(), null);
    themerex_enqueue_script('magnific', get_template_directory_uri() . '/js/magnific-popup/jquery.magnific-popup.min.js', array('jquery'), null, true);
    $ed = themerex_substr($width, -1) == '%' ? '%' : 'px';
    $width = (int) str_replace('%', '', $width);
    $image = $src != '' ? $src : $url;
    $url = getAttachmentID($url);
    $image = getAttachmentID($image);
    $src = getAttachmentID($src);
    //image crop
    $no_crop = getThumbSizes(array('thumb_size' => 'image_large', 'thumb_crop' => true, 'sidebar' => false));
    $crop = array("w" => $width != '' && $ed != '%' ? $width : $no_crop['w'], "h" => $height != '' && $ed != '%' ? $height : null);
    $image = getResizedImageURL($image, $crop['w'], $crop['h']);
    $s = ($top > 0 ? 'margin-top:' . $top . 'px;' : '') . ($bottom > 0 ? 'margin-bottom:' . $bottom . 'px;' : '') . ($left > 0 ? 'margin-left:' . $left . 'px;' : '') . ($right > 0 ? 'margin-right:' . $right . 'px;' : '') . ($width > 0 ? 'width:' . $width . $ed . ';' : '') . ($height > 0 ? 'height:' . $height . 'px;' : '');
    $c = (sc_param_is_on($popup) ? ' user-popup-link' : '') . ($align && $align != 'none' ? ' sc_float_' . $align : '');
    $content = do_shortcode($content);
    return '<a' . ($id ? ' id="sc_banner_' . $id . '"' : '') . ' href="' . ($popup == 'yes' ? '#sc_popup_' . $link : $link) . '" class="sc_banner ' . $c . '"' . (!empty($target) ? ' target="' . $target . '"' : '') . (!empty($rel) ? ' rel="' . $rel . '"' : '') . ($s != '' ? ' style="' . $s . '"' : '') . '>' . '<img src="' . $image . '" class="sc_banner_image" border="0" alt="" />' . (trim($title) ? '<span class="sc_banner_title">' . $title . '</span>' : '') . (trim($content) ? '<span class="sc_banner_content">' . $content . '</span>' : '') . '</a>';
}
开发者ID:riaface,项目名称:GrowBeyond,代码行数:24,代码来源:shortcodes.php


示例10: get_custom_option

<?php

if (get_theme_option('show_theme_customizer') == 'yes') {
    $basic_color = get_custom_option('theme_color');
    $accent_color = get_custom_option('theme_accent_color');
    $background_color = get_custom_option('bg_color');
    $color_cheme = get_custom_option('color_scheme_theme');
    $reviews_max_level = max(5, (int) get_custom_option('reviews_max_level'));
    $body_style = get_custom_option('body_style');
    $bg_pattern = get_custom_option('bg_pattern');
    $bg_image = get_custom_option('bg_image');
    $logo_position = get_custom_option('logo_position');
    $menu_style = get_custom_option('menu_style');
    $custom_style = $color_cheme == 'themeDark' ? 'co_dark' : 'co_light';
    /*scripts & styles*/
    themerex_enqueue_style('swiperslider-style', get_template_directory_uri() . '/js/swiper/idangerous.swiper.css', array(), null);
    themerex_enqueue_script('swiperslider', get_template_directory_uri() . '/js/swiper/idangerous.swiper-2.1.js', array('jquery'), null, true);
    themerex_enqueue_style('swiperslider-scrollbar-style', get_template_directory_uri() . '/js/swiper/idangerous.swiper.scrollbar.css', array(), null);
    themerex_enqueue_script('swiperslider-scrollbar', get_template_directory_uri() . '/js/swiper/idangerous.swiper.scrollbar-2.1.js', array('jquery'), null, true);
}
开发者ID:riaface,项目名称:GrowBeyond,代码行数:20,代码来源:page-part-customizer.php


示例11: form

    /**
     * Displays the widget settings controls on the widget panel.
     * Make use of the get_field_id() and get_field_name() function
     * when creating your form elements. This handles the confusing stuff.
     */
    function form($instance)
    {
        /* Widget admin side css */
        themerex_enqueue_style('widget-qrcode-style', get_template_directory_uri() . '/widgets/qrcode/widget-qrcode-admin.css', array(), null);
        themerex_enqueue_script('qrcode', get_template_directory_uri() . '/widgets/qrcode/jquery.qrcode-0.6.0.min.js', array('jquery', 'jquery-ui-core', 'jquery-ui-tabs'), null, false);
        /* Set up some default widget settings. */
        $address = explode(',', get_theme_option('user_address'));
        $defaults = array('title' => '', 'description' => __('QR Code Generator (for your vcard)', 'themerex'), 'ulname' => '', 'ufname' => '', 'ucompany' => '', 'uaddr' => '', 'ucity' => '', 'upostcode' => '', 'ucountry' => '', 'uemail' => '', 'usite' => '', 'uphone' => '', 'uid' => md5(microtime()), 'urev' => date('Y-m-d'), 'image' => '', 'show_personal' => 0, 'show_what' => 1, 'auto_draw' => 0, 'width' => 160, 'text' => '', 'color' => '#000000', 'bg' => '');
        $instance = wp_parse_args((array) $instance, $defaults);
        ?>

		<div class="widget_qrcode">
        	<div class="qrcode_tabs">
                <ul class="tabs">
                    <li class="first"><a href="#tab_settings"><?php 
        _e('Settings', 'themerex');
        ?>
</a></li>
                    <li><a href="#tab_fields" onmousedown="initQRCode()"><?php 
        _e('Personal Data', 'themerex');
        ?>
</a></li>
                    <li><a href="#tab_text" onmousedown="initQRCode()"><?php 
        _e('Any Text', 'themerex');
        ?>
</a></li>
                </ul>
                <div id="tab_settings" class="tab_content tab_settings">
                    <p>
                        <label for="<?php 
        echo esc_attr($this->get_field_id('title'));
        ?>
"><?php 
        _e('Title:', 'themerex');
        ?>
</label>
                        <input class="fld_title" onfocus="initQRCode()" id="<?php 
        echo esc_attr($this->get_field_id('title'));
        ?>
" name="<?php 
        echo esc_attr($this->get_field_name('title'));
        ?>
" value="<?php 
        echo esc_attr($instance['title']);
        ?>
" style="width:100%;" />
                    </p>
                    <p>
                        <label><?php 
        _e('Show as QR Code:', 'themerex');
        ?>
</label><br />
                        <input class="fld_show_what" onfocus="initQRCode()" id="<?php 
        echo esc_attr($this->get_field_id('show_what'));
        ?>
_1" name="<?php 
        echo esc_attr($this->get_field_name('show_what'));
        ?>
" value="1" type="radio" <?php 
        echo esc_attr($instance['show_what'] == 1 ? 'checked="checked"' : '');
        ?>
 />
                        <label for="<?php 
        echo esc_attr($this->get_field_id('show_what'));
        ?>
_1"> <?php 
        _e('Personal VCard', 'themerex');
        ?>
</label>
                        <input class="fld_show_what" onfocus="initQRCode()" id="<?php 
        echo esc_attr($this->get_field_id('show_what'));
        ?>
_0" name="<?php 
        echo esc_attr($this->get_field_name('show_what'));
        ?>
" value="0" type="radio" <?php 
        echo esc_attr($instance['show_what'] == 0 ? 'checked="checked"' : '');
        ?>
 />
                        <label for="<?php 
        echo esc_attr($this->get_field_id('show_what'));
        ?>
_0"> <?php 
        _e('Any text', 'themerex');
        ?>
</label>
                    </p>
                    <p>
                        <input class="fld_show_personal" onfocus="initQRCode()" id="<?php 
        echo esc_attr($this->get_field_id('show_personal'));
        ?>
" name="<?php 
        echo esc_attr($this->get_field_name('show_personal'));
        ?>
" value="1" type="checkbox" <?php 
//.........这里部分代码省略.........
开发者ID:riaface,项目名称:GrowBeyond,代码行数:101,代码来源:widget-qrcode.php


示例12: do_shortcode

        ?>
 slider_engine_<?php 
        echo $slider;
        ?>
 slider_alias_<?php 
        echo $slider_alias;
        ?>
">
			<?php 
        if ($slider == 'revo') {
            //putRevSlider($slider_alias);
            echo do_shortcode('[rev_slider ' . $slider_alias . ']');
        } else {
            if ($slider == 'royal') {
                //register_new_royalslider_files($slider_alias);
                themerex_enqueue_style('new-royalslider-core-css', NEW_ROYALSLIDER_PLUGIN_URL . 'lib/royalslider/royalslider.css', array(), null);
                themerex_enqueue_script('new-royalslider-main-js', NEW_ROYALSLIDER_PLUGIN_URL . 'lib/royalslider/jquery.royalslider.min.js', array('jquery'), NEW_ROYALSLIDER_WP_VERSION, true);
                echo get_new_royalslider($slider_alias);
            } else {
                if ($slider == 'flex' || $slider == 'chop' || $slider == 'swiper') {
                    if ($slider_count > 0 || !empty($slider_ids)) {
                        echo do_shortcode('[trx_slider engine="' . $slider . '" controls="0" crop="off" height="' . max(100, get_custom_option('slider_height')) . '"' . ($slider_interval ? ' interval="' . $slider_interval . '"' : '') . ($slider_alias ? ' cat="' . $slider_alias . '"' : '') . ($slider_ids ? ' ids="' . $slider_ids . '"' : '') . ($slider_count ? ' count="' . $slider_count . '"' : '') . ($slider_orderby ? ' orderby="' . $slider_orderby . '"' : '') . ($slider_order ? ' order="' . $slider_order . '"' : '') . ($slider_pagination ? ' pagination="' . $slider_pagination . '"' : '') . ' titles="' . ($slider_info_box == 'yes' ? $slider_info_fixed == 'yes' ? 'fixed' : 'slide' : 'no') . '"' . ']');
                    }
                }
            }
        }
        ?>
		</div>
		<?php 
    }
}
开发者ID:derwegas,项目名称:strubbelkinder,代码行数:31,代码来源:page-part-slider.php


示例13: 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', '/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_options_load_scripts();
    if (array_key_exists('post_type', $post_data)) {
        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));
    ?>
开发者ID:riaface,项目名称:GrowBeyond,代码行数:31,代码来源:page-part-editor-area.php


示例14: sc_video

function sc_video($atts, $content = null)
{
    if (in_shortcode_blogger()) {
        return '';
    }
    extract(shortcode_atts(array("id" => "", "class" => "", "url" => '', "src" => '', "image" => '', "title" => 'off', "ratio" => '16:9', "autoplay" => 'off', "width" => '100%', "height" => '430', "top" => "", "bottom" => "", "left" => "", "right" => ""), $atts));
    if ($src == '' && $url == '' && isset($atts[0])) {
        $src = $atts[0];
    }
    $ed = themerex_substr($width, -1);
    $class .= getStyleMargin($top, $right, $bottom, $left);
    $s = getStyleString($top, $right, $bottom, $left, $width, $height != '' ? $height + (sc_param_is_on($title) ? 21 : 0) : '');
    $url = $src != '' ? $src : $url;
    if ($image != '' && sc_param_is_off($image)) {
        $image = '';
    } else {
        if (sc_param_is_on($autoplay) && is_single()) {
            $image = '';
        } else {
            if ($image > 0) {
                $attach = wp_get_attachment_image_src($image, 'full');
                if (isset($attach[0]) && $attach[0] != '') {
                    $image = $attach[0];
                }
            }
            $image = getResizedImageURL(empty($image) ? get_the_ID() : $image, $ed != '%' ? $width : null, $height);
            if (empty($image)) {
                $image = getVideoCoverImage($url);
            }
        }
    }
    $url = getVideoPlayerURL($src != '' ? $src : $url);
    $ratio = empty($ratio) ? "16:9" : str_replace(array('/', '\\', '-'), ':', $ratio);
    $video = '<video' . ($id ? ' id="' . $id . '"' : '') . ' class="sc_video' . (!empty($class) ? ' ' . $class : '') . '"' . ' src="' . $url . '"' . ' width="' . $width . '" height="' . $height . '"' . ' data-width="' . $width . '" data-height="' . $height . '"' . ' data-ratio="' . esc_attr($ratio) . '"' . ($image ? ' data-image="' . esc_attr($image) . '"' : '') . ' data-title="' . $title . '"' . ($s != '' ? ' style="' . $s . '"' : '') . ($image && get_theme_option('substitute_video') == 'yes' || sc_param_is_on($autoplay) && is_single() ? ' autoplay="autoplay"' : '') . ' controls="controls"' . '>' . '</video>';
    if (get_custom_option('substitute_video') == 'no') {
        $video = getVideoFrame($video, $image, sc_param_is_on($title), $s);
    }
    // todo: Media elements library
    if (get_theme_option('use_mediaelement') == 'yes') {
        if (floatval(get_bloginfo('version')) < "3.6") {
            themerex_enqueue_style('mediaplayer-style', themerex_get_file_url('/js/mediaplayer/mediaplayer.css'), array(), null);
            themerex_enqueue_script('mediaplayer', themerex_get_file_url('/js/mediaplayer/mediaelement.min.js'), array(), null, true);
        } else {
            wp_enqueue_style('mediaelement');
            wp_enqueue_style('wp-mediaelement');
            wp_enqueue_script('mediaelement');
            wp_enqueue_script('wp-mediaelement');
        }
    } else {
        global $wp_scripts, $wp_styles;
        $wp_scripts->done[] = 'mediaelement';
        $wp_scripts->done[] = 'wp-mediaelement';
        $wp_styles->done[] = 'mediaelement';
        $wp_styles->done[] = 'wp-mediaelement';
    }
    return $video;
}
开发者ID:WestBayResidential,项目名称:wbrsorg,代码行数:57,代码来源:shortcodes.php


示例15: get_custom_option

 $slider = get_custom_option('slider_engine');
 themerex_enqueue_style('main-slider-style', get_template_directory_uri() . '/css/slider-style.css', array(), null);
 $slider_shortcode = '';
 if ($slider == 'revo' && revslider_exists()) {
     $slider_alias = get_custom_option('slider_alias');
     if (!empty($slider_alias)) {
         $slider_shortcode = do_shortcode('[rev_slider ' . $slider_alias . ']');
         //putRevSlider($slider_alias);
     }
 }
 if ($slider == 'royal' && royalslider_exists()) {
     $slider_alias = get_custom_option('slider_alias');
     if (!empty($slider_alias)) {
         //register_new_royalslider_files($slider_alias);
         themerex_enqueue_style('new-royalslider-core-css', NEW_ROYALSLIDER_PLUGIN_URL . 'lib/royalslider/royalslider.css', array(), null);
         themerex_enqueue_style('new-royalslider-main-js', NEW_ROYALSLIDER_PLUGIN_URL . 'lib/royalslider/jquery.royalslider.min.js', array('jquery'), NEW_ROYALSLIDER_WP_VERSION, true);
         $slider_shortcode = get_new_royalslider($slider_alias);
     }
 } else {
     if ($slider == 'swiper') {
         $slider_cat = get_custom_option("slider_category");
         $slider_orderby = get_custom_option("slider_orderby");
         $slider_order = get_custom_option("slider_order");
         $slider_count = $slider_ids = get_custom_option("slider_posts");
         $slider_theme = get_custom_option("slider_nav_theme");
         $slider_height = get_custom_option("slider_height");
         $slider_reviews_style = get_custom_option("slider_reviews_style");
         $slider_controls = get_custom_option('slider_controls');
         $slider_pagination = get_custom_option('slider_pagination');
         if (themerex_strpos($slider_ids, ',') !== false) {
             $slider_count = 0;
开发者ID:riaface,项目名称:GrowBeyond,代码行数:31,代码来源:page-part-slider.php


示例16: themerex_enqueue_script

<div class="swpRightPos">

	<a href="#" class="swpRightPosButton"><span class="icon-cog animate-spin"></span></a>

	<?php 
// raggable
themerex_enqueue_script('jquery-ui-draggable', false, array('jquery', 'jquery-ui-core'), null, true);
themerex_enqueue_script('jquery-ui-sortable', false, array('jquery', 'jquery-ui-core'), null, true);
// customizer
if (get_custom_option('show_theme_customizer') == 'yes') {
    themerex_enqueue_script('_customizer', themerex_get_file_url('/js/_customizer.js'), array(), null, true);
}
// scrollbar
themerex_enqueue_style('swiperslider-style', themerex_get_file_url('/js/swiper/idangerous.swiper.css'), array(), null);
themerex_enqueue_style('swiperslider-scrollbar-style', themerex_get_file_url('/js/swiper/idangerous.swiper.scrollbar.css'), array(), null);
themerex_enqueue_script('swiperslider', themerex_get_file_url('/js/swiper/idangerous.swiper-2.7.js'), array('jquery'), null, true);
themerex_enqueue_script('swiperslider-scrollbar', themerex_get_file_url('/js/swiper/idangerous.swiper.scrollbar-2.4.js'), array('jquery'), null, true);
global $THEMEREX_panelmenu;
$tab = (int) get_custom_option('right_panel_tab');
$shift = 0;
if (get_theme_option('show_theme_customizer') != 'yes' && $tab > 0) {
    $shift++;
}
if (!$THEMEREX_panelmenu && $tab > 2) {
    $shift++;
}
$tab = max(0, $tab - $shift);
?>
	<div class="sc_tabs" data-active="<?php 
echo esc_attr($tab);
?>
开发者ID:WestBayResidential,项目名称:wbrsorg,代码行数:31,代码来源:page-part-customizer.php


示例17: array

    }
    // Uncomment this section if you want filter related posts on post formats
    if ($post_data['post_format'] != '' && $post_data['post_format'] != 'standard') {
        $args['tax_query'] = array(array('taxonomy' => 'post_format', 'field' => 'slug', 'terms' => 'post-format-' . $post_data['post_format']));
    }
    $args = addSortOrderInQuery($args, get_custom_option('post_related_sort'), get_custom_option('post_related_order'));
    $recent_posts = wp_get_recent_posts($args, OBJECT);
    if (is_array($recent_posts) && count($recent_posts) > 0) {
        if (get_custom_option("post_related_style") == 'yes') {
            // todo: magnific & pretty
            // magnific & pretty
            themerex_enqueue_style('magnific-style', themerex_get_file_url('/js/magnific-popup/magnific-popup.css'), array(), null);
            themerex_enqueue_script('magnific', themerex_get_file_url('/js/magnific-popup/jquery.magnific-popup.min.js'), array('jquery'), null, true);
            // Load PrettyPhoto if it selected in Theme Options
            if (get_theme_option('popup_engine') == 'pretty') {
                themerex_enqueue_style('prettyphoto-style', themerex_get_file_url('/js/prettyphoto/css/prettyPhoto.css'), array(), null);
                themerex_enqueue_script('prettyphoto', themerex_get_file_url('/js/prettyphoto/jquery.prettyPhoto.min.js'), array('jquery'), 'no-compose', true);
            }
        }
        ?>
		<section class="relatedWrap<?php 
        echo get_custom_option("show_post_comments") == 'yes' ? ' hrShadow' : '';
        ?>
">
			<h3><?php 
        _e('Recomended Posts', 'themerex');
        ?>
</h3>
			<div class="relatedPostWrap">
				<div class="columnsWrap <?php 
        echo get_custom_option("post_related_style") == 'no' ? ' no_indent_style columnsFloat' : ' indent_style';
开发者ID:WestBayResidential,项目名称:wbrsorg,代码行数:31,代码来源:page-part-related-posts.php


示例18: themerex_admin_setup

 function themerex_admin_setup()
 {
     themerex_enqueue_script('jquery', false, array(), null, true);
     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-cookie', get_template_directory_uri() . '/js/jquery.cookie.js', array('jquery'), null, true);
     themerex_enqueue 

鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP themerex_get_file_dir函数代码示例发布时间:2022-05-23
下一篇:
PHP themerex_enqueue_script函数代码示例发布时间: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