Plugin Directory

Changeset 1403231


Ignore:
Timestamp:
04/24/2016 10:25:46 AM (10 years ago)
Author:
maor
Message:

Update to commit 5a998b1 from git@…:maor/wp-widget-labels.git

Location:
widget-labels
Files:
8 added
2 edited

Legend:

Unmodified
Added
Removed
  • widget-labels/trunk/readme.txt

    r1389518 r1403231  
    2424== Changelog ==
    2525
     26= 1.1.1 - April 24, 2016 =
     27* Fixed PHP Warning (bug)
     28* Added help text for the label field
     29
    2630= 1.1.0 - April 7, 2016 =
    2731* Prevent direct access to php files.
  • widget-labels/trunk/widget-labels.php

    r1389518 r1403231  
    44Plugin URI:  https://wordpress.org/plugins/widget-labels/
    55Description: Allows you to use custom labels/titles for any of your Widgets
    6 Version:     1.1.0
     6Version:     1.1.1
    77Author:      Maor Chasen
    88Author URI:  https://generatewp.com/
     
    8888     */
    8989    public function filter_in_widget_form( $widget, $return, $instance ) {
     90        $field_value = ( array_key_exists( 'mc_widget_label', $instance ) ) ? $instance['mc_widget_label'] : '';
    9091        ?>
    9192        <p>
    9293            <label for="<?php echo esc_attr( sprintf( 'widget-%s-%s-mc_widget_label', $widget->id_base, $widget->number ) ); ?>"><?php esc_html_e( 'Widget Label:', 'widget-labels' ); ?></label>
    93             <input type="text" name="<?php echo esc_attr( "widget-{$widget->id_base}[{$widget->number}][mc_widget_label]" ); ?>" id="<?php echo esc_attr( "widget-{$widget->id_base}-{$widget->number}-mc_widget_label" ); ?>" value="<?php echo esc_attr( $instance['mc_widget_label'] ); ?>" class="widefat">
     94            <input type="text" name="<?php echo esc_attr( "widget-{$widget->id_base}[{$widget->number}][mc_widget_label]" ); ?>" id="<?php echo esc_attr( "widget-{$widget->id_base}-{$widget->number}-mc_widget_label" ); ?>" value="<?php echo esc_attr( $field_value ); ?>" class="widefat">
     95            <br>
     96            <small><?php esc_html_e( 'This text will show up as the label for this widget.', 'widget-labels' ); ?></small>
    9497        </p>
    9598        <?php
Note: See TracChangeset for help on using the changeset viewer.