mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 22:27:34 +02: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:
@@ -1110,7 +1110,7 @@
|
|||||||
<item>
|
<item>
|
||||||
<field name="menu_id">14</field>
|
<field name="menu_id">14</field>
|
||||||
<field name="menu_name">news_months_menu</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_order">2</field>
|
||||||
<field name="menu_class">0</field>
|
<field name="menu_class">0</field>
|
||||||
<field name="menu_pages"></field>
|
<field name="menu_pages"></field>
|
||||||
|
@@ -110,6 +110,6 @@ $NEWS_VIEW_TEMPLATE['default']['item'] = '
|
|||||||
|
|
||||||
|
|
||||||
// Navigation/Pagination
|
// 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']['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> ';
|
||||||
|
14
install.php
14
install.php
@@ -1838,11 +1838,19 @@ if($this->pdo == true)
|
|||||||
$url_modules = eRouter::adminReadModules();
|
$url_modules = eRouter::adminReadModules();
|
||||||
$url_locations = eRouter::adminBuildLocations($url_modules);
|
$url_locations = eRouter::adminBuildLocations($url_modules);
|
||||||
$url_config = eRouter::adminBuildConfig(array(), $url_modules);
|
$url_config = eRouter::adminBuildConfig(array(), $url_modules);
|
||||||
|
|
||||||
$this->previous_steps['prefs']['url_aliases'] = array();
|
$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_modules'] = $url_modules;
|
||||||
|
|
||||||
$this->previous_steps['prefs']['url_locations'] = $url_locations;
|
$this->previous_steps['prefs']['url_locations'] = $url_locations;
|
||||||
|
|
||||||
|
|
||||||
eRouter::clearCache();
|
eRouter::clearCache();
|
||||||
installLog::add('Core URL config set to default state');
|
installLog::add('Core URL config set to default state');
|
||||||
|
|
||||||
@@ -2004,6 +2012,8 @@ if($this->pdo == true)
|
|||||||
*/
|
*/
|
||||||
function get_themes()
|
function get_themes()
|
||||||
{
|
{
|
||||||
|
return ['bootstrap5', 'voux'];
|
||||||
|
|
||||||
$handle = opendir($this->e107->e107_dirs['THEMES_DIRECTORY']);
|
$handle = opendir($this->e107->e107_dirs['THEMES_DIRECTORY']);
|
||||||
$themelist = array();
|
$themelist = array();
|
||||||
while ($file = readdir($handle))
|
while ($file = readdir($handle))
|
||||||
|
Reference in New Issue
Block a user