Changeset 365752
- Timestamp:
- 03/28/2011 11:11:03 AM (15 years ago)
- Location:
- rich-text-widget/trunk
- Files:
-
- 5 added
- 3 edited
-
locale (added)
-
locale/fr_FR.mo (added)
-
locale/fr_FR.po (added)
-
readme.txt (modified) (2 diffs)
-
rich-text-widget.js (modified) (1 diff)
-
rich-text-widget.php (modified) (5 diffs)
-
screenshot-1.png (added)
-
screenshot-2.png (added)
Legend:
- Unmodified
- Added
- Removed
-
rich-text-widget/trunk/readme.txt
r364801 r365752 6 6 Stable tag: trunk 7 7 8 Create rich text widgets (WYSIWYG) 8 Create rich text widgets (WYSIWYG), with media management. 9 9 10 10 == Description == 11 11 12 Create rich text widgets (WYSIWYG). Use wordpress' editor to easily change the text widgets. 12 Caution : the plugin is not compatible with the 0.2 version. So, you should save your content before upgrading. Sorry for the inconvenient. 13 14 Create rich text widgets (WYSIWYG), with media management. 13 15 14 16 == Installation == … … 24 26 1. Rich Text Widget 25 27 2. Adding media 28 29 == Changelog == 30 31 = 1.0.1 = 32 * localization 33 * description changed -
rich-text-widget/trunk/rich-text-widget.js
r364801 r365752 73 73 if(getUserSetting( 'editor' ) == 'tinymce'){ 74 74 var ed = tinyMCE.get(textarea.attr('id')); 75 if(ed != undefined) alert( "pensez à sauvegarder avant d'enregistrer");75 if(ed != undefined) alert(deactivate); 76 76 77 77 } -
rich-text-widget/trunk/rich-text-widget.php
r364801 r365752 4 4 Plugin URI: http://julienappert.com/realisations/plugin-rich-text-widget 5 5 Description: Create rich text widgets. 6 Version: 1.0 6 Version: 1.0.1 7 7 Author: Julien Appert 8 8 Author URI: http://julienappert.com … … 11 11 12 12 function richText() { 13 $widget_ops = array('classname' => 'widget_richtext', 'description' => __( 'WYSIWYG widget' ) ); 13 14 $locale = get_locale (); 15 if ( empty($locale) ) 16 $locale = 'en_US'; 17 18 $mofile = dirname (__FILE__)."/locale/$locale.mo"; 19 load_textdomain ('rtw', $mofile); 20 21 $widget_ops = array('classname' => 'widget_richtext', 'description' => __( 'WYSIWYG widget','rtw' ) ); 14 22 $control_ops = array('width' => 700, 'height' => 550); 15 $this->WP_Widget('richetext', __('Rich Text' ), $widget_ops,$control_ops);23 $this->WP_Widget('richetext', __('Rich Text','rtw'), $widget_ops,$control_ops); 16 24 $this->alt_option_name = 'widget_richtext'; 17 25 } … … 56 64 </p> 57 65 <p> 58 <input type="button" class="button-primary rtw_activate" onclick="rtw_activate('<?php echo $this->get_field_id('text'); ?>')" value=" Activer" />59 <input type="button" class="button-primary rtw_save" disabled="disabled" onclick="rtw_save('<?php echo $this->get_field_id('text'); ?>')" value=" Désactiver" />66 <input type="button" class="button-primary rtw_activate" onclick="rtw_activate('<?php echo $this->get_field_id('text'); ?>')" value="<?php echo __('Activate','rtw'); ?>" /> 67 <input type="button" class="button-primary rtw_save" disabled="disabled" onclick="rtw_save('<?php echo $this->get_field_id('text'); ?>')" value="<?php echo __('Deactivate','rtw'); ?>" /> 60 68 </p> 61 69 <?php … … 107 115 108 116 function init(){ 117 $locale = get_locale (); 118 if ( empty($locale) ) 119 $locale = 'en_US'; 120 121 $mofile = dirname (__FILE__)."/locale/$locale.mo"; 122 load_textdomain ('rtw', $mofile); 109 123 wp_enqueue_script('thickbox'); 110 124 } … … 121 135 ?> 122 136 <script type="text/javascript"> 137 var deactivate = "<?php echo esc_js(__('Please deactivate the editor before saving the widget','rtw')); ?>"; 123 138 var spellchecker_languages = "<?php echo $mce_spellchecker_languages; ?>"; 124 139 var language = '<?php echo $language; ?>';
Note: See TracChangeset
for help on using the changeset viewer.