1
0
mirror of https://github.com/e107inc/e107.git synced 2025-03-14 01:19:44 +01:00

SEF URLs can now by available directly after installation. Removed debug info from News pagination. Disabled news_months_menu in default install config.

This commit is contained in:
Cameron 2022-04-06 18:22:35 -07:00
parent 16354b3da0
commit efb6dd0b96
3 changed files with 15 additions and 5 deletions

View File

@ -1110,7 +1110,7 @@
<item>
<field name="menu_id">14</field>
<field name="menu_name">news_months_menu</field>
<field name="menu_location">1</field>
<field name="menu_location">0</field>
<field name="menu_order">2</field>
<field name="menu_class">0</field>
<field name="menu_pages"></field>

View File

@ -110,6 +110,6 @@ $NEWS_VIEW_TEMPLATE['default']['item'] = '
// Navigation/Pagination
$NEWS_VIEW_TEMPLATE['nav']['previous'] = '<a rel="prev" href="{NEWS_URL}">{GLYPH=fa-chevron-left}<span class="mx-1">{NEWS_TITLE} {NEWS_ID}</span></a>';
$NEWS_VIEW_TEMPLATE['nav']['previous'] = '<a rel="prev" href="{NEWS_URL}">{GLYPH=fa-chevron-left}<span class="mx-1">{NEWS_TITLE}</span></a>';
$NEWS_VIEW_TEMPLATE['nav']['current'] = '<a class="text-center" href="{NEWS_NAV_URL}">{LAN=BACK}</a>';
$NEWS_VIEW_TEMPLATE['nav']['next'] = '<a rel="next" class="text-right" href="{NEWS_URL}"><span class="mx-1">{NEWS_ID} {NEWS_TITLE}</span>{GLYPH=fa-chevron-right}</a> ';
$NEWS_VIEW_TEMPLATE['nav']['next'] = '<a rel="next" class="text-right" href="{NEWS_URL}"><span class="mx-1">{NEWS_TITLE}</span>{GLYPH=fa-chevron-right}</a> ';

View File

@ -1838,11 +1838,19 @@ if($this->pdo == true)
$url_modules = eRouter::adminReadModules();
$url_locations = eRouter::adminBuildLocations($url_modules);
$url_config = eRouter::adminBuildConfig(array(), $url_modules);
$this->previous_steps['prefs']['url_aliases'] = array();
$this->previous_steps['prefs']['url_config'] = $url_config;
if(empty($pref['url_config']))
{
$this->previous_steps['prefs']['url_config'] = $url_config;
}
$this->previous_steps['prefs']['url_modules'] = $url_modules;
$this->previous_steps['prefs']['url_locations'] = $url_locations;
eRouter::clearCache();
installLog::add('Core URL config set to default state');
@ -2004,6 +2012,8 @@ if($this->pdo == true)
*/
function get_themes()
{
return ['bootstrap5', 'voux'];
$handle = opendir($this->e107->e107_dirs['THEMES_DIRECTORY']);
$themelist = array();
while ($file = readdir($handle))