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


PHP FrmAppHelper::jquery_ui_base_url方法代码示例

本文整理汇总了PHP中FrmAppHelper::jquery_ui_base_url方法的典型用法代码示例。如果您正苦于以下问题:PHP FrmAppHelper::jquery_ui_base_url方法的具体用法?PHP FrmAppHelper::jquery_ui_base_url怎么用?PHP FrmAppHelper::jquery_ui_base_url使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在FrmAppHelper的用法示例。


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

示例1: admin_init

 public static function admin_init()
 {
     if (!FrmAppHelper::is_admin_page('formidable-styles')) {
         return;
     }
     self::load_pro_hooks();
     wp_enqueue_script('jquery-ui-datepicker');
     $version = FrmAppHelper::plugin_version();
     wp_enqueue_script('jquery-frm-themepicker', FrmAppHelper::plugin_url() . '/js/jquery/jquery-ui-themepicker.js', array('jquery'), $version);
     wp_enqueue_style('jquery-ui-base', FrmAppHelper::jquery_ui_base_url() . '/themes/base/ui.all.css');
     wp_enqueue_style('frm-custom-theme', admin_url('admin-ajax.php') . '?action=frmpro_css');
     $style = apply_filters('frm_style_head', false);
     if ($style) {
         wp_enqueue_style('frm-single-custom-theme', admin_url('admin-ajax.php') . '?action=frmpro_load_css&flat=1&' . http_build_query($style->post_content));
     }
 }
开发者ID:EliasGoldberg,项目名称:troop-sim,代码行数:16,代码来源:FrmStylesController.php

示例2: jquery_css_url

 public static function jquery_css_url($theme_css)
 {
     if ($theme_css == -1) {
         return;
     }
     if (!$theme_css || $theme_css == '' || $theme_css == 'ui-lightness') {
         $css_file = FrmAppHelper::plugin_url() . '/css/ui-lightness/jquery-ui.css';
     } else {
         if (preg_match('/^http.?:\\/\\/.*\\..*$/', $theme_css)) {
             $css_file = $theme_css;
         } else {
             $uploads = self::get_upload_base();
             $file_path = '/formidable/css/' . $theme_css . '/jquery-ui.css';
             if (file_exists($uploads['basedir'] . $file_path)) {
                 $css_file = $uploads['baseurl'] . $file_path;
             } else {
                 $css_file = FrmAppHelper::jquery_ui_base_url() . '/themes/' . $theme_css . '/jquery-ui.min.css';
             }
         }
     }
     return $css_file;
 }
开发者ID:tshdvs,项目名称:GooseMobile,代码行数:22,代码来源:FrmStylesHelper.php

示例3: load_datepicker_js

    public static function load_datepicker_js($frm_vars)
    {
        if (!isset($frm_vars['datepicker_loaded']) || empty($frm_vars['datepicker_loaded']) || !is_array($frm_vars['datepicker_loaded'])) {
            return;
        }
        $frmpro_settings = FrmProAppHelper::get_settings();
        reset($frm_vars['datepicker_loaded']);
        $datepicker = key($frm_vars['datepicker_loaded']);
        $load_lang = false;
        foreach ($frm_vars['datepicker_loaded'] as $date_field_id => $options) {
            if (strpos($date_field_id, '^') === 0) {
                // this is a repeating field
                $trigger_id = 'input[id^="' . str_replace('^', '', $date_field_id) . '"]';
            } else {
                $trigger_id = '#' . $date_field_id;
            }
            ?>
$(document).on('focusin','<?php 
            echo $trigger_id;
            ?>
', function(){
$.datepicker.setDefaults($.datepicker.regional['']);
$(this).datepicker($.extend($.datepicker.regional['<?php 
            echo $options['locale'];
            ?>
'],{dateFormat:'<?php 
            echo $frmpro_settings->cal_date_format;
            ?>
',changeMonth:true,changeYear:true,yearRange:'<?php 
            echo $options['start_year'] . ':' . $options['end_year'];
            ?>
',defaultDate:<?php 
            echo empty($options['default_date']) ? "''" : 'new Date(' . $options['default_date'] . ')';
            do_action('frm_date_field_js', $date_field_id, $options);
            ?>
}));
});
<?php 
            if (!empty($options['locale']) && !$load_lang) {
                $load_lang = true;
                $base_url = FrmAppHelper::jquery_ui_base_url();
                wp_enqueue_script('jquery-ui-i18n', $base_url . '/i18n/jquery-ui-i18n.min.js');
                // this was enqueued late, so make sure it gets printed
                add_action('wp_footer', 'print_footer_scripts', 21);
            }
        }
        self::load_timepicker_js($datepicker, $frm_vars);
    }
开发者ID:swc-dng,项目名称:swcsandbox,代码行数:48,代码来源:FrmProFormsHelper.php


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