示例#1
0
                echo action_icon(T_('Disable this widget!'), 'deactivate', regenerate_url('blog', 'action=toggle&wi_ID=' . $ComponentWidget->ID . '&' . url_crumb('widget')));
            } else {
                echo action_icon(T_('Enable this widget!'), 'activate', regenerate_url('blog', 'action=toggle&wi_ID=' . $ComponentWidget->ID . '&' . url_crumb('widget')));
            }
            echo '<span class="edit_icon_hook">' . action_icon(T_('Edit widget settings!'), 'edit', regenerate_url('blog', 'action=edit&amp;wi_ID=' . $ComponentWidget->ID)) . '</span>';
            echo '<span class="delete_icon_hook">' . action_icon(T_('Remove this widget!'), 'delete', regenerate_url('blog', 'action=delete&amp;wi_ID=' . $ComponentWidget->ID . '&amp;' . url_crumb('widget'))) . '</span>';
            $Table->display_col_end();
            $Table->display_line_end();
        }
    }
    // BODY END:
    $Table->display_body_end();
    $Table->display_list_end();
}
// fp> what browser do we need a fielset for?
echo '<fieldset id="current_widgets">' . "\n";
// fieldsets are cool at remembering their width ;)
// Display containers for current skin:
foreach ($container_list as $container) {
    display_container($container);
}
// Display containers not in current skin:
foreach ($container_Widget_array as $container => $dummy) {
    if (!in_array($container, $container_list)) {
        display_container($container, ' ' . T_('[NOT INCLUDED IN SELECTED SKIN!]'));
    }
}
global $rsc_url;
echo '<!--[if IE]>' . get_icon('pixel') . '<![endif]-->';
echo '</fieldset>' . "\n";
echo get_icon('pixel', 'imgtag', array('class' => 'clear'));
示例#2
0
}
$Form = new Form($admin_url . '?ctrl=widgets&blog=' . $Blog->ID);
$Form->add_crumb('widget');
$Form->begin_form();
// fp> what browser do we need a fielset for?
echo '<fieldset id="current_widgets">' . "\n";
// fieldsets are cool at remembering their width ;)
// Start by displaying all containers we know are in the current skin: (may be different in i8?)
foreach ($container_list as $container) {
    display_container($container);
}
// Now display all other containers that also have widgets in them, just in case we need them:
foreach ($container_Widget_array as $container => $dummy) {
    if (!in_array($container, $container_list)) {
        // No already displayed, display now:
        display_container($container);
    }
}
echo '</fieldset>' . "\n";
echo '<span class="btn-group">';
$Form->button(array('value' => get_icon('check_all') . ' ' . T_('Check All'), 'id' => 'widget_button_check_all', 'tag' => 'button', 'type' => 'button'));
$Form->button(array('value' => get_icon('uncheck_all') . ' ' . T_('Uncheck All'), 'id' => 'widget_button_uncheck_all', 'tag' => 'button', 'type' => 'button'));
echo '</span>';
echo '<span class="btn-group">';
$Form->button(array('value' => get_icon('check_all') . ' ' . get_icon('bullet_green') . ' ' . T_('Check Active'), 'id' => 'widget_button_check_active', 'tag' => 'button', 'type' => 'button'));
$Form->button(array('value' => get_icon('check_all') . ' ' . get_icon('bullet_empty_grey') . ' ' . T_('Check Inactive'), 'id' => 'widget_button_check_inactive', 'tag' => 'button', 'type' => 'button'));
echo '</span>';
echo ' ' . T_('With checked do:');
echo '<span class="btn-group">';
$Form->button(array('value' => get_icon('bullet_green') . ' ' . T_('Activate'), 'name' => 'actionArray[activate]', 'tag' => 'button', 'type' => 'submit'));
$Form->button(array('value' => get_icon('bullet_empty_grey') . ' ' . T_('De-activate'), 'name' => 'actionArray[deactivate]', 'tag' => 'button', 'type' => 'submit'));