Changeset 1312280
- Timestamp:
- 12/19/2015 11:08:33 AM (10 years ago)
- Location:
- wp-code-prettify/trunk
- Files:
-
- 2 edited
-
wp-code-prettify-page.php (modified) (1 diff)
-
wp-code-prettify.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-code-prettify/trunk/wp-code-prettify-page.php
r994197 r1312280 144 144 <td colspan="2"><textarea cols="75" rows="5" name="style_custom"><?php echo stripslashes($wp_code_prettify['style_custom']); ?></textarea></td> 145 145 </tr> 146 <tr> 147 <th scope="row"><?php _e('You can add custom HTML into head section.', 'wp-code-prettify'); ?></th> 148 <td colspan="2"><textarea cols="75" rows="5" name="head_custom"><?php echo stripslashes($wp_code_prettify['head_custom']); ?></textarea></td> 149 </tr> 146 150 </table> 147 151 -
wp-code-prettify/trunk/wp-code-prettify.php
r994197 r1312280 79 79 80 80 $wp_code_prettify = maybe_unserialize(get_option('wp_code_prettify')); 81 81 ?> 82 83 <?php 82 84 if($wp_code_prettify['load_pos'] == 'head') { 83 85 84 $plugin_path = site_url('/wp-content/plugins/' . dirname( plugin_basename( __FILE__ ) ));86 $plugin_path = plugins_url('', __FILE__); 85 87 ?> 86 88 … … 111 113 <?php 112 114 } 115 116 echo '<!--wp code prettify-->'; 117 if($this->is_str_and_not_empty($wp_code_prettify['head_custom'])) { 118 echo stripslashes($wp_code_prettify['head_custom']); 119 } 113 120 } 114 121 … … 125 132 } 126 133 127 $plugin_path = site_url('/wp-content/plugins/' . dirname( plugin_basename( __FILE__ ) ));134 $plugin_path = plugins_url('', __FILE__); 128 135 ?> 129 136
Note: See TracChangeset
for help on using the changeset viewer.