|
47 | 47 | </td> |
48 | 48 | </tr> |
49 | 49 |
|
| 50 | + <tr valign="top"> |
| 51 | + <th scope="row"><?php _e('Image Title function', 'mfbfw'); ?></th> |
| 52 | + <td> |
| 53 | + <fieldset> |
| 54 | + |
| 55 | + <label for="copyTitleFunction"> |
| 56 | + <?php _e('Function to customize image titles', 'mfbfw'); ?> |
| 57 | + <textarea rows="10" cols="50" class="large-text code" name="mfbfw[copyTitleFunction]" wrap="physical" id="copyTitleFunction"><?php echo ($mfbfw['copyTitleFunction']); ?></textarea> |
| 58 | + </label><br /> |
| 59 | + |
| 60 | + <small><em><?php _e('This option allows you to edit image titles with your own jQuery function.', 'mfbfw'); ?></em></small><br /><br /> |
| 61 | + |
| 62 | + <small><strong><em><?php _e('Example:', 'mfbfw'); ?></em></strong></small><br /> |
| 63 | + <small><em><code> |
| 64 | + var arr = jQuery("a.fancybox");<br /> |
| 65 | + jQuery.each(arr, function() {<br /> |
| 66 | + var title = jQuery(this).children("img").attr("title");<br /> |
| 67 | + jQuery(this).attr("title",title);<br /> |
| 68 | + }) |
| 69 | + </code></em></small><br /><br /> |
| 70 | + |
| 71 | + </fieldset> |
| 72 | + </td> |
| 73 | + </tr> |
| 74 | + |
50 | 75 | <tr valign="top"> |
51 | 76 | <th scope="row"><?php _e('Callbacks', 'mfbfw'); ?></th> |
52 | 77 | <td> |
|
85 | 110 | <?php _e('Callback on <strong>Closed</strong> event: Will be called once FancyBox is closed', 'mfbfw'); ?> |
86 | 111 | <textarea rows="10" cols="50" class="large-text code" name="mfbfw[callbackOnClose]" wrap="physical" id="callbackOnClosed"><?php echo ($mfbfw['callbackOnClose']); ?></textarea> |
87 | 112 | </label><br /><br/> |
88 | | - |
89 | | - <label for="copyTitleFunction"> |
90 | | - <?php _e('Function to copy title from different source then Fancybox default anchor title', 'mfbfw'); ?> |
91 | | - <textarea rows="10" cols="50" class="large-text code" name="mfbfw[copyTitleFunction]" wrap="physical" id="copyTitleFunction"><?php echo ($settings['copyTitleFunction']); ?></textarea> |
92 | | - </label><br /><br/> |
93 | 113 |
|
94 | 114 | <small><strong><em><?php _e('Example:', 'mfbfw'); ?></em></strong></small><br /> |
95 | 115 | <small><em><code>function() { alert('Hello world!'); }</code></em></small><br /> |
96 | | - <small><em><?php _e('Leave empty any speciic callbacks you don\'t need to use.', 'mfbfw'); ?></em></small><br /><br /> |
| 116 | + <small><em><?php _e('Leave empty any specific callbacks you don\'t need to use.', 'mfbfw'); ?></em></small><br /><br /> |
97 | 117 |
|
98 | 118 | </div> |
99 | 119 |
|
|
0 commit comments