function install_std_widgets($widgets)
{
    $widgets->lock();
    $sidebars = tsidebars::i();
    $id = $widgets->add(tcategorieswidget::i());
    $sidebars->insert($id, 'inline', 0, -1);
    $id = $widgets->add(ttagswidget::i());
    $id = $widgets->add(tarchiveswidget::i());
    $sidebars->insert($id, 'inline', 0, -1);
    $id = $widgets->add(tlinkswidget::i());
    $sidebars->insert($id, 'inline', 0, -1);
    $id = $widgets->add(tpostswidget::i());
    $sidebars->insert($id, 'inline', 1, -1);
    $id = $widgets->add(tcommentswidget::i());
    $sidebars->insert($id, true, 1, -1);
    $id = $widgets->add(tmetawidget::i());
    $sidebars->insert($id, 'inline', 1, -1);
    $widgets->unlock();
}
예제 #2
0
 public function save()
 {
     parent::save();
     if (!$this->locked) {
         ttagswidget::i()->expire();
     }
 }