Пример #1
0
 function get_detail_content_processed($id)
 {
     //applying Schnellformatierungen and Siteinfo-specific markup to the content
     $content = $this->get_detail_content($id);
     $output = $this->sme->siteinfoDirectives(formatReady(language_filter($content)));
     return $output;
 }
Пример #2
0
 protected function add_navigation($action)
 {
     foreach ($this->si->get_all_rubrics() as $rubric) {
         $rubric[1] = language_filter($rubric[1]);
         if ($rubric[1] == '') {
             $rubric[1] = _('unbenannt');
         }
         Navigation::addItem('/footer/siteinfo/' . $rubric[0], new Navigation($rubric[1], $this->url_for('siteinfo/show/' . $rubric[0])));
     }
     foreach ($this->si->get_all_details() as $detail) {
         $detail[2] = language_filter($detail[2]);
         if ($detail[2] == '') {
             $detail[2] = _('unbenannt');
         }
         Navigation::addItem('/footer/siteinfo/' . $detail[1] . '/' . $detail[0], new Navigation($detail[2], $this->url_for('siteinfo/show/' . $detail[1] . '/' . $detail[0])));
     }
     if ($action != 'new') {
         if ($this->currentdetail > 0) {
             Navigation::activateItem('/footer/siteinfo/' . $this->currentrubric . '/' . $this->currentdetail);
         } else {
             Navigation::activateItem('/footer/siteinfo/' . $this->currentrubric);
         }
     }
 }
Пример #3
0
?>
">
<? else: ?>

    <label for="rubric_name"><?php 
echo _('Rubrik-Zuordnung');
?>
</label><br>
    <select name="rubric_id">
  <? foreach ($rubrics as $option): ?>
        <option value="<?php 
echo htmlReady($option['rubric_id']);
?>
" <? if ($currentrubric == $option['rubric_id']) echo 'selected'; ?>>
            <?php 
echo htmlReady(language_filter($option['name']));
?>
        </option>
  <? endforeach; ?>
    </select><br>

    <label for="detail_name"><?php 
echo _('Seitentitel');
?>
</label><br>
    <input style="width: 90%;" type="text" name="detail_name" id="detail_name" value="<?php 
echo htmlReady($detail_name);
?>
"><br>

    <label for="content"><?php