diff --git a/e107_plugins/news/languages/English.php b/e107_plugins/news/languages/English.php index d5d30f439..704dfba52 100644 --- a/e107_plugins/news/languages/English.php +++ b/e107_plugins/news/languages/English.php @@ -11,4 +11,6 @@ define("TD_MENU_L2", "Other News"); define("LAN_NEWSCAT_MENU_TITLE", "News Categories"); define("LAN_NEWSLATEST_MENU_TITLE", "Latest News"); +define("LAN_NEWSARCHIVE_MENU_TITLE", "News Archive"); + ?> \ No newline at end of file diff --git a/e107_plugins/news/news_archive_menu.php b/e107_plugins/news/news_archive_menu.php new file mode 100644 index 000000000..adeb6dc11 --- /dev/null +++ b/e107_plugins/news/news_archive_menu.php @@ -0,0 +1,78 @@ +loadJoinActive()->toArray(); + +$monthLabels = e107::getDate()->terms(); + +$arr = array(); +foreach($tmp as $id => $val) +{ + $d = date('Y-n',$val['news_datestamp']); + list($year,$month) = explode('-',$d); + $arr[$year][$month][] = $val; +} + +$text = "
"; + +e107::plugLan('news'); + +e107::getRender()->tablerender(LAN_NEWSARCHIVE_MENU_TITLE, $text); + +e107::getDebug()->log($arr); + diff --git a/e107_themes/voux/style.css b/e107_themes/voux/style.css index 7d507ff04..7de17b0fc 100644 --- a/e107_themes/voux/style.css +++ b/e107_themes/voux/style.css @@ -539,6 +539,32 @@ img.news-image-1 { margin-bottom:15px } .btn-sm { font-size: 0.8em } + + + + + +ul.news-archive-menu li { list-style:none; } +ul.news-archive-menu li a:hover, +ul.news-archive-menu li a:active, +ul.news-archive-menu li a:focus { text-decoration:none } + +ul.news-archive-menu li a:before { content: '► '} +ul.news-archive-menu li a.e-expandit.open:before { content: '▼ '} +ul.news-archive-menu-months li a.e-expandit.open:before { content: '▼ '} +ul.news-archive-menu-items li a:before { content: '' } + + + + + + + + + + + + /* Extra small devices Phones (<768px) .col-xs */ @media all and (max-width: 767px) { diff --git a/e107_web/js/core/all.jquery.js b/e107_web/js/core/all.jquery.js index 061635c4a..18f587ed5 100644 --- a/e107_web/js/core/all.jquery.js +++ b/e107_web/js/core/all.jquery.js @@ -212,6 +212,7 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}}; // default 'toggle'. $(this).click(function () { + var $this = $(this); var href = ($this.is("a")) ? $this.attr("href") : ''; var $button = $this.find('button'); @@ -264,6 +265,7 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}}; { if($(this).is(':visible')) { + $this.addClass('open'); if($this.hasClass('e-expandit-inline')) { $(this).css('display', 'initial'); @@ -273,6 +275,10 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}}; $(this).css('display', 'block'); //XXX 'initial' broke the default behavior. } } + else + { + $this.removeClass('open'); + } }); return false;