mirror of
https://github.com/e107inc/e107.git
synced 2025-08-10 16:46:50 +02:00
Bootstrap5 tweaks. Added support for Brazilian Portuguese.
This commit is contained in:
@@ -2951,6 +2951,7 @@ class e107
|
|||||||
$core_path = e_CORE.'templates/'.$id.'_template.php'; // default
|
$core_path = e_CORE.'templates/'.$id.'_template.php'; // default
|
||||||
$core_path_legacy = e_CORE.'templates/legacy/'.$id.'_template.php';
|
$core_path_legacy = e_CORE.'templates/legacy/'.$id.'_template.php';
|
||||||
$core_path_bs4 = e_CORE.'templates/bootstrap4/'.$id.'_template.php';
|
$core_path_bs4 = e_CORE.'templates/bootstrap4/'.$id.'_template.php';
|
||||||
|
$core_path_bs5 = e_CORE.'templates/bootstrap5/'.$id.'_template.php';
|
||||||
|
|
||||||
if($override_path && is_readable($override_path)) // v2 override template.
|
if($override_path && is_readable($override_path)) // v2 override template.
|
||||||
{
|
{
|
||||||
@@ -2968,6 +2969,10 @@ class e107
|
|||||||
{
|
{
|
||||||
return $core_path_bs4;
|
return $core_path_bs4;
|
||||||
}
|
}
|
||||||
|
elseif(defset('BOOTSTRAP') === 5 && is_readable($core_path_bs5))
|
||||||
|
{
|
||||||
|
return $core_path_bs5;
|
||||||
|
}
|
||||||
|
|
||||||
return $core_path;
|
return $core_path;
|
||||||
}
|
}
|
||||||
|
@@ -31,6 +31,7 @@ class language{
|
|||||||
*/
|
*/
|
||||||
protected $lanlist = null; // null is important!!!
|
protected $lanlist = null; // null is important!!!
|
||||||
|
|
||||||
|
// code / folder.
|
||||||
protected $list = array(
|
protected $list = array(
|
||||||
"aa" => "Afar",
|
"aa" => "Afar",
|
||||||
"ab" => "Abkhazian",
|
"ab" => "Abkhazian",
|
||||||
@@ -48,7 +49,9 @@ class language{
|
|||||||
"bi" => "Bislama",
|
"bi" => "Bislama",
|
||||||
"bo" => "Tibetan",
|
"bo" => "Tibetan",
|
||||||
"bs" => "Bosnian",
|
"bs" => "Bosnian",
|
||||||
"br" => "Breton",
|
|
||||||
|
"br" => "Brazilian",
|
||||||
|
|
||||||
"bg" => "Bulgarian",
|
"bg" => "Bulgarian",
|
||||||
"my" => "Burmese",
|
"my" => "Burmese",
|
||||||
"ca" => "Catalan",
|
"ca" => "Catalan",
|
||||||
@@ -145,6 +148,7 @@ class language{
|
|||||||
"pi" => "Pali",
|
"pi" => "Pali",
|
||||||
"pl" => "Polish",
|
"pl" => "Polish",
|
||||||
"pt" => "Portuguese",
|
"pt" => "Portuguese",
|
||||||
|
|
||||||
"ps" => "Pushto",
|
"ps" => "Pushto",
|
||||||
"qu" => "Quechua",
|
"qu" => "Quechua",
|
||||||
"ro" => "Romanian",
|
"ro" => "Romanian",
|
||||||
@@ -230,6 +234,7 @@ class language{
|
|||||||
"Norwegian" => "Norsk",
|
"Norwegian" => "Norsk",
|
||||||
"Persian" => "فارسي",
|
"Persian" => "فارسي",
|
||||||
"Portuguese" => "Português",
|
"Portuguese" => "Português",
|
||||||
|
"Brazilian" => "Português do Brasil",
|
||||||
"Polish" => "Polski",
|
"Polish" => "Polski",
|
||||||
"Romanian" => "Română",
|
"Romanian" => "Română",
|
||||||
"Russian" => "Pусский",
|
"Russian" => "Pусский",
|
||||||
|
@@ -61,7 +61,7 @@ class pm_shortcodes extends e_shortcode
|
|||||||
$urlOutbox = e107::url('pm','index','', array('query'=>array('mode'=>'outbox')));
|
$urlOutbox = e107::url('pm','index','', array('query'=>array('mode'=>'outbox')));
|
||||||
$urlCompose = e107::url('pm','index','', array('query'=>array('mode'=>'send')));
|
$urlCompose = e107::url('pm','index','', array('query'=>array('mode'=>'send')));
|
||||||
|
|
||||||
return '<a class="dropdown-toggle" data-toggle="dropdown" href="#">'.$icon.$count.'</a>
|
return '<a class="dropdown-toggle" data-toggle="dropdown" data-bs-toggle="dropdown" href="#">'.$icon.$count.'</a>
|
||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
<li>
|
<li>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user