Version 5.0.6
This commit is contained in:
1 parent
a3a4a9ccbd
commit
b89858b2ff
1214 files changed
+92828
-14859
No files matched your search
@@ -1136,7 +1136,7 @@ IPSCONTENT;
|
||||
endif;
|
||||
$return .= <<<IPSCONTENT
|
||||
'>
|
||||
<div class='i-padding_2 i-background_2 i-border-bottom_3 ipsChart_filters i-flex i-align-items_center i-flex-wrap_wrap i-gap_1'>
|
||||
<div class='i-padding_2 i-background_2 i-border-bottom_3 ipsChart_filters i-flex i-align-items_center i-flex-wrap_wrap i-gap_1 i-border-start-start-radius_box i-border-start-end-radius_box'>
|
||||
<div class='i-flex_91'>
|
||||
|
||||
IPSCONTENT;
|
||||
@@ -2074,6 +2074,75 @@ endif;
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
|
||||
<!-- Content Config CSS Properties -->
|
||||
<style id="contentOptionsCSS">
|
||||
:root {
|
||||
--i-embed-max-width:
|
||||
IPSCONTENT;
|
||||
|
||||
if ( \IPS\Settings::i()->max_internalembed_width ):
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Theme\Template::htmlspecialchars( \IPS\Settings::i()->max_internalembed_width, ENT_QUOTES | ENT_DISALLOWED, 'UTF-8', FALSE );
|
||||
$return .= <<<IPSCONTENT
|
||||
px
|
||||
IPSCONTENT;
|
||||
|
||||
else:
|
||||
$return .= <<<IPSCONTENT
|
||||
100%
|
||||
IPSCONTENT;
|
||||
|
||||
endif;
|
||||
$return .= <<<IPSCONTENT
|
||||
;
|
||||
--i-embed-default-width:
|
||||
IPSCONTENT;
|
||||
|
||||
if ( \IPS\Settings::i()->max_internalembed_width ):
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Theme\Template::htmlspecialchars( \IPS\Settings::i()->max_internalembed_width, ENT_QUOTES | ENT_DISALLOWED, 'UTF-8', FALSE );
|
||||
$return .= <<<IPSCONTENT
|
||||
px
|
||||
IPSCONTENT;
|
||||
|
||||
else:
|
||||
$return .= <<<IPSCONTENT
|
||||
500px
|
||||
IPSCONTENT;
|
||||
|
||||
endif;
|
||||
$return .= <<<IPSCONTENT
|
||||
;
|
||||
--i-embed-media-max-width:
|
||||
IPSCONTENT;
|
||||
|
||||
if ( \IPS\Settings::i()->max_embeddedmedia_width and intval(\IPS\Settings::i()->max_embeddedmedia_width) > 0 ):
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Theme\Template::htmlspecialchars( \IPS\Settings::i()->max_embeddedmedia_width, ENT_QUOTES | ENT_DISALLOWED, 'UTF-8', FALSE );
|
||||
$return .= <<<IPSCONTENT
|
||||
px
|
||||
IPSCONTENT;
|
||||
|
||||
else:
|
||||
$return .= <<<IPSCONTENT
|
||||
100%
|
||||
IPSCONTENT;
|
||||
|
||||
endif;
|
||||
$return .= <<<IPSCONTENT
|
||||
;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
@@ -2251,6 +2320,33 @@ IPSCONTENT;
|
||||
endif;
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
if ( \IPS\IN_DEV AND defined('ICONPICKER_DEV') AND \ICONPICKER_DEV ):
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
$editorURL = defined('ICONPICKER_DEV_URL') ? \ICONPICKER_DEV_URL : 'http://localhost:5175';
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
<script type="module">
|
||||
import RefreshRuntime from '{$editorURL}/@react-refresh'
|
||||
RefreshRuntime.injectIntoGlobalHook(window)
|
||||
window.\$RefreshReg$ = () => {}
|
||||
window.\$RefreshSig$ = () => (type) => type
|
||||
window.__vite_plugin_react_preamble_installed__ = true
|
||||
</script>
|
||||
<script type="module" src="{$editorURL}/@vite/client"></script>
|
||||
<script type="module" src="{$editorURL}/src/main.jsx"></script>
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
endif;
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
@@ -2806,7 +2902,7 @@ IPSCONTENT;
|
||||
|
||||
endif;
|
||||
$return .= <<<IPSCONTENT
|
||||
>
|
||||
|
||||
async
|
||||
></script>
|
||||
|
||||
@@ -2870,11 +2966,17 @@ IPSCONTENT;
|
||||
$hasPermission = \IPS\Helpers\Form\Editor::memberHasPermission( permission: "raw_embed" );
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
ips.setSetting('maxEmbedWidth',
|
||||
ips.setSetting('maxEmbedWidth',
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= json_encode( \IPS\Settings::i()->max_internalembed_width ?: null, JSON_HEX_APOS );
|
||||
$return .= <<<IPSCONTENT
|
||||
);
|
||||
ips.setSetting('maxEmbeddedMediaWidth',
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= json_encode( \IPS\Settings::i()->max_embeddedmedia_width ?: null, JSON_HEX_APOS );
|
||||
$return .= <<<IPSCONTENT
|
||||
);
|
||||
ips.setSetting('allowedIframeDomains',
|
||||
IPSCONTENT;
|
||||
@@ -2888,19 +2990,6 @@ IPSCONTENT;
|
||||
$return .= \IPS\Output::i()->headJs;
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
if ( \IPS\Lang::vleActive() ):
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
<!--ipsVleWords-->
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
endif;
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
</script>
|
||||
|
||||
IPSCONTENT;
|
||||
@@ -2975,6 +3064,23 @@ IPSCONTENT;
|
||||
endif;
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
|
||||
<!-- Need to add VLE tags regarless of ajax -->
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
if ( \IPS\Lang::vleActive() ):
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
<script>
|
||||
// vle words defined here, on the next line <!--ipsVleWords-->
|
||||
</script>
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
endif;
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
return $return;
|
||||
@@ -3943,6 +4049,7 @@ $return .= \IPS\Theme\Template::htmlspecialchars( \IPS\Settings::i()->board_name
|
||||
$return .= <<<IPSCONTENT
|
||||
</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>
|
||||
<style>
|
||||
|
||||
:root{
|
||||
@@ -4609,7 +4716,7 @@ IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Theme\CustomTemplate::getCustomTemplatesForHookPoint( "core/global/global/poll", "question:before", [ $poll,$url ] );
|
||||
$return .= <<<IPSCONTENT
|
||||
<h2 data-ips-hook="question" class="ipsInnerBox__header">
|
||||
<h2 data-ips-hook="question" class="ipsBox__header">
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Theme\CustomTemplate::getCustomTemplatesForHookPoint( "core/global/global/poll", "question:inside-start", [ $poll,$url ] );
|
||||
@@ -4625,7 +4732,7 @@ IPSCONTENT;
|
||||
|
||||
if ( $poll->votes ):
|
||||
$return .= <<<IPSCONTENT
|
||||
<span class="ipsInnerBox__header-secondary"><i class="fa-regular fa-check-square"></i>
|
||||
<span class="ipsBox__header-secondary"><i class="fa-regular fa-check-square"></i>
|
||||
IPSCONTENT;
|
||||
|
||||
$pluralize = array( $poll->votes ); $return .= \IPS\Member::loggedIn()->language()->addToStack( htmlspecialchars( 'poll_num_votes', ENT_DISALLOWED, 'UTF-8', FALSE ), FALSE, array( 'pluralize' => $pluralize ) );
|
||||
@@ -4652,7 +4759,7 @@ IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Theme\CustomTemplate::getCustomTemplatesForHookPoint( "core/global/global/poll", "contents:before", [ $poll,$url ] );
|
||||
$return .= <<<IPSCONTENT
|
||||
<div data-ips-hook="contents" class="ipsInnerBox__padding" data-role="pollContents">
|
||||
<div data-ips-hook="contents" class="" data-role="pollContents">
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Theme\CustomTemplate::getCustomTemplatesForHookPoint( "core/global/global/poll", "contents:inside-start", [ $poll,$url ] );
|
||||
@@ -4681,7 +4788,7 @@ IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Theme\CustomTemplate::getCustomTemplatesForHookPoint( "core/global/global/poll", "questionNoVote:before", [ $poll,$url ] );
|
||||
$return .= <<<IPSCONTENT
|
||||
<h2 data-ips-hook="questionNoVote" class="ipsInnerBox__header">
|
||||
<h2 data-ips-hook="questionNoVote" class="ipsBox__header">
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Theme\CustomTemplate::getCustomTemplatesForHookPoint( "core/global/global/poll", "questionNoVote:inside-start", [ $poll,$url ] );
|
||||
@@ -4697,7 +4804,7 @@ IPSCONTENT;
|
||||
|
||||
if ( $poll->votes ):
|
||||
$return .= <<<IPSCONTENT
|
||||
<span class="ipsInnerBox__header-secondary"><i class="fa-regular fa-check-square"></i>
|
||||
<span class="ipsBox__header-secondary"><i class="fa-regular fa-check-square"></i>
|
||||
IPSCONTENT;
|
||||
|
||||
$pluralize = array( $poll->votes ); $return .= \IPS\Member::loggedIn()->language()->addToStack( htmlspecialchars( 'poll_num_votes', ENT_DISALLOWED, 'UTF-8', FALSE ), FALSE, array( 'pluralize' => $pluralize ) );
|
||||
@@ -4719,13 +4826,13 @@ IPSCONTENT;
|
||||
$return .= \IPS\Theme\CustomTemplate::getCustomTemplatesForHookPoint( "core/global/global/poll", "questionNoVote:after", [ $poll,$url ] );
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
<div class="ipsInnerBox__padding" data-role="pollContents">
|
||||
<div class="" data-role="pollContents">
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Theme\CustomTemplate::getCustomTemplatesForHookPoint( "core/global/global/poll", "list:before", [ $poll,$url ] );
|
||||
$return .= <<<IPSCONTENT
|
||||
<ol data-ips-hook="list" class="ipsPollList i-grid i-gap_4">
|
||||
<ol data-ips-hook="list" class="ipsPollList ipsBox__padding i-grid i-gap_4">
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Theme\CustomTemplate::getCustomTemplatesForHookPoint( "core/global/global/poll", "list:inside-start", [ $poll,$url ] );
|
||||
@@ -4766,11 +4873,11 @@ IPSCONTENT;
|
||||
foreach ( $question['choice'] as $k => $choice ):
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
<li class="i-flex i-flex-wrap i-align-items_center i-gap_1">
|
||||
<li class="i-flex i-flex-wrap_wrap i-align-items_center i-gap_1">
|
||||
<div class="i-flex_11 i-basis_340">
|
||||
{$choice}
|
||||
</div>
|
||||
<div class="i-flex_91 i-flex i-align-items_center i-gap_3 i-row-gap_1">
|
||||
<div class="i-flex_91 i-basis_400 i-flex i-align-items_center i-gap_3 i-row-gap_1">
|
||||
<div class="i-flex_11">
|
||||
<progress class="ipsProgress" max="100" value="
|
||||
IPSCONTENT;
|
||||
@@ -4836,6 +4943,12 @@ IPSCONTENT;
|
||||
$return .= \IPS\Theme\Template::htmlspecialchars( $choice, ENT_QUOTES | ENT_DISALLOWED, 'UTF-8', FALSE );
|
||||
$return .= <<<IPSCONTENT
|
||||
">
|
||||
<i class="fa-solid fa-user"></i>
|
||||
IPSCONTENT;
|
||||
$return .= \IPS\Theme\Template::htmlspecialchars( $question['votes'][ $k ], ENT_QUOTES | ENT_DISALLOWED, 'UTF-8', FALSE );
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
</a>
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
@@ -4843,31 +4956,12 @@ else:
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
<span class="i-opacity_7">
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
endif;
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
<i class="fa-solid fa-user"></i>
|
||||
<i class="fa-solid fa-user"></i>
|
||||
IPSCONTENT;
|
||||
$return .= \IPS\Theme\Template::htmlspecialchars( $question['votes'][ $k ], ENT_QUOTES | ENT_DISALLOWED, 'UTF-8', FALSE );
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
if ( $poll->canSeeVoters() && $question['votes'][ $k ] > 0 ):
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
</span></a>
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
else:
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
|
||||
</span>
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
@@ -4908,8 +5002,7 @@ IPSCONTENT;
|
||||
if ( $poll->canVote() || !\IPS\Member::loggedIn()->member_id || $poll->canClose() || ( ( $poll->poll_close_date instanceof \IPS\DateTime ) and !$poll->poll_closed ) || ( ( $poll->poll_close_date instanceof \IPS\DateTime ) and $poll->poll_closed ) ):
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
<hr class="ipsHr">
|
||||
|
||||
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
@@ -4921,7 +5014,7 @@ IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Theme\CustomTemplate::getCustomTemplatesForHookPoint( "core/global/global/poll", "closed:before", [ $poll,$url ] );
|
||||
$return .= <<<IPSCONTENT
|
||||
<div data-ips-hook="closed" class="i-padding_2 i-font-weight_600 i-color_soft">
|
||||
<div data-ips-hook="closed" class="i-border-top_2 i-padding_2 i-font-weight_600 i-color_soft">
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Theme\CustomTemplate::getCustomTemplatesForHookPoint( "core/global/global/poll", "closed:inside-start", [ $poll,$url ] );
|
||||
@@ -4999,7 +5092,7 @@ IPSCONTENT;
|
||||
if ( !\IPS\Member::loggedIn()->member_id ):
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
<p>
|
||||
<p class="i-border-top_2 i-padding_2 i-color_soft">
|
||||
IPSCONTENT;
|
||||
|
||||
$sprintf = array(\IPS\Http\Url::internal( 'app=core&module=system&controller=login', 'front', 'login' ), \IPS\Http\Url::internal( 'app=core&module=system&controller=register', 'front', 'register' )); $return .= \IPS\Member::loggedIn()->language()->addToStack( htmlspecialchars( 'poll_guest', ENT_DISALLOWED, 'UTF-8', FALSE ), FALSE, array( 'sprintf' => $sprintf ) );
|
||||
@@ -5017,7 +5110,7 @@ IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Theme\CustomTemplate::getCustomTemplatesForHookPoint( "core/global/global/poll", "vote:before", [ $poll,$url ] );
|
||||
$return .= <<<IPSCONTENT
|
||||
<ul data-ips-hook="vote" class="ipsButtons ipsButtons--polls i-margin-top_2">
|
||||
<ul data-ips-hook="vote" class="ipsSubmitRow ipsSubmitRow--poll ipsButtons">
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Theme\CustomTemplate::getCustomTemplatesForHookPoint( "core/global/global/poll", "vote:inside-start", [ $poll,$url ] );
|
||||
@@ -5051,7 +5144,7 @@ IPSCONTENT;
|
||||
|
||||
endif;
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
@@ -5102,7 +5195,7 @@ IPSCONTENT;
|
||||
endif;
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Theme\CustomTemplate::getCustomTemplatesForHookPoint( "core/global/global/poll", "vote:inside-end", [ $poll,$url ] );
|
||||
@@ -5469,14 +5562,13 @@ IPSCONTENT;
|
||||
endforeach;
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
<hr class='ipsHr'>
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
if ( ($poll->poll_close_date instanceof \IPS\DateTime) or $poll->poll_view_voters ):
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
<div class='i-padding_2 i-font-weight_600 i-color_soft'>
|
||||
<div class='i-padding_2 i-border-top_2 i-font-weight_600 i-color_soft'>
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
@@ -5532,31 +5624,51 @@ IPSCONTENT;
|
||||
endif;
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
<ul class="ipsButtons i-margin-top_3">
|
||||
<li>
|
||||
<button type="submit" class="ipsButton ipsButton--primary" accesskey="s" role="button">
|
||||
<div class="ipsSubmitRow ipsSubmitRow--votePoll">
|
||||
<ul class="ipsButtons">
|
||||
<li>
|
||||
<button type="submit" class="ipsButton ipsButton--primary" accesskey="s" role="button">
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Member::loggedIn()->language()->addToStack( htmlspecialchars( 'save_vote', ENT_DISALLOWED, 'UTF-8', FALSE ), TRUE, array( ) );
|
||||
$return .= <<<IPSCONTENT
|
||||
</button>
|
||||
</li>
|
||||
|
||||
</li>
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
if ( $poll->canViewResults() ):
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
<li><a class='ipsButton ipsButton--text i-margin-end_auto' title='
|
||||
<li><a class='ipsButton ipsButton--text i-margin-end_auto' title='
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Member::loggedIn()->language()->addToStack( htmlspecialchars( 'show_results_title', ENT_DISALLOWED, 'UTF-8', FALSE ), TRUE, array( ) );
|
||||
$return .= <<<IPSCONTENT
|
||||
' href="
|
||||
'
|
||||
IPSCONTENT;
|
||||
|
||||
if ( \IPS\Settings::i()->allow_result_view ):
|
||||
$return .= <<<IPSCONTENT
|
||||
href="
|
||||
IPSCONTENT;
|
||||
$return .= \IPS\Theme\Template::htmlspecialchars( $url->setQueryString( '_poll', 'results' ), ENT_QUOTES | ENT_DISALLOWED, 'UTF-8', FALSE );
|
||||
$return .= <<<IPSCONTENT
|
||||
"
|
||||
IPSCONTENT;
|
||||
|
||||
else:
|
||||
$return .= <<<IPSCONTENT
|
||||
href="
|
||||
IPSCONTENT;
|
||||
$return .= \IPS\Theme\Template::htmlspecialchars( $url->setQueryString( array( '_poll' => 'results', 'nullVote' => 1 ) )->csrf(), ENT_QUOTES | ENT_DISALLOWED, 'UTF-8', FALSE );
|
||||
$return .= <<<IPSCONTENT
|
||||
"
|
||||
"
|
||||
IPSCONTENT;
|
||||
|
||||
endif;
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
if ( !\IPS\Settings::i()->allow_result_view ):
|
||||
@@ -5577,25 +5689,25 @@ IPSCONTENT;
|
||||
$return .= \IPS\Member::loggedIn()->language()->addToStack( htmlspecialchars( 'show_results', ENT_DISALLOWED, 'UTF-8', FALSE ), TRUE, array( ) );
|
||||
$return .= <<<IPSCONTENT
|
||||
</a></li>
|
||||
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
endif;
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
if ( $poll->canClose() ):
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
if ( ! $poll->poll_closed ):
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
<li><a class='ipsButton ipsButton--inherit' href='
|
||||
<li><a class='ipsButton ipsButton--inherit' href='
|
||||
IPSCONTENT;
|
||||
$return .= \IPS\Theme\Template::htmlspecialchars( $url->setQueryString( array( 'do' => 'pollStatus', 'value' => 0 ) )->csrf(), ENT_QUOTES | ENT_DISALLOWED, 'UTF-8', FALSE );
|
||||
$return .= <<<IPSCONTENT
|
||||
@@ -5605,13 +5717,13 @@ IPSCONTENT;
|
||||
$return .= \IPS\Member::loggedIn()->language()->addToStack( htmlspecialchars( 'poll_close', ENT_DISALLOWED, 'UTF-8', FALSE ), TRUE, array( ) );
|
||||
$return .= <<<IPSCONTENT
|
||||
</span></a></li>
|
||||
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
else:
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
<li><a class='ipsButton ipsButton--inherit' href='
|
||||
<li><a class='ipsButton ipsButton--inherit' href='
|
||||
IPSCONTENT;
|
||||
$return .= \IPS\Theme\Template::htmlspecialchars( $url->setQueryString( array( 'do' => 'pollStatus', 'value' => 1 ) )->csrf(), ENT_QUOTES | ENT_DISALLOWED, 'UTF-8', FALSE );
|
||||
$return .= <<<IPSCONTENT
|
||||
@@ -5621,19 +5733,20 @@ IPSCONTENT;
|
||||
$return .= \IPS\Member::loggedIn()->language()->addToStack( htmlspecialchars( 'poll_open', ENT_DISALLOWED, 'UTF-8', FALSE ), TRUE, array( ) );
|
||||
$return .= <<<IPSCONTENT
|
||||
</span></a></li>
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
endif;
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
endif;
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
endif;
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
</ul>
|
||||
</ul>
|
||||
</div>
|
||||
</form>
|
||||
IPSCONTENT;
|
||||
|
||||
@@ -5681,7 +5794,7 @@ $return .= <<<IPSCONTENT
|
||||
<span class="i-color_soft">
|
||||
IPSCONTENT;
|
||||
|
||||
$val = ( $vote->vote_date instanceof \IPS\DateTime ) ? $vote->vote_date : \IPS\DateTime::ts( $vote->vote_date );$return .= $val->html();
|
||||
$val = ( $vote->vote_date instanceof \IPS\DateTime ) ? $vote->vote_date : \IPS\DateTime::ts( $vote->vote_date );$return .= $val->html(useTitle: true);
|
||||
$return .= <<<IPSCONTENT
|
||||
</span>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user