Changeset 2210162
- Timestamp:
- 12/11/2019 02:24:11 PM (6 years ago)
- Location:
- wpsimpletools-html-code/trunk
- Files:
-
- 1 deleted
- 2 edited
-
languages (deleted)
-
readme.txt (modified) (3 diffs)
-
wpsimpletools-html-code.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wpsimpletools-html-code/trunk/readme.txt
r2197432 r2210162 6 6 Requires PHP: 5.0.0 7 7 Tested up to: 5.3 8 Stable tag: 1.0. 68 Stable tag: 1.0.7 9 9 License: GPLv3 10 10 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 19 19 == Upgrade Notice == 20 20 21 = 1.0. 6=22 1.0. 6 WP 5.3.* supported21 = 1.0.7 = 22 1.0.7 Translation ready 23 23 24 24 == Frequently Asked Questions == … … 40 40 = 1.0.6 = 41 41 1.0.6 WP 5.3 supported 42 = 1.0.7 = 43 1.0.7 Translation ready 42 44 43 45 == Screenshots == -
wpsimpletools-html-code/trunk/wpsimpletools-html-code.php
r2197432 r2210162 6 6 * Author: WpSimpleTools 7 7 * Author URI: https://profiles.wordpress.org/wpsimpletools/#content-plugins 8 * Version: 1.0. 68 * Version: 1.0.7 9 9 * Plugin Slug: wpsimpletools-html-code 10 * Text Domain: wps t_hc10 * Text Domain: wpsimpletools-html-code 11 11 */ 12 12 if (! defined('ABSPATH')) { 13 13 die("Don't call this file directly."); 14 14 } 15 16 //17 function wpst_hc_init() {18 load_plugin_textdomain('wpst_hc', false, basename(dirname(__FILE__)) . '/languages/');19 }20 add_action('plugins_loaded', 'wpst_hc_init');21 15 22 16 // … … 28 22 29 23 $wp_customize->add_section('html_code', array( 30 'title' => __('Footer HTML code', 'wps t_hc'),24 'title' => __('Footer HTML code', 'wpsimpletools-html-code'), 31 25 'priority' => 25 32 26 )); 33 27 34 28 $wp_customize->add_control(new WP_Customize_Control($wp_customize, 'html_code', array( 35 'label' => __('HTML code', 'wps t_hc'),29 'label' => __('HTML code', 'wpsimpletools-html-code'), 36 30 'section' => 'html_code', 37 31 'settings' => 'html_code', … … 42 36 function wpst_hc_insert_code() { 43 37 44 echo PHP_EOL . '<!-- wpsimpletools-html-code -->' . PHP_EOL; 38 echo PHP_EOL . '<!-- WpSimpleTools HTML Code Snippet -->' . PHP_EOL; 39 echo PHP_EOL . '<!-- https://wordpress.org/plugins/wpsimpletools-html-code/ -->' . PHP_EOL . PHP_EOL; 45 40 46 41 if (get_theme_mod('html_code')) 47 42 echo get_theme_mod('html_code'); 48 49 echo PHP_EOL . '<!-- /wpsimpletools-html-code -->' . PHP_EOL;50 43 } 51 44
Note: See TracChangeset
for help on using the changeset viewer.