Plugin Directory

Changeset 2100965


Ignore:
Timestamp:
06/05/2019 11:20:54 AM (7 years ago)
Author:
restpack
Message:

Minor

Location:
announcekit/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • announcekit/trunk/index.php

    r2100944 r2100965  
    4747    add_action('wp_footer', array(&$this, 'load_scripts'));
    4848
     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
    4959    register_setting($this->key, $this->key, function ($input) {
    5060      if (sanitize_text_field($_POST['action']) !== 'update') {
     
    154164  function init()
    155165  {
    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');
    158166    $first_section = $this->key . "first";
    159167
     
    362370      ?>
    363371
    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">
    365375
    366376      <div class="add-widget-page">
  • announcekit/trunk/readme.txt

    r2100944 r2100965  
    1313== Description ==
    1414AnnounceKit 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.
    1615
    17 With this plugin, you can easily add Announcekit widgets into your Wordpress site.
     16With this plugin, you can quickly add AnnounceKit widgets into your Wordpress site.
    1817
    1918Register [AnnounceKit](https://announcekit.app/?ref=wp) for free and create your newsfeed with eye-catching widgets.
     19
     20
     21== Screenshots ==
     221. You can easily attach widgets to the Menu items. No need to know or inspect the HTML elements class name or id.
     232. Fine tune the position of the widget
    2024
    2125== Frequently Asked Questions ==
Note: See TracChangeset for help on using the changeset viewer.