Exemplo n.º 1
0
 /**
  * Renders the date input.
  *
  * @return string (X)HTML.
  *
  * @global array The localization of the plugins.
  */
 protected function renderDate()
 {
     global $plugin_tx;
     $html = tag('input type="date" name="realblog_date" id="date1" required="required"' . ' value="' . date('Y-m-d', $this->article->getDate()) . '"');
     $html .= ' ' . tag('img src="' . $this->imageFolder . 'calendar.png"' . ' id="trig_date1" class="realblog_date_selector" title="' . $plugin_tx['realblog']['tooltip_datepicker'] . '" alt=""');
     return $html;
 }
Exemplo n.º 2
0
 /**
  * Renders a row.
  *
  * @param Realblog_Article $article An article.
  *
  * @return string (X)HTML.
  *
  * @global string The script name.
  * @global array  The localization of the plugins.
  * @global Realblog_Controller The plugin controller.
  */
 protected function renderRow(Realblog_Article $article)
 {
     global $sn, $plugin_tx, $_Realblog_controller;
     $page = $_Realblog_controller->getPage();
     return '<tr>' . '<td class="realblog_table_line">' . tag('input type="checkbox" name="realblogtopics[]"' . ' value="' . $article->getId() . '"') . '</td>' . '<td class="realblog_table_line">' . '<a href="' . $sn . '?&amp;realblog&amp;admin=plugin_main' . '&amp;action=delete_realblog&amp;realblogID=' . $article->getId() . '&amp;page=' . $page . '">' . tag('img src="' . $this->imageFolder . 'delete.png"' . ' title="' . $plugin_tx['realblog']['tooltip_delete'] . '" alt="' . $plugin_tx['realblog']['tooltip_delete'] . '"') . '</a></td>' . '<td class="realblog_table_line">' . '<a href="' . $sn . '?&amp;realblog&amp;admin=plugin_main' . '&amp;action=modify_realblog&amp;realblogID=' . $article->getId() . '&amp;page=' . $page . '">' . tag('img src="' . $this->imageFolder . 'edit.png"' . ' title="' . $plugin_tx['realblog']['tooltip_modify'] . '" alt="' . $plugin_tx['realblog']['tooltip_modify'] . '"') . '</a></td>' . '<td class="realblog_table_line">' . $article->getId() . '</td>' . '<td class="realblog_table_line">' . date($plugin_tx['realblog']['date_format'], $article->getDate()) . '</td>' . '<td class="realblog_table_line">' . $article->getStatus() . '</td>' . '<td class="realblog_table_line">' . $article->isFeedable() . '</td>' . '<td class="realblog_table_line">' . $article->isCommentable() . '</td>' . '</tr>' . '<tr><td colspan="8" class="realblog_table_title">' . $article->getTitle() . '</td></tr>';
 }
Exemplo n.º 3
0
 /**
  * Renders a link to an article.
  *
  * @param Realblog_Article $article An article.
  * @param string           $pageURL The URL of the blog page.
  *
  * @return string (X)HTML.
  *
  * @global array The localization of the plugins.
  */
 protected function renderArticleLink($article, $pageURL)
 {
     global $plugin_tx;
     $url = $this->url($pageURL, $article->getTitle(), array('realblogID' => $article->getId()));
     return '<div class="realblog_tpl_show_date">' . date($plugin_tx['realblog']['date_format'], $article->getDate()) . '</div>' . '<div class="realblog_tpl_show_title">' . '<a href="' . XH_hsc($url) . '">' . $article->getTitle() . '</a>' . '</div>';
 }
Exemplo n.º 4
0
 /**
  * Renders the article date.
  *
  * @return string (X)HTML.
  *
  * @global array The localization of the plugins.
  */
 protected function renderDate()
 {
     global $plugin_tx;
     $date = date($plugin_tx['realblog']['date_format'], $this->article->getDate());
     return '<div class="realblog_show_date">' . $date . '</div>';
 }
Exemplo n.º 5
0
 /**
  * Renders an article date.
  *
  * @param Realblog_Article $article An article.
  *
  * @return string (X)HTML.
  *
  * @global array The localization of the plugins.
  */
 protected function renderArticleDate(Realblog_Article $article)
 {
     global $plugin_tx;
     return '<div class="realblog_show_date">' . date($plugin_tx['realblog']['date_format'], $article->getDate()) . '</div>';
 }