Пример #1
0
     }
     if ($sql_union != '') {
         $alink_sql = '(' . $alink_sql . ') UNION DISTINCT (' . $alink_sql . ')' . $sql_union;
         if (!empty($content['alink']['alink_max']) && intval($content['alink']['alink_max'])) {
             $alink_sql .= " LIMIT " . intval($content['alink']['alink_max']);
         }
     }
 }
 $content['alink']['tr'] = array();
 $content['alink']['alink_template_head'] = get_tmpl_section('TEASER_HEAD', $content['alink']['alink_template']);
 $content['alink']['alink_template_footer'] = get_tmpl_section('TEASER_FOOTER', $content['alink']['alink_template']);
 $content['alink']['alink_template_entry'] = get_tmpl_section('TEASER_ENTRY', $content['alink']['alink_template']);
 $content['alink']['alink_template_space'] = get_tmpl_section('TEASER_ENTRY_SPACER', $content['alink']['alink_template']);
 $content['alink']['alink_template_row'] = get_tmpl_section('TEASER_ROW_SPACER', $content['alink']['alink_template']);
 $content['alink']['alink_template_column'] = trim(get_tmpl_section('TEASER_COLUMN_OVERWRITE', $content['alink']['alink_template']));
 $content['alink']['alink_template_head'] = str_replace('{LINK_ARTICLE_CLASS}', get_class_attrib($template_default["article"]["link_article_class"]), $content['alink']['alink_template_head']);
 $content['alink']['result'] = _dbQuery($alink_sql);
 if (isset($content['alink']['result'][0])) {
     // lets handle columns and rows
     if ($content['alink']['alink_template_column'] !== '') {
         $content['alink']['alink_columns'] = abs(intval($content['alink']['alink_template_column']));
     } elseif (empty($content['alink']['alink_columns'])) {
         $content['alink']['alink_columns'] = 0;
     } else {
         $content['alink']['alink_columns'] = $content['alink']['alink_columns'];
     }
     $content['alink']['column'] = 1;
     $content['alink']['row'] = 1;
     $content['alink']['row_space'] = false;
     // before finding a faster solution...
     if (!empty($content['alink']['alink_type'])) {
Пример #2
0
             $alinkmenu['sum'] .= '</a>';
         }
     }
 } else {
     $alinkmenu['sum'] = false;
 }
 $alinkmenu['active_class'] = $aktion[1] == $row[0] ? ' class="' . (empty($alinkmenu['class']) ? 'alink-active' : $alinkmenu['class'] . '-active') . '"' : '';
 if (!$alinkmenu['ul']) {
     // render as table
     if ($alinkmenu['sum'] !== false) {
         $tempRowSpan = ' rowspan="2"';
         $alinkmenu['sum'] = "<tr>\n\t<td>" . $alinkmenu['sum'] . "</td>\n</tr>\n";
     }
     $alinkmenu['link'] .= "<tr>\n\t<td valign=\"top\"" . $tempRowSpan . " nowrap=\"nowrap\">" . $template_default["article"]["link_article_sign"] . "</td>\n\t";
     $alinkmenu['link'] .= '<td' . $alinkmenu['active_class'] . '>' . $alinkmenu['titlewrap'][0] . '<a href="index.php?' . setGetArticleAid($row) . '" ';
     $alinkmenu['link'] .= get_class_attrib($template_default["article"]["link_article_class"]) . ' title="' . $row['article_title'] . '">';
     $alinkmenu['link'] .= $row['article_menutitle'] . '</a>' . $alinkmenu['titlewrap'][1] . "</td>\n</tr>\n";
     $alinkmenu['link'] .= $alinkmenu['sum'];
 } else {
     if (!empty($alinkmenu["break"]) && $alinkmenu['count'] > 1) {
         $alinkmenu['link'] .= '	<' . $alinkmenu['ul_tag'][$alinkmenu['ul']][1] . ' class="break">';
         $alinkmenu['link'] .= $alinkmenu["break"];
         $alinkmenu['link'] .= '</' . $alinkmenu['ul_tag'][$alinkmenu['ul']][1] . '>' . LF;
     }
     $alinkmenu['link'] .= '	<' . $alinkmenu['ul_tag'][$alinkmenu['ul']][1];
     $alinkmenu['link'] .= $alinkmenu['active_class'] . '>' . $alinkmenu['titlewrap'][0];
     $alinkmenu['link'] .= '<a href="index.php?' . setGetArticleAid($row) . '" title="' . $row['article_title'] . '">';
     $alinkmenu['link'] .= $row['article_menutitle'];
     $alinkmenu['link'] .= '</a>' . $alinkmenu['titlewrap'][1];
     if ($alinkmenu['sum'] !== false) {
         $alinkmenu['link'] .= LF . $alinkmenu['sum'];