WordPress.org

Forums

ZigWidgetClass
have a select menu / picker instead of text box (1 post)

  1. bristweb
    Member
    Posted 3 years ago #

    i think it is better for the designer to specific specific classes which the admin can choose from

    it is simple to modify... something like this:

    <SELECT name='widget-<?php echo $widget->id_base?>[<?php echo $widget->number?>][zigclass]' id='widget-<?php echo $widget->id_base?>-<?php echo $widget->number?>-zigclass' class='widefat'>
    <?php
    $css_options = "default,white,black,clear";
    $css_options = explode(",",$css_options);
    foreach($css_options as $css_option){
    echo '<OPTION VALUE="'.$css_option.'" '.($css_option == $instance['zigclass'] ? 'SELECTED':'').'>'.$css_option.'</option>';
    }
    ?>
    </SELECT>

    the designer could thin put some filter in the functions.php to enumerate the class list.
    http://wordpress.org/extend/plugins/zigwidgetclass/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • ZigWidgetClass
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic