Plugin Directory

Changeset 1710587


Ignore:
Timestamp:
08/08/2017 10:30:46 PM (9 years ago)
Author:
sparklit
Message:

v1.14, users can now add titles to the each widget on the appearance -> widget page.

Location:
adbutler/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • adbutler/trunk/adbutler.php

    r1688029 r1710587  
    55Plugin URI: https://wordpress.org/plugins/adbutler
    66Description: AdButler ad management system integration plugin. Simplify deployment of your ad zones with this highly effective manner of deploying your publishing needs
    7 Version: 1.13
     7Version: 1.14
    88Author: AdButler
    99Author URI: http://www.adbutler.com
  • adbutler/trunk/includes/adbutler_widget.class

    r1688019 r1710587  
    6060        $instance['extra_data'] = sanitize_text_field($new_instance['extra_data']);
    6161
     62        $instance['title'] = sanitize_text_field( $new_instance['title'] );
    6263
    6364        $def = array(
     
    9899        $responsive_hidden = 'FIXED';
    99100        $extra_data = '';
     101        $title = '';
    100102
    101103        if ($instance) {
     
    108110            $responsive_hidden = esc_attr($instance['responsive']);
    109111            $extra_data = esc_attr($instance['extra_data']);
     112            $title = esc_attr($instance['title']);
    110113        }
    111114        $responsive_type_list = array(
     
    127130        ?>
    128131        <div class="adbutler_widget">
     132            <p>
     133                <label for="<?php echo $this->get_field_id('title'); ?>">
     134                    <?php _e('Internal Title (only in Appearance->Widgets)'); ?> <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo esc_attr($title); ?>" />
     135                </label>
     136            </p>
    129137            <p title="Please select from one of the available zones to configure your advertisement placement ">
    130138                <label
  • adbutler/trunk/readme.txt

    r1688029 r1710587  
    6969== Changelog ==
    7070
     71*1.14 Some user have many instances of the widget on their site and with them all named "AdButler Widget" they are really hard to tell apart, but no longer!  Now you can set a title for each widget, say "Cute Puppy Ad" which will be appended to the title so "AdButler Widget" becomes "AdButler Widget: Cute Puppy Ad" or whatever you happen to name it.  So go give your widgets a title!
    7172*1.13 Update tags, branding, and instructions.
    7273*1.12 Compatability with plugins enhancement.
Note: See TracChangeset for help on using the changeset viewer.