Changeset 140600
- Timestamp:
- 07/29/2009 05:49:37 PM (17 years ago)
- Location:
- wplyrics/trunk/wplyrics
- Files:
-
- 2 edited
-
wp_lyrics.php (modified) (1 diff)
-
wplyrics.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wplyrics/trunk/wplyrics/wp_lyrics.php
r140595 r140600 93 93 * Tells WordPress to load the scripts 94 94 */ 95 function add_scripts(){ 95 function add_scripts(){ 96 $options = $this->load_options(); 97 96 98 wp_enqueue_script('wp_lyrics_script', get_bloginfo('wpurl').'/wp-content/plugins/wplyrics/wplyrics.js', array("jquery") , 0.1); 99 wp_localize_script( 'wp_lyrics_script', 'WPLyricsSettings', array( 100 'title' => $options['title'], 101 'more' => $options['more'], 102 'less' => $options['less'] 103 )); 104 97 105 } 98 106 -
wplyrics/trunk/wplyrics/wplyrics.js
r139890 r140600 7 7 function open_lyrics(el){ 8 8 jQuery(el).parent().next('.wplyrics').slideToggle() ; 9 //cambiar [+] 9 more = WPLyricsSettings.more; 10 less = WPLyricsSettings.less; 11 12 //change [+] 10 13 if (jQuery(el).html() == '[+]'){ 11 14 jQuery(el).html('[-]'); 12 jQuery(el).attr('title', 'Hide the text...');15 jQuery(el).attr('title', less); 13 16 }else{ 14 jQuery(el).html('[+]').attr('title', 'Show the text...');17 jQuery(el).html('[+]').attr('title', more); 15 18 } 16 19 }
Note: See TracChangeset
for help on using the changeset viewer.