NAVIGATION
This shows you the differences between two versions of the page.
|
english:phpwcms_replacer_rts:frontend_render:article-menu-archive:article-menu-archive-img-template [2009/09/30 09:42] Knut Heermann (flip-flop) |
english:phpwcms_replacer_rts:frontend_render:article-menu-archive:article-menu-archive-img-template [2018/06/03 18:09] (current) |
||
|---|---|---|---|
| Line 15: | Line 15: | ||
| * random article sort order //(tag)// | * random article sort order //(tag)// | ||
| * output archived articles // (tag)// | * output archived articles // (tag)// | ||
| + | * BBCode in titel and subtitel possible | ||
| \\ | \\ | ||
| Line 86: | Line 87: | ||
| Update: 05.09.09 KH: + counter for "How many articles are to be shown" (0 = all) | Update: 05.09.09 KH: + counter for "How many articles are to be shown" (0 = all) | ||
| Update: 16.08.09 KH: + counter for "How many of the first articles are to be hidden" (0 = nothing hidden) | Update: 16.08.09 KH: + counter for "How many of the first articles are to be hidden" (0 = nothing hidden) | ||
| + | Update: 10.12.09 KH: + BBCode in titel and subtitel possible | ||
| </code> | </code> | ||
| Line 92: | Line 94: | ||
| Based on the cp article menu. | Based on the cp article menu. | ||
| - | Tag: **{ARTICLE_MENU_ARCHIVE: category-ID, count-article, sX, WxHxCxQ, tXX, rX, wXXX, aX}** \\ | + | Tag: **{ARTICLE_MENU_ARCHIVE: category-ID, count-article, sXX, WxHxCxQ, tXX, rX, wXXX, aX}** \\ |
| - | or **{ARTICLE_MENU_ARCHIVE: -1, count-article, sX}** //for the actual category// \\ | + | or **{ARTICLE_MENU_ARCHIVE: -1, count-article, sXX}** //for the actual category// \\ |
| Minimally set: **{ARTICLE_MENU_ARCHIVE: category-ID, count-article,}** //(end with a comma !!)// | Minimally set: **{ARTICLE_MENU_ARCHIVE: category-ID, count-article,}** //(end with a comma !!)// | ||
| Line 152: | Line 154: | ||
| $alinkmenu['allowedtags'] = '<b><i><u><s><strong>'; // allowed tags in summary | $alinkmenu['allowedtags'] = '<b><i><u><s><strong>'; // allowed tags in summary | ||
| - | $alinkmenu['leading_article_hide'] = 0; // No Artikle skiped | + | $alinkmenu['leading_article_hide'] = 0; // No Artikle skipped |
| $alinkmenu['WxHxCxQ'] = ''; // No image parameter set e.g. set 100x80x0 | $alinkmenu['WxHxCxQ'] = ''; // No image parameter set e.g. set 100x80x0 | ||
| $alinkmenu['template_no'] = 0; // default template = 0 | $alinkmenu['template_no'] = 0; // default template = 0 | ||
| Line 287: | Line 289: | ||
| 16.08.09 KH Update: + counter for "How many of the first articles are to be hidden" | 16.08.09 KH Update: + counter for "How many of the first articles are to be hidden" | ||
| {ARTICLE_MENU_ARCHIVE:category-ID, count-hide} | {ARTICLE_MENU_ARCHIVE:category-ID, count-hide} | ||
| - | E.g.:{ARTICLE_MENU_ARCHIVE:-1,0} (Both parameters must be set) | + | E.g.:{ARTICLE_MENU_ARCHIVE:-1,0,} (Both parameters must be set) |
| 05.09.09 KH Update: + count_article for "How many of articles are to be shown" (if available) | 05.09.09 KH Update: + count_article for "How many of articles are to be shown" (if available) | ||
| Line 333: | Line 335: | ||
| wordlimit = 25, | wordlimit = 25, | ||
| output archived articles (article_begin > NOW AND article_end > NOW) | output archived articles (article_begin > NOW AND article_end > NOW) | ||
| + | |||
| + | 10.12.09 KH Update: + BBCode in titel and subtitel possible | ||
| + | E.g.: [i]Title[/i] [b]Subtitle[/b] ...... | ||
| V1.4 | V1.4 | ||
| *************************************************************************************/ | *************************************************************************************/ | ||
| - | + | ||
| - | + | //article menu enhanced | |
| - | // ---------------------------------------------------------------- | + | |
| - | // obligate check for phpwcms constants | + | // {ARTICLE_MENU_ARCHIVE: category-ID, count-article, sXX, WxHxC, tXX, rX, wXXX, aX } |
| - | if (!defined('PHPWCMS_ROOT')) { | + | |
| - | die("You Cannot Access This Script Directly, Have a Nice Day."); } | + | |
| - | // ---------------------------------------------------------------- | + | |
| - | + | ||
| - | + | ||
| - | //article menu enhanced | + | |
| // $catid: the category ID where the articles are (-1 = current category)) | // $catid: the category ID where the articles are (-1 = current category)) | ||
| // sXX-paramter: $leading_article_hide: How many of the first articles are to be skipped | // sXX-paramter: $leading_article_hide: How many of the first articles are to be skipped | ||
| Line 353: | Line 353: | ||
| // rX -parameter: [0|1] random article sort order | // rX -parameter: [0|1] random article sort order | ||
| // wXXX-parameter: No. 0-999 max. words: [-1]=all words, [0]= no words | // wXXX-parameter: No. 0-999 max. words: [-1]=all words, [0]= no words | ||
| + | |||
| + | |||
| + | |||
| + | // ---------------------------------------------------------------- | ||
| + | // obligate check for phpwcms constants | ||
| + | if (!defined('PHPWCMS_ROOT')) { | ||
| + | die("You Cannot Access This Script Directly, Have a Nice Day."); } | ||
| + | // ---------------------------------------------------------------- | ||
| + | |||
| function my_article_menu_archive ($catid = 0, $count_article, $article_skip_WxHxCxQ_template = '', $CNT_TMP = '') { | function my_article_menu_archive ($catid = 0, $count_article, $article_skip_WxHxCxQ_template = '', $CNT_TMP = '') { | ||
| Line 790: | Line 799: | ||
| // ArticleTitle ------------------ | // ArticleTitle ------------------ | ||
| - | $alinkmenu['title'] = html_specialchars($value['article_title']); | + | $alinkmenu['title'] = render_bbcode_basics(html_specialchars($value['article_title'])); |
| // SubTitle ---------------------- | // SubTitle ---------------------- | ||
| $alinkmenu['subtitle'] = (!empty($value['article_subtitle']) AND !empty($alinkmenu['subtitle_on'])) ? | $alinkmenu['subtitle'] = (!empty($value['article_subtitle']) AND !empty($alinkmenu['subtitle_on'])) ? | ||
| - | html_specialchars($value['article_subtitle']) : ''; | + | render_bbcode_basics(html_specialchars($value['article_subtitle'])) : ''; |