From f85acb1783ab7056d731d8f524bbf71cea13cb94 Mon Sep 17 00:00:00 2001 From: Lastorder <18280396+Lastorder-DC@users.noreply.github.com> Date: Fri, 22 Nov 2024 10:05:12 +0900 Subject: [PATCH] add option to hide default options --- modules/poll/poll.model.php | 1 + modules/poll/skins/default/form.html | 2 -- widgets/pollWidget/skins/default/pollview.html | 8 ++++++++ widgets/pollWidget/skins/simple/pollview.html | 8 ++++++++ 4 files changed, 17 insertions(+), 2 deletions(-) diff --git a/modules/poll/poll.model.php b/modules/poll/poll.model.php index ba3752ef4..8c9bb32bc 100644 --- a/modules/poll/poll.model.php +++ b/modules/poll/poll.model.php @@ -53,6 +53,7 @@ class PollModel extends Poll $poll->poll[$val->poll_index_srl]->title = $val->title; $poll->poll[$val->poll_index_srl]->checkcount = $val->checkcount; $poll->poll[$val->poll_index_srl]->poll_count = $val->poll_count; + $poll->poll[$val->poll_index_srl]->hide = strpos($val->title, '[HIDE]') !== FALSE; } $output = executeQueryArray('poll.getPollItem', $args); diff --git a/modules/poll/skins/default/form.html b/modules/poll/skins/default/form.html index 53e6485e7..d8310f913 100644 --- a/modules/poll/skins/default/form.html +++ b/modules/poll/skins/default/form.html @@ -52,8 +52,6 @@ {@$_idx = $poll->poll_srl.'_'.$poll_srl_index.'_'.$item_srl} - -