Support » Plugin: ZigWidgetClass » [Plugin: ZigWidgetClass] have a select menu / picker instead of text box

  • 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/

  • The topic ‘[Plugin: ZigWidgetClass] have a select menu / picker instead of text box’ is closed to new replies.