_name = _("Notes Summary"); } /** */ protected function _title() { global $registry; $label = !empty($this->_params['block_title']) ? $this->_params['block_title'] : $registry->get('name'); return Horde::link(Horde::url($registry->getInitialPage(), true)) . htmlspecialchars($label) . ''; } /** */ protected function _params() { return array( 'show_actions' => array( 'type' => 'checkbox', 'name' => _("Show action buttons?"), 'default' => 1 ), 'show_notepad' => array( 'type' => 'checkbox', 'name' => _("Show notepad name?"), 'default' => 1 ), ); } /** */ protected function _content() { global $registry, $prefs; if (!empty($this->_params['show_notepad'])) { $shares = $GLOBALS['injector']->getInstance('Horde_Core_Factory_Share')->create(); } $html = ''; $memos = Mnemo::listMemos($prefs->getValue('sortby'), $prefs->getValue('sortdir')); foreach ($memos as $id => $memo) { $html .= '
' . _("No notes to display") . '
'; } return '