Plugin Directory

Changeset 903145


Ignore:
Timestamp:
04/26/2014 02:30:22 PM (12 years ago)
Author:
RightPress
Message:

Declaring support for WordPress 3.9

Location:
chimpy-lite/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • chimpy-lite/trunk/changelog

    r887908 r903145  
     1Version 1.0.1, April 25 2014
     2------------------------------------------------------------------------------------
     3[*] Declaring support for WordPress 3.9
     4
    15Version 1.0, March 31 2014
    26------------------------------------------------------------------------------------
  • chimpy-lite/trunk/chimpy-lite.php

    r887908 r903145  
    55 * Plugin URI: http://www.rightpress.net/chimpy-lite
    66 * Description: Chimpy is the best MailChimp plugin. Just enter your MailChimp API key and you are ready to go. It works smoothly and features professional design.
    7  * Version: 1.0
     7 * Version: 1.0.1
    88 * Author: RightPress
    99 * Author URI: http://www.rightpress.net
    1010 * Requires at least: 3.5
    11  * Tested up to: 3.8
     11 * Tested up to: 3.9
    1212 *
    1313 * Text Domain: chimpy-lite
     
    4242define('CHIMPY_LITE_PLUGIN_PATH', untrailingslashit(plugin_dir_path(__FILE__)));
    4343define('CHIMPY_LITE_PLUGIN_URL', plugins_url(basename(plugin_dir_path(__FILE__)), basename(__FILE__)));
    44 define('CHIMPY_LITE_VERSION', '2.1');
     44define('CHIMPY_LITE_VERSION', '1.0.1');
    4545
    4646if (!class_exists('ChimpyLite')) {
     
    121121
    122122                if (!(defined('DOING_AJAX') && DOING_AJAX)) {
    123 
    124                     // Hooks
    125                     add_action('wp_enqueue_scripts', array($this, 'enqueue_frontend_scripts_and_styles'));
    126123
    127124                    // Add checkboxes
     
    944941                   . '</p><p style="line-height: 160%;">'
    945942                   . '<strong style="color:#222;">' . __('Function', 'chimpy-lite') . ' <code>chimpy_lite_form()</code></strong><br />'
    946                    . __('To display a form in nonstandard parts of your website, take advantage of the PHP function <code>chimpy_lite_form()</code>.', 'chimpy-lite')
     943                   . __('To display a form in nonstandard parts of your website, take advantage of the PHP function <code>chimpy_lite_form()</code>.<br />Make sure to include it <strong>above</strong> the <code>wp_footer()</code> function in your theme.', 'chimpy-lite')
    947944                   . '</p></div>';
    948945            }
     
    15571554        {
    15581555            // Custom jQuery UI script and its styles
    1559             //wp_register_script('chimpy-lite-jquery-ui', CHIMPY_LITE_PLUGIN_URL . '/assets/jquery-ui/js/jquery-ui-1.10.3.custom.min.js', array('jquery'), '1.10.3');
    1560             wp_register_style('chimpy-lite-jquery-ui-styles', CHIMPY_LITE_PLUGIN_URL . '/assets/jquery-ui/css/jquery-ui-1.10.3.custom.min.css', array(), CHIMPY_LITE_VERSION);
     1556            wp_register_style('chimpy-lite-jquery-ui-styles', CHIMPY_LITE_PLUGIN_URL . '/assets/css/jquery-ui/jquery-ui-1.10.3.custom.min.css', array(), CHIMPY_LITE_VERSION);
    15611557
    15621558            // Chosen scripts and styles (advanced form fields)
     
    15871583
    15881584        /**
    1589          * Load scripts required for frontend
     1585         * Print frontend scripts in footer
    15901586         *
    15911587         * @access public
    15921588         * @return void
    15931589         */
    1594         public function enqueue_frontend_scripts_and_styles()
    1595         {
    1596             if (!$this->opt['chimpy_lite_api_key'] || !isset($this->opt['forms']) || empty($this->opt['forms'])) {
    1597                 return;
     1590        public static function print_frontend_scripts_and_styles()
     1591        {
     1592            self::enqueue_frontend_scripts_and_styles(true);
     1593        }
     1594
     1595        /**
     1596         * Conditionally load scripts required for frontend (or print them in footer if loaded via function)
     1597         *
     1598         * @access public
     1599         * @return void
     1600         */
     1601        public static function enqueue_frontend_scripts_and_styles($print = false)
     1602        {
     1603            // jQuery Forms
     1604            if ($print) {
     1605                wp_print_scripts('jquery');
     1606                wp_print_scripts('jquery-form');
     1607            }
     1608            else {
     1609                wp_enqueue_script('jquery');
     1610                wp_enqueue_script('jquery-form');
    15981611            }
    15991612
    16001613            // Chimpy Lite frontend scripts
    16011614            wp_register_script('chimpy-lite-frontend', CHIMPY_LITE_PLUGIN_URL . '/assets/js/chimpy-lite-frontend.js', array('jquery'), CHIMPY_LITE_VERSION);
    1602             wp_enqueue_script('chimpy-lite-frontend');
     1615
     1616            if ($print) {
     1617                wp_print_scripts('chimpy-lite-frontend');
     1618            }
     1619            else {
     1620                wp_enqueue_script('chimpy-lite-frontend');
     1621            }
    16031622
    16041623            // Chimpy Lite frontent styles
    16051624            wp_register_style('chimpy-lite', CHIMPY_LITE_PLUGIN_URL . '/assets/css/style-frontend.css', array(), CHIMPY_LITE_VERSION);
    1606             wp_enqueue_style('chimpy-lite');
     1625
     1626            if ($print) {
     1627                wp_print_styles('chimpy-lite');
     1628            }
     1629            else {
     1630                wp_enqueue_style('chimpy-lite');
     1631            }
    16071632
    16081633            // Font awesome (icons)
    16091634            wp_register_style('chimpy-lite-font-awesome', CHIMPY_LITE_PLUGIN_URL . '/assets/css/font-awesome/css/font-awesome.min.css', array(), '4.0.3');
    1610             wp_enqueue_style('chimpy-lite-font-awesome');
    1611 
    1612             // Sky Forms scripts
    1613             wp_register_script('chimpy-lite-sky-forms', CHIMPY_LITE_PLUGIN_URL . '/assets/forms/js/jquery.form.min.js', array('jquery'), '20130711');
    1614             wp_enqueue_script('chimpy-lite-sky-forms');
     1635
     1636            if ($print) {
     1637                wp_print_styles('chimpy-lite-font-awesome');
     1638            }
     1639            else {
     1640                wp_enqueue_style('chimpy-lite-font-awesome');
     1641            }
    16151642
    16161643            // Sky Forms scripts - validate
    16171644            wp_register_script('chimpy-lite-sky-forms-validate', CHIMPY_LITE_PLUGIN_URL . '/assets/forms/js/jquery.validate.min.js', array('jquery'), '1.11.0');
    1618             wp_enqueue_script('chimpy-lite-sky-forms-validate');
     1645
     1646            if ($print) {
     1647                wp_print_scripts('chimpy-lite-sky-forms-validate');
     1648            }
     1649            else {
     1650                wp_enqueue_script('chimpy-lite-sky-forms-validate');
     1651            }
    16191652
    16201653            // Sky Forms scripts - masked input
    16211654            wp_register_script('chimpy-lite-sky-forms-maskedinput', CHIMPY_LITE_PLUGIN_URL . '/assets/forms/js/jquery.maskedinput.min.js', array('jquery'), '1.3.1');
    1622             wp_enqueue_script('chimpy-lite-sky-forms-maskedinput');
     1655
     1656            if ($print) {
     1657                wp_print_scripts('chimpy-lite-sky-forms-maskedinput');
     1658            }
     1659            else {
     1660                wp_enqueue_script('chimpy-lite-sky-forms-maskedinput');
     1661            }
    16231662
    16241663            // Sky Forms main styles
    16251664            wp_register_style('chimpy-lite-sky-forms-style', CHIMPY_LITE_PLUGIN_URL . '/assets/forms/css/sky-forms.css', array(), CHIMPY_LITE_VERSION);
    1626             wp_enqueue_style('chimpy-lite-sky-forms-style');
     1665
     1666            if ($print) {
     1667                wp_print_styles('chimpy-lite-sky-forms-style');
     1668            }
     1669            else {
     1670                wp_enqueue_style('chimpy-lite-sky-forms-style');
     1671            }
    16271672
    16281673            // Sky Forms color schemes
    16291674            wp_register_style('chimpy-lite-sky-forms-color-schemes', CHIMPY_LITE_PLUGIN_URL . '/assets/forms/css/sky-forms-color-schemes.css', array(), CHIMPY_LITE_VERSION);
    1630             wp_enqueue_style('chimpy-lite-sky-forms-color-schemes');
     1675
     1676            if ($print) {
     1677                wp_print_styles('chimpy-lite-sky-forms-color-schemes');
     1678            }
     1679            else {
     1680                wp_enqueue_style('chimpy-lite-sky-forms-color-schemes');
     1681            }
    16311682
    16321683            // Check browser version
     
    16521703                // Additional scripts
    16531704                wp_register_script('chimpy-lite-sky-forms-ie8', CHIMPY_LITE_PLUGIN_URL . '/assets/forms/js/sky-forms-ie8.js', array('jquery'), CHIMPY_LITE_VERSION);
    1654                 wp_enqueue_script('chimpy-lite-sky-forms-ie8');
     1705
     1706                if ($print) {
     1707                    wp_print_scripts('chimpy-lite-sky-forms-ie8');
     1708                }
     1709                else {
     1710                    wp_enqueue_script('chimpy-lite-sky-forms-ie8');
     1711                }
    16551712
    16561713                // Additional styles
    16571714                wp_register_style('chimpy-lite-sky-forms-style-ie8', CHIMPY_LITE_PLUGIN_URL . '/assets/forms/css/sky-forms-ie8.css', array(), CHIMPY_LITE_VERSION);
    1658                 wp_enqueue_style('chimpy-lite-sky-forms-style-ie8');
     1715
     1716                if ($print) {
     1717                    wp_print_styles('chimpy-lite-sky-forms-style-ie8');
     1718                }
     1719                else {
     1720                    wp_enqueue_style('chimpy-lite-sky-forms-style-ie8');
     1721                }
    16591722            }
    16601723
     
    16641727                // Placeholder
    16651728                wp_register_script('chimpy-lite-sky-forms-placeholder', CHIMPY_LITE_PLUGIN_URL . '/assets/forms/js/jquery.placeholder.min.js', array('jquery'), CHIMPY_LITE_VERSION);
    1666                 wp_enqueue_script('chimpy-lite-sky-forms-placeholder');
     1729
     1730                if ($print) {
     1731                    wp_print_scripts('chimpy-lite-sky-forms-placeholder');
     1732                }
     1733                else {
     1734                    wp_enqueue_script('chimpy-lite-sky-forms-placeholder');
     1735                }
    16671736
    16681737                // HTM5 Shim
    16691738                wp_register_script('chimpy-lite-sky-forms-html5shim', CHIMPY_LITE_PLUGIN_URL . '/assets/forms/js/html5.js', array('jquery'), CHIMPY_LITE_VERSION);
    1670                 wp_enqueue_script('chimpy-lite-sky-forms-html5shim');
     1739
     1740                if ($print) {
     1741                    wp_print_scripts('chimpy-lite-sky-forms-html5shim');
     1742                }
     1743                else {
     1744                    wp_enqueue_script('chimpy-lite-sky-forms-html5shim');
     1745                }
    16711746            }
    16721747
  • chimpy-lite/trunk/readme.txt

    r887908 r903145  
    44Tags: mailchimp wordpress, mailchimp plugin, mailchimp integration, mailchimp signup, mailchimp, newsletter, newsletter signup
    55Requires at least: 3.5
    6 Tested up to: 3.8
    7 Stable tag: 1.0
     6Tested up to: 3.9
     7Stable tag: 1.0.1
    88License: GPLv3 or later
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
Note: See TracChangeset for help on using the changeset viewer.