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

PHP icl_get_languages函数代码示例

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

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



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

示例1: merge_comment_count

function merge_comment_count($count, $post_ID)
{
    // get all the languages for which this post exists
    $languages = icl_get_languages('skip_missing=1');
    $post = get_post($post_ID);
    $type = $post->post_type;
    foreach ($languages as $l) {
        // in $count is already the count from the current language
        if (!$l['active']) {
            $otherID = icl_object_id($post_ID, $type, false, $l['language_code']);
            if ($otherID) {
                // cannot use call_user_func due to php regressions
                if ($type == 'page') {
                    $otherpost = get_page($otherID);
                } else {
                    $otherpost = get_post($otherID);
                }
                if ($otherpost) {
                    // increment comment count using translation post comment count.
                    $count = $count + $otherpost->comment_count;
                }
            }
        }
    }
    return $count;
}
开发者ID:svenauhagen,项目名称:wpml-comments-merging,代码行数:26,代码来源:wpml-comments-merging.php


示例2: stormbringer_languages_switcher

function stormbringer_languages_switcher(){
    $languages = icl_get_languages('skip_missing=0&orderby=code');
    $inactives='';
    $actives='';
    if(!empty($languages)){
        echo '<div id="langswitcher"><div class="btn-group">';
        foreach($languages as $l) :
          if($l['active'])
            $actives='
              <button data-toggle="dropdown" class="btn dropdown-toggle">
              '.$l['language_code'].' <span class="caret"></span>
              </button>
              <ul class="dropdown-menu">
            ';
          else
            $inactives.= '
              <li>
                <a href="'.$l['url'].'" data-lang="'.$l['language_code'].'">'.$l['language_code'].'</a>
              </li>
            ';
        endforeach;
            
        echo $actives.$inactives;
        echo '</ul></div></div>';
    }
}
开发者ID:nicomollet,项目名称:stormbringer,代码行数:26,代码来源:wpml.php


示例3: st_update_default_settings

/**
 * Update to default settings
 */
function st_update_default_settings($check = false)
{
    $option_name = '_' . ST_NAME . '_is_import_default';
    if ($check === true) {
        if (get_option($option_name) == 'y') {
            return false;
        }
    }
    // default setting options
    $default = 'a:74:{s:6:"layout";s:1:"2";s:9:"site_logo";s:85:"http://demo.smooththemes.com/exposed/wp-content/themes/Exposed/assets/images/logo.png";s:12:"site_favicon";s:0:"";s:9:"body_font";a:8:{s:9:"font-size";s:2:"14";s:14:"font-size-unit";s:2:"px";s:11:"line-height";s:2:"24";s:16:"line-height-unit";s:2:"px";s:5:"color";s:0:"";s:11:"font-family";s:145:"http://fonts.googleapis.com/css?family=Lato:100%2C100italic%2C300%2C300italic%2Cregular%2Citalic%2C700%2C700italic%2C900%2C900italic&subset=latin";s:10:"font-style";s:6:"normal";s:11:"font-weight";s:6:"normal";}s:13:"headings_font";a:1:{s:11:"font-family";s:145:"http://fonts.googleapis.com/css?family=Lato:100%2C100italic%2C300%2C300italic%2Cregular%2Citalic%2C700%2C700italic%2C900%2C900italic&subset=latin";}s:9:"heading_1";a:2:{s:9:"font-size";s:2:"32";s:14:"font-size-unit";s:2:"px";}s:9:"heading_2";a:2:{s:9:"font-size";s:2:"30";s:14:"font-size-unit";s:2:"px";}s:9:"heading_3";a:2:{s:9:"font-size";s:2:"18";s:14:"font-size-unit";s:2:"px";}s:9:"heading_4";a:2:{s:9:"font-size";s:2:"18";s:14:"font-size-unit";s:2:"px";}s:9:"heading_5";a:2:{s:9:"font-size";s:2:"16";s:14:"font-size-unit";s:2:"px";}s:9:"heading_6";a:2:{s:9:"font-size";s:2:"14";s:14:"font-size-unit";s:2:"px";}s:17:"select_theme_skin";s:4:"dark";s:25:"enable_custom_global_skin";s:1:"n";s:18:"custom_global_skin";s:6:"fff200";s:12:"container_bg";s:0:"";s:20:"container_bg_opacity";s:0:"";s:12:"border_color";s:6:"343434";s:26:"gallery_item_hover_opacity";s:3:"0.6";s:7:"bg_type";s:7:"default";s:10:"defined_bg";s:12:"pattern3.png";s:16:"defined_bg_color";s:6:"c71c77";s:8:"bg_color";s:0:"";s:6:"bg_img";s:0:"";s:10:"bg_positon";s:2:"cc";s:10:"bg_repreat";s:1:"y";s:8:"bg_fixed";s:1:"y";s:21:"disable_header_custom";s:1:"y";s:17:"header_link_color";s:6:"ffffff";s:23:"header_link_hover_color";s:6:"ffffff";s:15:"header_bg_color";s:6:"000000";s:13:"header_bg_img";s:0:"";s:17:"header_bg_positon";s:0:"";s:17:"header_bg_repreat";s:0:"";s:15:"header_bg_fixed";s:0:"";s:13:"blog_toptitle";s:8:"The Blog";s:19:"s_show_featured_img";s:1:"y";s:16:"s_show_post_meta";s:1:"y";s:15:"s_show_post_tag";s:1:"y";s:18:"enable_author_desc";s:1:"y";s:15:"s_show_comments";s:1:"y";s:8:"facebook";s:2:"#f";s:7:"twitter";s:2:"#t";s:11:"google_plus";s:0:"";s:4:"digg";s:0:"";s:9:"pinterest";s:0:"";s:6:"flickr";s:7:"#flickr";s:16:"footer_copyright";s:115:"&copy; 2012. All Rights Reserved. Created with love by <a href=\\"http://www.smooththemes.com\\">SmoothThemes.Com</a>";s:14:"flex_animation";s:4:"fade";s:17:"flex_directionNav";s:1:"y";s:18:"flex_animationLoop";s:1:"y";s:14:"flex_slideshow";s:1:"y";s:19:"flex_slideshowSpeed";s:4:"7000";s:19:"flex_animationSpeed";s:3:"600";s:18:"flex_pauseOnAction";s:4:"true";s:17:"flex_pauseOnHover";s:1:"y";s:15:"flex_controlNav";s:1:"y";s:14:"flex_randomize";s:1:"n";s:20:"fixed_slideshowSpeed";s:4:"7000";s:20:"fixed_animationSpeed";s:3:"600";s:12:"fsc_autoplay";s:1:"y";s:13:"fsc_slideshow";s:1:"y";s:12:"fsc_interval";s:4:"6000";s:20:"fsc_transition_speed";s:3:"800";s:11:"gif_horizon";s:3:"0.6";s:8:"gif_size";s:3:"0.2";s:10:"gif_border";s:1:"0";s:21:"gkb_frames_per_second";s:2:"60";s:16:"gkb_display_time";s:4:"5000";s:13:"gkb_fade_time";s:4:"1000";s:8:"gkb_zoom";s:3:"1.2";s:18:"gflip_directionnav";s:1:"y";s:15:"gflip_thumbnail";s:1:"y";s:21:"headder_tracking_code";s:0:"";s:20:"footer_tracking_code";s:0:"";}';
    $translate = 'YTo1OTp7czo2OToiVGhpcyBwb3N0IGlzIHBhc3N3b3JkIHByb3RlY3RlZC4gRW50ZXIgdGhlIHBhc3N3b3JkIHRvIHZpZXcgY29tbWVudHMuIjtzOjA6IiI7czoxMjoiTm8gUmVzcG9uc2VzIjtzOjA6IiI7czoxMjoiT25lIFJlc3BvbnNlIjtzOjA6IiI7czoxMToiJSBSZXNwb25zZXMiO3M6MDoiIjtzOjE0OiJPbGRlciBDb21tZW50cyI7czowOiIiO3M6MTQ6Ik5ld2VyIENvbW1lbnRzIjtzOjA6IiI7czoyOiJ0byI7czowOiIiO3M6MjA6IkNvbW1lbnRzIGFyZSBjbG9zZWQuIjtzOjA6IiI7czoxOToiTGVhdmUgYSBSZXBseSB0byAlcyI7czowOiIiO3M6MTE6IllvdSBtdXN0IGJlIjtzOjA6IiI7czoxODoidG8gcG9zdCBhIGNvbW1lbnQuIjtzOjA6IiI7czoyOToiUmVxdWlyZWQgZmllbGRzIGFyZSBtYXJrZWQgJXMiO3M6MDoiIjtzOjEzOiJMZWF2ZSBhIFJlcGx5IjtzOjA6IiI7czoxMjoiQ2FuY2VsIFJlcGx5IjtzOjA6IiI7czoxMjoiUG9zdCBDb21tZW50IjtzOjA6IiI7czo3OiJDb21tZW50IjtzOjA6IiI7czo1NzoiWW91IG11c3QgYmUgPGEgaHJlZj0iJXMiPmxvZ2dlZCBpbjwvYT4gdG8gcG9zdCBhIGNvbW1lbnQuIjtzOjA6IiI7czo0MToiWW91ciBlbWFpbCBhZGRyZXNzIHdpbGwgbm90IGJlIHB1Ymxpc2hlZC4iO3M6MDoiIjtzOjQ6Ik5hbWUiO3M6MDoiIjtzOjU6IkVtYWlsIjtzOjA6IiI7czo3OiJXZWJzaXRlIjtzOjA6IiI7czoyMToidHlwZSBhbmQgaGl0IGVudGVyLi4uIjtzOjA6IiI7czo2OiJTZWFyY2giO3M6MDoiIjtzOjc6IlBhZ2UgJXMiO3M6MDoiIjtzOjE1OiJQZXJtYWxpbmsgdG8gJXMiO3M6MDoiIjtzOjM6IkFsbCI7czowOiIiO3M6OToiTG9hZGluZy4uIjtzOjA6IiI7czo5OiJMb2FkIG1vcmUiO3M6MDoiIjtzOjg6IkRhdGU6ICVzIjtzOjA6IiI7czo4OiJUYWdzOiAlcyI7czowOiIiO3M6MzoiLi4uIjtzOjA6IiI7aTo0MDQ7czowOiIiO3M6MTU6IkdvIHRvIEhvbWUgcGFnZSI7czowOiIiO3M6MTk6Im9yIHNlYXJjaCB0aGlzIHNpdGUiO3M6MDoiIjtzOjE5OiJBdXRob3IgQXJjaGl2ZXM6ICVzIjtzOjA6IiI7czoxMToiU2VhY2ggZm9yIDoiO3M6MDoiIjtzOjE4OiJEYWlseSBBcmNoaXZlczogJXMiO3M6MDoiIjtzOjIwOiJNb250aGx5IEFyY2hpdmVzOiAlcyI7czowOiIiO3M6MzoiRiBZIjtzOjA6IiI7czoxOToiWWVhcmx5IEFyY2hpdmVzOiAlcyI7czowOiIiO3M6MToiWSI7czowOiIiO3M6MTM6IkJsb2cgQXJjaGl2ZXMiO3M6MDoiIjtzOjIxOiJPb3BzLCBQYWdlIG5vdCBmb3VuZC4iO3M6MDoiIjtzOjY6IlBhZ2VzOiI7czowOiIiO3M6OToiTmV4dCBwYWdlIjtzOjA6IiI7czoxMzoiUHJldmlvdXMgcGFnZSI7czowOiIiO3M6NToiVGFnczoiO3M6MDoiIjtzOjk6IjAgQ29tbWVudCI7czowOiIiO3M6OToiMSBDb21tZW50IjtzOjA6IiI7czoxMDoiJSBDb21tZW50cyI7czowOiIiO3M6NToiU2hhcmUiO3M6MDoiIjtzOjE4OiJBdXRob3IgRGVzY3JpcHRpb24iO3M6MDoiIjtzOjk6IllvdXIgTmFtZSI7czowOiIiO3M6ODoicmVxdWlyZWQiO3M6MDoiIjtzOjE5OiJZb3VyIEUtTWFpbCBBZGRyZXNzIjtzOjA6IiI7czo3OiJTdWJqZWN0IjtzOjA6IiI7czo4OiJNZXNzYWdlOiI7czowOiIiO3M6MTA6IlN1Ym1pdCBOb3ciO3M6MDoiIjtzOjEzOiJSZWFkIG1vcmUg4oaSIjtzOjA6IiI7fQ==';
    $default = str_replace("'", "\\'", $default);
    $default = maybe_unserialize($default);
    $default['site_logo'] = st_img('logo.png');
    update_option(ST_SETTINGS_OPTION, $default);
    if (st_is_wpml()) {
        $langs = icl_get_languages('skip_missing=0&orderby=KEY&order=asc');
        foreach ($langs as $l) {
            update_option(ST_SETTINGS_OPTION . '_' . $l['language_code'], $default);
        }
    }
    // update translate options
    $translate = str_replace("'", "\\'", base64_decode($translate));
    $translate = maybe_unserialize($translate);
    update_option(ST_TRANSLATE_OPTION, $translate);
    update_option($option_name, 'y');
}
开发者ID:FameThemes,项目名称:exposed,代码行数:30,代码来源:st-active-theme.php


示例4: get_languages

 public static function get_languages($skip_missing = 0)
 {
     if (!self::exists()) {
         return;
     }
     return icl_get_languages('skip_missing=' . $skip_missing);
 }
开发者ID:brutalenemy666,项目名称:wp-utils,代码行数:7,代码来源:class-wpml.php


示例5: set_all_post_notices

 public function set_all_post_notices()
 {
     //$this->get_all_search_forms_wlang();
     if (Search_Filter_Helper::has_wpml() && defined('ICL_LANGUAGE_CODE')) {
         if (ICL_LANGUAGE_CODE == "all") {
             //this means a user has selected "all languages" - so loop loop through each language and check for errors - appending lang code
             $langs = icl_get_languages('skip_missing=0&orderby=KEY&order=DIR&link_empty_to=str');
             foreach ($langs as $lang) {
                 if (isset($lang['code'])) {
                     $search_form_ids = $this->get_all_search_forms_wlang($lang['code']);
                     $this->set_all_post_notices_wlang($search_form_ids, $lang['code']);
                 }
             }
             //reset current language - should be "all"
             global $sitepress;
             if (!empty($sitepress)) {
                 $sitepress->switch_lang(ICL_LANGUAGE_CODE);
             }
         } else {
             //user must be on a specifc language, let wpml filter the rest
             $search_form_ids = $this->get_all_search_forms_wlang();
             $this->set_all_post_notices_wlang($search_form_ids);
         }
     } else {
         $search_form_ids = $this->get_all_search_forms_wlang();
         $this->set_all_post_notices_wlang($search_form_ids);
     }
 }
开发者ID:alvarpoon,项目名称:aeg,代码行数:28,代码来源:class-search-filter-admin-notices.php


示例6: _custom_theme_options

/**
 * Theme Mode demo code of all the available option types.
 *
 * @return    void
 *
 * @access    private
 * @since     2.0
 */
function _custom_theme_options()
{
    global $google_fonts;
    global $layers;
    /**
     * Get a copy of the saved settings array.
     */
    $saved_settings = get_option('option_tree_settings', array());
    /**
     * Create a custom settings array that we pass to
     * the OptionTree Settings API Class.
     */
    $custom_settings = array('contextual_help' => array('content' => array(array('id' => 'general_help', 'title' => 'General', 'content' => '<p>Help content goes here!</p>')), 'sidebar' => '<p>Sidebar content goes here!</p>'), 'sections' => array(array('title' => 'Slider', 'id' => 'slider'), array('title' => 'Header', 'id' => 'header'), array('title' => 'General', 'id' => 'general_default'), array('title' => 'WooCommerce', 'id' => 'woocommerce'), array('title' => 'Blog options', 'id' => 'blog'), array('title' => 'Portfolio options', 'id' => 'portfolio'), array('id' => 'typo', 'title' => 'Typography'), array('id' => 'twitter', 'title' => 'Twitter OAuth'), array('id' => 'sidebars', 'title' => 'Sidebars'), array('id' => 'update', 'title' => 'Update')), 'settings' => array(array('label' => 'Enable slider', 'id' => 'pp_slider_on', 'type' => 'select', 'desc' => 'Show slider on homepage', 'choices' => array(array('label' => 'Yes', 'value' => 'yes'), array('label' => 'No', 'value' => 'no')), 'std' => 'yes', 'rows' => '', 'post_type' => '', 'taxonomy' => '', 'class' => '', 'section' => 'slider'), array('label' => 'Choose Revolution Slider for homepage', 'id' => 'pp_revo_slider', 'type' => 'select', 'desc' => '', 'choices' => $layers, 'std' => 'yes', 'rows' => '', 'post_type' => '', 'taxonomy' => '', 'class' => '', 'section' => 'slider'), array('label' => 'Header type', 'id' => 'pp_header_menu', 'type' => 'select', 'desc' => 'Select header type', 'choices' => array(array('label' => 'Standard header', 'value' => 'standard'), array('label' => 'Alternative header', 'value' => 'full')), 'std' => 'true', 'rows' => '', 'post_type' => '', 'taxonomy' => '', 'class' => '', 'section' => 'header'), array('label' => 'Header height', 'id' => 'pp_header_height', 'type' => 'numeric-slider', 'desc' => 'Default 86px, type just a number.', 'std' => '86', 'rows' => '', 'post_type' => '', 'taxonomy' => '', 'class' => '', 'min_max_step' => '50,400,1', 'section' => 'header'), array('label' => 'Mobile menu breakpoint', 'id' => 'pp_menu_breakpoint', 'type' => 'numeric-slider', 'desc' => 'Set width after menu should switch to mobile version (use if you have exceptionaly wide menu).', 'std' => '767', 'rows' => '', 'post_type' => '', 'taxonomy' => '', 'class' => '', 'min_max_step' => '767,1200,1', 'section' => 'header'), array('label' => 'Sticky header status', 'id' => 'pp_sticky_menu', 'type' => 'select', 'desc' => 'Enable/disable menu while scrolling', 'choices' => array(array('label' => 'Disable', 'value' => 'disable'), array('label' => 'Enable', 'value' => 'enable')), 'std' => 'true', 'rows' => '', 'post_type' => '', 'taxonomy' => '', 'class' => '', 'section' => 'header'), array('label' => 'Upload logo', 'id' => 'pp_logo_upload', 'type' => 'upload', 'desc' => 'For best effect logo image should be transparent png, logo from live preview has 114x24px but you can use bigger, you will probably need to adjust some margins using options below ', 'std' => '', 'rows' => '', 'post_type' => '', 'taxonomy' => '', 'class' => '', 'section' => 'header'), array('label' => 'Logo area width', 'id' => 'pp_logo_area_width', 'type' => 'select', 'desc' => 'Full width of top area is 16 columns. Logo area by default is 9 columns, while icons and contact details area is 6 columns wide. If you want to have bigger logo, please change here number of columns for logo. ', 'choices' => array(array('label' => '1 column', 'value' => '1'), array('label' => '2 columns', 'value' => '2'), array('label' => '3 columns', 'value' => '3'), array('label' => '4 columns', 'value' => '4'), array('label' => '5 columns', 'value' => '5'), array('label' => '6 columns', 'value' => '6'), array('label' => '7 columns', 'value' => '7'), array('label' => '8 columns', 'value' => '8'), array('label' => '9 columns', 'value' => '9'), array('label' => '10 columns', 'value' => '10'), array('label' => '11 columns', 'value' => '11'), array('label' => '12 columns', 'value' => '12')), 'std' => '3', 'rows' => '', 'post_type' => '', 'taxonomy' => '', 'class' => '', 'section' => 'header'), array('label' => 'Logo top margin', 'id' => 'pp_logo_top_margin', 'type' => 'measurement', 'desc' => 'Set top margin for logo image', 'std' => '', 'rows' => '', 'post_type' => '', 'taxonomy' => '', 'class' => '', 'section' => 'header'), array('label' => 'Logo top margin in compact header', 'id' => 'pp_logo_top_margin_sticky', 'type' => 'measurement', 'desc' => 'Set top margin for logo image when sticky header is enabled', 'std' => '', 'rows' => '', 'post_type' => '', 'taxonomy' => '', 'class' => '', 'section' => 'header'), array('label' => 'Logo bottom margin', 'id' => 'pp_logo_bottom_margin', 'type' => 'measurement', 'desc' => 'Set bottom margin for logo image', 'std' => '', 'rows' => '', 'post_type' => '', 'taxonomy' => '', 'class' => '', 'section' => 'header'), array('label' => 'Search form in menu', 'id' => 'pp_search', 'type' => 'select', 'desc' => '', 'choices' => array(array('label' => 'Enable', 'value' => 'enable'), array('label' => 'Disable', 'value' => 'disable')), 'std' => 'disable', 'rows' => '', 'post_type' => '', 'taxonomy' => '', 'class' => '', 'section' => 'header'), array('label' => 'Favicon ', 'id' => 'pp_favicon_upload', 'type' => 'upload', 'desc' => 'Upload favicon here (16x16)', 'std' => '', 'rows' => '', 'post_type' => '', 'taxonomy' => '', 'class' => '', 'section' => 'header'), array('label' => 'Enable contact details in header', 'id' => 'pp_contact_details', 'type' => 'select', 'desc' => '', 'choices' => array(array('label' => 'No', 'value' => 'no'), array('label' => 'Yes', 'value' => 'yes')), 'std' => 'no', 'rows' => '', 'post_type' => '', 'taxonomy' => '', 'class' => '', 'section' => 'header'), array('label' => 'Contact details email', 'id' => 'pp_cdetails_email', 'type' => 'text', 'desc' => '', 'std' => '', 'rows' => '', 'post_type' => '', 'taxonomy' => '', 'class' => '', 'section' => 'header'), array('label' => 'Contact details phone', 'id' => 'pp_cdetails_phone', 'type' => 'text', 'desc' => '', 'std' => '', 'rows' => '', 'post_type' => '', 'taxonomy' => '', 'class' => '', 'section' => 'header'), array('label' => 'Footer social icons', 'id' => 'pp_headericons', 'type' => 'list-item', 'desc' => 'Manage socials icons on header.', 'settings' => array(array('id' => 'icons_service', 'label' => 'Choose service', 'desc' => '', 'std' => '', 'type' => 'select', 'rows' => '', 'post_type' => '', 'taxonomy' => '', 'class' => '', 'choices' => array(array('value' => 'twitter', 'label' => 'Twitter', 'src' => ''), array('value' => 'facebook', 'label' => 'Facebook', 'src' => ''), array('value' => 'delicious', 'label' => 'Delicious', 'src' => ''), array('value' => 'paypal', 'label' => 'PayPal', 'src' => ''), array('value' => 'gplus', 'label' => 'Google Plus', 'src' => ''), array('value' => 'stumbleupon', 'label' => 'StumbleUpon', 'src' => ''), array('value' => 'fivehundredpx', 'label' => '500px', 'src' => ''), array('value' => 'pinterest', 'label' => 'Pinterest', 'src' => ''), array('value' => 'forrst', 'label' => 'Forrst', 'src' => ''), array('value' => 'digg', 'label' => 'Digg', 'src' => ''), array('value' => 'spotify', 'label' => 'Spotify', 'src' => ''), array('value' => 'reddit', 'label' => 'Reddit', 'src' => ''), array('value' => 'appstore', 'label' => 'AppStore', 'src' => ''), array('value' => 'blogger', 'label' => 'Blogger', 'src' => ''), array('value' => 'dribbble', 'label' => 'Dribbble', 'src' => ''), array('value' => 'evernote', 'label' => 'Evernote', 'src' => ''), array('value' => 'flickr', 'label' => 'Flickr', 'src' => ''), array('value' => 'linkedin', 'label' => 'LinkedIN', 'src' => ''), array('value' => 'rss', 'label' => 'RSS', 'src' => ''), array('value' => 'youtube', 'label' => 'YouTube', 'src' => ''), array('value' => 'vimeo', 'label' => 'Vimeo', 'src' => ''), array('value' => 'xing', 'label' => 'Xing', 'src' => ''), array('value' => 'yahoo', 'label' => 'Yahoo', 'src' => ''), array('value' => 'amazon', 'label' => 'Amazon', 'src' => ''), array('value' => 'steam', 'label' => 'Steam', 'src' => ''), array('value' => 'dropbox', 'label' => 'Dropbox', 'src' => ''), array('value' => 'github', 'label' => 'GitHub', 'src' => ''), array('value' => 'lastfm', 'label' => 'LastFM', 'src' => ''), array('value' => 'tumblr', 'label' => 'Tumblr', 'src' => ''), array('value' => 'wordpress', 'label' => 'WordPress', 'src' => ''), array('value' => 'linkedin-rect', 'label' => 'LinkedIn', 'src' => ''), array('value' => 'instagram', 'label' => 'Instagram', 'src' => ''))), array('label' => 'URL to profile page', 'id' => 'icons_url', 'type' => 'text', 'desc' => '', 'std' => '', 'rows' => '', 'post_type' => '', 'taxonomy' => '', 'class' => '')), 'std' => '', 'rows' => '', 'post_type' => '', 'taxonomy' => '', 'class' => '', 'section' => 'general_default'), array('label' => 'Enable breadcrumbs', 'id' => 'pp_breadcrumbs', 'type' => 'select', 'desc' => '', 'choices' => array(array('label' => 'No', 'value' => 'no'), array('label' => 'Yes', 'value' => 'yes')), 'std' => 'yes', 'rows' => '', 'post_type' => '', 'taxonomy' => '', 'class' => '', 'section' => 'general_default'), array('label' => 'Flexslider slideshow speed (in milliseconds)', 'id' => 'pp_flex_slideshowspeed', 'type' => 'numeric-slider', 'min_max_step' => '1000,20000,500', 'desc' => 'This setting is global, it will affect all sliders. Be sure to put here only number!.', 'std' => '7000', 'rows' => '', 'post_type' => '', 'taxonomy' => '', 'class' => '', 'section' => 'portfolio'), array('label' => 'Flexslider animation speed (in milliseconds)', 'id' => 'pp_flex_animationspeed', 'type' => 'numeric-slider', 'min_max_step' => '100,2000,100', 'desc' => 'This setting is global, it will affect all sliders. Be sure to put here only number!.', 'std' => '600', 'rows' => '', 'post_type' => '', 'taxonomy' => '', 'class' => '', 'section' => 'portfolio'), array('label' => 'Flexslider animation type', 'id' => 'pp_flex_animationtype', 'type' => 'select', 'desc' => '', 'choices' => array(array('label' => 'Fade', 'value' => 'fade'), array('label' => 'Slide', 'value' => 'slide')), 'std' => 'fade', 'rows' => '', 'post_type' => '', 'taxonomy' => '', 'class' => '', 'section' => 'portfolio'), array('label' => 'Enable AJAX loaded portfolio', 'id' => 'pp_ajax_pf', 'type' => 'select', 'desc' => 'Portfolio items are loaded on the same page instead of opening new page', 'choices' => array(array('label' => 'Disable', 'value' => 'no'), array('label' => 'Enable', 'value' => 'yes')), 'std' => 'no', 'rows' => '', 'post_type' => '', 'taxonomy' => '', 'class' => '', 'section' => 'portfolio'), array('label' => 'Recent items on single portfolio view', 'id' => 'pp_related_pf', 'type' => 'select', 'desc' => '', 'choices' => array(array('label' => 'Show', 'value' => 'show'), array('label' => 'Hide', 'value' => 'hide')), 'std' => 'show', 'rows' => '', 'post_type' => '', 'taxonomy' => '', 'class' => '', 'section' => 'portfolio'), array('label' => 'Show recent items on single portfolio view only from the same category as the current item', 'id' => 'pp_samefilter_pf', 'type' => 'select', 'desc' => '', 'choices' => array(array('label' => 'All elements', 'value' => 'all'), array('label' => 'Only the same category (filter)', 'value' => 'same')), 'std' => 'show', 'rows' => '', 'post_type' => '', 'taxonomy' => '', 'class' => '', 'section' => 'portfolio'), array('label' => 'Recent Work text', 'id' => 'pp_recenttext_pf', 'type' => 'text', 'desc' => 'Title of recent work secion on single portfolio view', 'std' => 'Recent Work', 'rows' => '', 'post_type' => '', 'taxonomy' => '', 'class' => '', 'section' => 'portfolio'), array('label' => 'Shop sidebar side', 'id' => 'pp_woo_layout', 'type' => 'radio-image', 'desc' => 'Choose sidebar side on shop page.', 'std' => 'right-sidebar', 'rows' => '', 'post_type' => '', 'choices' => array(array('value' => 'left-sidebar', 'label' => 'Left Sidebar', 'src' => OT_URL . '/assets/images/layout/left-sidebar.png'), array('value' => 'right-sidebar', 'label' => 'Right Sidebar', 'src' => OT_URL . '/assets/images/layout/right-sidebar.png')), 'taxonomy' => '', 'class' => '', 'section' => 'woocommerce'), array('label' => 'WooCommerce number of items per page', 'id' => 'pp_wooitems', 'type' => 'select', 'desc' => 'Select how many products you want to display on shop page', 'std' => '9', 'rows' => '', 'choices' => array(array('label' => '3', 'value' => '3'), array('label' => '4', 'value' => '4'), array('label' => '5', 'value' => '5'), array('label' => '6', 'value' => '6'), array('label' => '7', 'value' => '7'), array('label' => '8', 'value' => '8'), array('label' => '9', 'value' => '9'), array('label' => '10', 'value' => '10'), array('label' => '11', 'value' => '11'), array('label' => '12', 'value' => '12'), array('label' => '13', 'value' => '13'), array('label' => '14', 'value' => '14'), array('label' => '15', 'value' => '15'), array('label' => '16', 'value' => '16'), array('label' => '20', 'value' => '20'), array('label' => '32', 'value' => '32'), array('label' => '40', 'value' => '40'), array('label' => '99', 'value' => '99')), 'post_type' => '', 'taxonomy' => '', 'class' => '', 'section' => 'woocommerce'), array('label' => 'WooCommerce Catalog mode ', 'id' => 'pp_woo_catalog', 'type' => 'select', 'desc' => 'Removes all "add to cart" buttons to just showcase your products.', 'choices' => array(array('label' => 'Disable', 'value' => 'no'), array('label' => 'Enable', 'value' => 'yes')), 'std' => 'no', 'rows' => '', 'post_type' => '', 'taxonomy' => '', 'class' => '', 'section' => 'woocommerce'), array('label' => 'WooCommerce Mini Cart in header', 'id' => 'pp_woo_header_cart', 'type' => 'select', 'desc' => 'Removes all "add to cart" buttons to just showcase your products.', 'choices' => array(array('label' => 'Disable', 'value' => 'no'), array('label' => 'Enable', 'value' => 'yes')), 'std' => 'no', 'rows' => '', 'post_type' => '', 'taxonomy' => '', 'class' => '', 'section' => 'woocommerce'), array('label' => 'Enable slider on shop page', 'id' => 'pp_shop_slider_on', 'type' => 'select', 'desc' => 'Show slider on homepage', 'choices' => array(array('label' => 'Yes', 'value' => 'yes'), array('label' => 'No', 'value' => 'no')), 'std' => 'yes', 'rows' => '', 'post_type' => '', 'taxonomy' => '', 'class' => '', 'section' => 'woocommerce'), array('label' => 'Choose Revolution Slider for shop page', 'id' => 'pp_shop_revo_slider', 'type' => 'select', 'desc' => '', 'choices' => $layers, 'std' => 'yes', 'rows' => '', 'post_type' => '', 'taxonomy' => '', 'class' => '', 'section' => 'woocommerce'), array('label' => 'Number of columns on shop page', 'id' => 'pp_woocolumns', 'type' => 'select', 'desc' => '', 'std' => '3', 'rows' => '', 'choices' => array(array('label' => '3', 'value' => '3'), array('label' => '4', 'value' => '4')), 'post_type' => '', 'taxonomy' => '', 'class' => '', 'section' => 'woocommerce'), array('label' => 'Copyrights text', 'id' => 'pp_copyrights', 'type' => 'text', 'desc' => 'Text in footer', 'std' => '&copy; Theme by <a href="http://themeforest.net/user/purethemes/portfolio?ref=purethemes">Purethemes.net</a>. All Rights Reserved.', 'rows' => '', 'post_type' => '', 'taxonomy' => '', 'class' => '', 'section' => 'general_default'), array('label' => 'Blog layout', 'id' => 'pp_blog_layout', 'type' => 'radio-image', 'desc' => 'Choose sidebar side on blog.', 'std' => 'right-sidebar', 'rows' => '', 'post_type' => '', 'choices' => array(array('value' => 'left-sidebar', 'label' => 'Left Sidebar', 'src' => OT_URL . '/assets/images/layout/left-sidebar.png'), array('value' => 'right-sidebar', 'label' => 'Right Sidebar', 'src' => OT_URL . '/assets/images/layout/right-sidebar.png')), 'taxonomy' => '', 'class' => '', 'section' => 'blog'), array('label' => 'Blog thumbs style', 'id' => 'pp_blog_thumbs', 'type' => 'select', 'desc' => '', 'choices' => array(array('label' => 'Large', 'value' => 'large'), array('label' => 'Small', 'value' => 'small')), 'std' => 'large', 'rows' => '', 'post_type' => '', 'taxonomy' => '', 'class' => '', 'section' => 'blog'), array('label' => 'Post meta informations on single post view', 'id' => 'pp_meta_single', 'type' => 'checkbox', 'desc' => 'Set which elements of posts meta data you want to display.', 'choices' => array(array('label' => 'Author', 'value' => 'author'), array('label' => 'Date', 'value' => 'date'), array('label' => 'Tags', 'value' => 'tags'), array('label' => 'Categories', 'value' => 'cat'), array('label' => 'Comments', 'value' => 'com')), 'std' => '', 'rows' => '', 'post_type' => '', 'taxonomy' => '', 'class' => '', 'section' => 'blog'), array('label' => 'Post meta informations on blog and archive pages', 'id' => 'pp_meta_blog', 'type' => 'checkbox', 'desc' => 'Set which elements of posts meta data you want to display.', 'choices' => array(array('label' => 'Author', 'value' => 'author'), array('label' => 'Date', 'value' => 'date'), array('label' => 'Tags', 'value' => 'tags'), array('label' => 'Categories', 'value' => 'cat'), array('label' => 'Comments', 'value' => 'com')), 'std' => '', 'rows' => '', 'post_type' => '', 'taxonomy' => '', 'class' => '', 'section' => 'blog'), array('label' => 'Blog page title', 'id' => 'pp_blog_page', 'type' => 'text', 'desc' => '', 'std' => 'The Blog', 'rows' => '', 'post_type' => '', 'taxonomy' => '', 'class' => '', 'section' => 'blog'), array('label' => 'Portfolio columns layout', 'id' => 'pp_portfolio_layout', 'type' => 'select', 'desc' => 'Choose number of columns for portfolio archive page', 'choices' => array(array('label' => '3 columns', 'value' => '3'), array('label' => '4 columns', 'value' => '4')), 'std' => '3', 'rows' => '', 'post_type' => '', 'taxonomy' => '', 'class' => '', 'section' => 'portfolio'), array('label' => 'Portfolio page title', 'id' => 'pp_portfolio_page', 'type' => 'text', 'desc' => '', 'std' => 'Portfolio', 'rows' => '', 'post_type' => '', 'taxonomy' => '', 'class' => '', 'section' => 'portfolio'), array('label' => 'For "video portfolio" items show image thumbnail or video in archive and /portfolio page', 'id' => 'pp_portfolio_videothumb', 'type' => 'select', 'desc' => 'Choose if you want to display thumbnails as image or as small embeded video', 'choices' => array(array('label' => 'Video', 'value' => 'video'), array('label' => 'Image thumbnail', 'value' => 'thumb')), 'std' => '3', 'rows' => '', 'post_type' => '', 'taxonomy' => '', 'class' => '', 'section' => 'portfolio'), array('label' => 'Number of items to display on portfolio page', 'id' => 'pp_portfolio_showpost', 'type' => 'select', 'desc' => 'Choose how many items to display on portfolio page', 'choices' => array(array('label' => '3', 'value' => '3'), array('label' => '4', 'value' => '4'), array('label' => '5', 'value' => '5'), array('label' => '6', 'value' => '6'), array('label' => '7', 'value' => '7'), array('label' => '8', 'value' => '8'), array('label' => '9', 'value' => '9'), array('label' => '10', 'value' => '10'), array('label' => '11', 'value' => '11'), array('label' => '12', 'value' => '12'), array('label' => '13', 'value' => '13'), array('label' => '14', 'value' => '14'), array('label' => '15', 'value' => '15'), array('label' => '16', 'value' => '16'), array('label' => '20', 'value' => '20'), array('label' => '32', 'value' => '32'), array('label' => '40', 'value' => '40'), array('label' => '99', 'value' => '99')), 'std' => '9', 'rows' => '', 'post_type' => '', 'taxonomy' => '', 'class' => '', 'section' => 'portfolio'), array('id' => 'sidebars_text', 'label' => 'About sidebars', 'desc' => 'All sidebars that you create here will appear both in the Appearance > Widgets, and then you can choose them for specific pages or posts.', 'std' => '', 'type' => 'textblock', 'section' => 'sidebars', 'rows' => '', 'post_type' => '', 'taxonomy' => '', 'class' => ''), array('label' => 'Create Sidebars', 'id' => 'incr_sidebars', 'type' => 'list-item', 'desc' => 'Choose a unique title for each sidebar', 'section' => 'sidebars', 'settings' => array(array('label' => 'ID', 'id' => 'id', 'type' => 'text', 'desc' => 'Write a lowercase single world as ID (it can\'t start with a number!), without any spaces', 'std' => '', 'rows' => '', 'post_type' => '', 'taxonomy' => '', 'class' => ''))), array('id' => 'pp_custom_css', 'label' => 'Custom CSS', 'desc' => 'To prevent problems with theme update, write here any custom css (or use child themes)', 'std' => '', 'type' => 'textarea-simple', 'section' => 'general_default', 'rows' => '', 'post_type' => '', 'taxonomy' => '', 'class' => ''), array('label' => 'Enable custom fonts', 'id' => 'pp_fonts_on', 'type' => 'select', 'desc' => 'Note that this is experimental feature, not all fonts might work properly.', 'choices' => array(array('label' => 'No', 'value' => 'no'), array('label' => 'Yes', 'value' => 'yes')), 'std' => 'no', 'rows' => '', 'post_type' => '', 'taxonomy' => '', 'class' => '', 'section' => 'typo'), array('label' => 'Body font', 'id' => 'pp_body_font', 'desc' => 'Choose font for body (We recommend Open Sans).', 'std' => 'Open+Sans', 'type' => 'select', 'section' => 'typo', 'rows' => '', 'post_type' => '', 'taxonomy' => '', 'class' => '', 'choices' => $google_fonts), array('label' => 'Body font size', 'id' => 'pp_body_size', 'type' => 'measurement', 'desc' => 'Set font-size for texts', 'std' => '', 'rows' => '', 'post_type' => '', 'taxonomy' => '', 'class' => '', 'section' => 'typo'), array('label' => 'Headings font', 'id' => 'pp_h_font', 'desc' => 'Choose font for headers h1-h6.', 'std' => '', 'type' => 'select', 'section' => 'typo', 'rows' => '', 'post_type' => '', 'taxonomy' => '', 'class' => '', 'choices' => $google_fonts), array('label' => 'Enable custom typography for logo', 'id' => 'pp_logofonts_on', 'type' => 'select', 'desc' => 'Select "Yes" to enable custom typo', 'choices' => array(array('label' => 'No', 'value' => 'no'), array('label' => 'Yes', 'value' => 'yes')), 'std' => 'no', 'rows' => '', 'post_type' => '', 'taxonomy' => '', 'class' => '', 'section' => 'typo'), array('label' => 'Logo typography', 'id' => 'pp_logo_typo', 'type' => 'typography', 'desc' => 'If you are using text logo here you can set font options.', 'std' => '', 'rows' => '', 'post_type' => '', 'taxonomy' => '', 'class' => '', 'section' => 'typo'), array('id' => 'update_info', 'label' => 'About Update', 'desc' => 'Fill fields below to get notification about new version of theme. To get your API key go to ThemeForest - your profile -> Settings -> Api Keys and Generate API Key.', 'std' => '', 'type' => 'textblock', 'section' => 'update', 'rows' => '', 'post_type' => '', 'taxonomy' => '', 'class' => ''), array('label' => 'Your ThemeForest username', 'id' => 'pp_username', 'type' => 'text', 'desc' => '', 'std' => '', 'rows' => '', 'post_type' => '', 'taxonomy' => '', 'class' => '', 'section' => 'update'), array('label' => 'Your ThemeForest API key', 'id' => 'pp_api_key', 'type' => 'text', 'desc' => 'To get your API key go to ThemeForest - your profile -> Settings -> Api Keys and Generate API Key.', 'std' => '', 'rows' => '', 'post_type' => '', 'taxonomy' => '', 'class' => '', 'section' => 'update'), array('id' => 'twitter_info', 'label' => 'Twitter OAuth keys', 'desc' => 'From March 2013 Twitter requires authentication to access your tweets. Here are fields you need to fill if you want to use Nevia Twitter Widgets. How to do it you can find in documentation and on https://dev.twitter.com .', 'std' => '', 'type' => 'textblock', 'section' => 'twitter', 'rows' => '', 'post_type' => '', 'taxonomy' => '', 'class' => ''), array('label' => 'Twitter Consumer Key', 'id' => 'pp_twitter_ck', 'type' => 'text', 'desc' => '', 'std' => '', 'rows' => '', 'post_type' => '', 'taxonomy' => '', 'class' => '', 'section' => 'twitter'), array('label' => 'Twitter Consumer Secret', 'id' => 'pp_twitter_cs', 'type' => 'text', 'desc' => '', 'std' => '', 'rows' => '', 'post_type' => '', 'taxonomy' => '', 'class' => '', 'section' => 'twitter'), array('label' => 'Twitter Access Token', 'id' => 'pp_twitter_at', 'type' => 'text', 'desc' => '', 'std' => '', 'rows' => '', 'post_type' => '', 'taxonomy' => '', 'class' => '', 'section' => 'twitter'), array('label' => 'Twitter Access Token Secret', 'id' => 'pp_twitter_ts', 'type' => 'text', 'desc' => '', 'std' => '', 'rows' => '', 'post_type' => '', 'taxonomy' => '', 'class' => '', 'section' => 'twitter')));
    if (function_exists('icl_get_languages')) {
        $languages = icl_get_languages('skip_missing=0&orderby=code');
        if (!empty($languages)) {
            foreach ($languages as $l) {
                $custom_settings['settings'][] = array('label' => 'Revolution Slider for homepage in ' . $l['native_name'] . ' language', 'id' => 'pp_revo_slider' . $l['language_code'], 'type' => 'select', 'desc' => '', 'choices' => $layers, 'post_type' => '', 'taxonomy' => '', 'class' => '', 'section' => 'slider');
            }
        }
    }
    /* settings are not the same update the DB */
    if ($saved_settings !== $custom_settings) {
        update_option('option_tree_settings', $custom_settings);
    }
}
开发者ID:JeffreyBue,项目名称:jb,代码行数:34,代码来源:theme-options.php


示例7: so_language_menu

 function so_language_menu()
 {
     if (function_exists('icl_get_languages')) {
         $languages = icl_get_languages('orderby=name&order=ASC');
         // you can change the parameters
         $counter = 0;
         if (!empty($languages)) {
             echo '<ul class="lang-nav">';
             foreach ($languages as $l) {
                 $counter += 1;
                 if ($l['active']) {
                     continue;
                 }
                 echo '<li id="' . $l['language_code'] . '">';
                 echo '<a href="' . $l['url'] . '">';
                 if ($l['language_code'] == 'en') {
                     echo 'EN';
                 } elseif ($l['language_code'] == 'zh-hans') {
                     echo urldecode('%E4%B8%AD%E6%96%87');
                 }
                 // Change this into any other language
                 echo '</a>';
                 if ($counter < sizeof($languages)) {
                     echo '&nbsp;|&nbsp;';
                 }
                 // optional line as a separator between languages
                 echo '</li>';
             }
             echo '</ul>';
         }
     }
 }
开发者ID:SpiritPixels,项目名称:Code-Snippets,代码行数:32,代码来源:simple-language-menu.php


示例8: wpml_languages_list

function wpml_languages_list($skip_missing = 0, $div_id = "footer_language_list")
{
    if (function_exists('icl_get_languages')) {
        $languages = icl_get_languages('skip_missing=' . intval($skip_missing));
        if (!empty($languages)) {
            echo '<div id="' . $div_id . '"><ul>';
            foreach ($languages as $l) {
                echo '<li>';
                if (!$l['active']) {
                    echo '<a href="' . $l['url'] . '">';
                }
                echo '<img src="' . $l['country_flag_url'] . '" alt="' . $l['language_code'] . '" />';
                if (!$l['active']) {
                    echo '</a>';
                }
                if (!$l['active']) {
                    echo '<a href="' . $l['url'] . '">';
                }
                echo $l['native_name'];
                if (!$l['active']) {
                    echo ' (' . $l['translated_name'] . ')';
                }
                if (!$l['active']) {
                    echo '</a>';
                }
                echo '</li>';
            }
            echo '</ul></div>';
        }
    }
}
开发者ID:StudioCreate,项目名称:Uncle-Hummer-WordPress-Theme,代码行数:31,代码来源:wpml-integration.php


示例9: gdlr_get_wpml_nav

    function gdlr_get_wpml_nav()
    {
        if (function_exists('icl_get_languages')) {
            ?>
<li class="gdlr-mega-menu">
	<a href="#"><i class="icon-globe"></i><?php 
            echo ICL_LANGUAGE_NAME;
            ?>
</a>
	<div class="sf-mega">
		<div class="sf-mega-section gdlr-wpml-language-selector">
		<?php 
            $languages = icl_get_languages('skip_missing=N&orderby=KEY&order=DIR&link_empty_to=str');
            foreach ($languages as $language) {
                echo '<div class="sub-menu-item">';
                echo '<img src="' . $language['country_flag_url'] . '" alt="" />';
                echo '<a href="' . $language['url'] . '" >' . $language['translated_name'] . '</a>';
                echo '</div>';
            }
            ?>
		</div>
	</div>
</li>
<?php 
        }
    }
开发者ID:kelscahill,项目名称:Northeast-Pride,代码行数:26,代码来源:wpml.php


示例10: display_language_menu_accordion

function display_language_menu_accordion()
{
    $menu = "";
    $languages = icl_get_languages('skip_missing=0&orderby=code');
    if (!empty($languages)) {
        $menu .= '<div class="ui inverted accordion">';
        $menu .= '<div class="active title">';
        $menu .= '<i class="dropdown icon"></i>';
        $menu .= __('Languages', 'sage');
        $menu .= '<i class="translate icon"></i>';
        $menu .= '</div>';
        $menu .= '<div class="active content">';
        foreach ($languages as $l) {
            if (!$l['active']) {
                $menu .= "<a class=\"item\" href=\"" . $l['url'] . "\">";
                $menu .= icl_disp_language($l['native_name'], $l['translated_name']);
                $menu .= '</a>';
            } else {
                $menu .= "<a class=\"item\" href=\"#\">";
                $menu .= icl_disp_language($l['native_name'], $l['translated_name']);
                $menu .= '</a>';
            }
        }
        $menu .= "</div>";
        $menu .= "</div>";
    }
    echo $menu;
}
开发者ID:gabzon,项目名称:experiensa,代码行数:28,代码来源:languages.php


示例11: pm_ln_icl_post_languages_mobile

function pm_ln_icl_post_languages_mobile()
{
    if (function_exists('icl_get_languages')) {
        $languages = icl_get_languages('skip_missing=1');
        if (1 < count($languages)) {
            echo '<div class="pm-micro-nav-lang-selector mobile">';
            echo '<div class="pm-dropdown pm-language-selector-menu">';
            echo '<div class="pm-dropmenu">';
            echo '<p class="pm-menu-title">' . __('Language', 'viennatheme') . '</p>';
            echo '<i class="fa fa-angle-down"></i>';
            echo '</div>';
            echo '<div class="pm-dropmenu-active">';
            echo '<ul>';
            foreach ($languages as $l) {
                if (!$l['active']) {
                    echo '<li><a href="' . $l['url'] . '">' . $l['translated_name'] . '</a></li>';
                }
            }
            echo '</ul>';
            echo '</div>';
            echo '</div>';
            echo '</div>';
            //echo join(', ', $langs);
        }
    }
    //end of check function
}
开发者ID:virendrayadav,项目名称:vinayakabags,代码行数:27,代码来源:wp-functions.php


示例12: add_htaccess_redirects

    public function add_htaccess_redirects($rules)
    {
        if (Load_Me_Quickly::get_option('plugin_activated') == 1) {
            $new_rules = '';
            //Check if WPML is installed and activated
            if (function_exists('icl_object_id')) {
                global $sitepress;
                $languages = icl_get_languages('skip_missing=1');
                foreach ($languages as $l) {
                    $sitepress->switch_lang($l['code'], true);
                    $new_rules .= self::add_htaccess_redirects_loop(true);
               

鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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