Changeset 902771
- Timestamp:
- 04/25/2014 04:22:33 PM (12 years ago)
- Location:
- chimpy-lite/tags/1.0.1
- Files:
-
- 8 copied
-
. (copied) (copied from chimpy-lite/trunk)
-
assets (copied) (copied from chimpy-lite/trunk/assets)
-
changelog (copied) (copied from chimpy-lite/trunk/changelog) (1 diff)
-
chimpy-lite.php (copied) (copied from chimpy-lite/trunk/chimpy-lite.php) (8 diffs)
-
includes (copied) (copied from chimpy-lite/trunk/includes)
-
languages (copied) (copied from chimpy-lite/trunk/languages)
-
license.txt (copied) (copied from chimpy-lite/trunk/license.txt)
-
readme.txt (copied) (copied from chimpy-lite/trunk/readme.txt) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
chimpy-lite/tags/1.0.1/changelog
r887908 r902771 1 Version 1.0.1, April 25 2014 2 ------------------------------------------------------------------------------------ 3 [*] Declaring support for WordPress 3.9 4 1 5 Version 1.0, March 31 2014 2 6 ------------------------------------------------------------------------------------ -
chimpy-lite/tags/1.0.1/chimpy-lite.php
r887908 r902771 5 5 * Plugin URI: http://www.rightpress.net/chimpy-lite 6 6 * 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 8 8 * Author: RightPress 9 9 * Author URI: http://www.rightpress.net 10 10 * Requires at least: 3.5 11 * Tested up to: 3. 811 * Tested up to: 3.9 12 12 * 13 13 * Text Domain: chimpy-lite … … 42 42 define('CHIMPY_LITE_PLUGIN_PATH', untrailingslashit(plugin_dir_path(__FILE__))); 43 43 define('CHIMPY_LITE_PLUGIN_URL', plugins_url(basename(plugin_dir_path(__FILE__)), basename(__FILE__))); 44 define('CHIMPY_LITE_VERSION', ' 2.1');44 define('CHIMPY_LITE_VERSION', '1.0.1'); 45 45 46 46 if (!class_exists('ChimpyLite')) { … … 121 121 122 122 if (!(defined('DOING_AJAX') && DOING_AJAX)) { 123 124 // Hooks125 add_action('wp_enqueue_scripts', array($this, 'enqueue_frontend_scripts_and_styles'));126 123 127 124 // Add checkboxes … … 944 941 . '</p><p style="line-height: 160%;">' 945 942 . '<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') 947 944 . '</p></div>'; 948 945 } … … 1557 1554 { 1558 1555 // 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); 1561 1557 1562 1558 // Chosen scripts and styles (advanced form fields) … … 1587 1583 1588 1584 /** 1589 * Load scripts required for frontend1585 * Print frontend scripts in footer 1590 1586 * 1591 1587 * @access public 1592 1588 * @return void 1593 1589 */ 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'); 1598 1611 } 1599 1612 1600 1613 // Chimpy Lite frontend scripts 1601 1614 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 } 1603 1622 1604 1623 // Chimpy Lite frontent styles 1605 1624 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 } 1607 1632 1608 1633 // Font awesome (icons) 1609 1634 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 } 1615 1642 1616 1643 // Sky Forms scripts - validate 1617 1644 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 } 1619 1652 1620 1653 // Sky Forms scripts - masked input 1621 1654 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 } 1623 1662 1624 1663 // Sky Forms main styles 1625 1664 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 } 1627 1672 1628 1673 // Sky Forms color schemes 1629 1674 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 } 1631 1682 1632 1683 // Check browser version … … 1652 1703 // Additional scripts 1653 1704 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 } 1655 1712 1656 1713 // Additional styles 1657 1714 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 } 1659 1722 } 1660 1723 … … 1664 1727 // Placeholder 1665 1728 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 } 1667 1736 1668 1737 // HTM5 Shim 1669 1738 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 } 1671 1746 } 1672 1747 -
chimpy-lite/tags/1.0.1/readme.txt
r887908 r902771 4 4 Tags: mailchimp wordpress, mailchimp plugin, mailchimp integration, mailchimp signup, mailchimp, newsletter, newsletter signup 5 5 Requires at least: 3.5 6 Tested up to: 3. 87 Stable tag: 1.0 6 Tested up to: 3.9 7 Stable tag: 1.0.1 8 8 License: GPLv3 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html
Note: See TracChangeset
for help on using the changeset viewer.