Version 5.0.0 beta 2
This commit is contained in:
1 parent
15c7beabc5
commit
f61b0da85d
181 files changed
+3182
-1533
No files matched your search
@@ -6510,22 +6510,52 @@ IPSCONTENT;
|
||||
|
||||
|
||||
<ul class="ipsColorSchemeChanger" data-controller="core.front.core.colorScheme">
|
||||
<li data-ipstooltip title="Light mode">
|
||||
<li data-ipstooltip title="
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Member::loggedIn()->language()->addToStack( htmlspecialchars( 'theme_light_mode', ENT_DISALLOWED, 'UTF-8', FALSE ), TRUE, array( ) );
|
||||
$return .= <<<IPSCONTENT
|
||||
">
|
||||
<button data-ips-prefers-color-scheme="light">
|
||||
<i class="fa-regular fa-lightbulb"></i>
|
||||
<span class="ipsInvisible">Light mode</span>
|
||||
<span class="ipsInvisible">
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Member::loggedIn()->language()->addToStack( htmlspecialchars( 'theme_light_mode', ENT_DISALLOWED, 'UTF-8', FALSE ), TRUE, array( ) );
|
||||
$return .= <<<IPSCONTENT
|
||||
</span>
|
||||
</button>
|
||||
</li>
|
||||
<li data-ipstooltip title="Dark mode">
|
||||
<li data-ipstooltip title="
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Member::loggedIn()->language()->addToStack( htmlspecialchars( 'theme_dark_mode', ENT_DISALLOWED, 'UTF-8', FALSE ), TRUE, array( ) );
|
||||
$return .= <<<IPSCONTENT
|
||||
">
|
||||
<button data-ips-prefers-color-scheme="dark">
|
||||
<i class="fa-regular fa-moon"></i>
|
||||
<span class="ipsInvisible">Dark mode</span>
|
||||
<span class="ipsInvisible">
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Member::loggedIn()->language()->addToStack( htmlspecialchars( 'theme_dark_mode', ENT_DISALLOWED, 'UTF-8', FALSE ), TRUE, array( ) );
|
||||
$return .= <<<IPSCONTENT
|
||||
</span>
|
||||
</button>
|
||||
</li>
|
||||
<li data-ipstooltip title="System preference">
|
||||
<li data-ipstooltip title="
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Member::loggedIn()->language()->addToStack( htmlspecialchars( 'theme_system', ENT_DISALLOWED, 'UTF-8', FALSE ), TRUE, array( ) );
|
||||
$return .= <<<IPSCONTENT
|
||||
">
|
||||
<button data-ips-prefers-color-scheme="system">
|
||||
<i class="fa-solid fa-circle-half-stroke"></i>
|
||||
<span class="ipsInvisible">System preference</span>
|
||||
<span class="ipsInvisible">
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Member::loggedIn()->language()->addToStack( htmlspecialchars( 'theme_system', ENT_DISALLOWED, 'UTF-8', FALSE ), TRUE, array( ) );
|
||||
$return .= <<<IPSCONTENT
|
||||
</span>
|
||||
</button>
|
||||
</li>
|
||||
</ul>
|
||||
@@ -7237,23 +7267,23 @@ IPSCONTENT;
|
||||
$theme = \IPS\Theme::i();
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
if ( \IPS\Member::loggedIn()->isEditingTheme() and $theme->edit_in_progress ):
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
<script>
|
||||
if (window.self === window.top) {
|
||||
window.location = '
|
||||
<script>
|
||||
if (window.self === window.top) {
|
||||
window.location = '
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Http\Url::internal( "app=core&module=system&controller=themeeditor", null, "theme_editor", array(), 0 );
|
||||
$return .= <<<IPSCONTENT
|
||||
';
|
||||
}
|
||||
</script>
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
endif;
|
||||
@@ -7681,7 +7711,7 @@ IPSCONTENT;
|
||||
if ( !\in_array( 'ipsLayout_minimal', \IPS\Output::i()->bodyClasses ) ):
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Theme::i()->getTemplate( "global", "core" )->breadcrumb( 'mobile' );
|
||||
@@ -8048,7 +8078,7 @@ IPSCONTENT;
|
||||
if ( !\in_array( 'ipsLayout_minimalNoHome', \IPS\Output::i()->bodyClasses ) ):
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Theme::i()->getTemplate( "global", "core" )->breadcrumb( 'bottom' );
|
||||
@@ -8093,16 +8123,16 @@ IPSCONTENT;
|
||||
if ( !\in_array( 'ipsLayout_minimalNoHome', \IPS\Output::i()->bodyClasses ) ):
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
<div class="ipsFooter">
|
||||
<aside class="ipsFooter__widgets ipsWidth">
|
||||
|
||||
<div class="ipsFooter">
|
||||
<aside class="ipsFooter__widgets ipsWidth">
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Theme::i()->getTemplate( "global", "core" )->widgetContainer( 'globalfooter', 'vertical' );
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
</aside>
|
||||
|
||||
</aside>
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Theme\CustomTemplate::getCustomTemplatesForHookPoint( "core/front/global/globalTemplate", "footer:before", [ $title,$html,$location ] );
|
||||
@@ -8113,17 +8143,17 @@ IPSCONTENT;
|
||||
$return .= \IPS\Theme\CustomTemplate::getCustomTemplatesForHookPoint( "core/front/global/globalTemplate", "footer:inside-start", [ $title,$html,$location ] );
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
<div class="ipsWidth">
|
||||
<div class="ipsFooter__align">
|
||||
|
||||
<div class="ipsWidth">
|
||||
<div class="ipsFooter__align">
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Theme::i()->getTemplate( "global", "core" )->footer( );
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Theme\CustomTemplate::getCustomTemplatesForHookPoint( "core/front/global/globalTemplate", "footer:inside-end", [ $title,$html,$location ] );
|
||||
@@ -8134,7 +8164,7 @@ IPSCONTENT;
|
||||
$return .= \IPS\Theme\CustomTemplate::getCustomTemplatesForHookPoint( "core/front/global/globalTemplate", "footer:after", [ $title,$html,$location ] );
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
@@ -8167,14 +8197,14 @@ IPSCONTENT;
|
||||
$return .= \IPS\Theme\CustomTemplate::getCustomTemplatesForHookPoint( "core/front/global/globalTemplate", "layout:after", [ $title,$html,$location ] );
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
if ( $alert = \IPS\Output::i()->alert ):
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
{$alert}
|
||||
|
||||
{$alert}
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
endif;
|
||||
@@ -9790,7 +9820,7 @@ $return .= <<<IPSCONTENT
|
||||
</div>
|
||||
</li>
|
||||
<li class="ipsFieldRow ipsFieldRow--checkbox">
|
||||
<input type="checkbox" name="remember_me" id="remember_me_checkbox_popup" value="1" checked aria-checked="true" class="ipsInput ipsInput--toggle">
|
||||
<input type="checkbox" name="remember_me" id="remember_me_checkbox_popup" value="1" checked class="ipsInput ipsInput--toggle">
|
||||
<div class="ipsFieldRow__content">
|
||||
<label class="ipsFieldRow__label" for="remember_me_checkbox_popup">
|
||||
IPSCONTENT;
|
||||
@@ -14456,7 +14486,12 @@ IPSCONTENT;
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
<div>
|
||||
<button class="ipsNavPanel__search" aria-controls="ipsSearchDialog" aria-expanded="false" data-ipscontrols type="button"><span class="ipsNavPanel__icon" aria-hidden="true"><i class="fa-ips fa-ips--nav-panel"></i></span>Search</button>
|
||||
<button class="ipsNavPanel__search" aria-controls="ipsSearchDialog" aria-expanded="false" data-ipscontrols type="button"><span class="ipsNavPanel__icon" aria-hidden="true"><i class="fa-ips fa-ips--nav-panel"></i></span>
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Member::loggedIn()->language()->addToStack( htmlspecialchars( 'search', ENT_DISALLOWED, 'UTF-8', FALSE ), TRUE, array( ) );
|
||||
$return .= <<<IPSCONTENT
|
||||
</button>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
@@ -15341,10 +15376,15 @@ IPSCONTENT;
|
||||
if ( $text ):
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
<a href='
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= htmlspecialchars( \IPS\Http\Url::internal( "app=core&module=discover&controller=tag&tag={$encoded}", null, "tags", array(), 0 ), ENT_QUOTES | ENT_DISALLOWED, 'UTF-8', TRUE );
|
||||
$url = \IPS\Content\Tag::buildTagUrl( $text );
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
<a href='
|
||||
IPSCONTENT;
|
||||
$return .= \IPS\Theme\Template::htmlspecialchars( $url, ENT_QUOTES | ENT_DISALLOWED, 'UTF-8', FALSE );
|
||||
$return .= <<<IPSCONTENT
|
||||
' title="
|
||||
IPSCONTENT;
|
||||
@@ -16661,31 +16701,43 @@ endif;
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
if ( \is_array( $reactions ) ):
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
if ( $showCount && $size == 'small' && \count( $reactions ) ):
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
<span>
|
||||
<span>
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Theme\Template::htmlspecialchars( \count( $reactions ), ENT_QUOTES | ENT_DISALLOWED, 'UTF-8', FALSE );
|
||||
$return .= <<<IPSCONTENT
|
||||
</span>
|
||||
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
elseif ( $showCount ):
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
<p class='i-text-align_center'>
|
||||
|
||||
<p class='i-text-align_center'>
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
$pluralize = array( \count( $reactions ) ); $return .= \IPS\Member::loggedIn()->language()->addToStack( htmlspecialchars( 'react_total', ENT_DISALLOWED, 'UTF-8', FALSE ), FALSE, array( 'pluralize' => $pluralize ) );
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
</p>
|
||||
</p>
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
endif;
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
|
||||
Reference in new issue
Block a user