@@ -624,8 +624,8 @@ discard block |
||
624 | 624 | */ |
625 | 625 | public static function get_shortcode_tag( $shortcodes, $short_key, $args ) { |
626 | 626 | _deprecated_function( __FUNCTION__, '3.0', 'FrmShortcodeHelper::get_shortcode_tag' ); |
627 | - return FrmShortcodeHelper::get_shortcode_tag( $shortcodes, $short_key, $args ); |
|
628 | - } |
|
627 | + return FrmShortcodeHelper::get_shortcode_tag( $shortcodes, $short_key, $args ); |
|
628 | + } |
|
629 | 629 | |
630 | 630 | /** |
631 | 631 | * @deprecated 3.01 |
@@ -638,52 +638,52 @@ discard block |
||
638 | 638 | /** |
639 | 639 | * @deprecated 3.02.03 |
640 | 640 | */ |
641 | - public static function jquery_themes() { |
|
641 | + public static function jquery_themes() { |
|
642 | 642 | _deprecated_function( __FUNCTION__, '3.02.03', 'FrmProStylesController::jquery_themes' ); |
643 | 643 | |
644 | - $themes = array( |
|
645 | - 'ui-lightness' => 'UI Lightness', |
|
646 | - 'ui-darkness' => 'UI Darkness', |
|
647 | - 'smoothness' => 'Smoothness', |
|
648 | - 'start' => 'Start', |
|
649 | - 'redmond' => 'Redmond', |
|
650 | - 'sunny' => 'Sunny', |
|
651 | - 'overcast' => 'Overcast', |
|
652 | - 'le-frog' => 'Le Frog', |
|
653 | - 'flick' => 'Flick', |
|
644 | + $themes = array( |
|
645 | + 'ui-lightness' => 'UI Lightness', |
|
646 | + 'ui-darkness' => 'UI Darkness', |
|
647 | + 'smoothness' => 'Smoothness', |
|
648 | + 'start' => 'Start', |
|
649 | + 'redmond' => 'Redmond', |
|
650 | + 'sunny' => 'Sunny', |
|
651 | + 'overcast' => 'Overcast', |
|
652 | + 'le-frog' => 'Le Frog', |
|
653 | + 'flick' => 'Flick', |
|
654 | 654 | 'pepper-grinder' => 'Pepper Grinder', |
655 | - 'eggplant' => 'Eggplant', |
|
656 | - 'dark-hive' => 'Dark Hive', |
|
657 | - 'cupertino' => 'Cupertino', |
|
658 | - 'south-street' => 'South Street', |
|
659 | - 'blitzer' => 'Blitzer', |
|
660 | - 'humanity' => 'Humanity', |
|
661 | - 'hot-sneaks' => 'Hot Sneaks', |
|
662 | - 'excite-bike' => 'Excite Bike', |
|
663 | - 'vader' => 'Vader', |
|
664 | - 'dot-luv' => 'Dot Luv', |
|
665 | - 'mint-choc' => 'Mint Choc', |
|
666 | - 'black-tie' => 'Black Tie', |
|
667 | - 'trontastic' => 'Trontastic', |
|
668 | - 'swanky-purse' => 'Swanky Purse', |
|
669 | - ); |
|
655 | + 'eggplant' => 'Eggplant', |
|
656 | + 'dark-hive' => 'Dark Hive', |
|
657 | + 'cupertino' => 'Cupertino', |
|
658 | + 'south-street' => 'South Street', |
|
659 | + 'blitzer' => 'Blitzer', |
|
660 | + 'humanity' => 'Humanity', |
|
661 | + 'hot-sneaks' => 'Hot Sneaks', |
|
662 | + 'excite-bike' => 'Excite Bike', |
|
663 | + 'vader' => 'Vader', |
|
664 | + 'dot-luv' => 'Dot Luv', |
|
665 | + 'mint-choc' => 'Mint Choc', |
|
666 | + 'black-tie' => 'Black Tie', |
|
667 | + 'trontastic' => 'Trontastic', |
|
668 | + 'swanky-purse' => 'Swanky Purse', |
|
669 | + ); |
|
670 | 670 | |
671 | 671 | $themes = apply_filters( 'frm_jquery_themes', $themes ); |
672 | - return $themes; |
|
673 | - } |
|
672 | + return $themes; |
|
673 | + } |
|
674 | 674 | |
675 | 675 | /** |
676 | 676 | * @deprecated 3.02.03 |
677 | 677 | */ |
678 | - public static function enqueue_jquery_css() { |
|
678 | + public static function enqueue_jquery_css() { |
|
679 | 679 | _deprecated_function( __FUNCTION__, '3.02.03', 'FrmProStylesController::enqueue_jquery_css' ); |
680 | 680 | |
681 | 681 | $form = self::get_form_for_page(); |
682 | 682 | $theme_css = FrmStylesController::get_style_val( 'theme_css', $form ); |
683 | - if ( $theme_css != -1 ) { |
|
683 | + if ( $theme_css != -1 ) { |
|
684 | 684 | wp_enqueue_style( 'jquery-theme', self::jquery_css_url( $theme_css ), array(), FrmAppHelper::plugin_version() ); |
685 | - } |
|
686 | - } |
|
685 | + } |
|
686 | + } |
|
687 | 687 | |
688 | 688 | /** |
689 | 689 | * @deprecated 3.02.03 |
@@ -691,26 +691,26 @@ discard block |
||
691 | 691 | public static function jquery_css_url( $theme_css ) { |
692 | 692 | _deprecated_function( __FUNCTION__, '3.02.03', 'FrmProStylesController::jquery_css_url' ); |
693 | 693 | |
694 | - if ( $theme_css == -1 ) { |
|
695 | - return; |
|
696 | - } |
|
694 | + if ( $theme_css == -1 ) { |
|
695 | + return; |
|
696 | + } |
|
697 | 697 | |
698 | - if ( ! $theme_css || $theme_css == '' || $theme_css == 'ui-lightness' ) { |
|
699 | - $css_file = FrmAppHelper::plugin_url() . '/css/ui-lightness/jquery-ui.css'; |
|
698 | + if ( ! $theme_css || $theme_css == '' || $theme_css == 'ui-lightness' ) { |
|
699 | + $css_file = FrmAppHelper::plugin_url() . '/css/ui-lightness/jquery-ui.css'; |
|
700 | 700 | } elseif ( preg_match( '/^http.?:\/\/.*\..*$/', $theme_css ) ) { |
701 | - $css_file = $theme_css; |
|
702 | - } else { |
|
703 | - $uploads = FrmStylesHelper::get_upload_base(); |
|
701 | + $css_file = $theme_css; |
|
702 | + } else { |
|
703 | + $uploads = FrmStylesHelper::get_upload_base(); |
|
704 | 704 | $file_path = '/formidable/css/' . $theme_css . '/jquery-ui.css'; |
705 | 705 | if ( file_exists( $uploads['basedir'] . $file_path ) ) { |
706 | - $css_file = $uploads['baseurl'] . $file_path; |
|
707 | - } else { |
|
706 | + $css_file = $uploads['baseurl'] . $file_path; |
|
707 | + } else { |
|
708 | 708 | $css_file = FrmAppHelper::jquery_ui_base_url() . '/themes/' . $theme_css . '/jquery-ui.min.css'; |
709 | - } |
|
710 | - } |
|
709 | + } |
|
710 | + } |
|
711 | 711 | |
712 | - return $css_file; |
|
713 | - } |
|
712 | + return $css_file; |
|
713 | + } |
|
714 | 714 | |
715 | 715 | /** |
716 | 716 | * @deprecated 3.02.03 |