Plugin Directory

Changeset 945483


Ignore:
Timestamp:
07/09/2014 09:41:26 AM (12 years ago)
Author:
grglaz
Message:

version 1.7.5

Location:
modal-links
Files:
80 added
3 edited

Legend:

Unmodified
Added
Removed
  • modal-links/trunk/include/modal-links-scripts.php

    r934626 r945483  
    3535    class ModalLinksScripts
    3636    {
     37
     38
    3739        /**
    3840         * Constructor
     
    164166            }
    165167
     168            if(array_key_exists('page', $_GET) === true) {
     169                if ($_GET['page'] === 'modal_links') {
     170                    wp_enqueue_script(
     171                        'modal-links-tooltips',
     172                        plugins_url('modal-links/js/modal-links-tooltips.js'),
     173                        array('jquery')
     174                    );
     175                }
     176            }
     177
    166178
    167179            do_action('modalLinksLoadAdminScripts');
  • modal-links/trunk/modal-links.php

    r934626 r945483  
    55 * Plugin URI: https://wordpress.org/plugins/modal-links
    66 * Description: This is NOT just another modal plugin. Its much more. With this plugin you add modal functionalities to your wordpress.
    7  * Version: 1.7.4
     7 * Version: 1.7.5
    88 * Author: George Lazarou
    99 * Author URI: http://georgelazarou.info
     
    8484    class ModalLinks
    8585    {
     86
     87
    8688        /**
    8789         * Constructor
     
    9597            if (is_admin() === true) {
    9698                add_filter('plugin_action_links', array($this, 'settingsLink'), 10, 2);
    97                 add_action('admin_footer', array($this, 'loadTooltipJs'));
    9899            }
    99100            add_action('init', array($this, 'register_session'));
     
    120121        }//end loadTextdomain()
    121122
    122         function register_session(){
     123
     124        /**
     125         *
     126         *
     127         * @return nothing
     128         */
     129        public function register_session(){
    123130            if( !session_id() )
    124131                session_start();
    125132        }
    126        
    127133
    128134
     
    424430
    425431
    426         /**
    427          * Loads jquery ui tooltip
    428          *
    429          * @return nothing
    430          */
    431         public function loadTooltipJs()
    432         {
    433             if(is_admin() === true && array_key_exists('page', $_GET) === true) {
    434                 if ($_GET['page'] === 'modal_links') {
    435 echo <<<JAVASCRIPT
    436 
    437                     <script type="text/javascript">
    438                     jQuery(function(){
    439 
    440                         jQuery('form[name="modalLinksForm"] input, form[name="modalLinksForm"] select')
    441                         .tooltip({
    442                             position: {
    443                                 my: "left center",
    444                                 at: "right center",
    445                             }
    446                         });
    447 
    448                     });
    449                     </script>
    450 
    451 JAVASCRIPT;
    452                 }
    453             }
    454 
    455         }//end loadTooltipJs()
    456 
    457 
    458432    }//end class
    459433}//end if
  • modal-links/trunk/readme.txt

    r934626 r945483  
    66Requires at least: 3.0.1
    77Tested up to: 3.9
    8 Stable tag: 1.7.4
     8Stable tag: 1.7.5
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    262262== Changelog ==
    263263
     264= 1.7.5 =
     265Tooltips in js file. Bug fixed.
     266
    264267= 1.7.4 =
    265268Bug fixed.
     
    348351== Upgrade Notice ==
    349352
     353= 1.7.5 =
     354Tooltips in js file. Bug fixed.
     355
    350356= 1.7.4 =
    351357Bug fixed.
Note: See TracChangeset for help on using the changeset viewer.