function form($instance)
    {
        parent::form($instance);
        $well = isset($instance['well']) ? $instance['well'] : false;
        ?>
        <p>
            <label for="<?php 
        echo $this->get_field_id('well');
        ?>
"><?php 
        echo __('Has Container', 'notebook');
        ?>
</label>
            <input type="checkbox" id="<?php 
        echo $this->get_field_id('well');
        ?>
" name="<?php 
        echo $this->get_field_name('well');
        ?>
" <?php 
        checked($well);
        ?>
 />
        </p>
        <?php 
    }
Exemplo n.º 2
0
 function form($instance)
 {
     parent::form($instance);
     am4PluginsManager::get('widgets')->showWidgetProtectionBlock($this, $instance);
 }