Changeset 2100965
- Timestamp:
- 06/05/2019 11:20:54 AM (7 years ago)
- Location:
- announcekit/trunk
- Files:
-
- 2 edited
-
index.php (modified) (3 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
announcekit/trunk/index.php
r2100944 r2100965 47 47 add_action('wp_footer', array(&$this, 'load_scripts')); 48 48 49 function load_custom_wp_admin_style($hook) 50 { 51 if (strpos($hook, 'announcekit') !== false) { 52 wp_enqueue_script('my_custom_script', plugins_url('admin.js', __FILE__), array('jquery'), 'v1'); 53 wp_enqueue_style('bootstrap', plugins_url('bootstrap.min.css', __FILE__), null, 'v1'); 54 } 55 } 56 57 add_action('admin_enqueue_scripts', 'load_custom_wp_admin_style'); 58 49 59 register_setting($this->key, $this->key, function ($input) { 50 60 if (sanitize_text_field($_POST['action']) !== 'update') { … … 154 164 function init() 155 165 { 156 wp_enqueue_script('my_custom_script', plugins_url('admin.js', __FILE__), array('jquery'), 'v1');157 wp_enqueue_style('bootstrap', plugins_url('bootstrap.min.css', __FILE__), null, 'v1');158 166 $first_section = $this->key . "first"; 159 167 … … 362 370 ?> 363 371 364 <form style="display:<?php echo $display; ?>" class="submit-form" action="options.php?widget_id=<?php echo sanitize_text_field($_GET['widget_id']); ?>" method="post"> 372 <form style="display:<?php echo $display; ?>" class="submit-form" action="options.php?widget_id=<?php echo sanitize_text_field( 373 $_GET['widget_id'] 374 ); ?>" method="post"> 365 375 366 376 <div class="add-widget-page"> -
announcekit/trunk/readme.txt
r2100944 r2100965 13 13 == Description == 14 14 AnnounceKit is a newsfeed with eye-catching widgets. Best way announce product updates, release notes, changelog or whatever you call it. 15 It is powered with email notifications, user feedback, and analytics.16 15 17 With this plugin, you can easily add Announcekit widgets into your Wordpress site.16 With this plugin, you can quickly add AnnounceKit widgets into your Wordpress site. 18 17 19 18 Register [AnnounceKit](https://announcekit.app/?ref=wp) for free and create your newsfeed with eye-catching widgets. 19 20 21 == Screenshots == 22 1. You can easily attach widgets to the Menu items. No need to know or inspect the HTML elements class name or id. 23 2. Fine tune the position of the widget 20 24 21 25 == Frequently Asked Questions ==
Note: See TracChangeset
for help on using the changeset viewer.