本文整理汇总了PHP中ThemeHelper::checkedIf方法的典型用法代码示例。如果您正苦于以下问题:PHP ThemeHelper::checkedIf方法的具体用法?PHP ThemeHelper::checkedIf怎么用?PHP ThemeHelper::checkedIf使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ThemeHelper
的用法示例。
在下文中一共展示了ThemeHelper::checkedIf方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: esc_html_e
/>
<label for="<?php
ThemeHelper::getFormName('fancybox_image_loop_1');
?>
"><?php
esc_html_e('Enable', THEME_DOMAIN);
?>
</label>
<input type="radio" name="<?php
ThemeHelper::getFormName('fancybox_image_loop');
?>
" id="<?php
ThemeHelper::getFormName('fancybox_image_loop_0');
?>
" value="0" <?php
ThemeHelper::checkedIf($this->data['option']['fancybox_image_loop'], 0);
?>
/>
<label for="<?php
ThemeHelper::getFormName('fancybox_image_loop_0');
?>
"><?php
esc_html_e('Disable', THEME_DOMAIN);
?>
</label>
</div>
</li>
<li>
<h5><?php
esc_html_e('Play speed', THEME_DOMAIN);
?>
示例2: esc_html_e
" value="1" <?php
ThemeHelper::checkedIf($this->data['option']['post_navigation_visible'], 1);
?>
/>
<label for="<?php
ThemeHelper::getFormName('post_navigation_visible_1');
?>
"><?php
esc_html_e('Yes', THEME_DOMAIN);
?>
</label>
<input type="radio" name="<?php
ThemeHelper::getFormName('post_navigation_visible');
?>
" id="<?php
ThemeHelper::getFormName('post_navigation_visible_0');
?>
" value="0" <?php
ThemeHelper::checkedIf($this->data['option']['post_navigation_visible'], 0);
?>
/>
<label for="<?php
ThemeHelper::getFormName('post_navigation_visible_0');
?>
"><?php
esc_html_e('No', THEME_DOMAIN);
?>
</label>
</div>
</li>
</ul>
示例3: foreach
<?php
$i = 0;
foreach ($this->data['dictionary']['postCategory'] as $index => $value) {
$i++;
?>
<input type="checkbox" name="<?php
ThemeHelper::getFormName('post_category[]');
?>
" id="<?php
ThemeHelper::getFormName('post_category_' . $i);
?>
" value="<?php
echo ThemeHelper::esc_attr($index);
?>
" <?php
ThemeHelper::checkedIf($this->data['option']['post_category'], $index);
?>
/>
<label for="<?php
ThemeHelper::getFormName('post_category_' . $i);
?>
"><?php
echo ThemeHelper::esc_html($value);
?>
</label>
<?php
}
?>
</div>
</li>
</ul>
示例4: esc_html_e
/>
<label for="<?php
ThemeHelper::getFormName('header_enable_1');
?>
"><?php
esc_html_e('Enable', THEME_DOMAIN);
?>
</label>
<input type="radio" name="<?php
ThemeHelper::getFormName('header_enable');
?>
" id="<?php
ThemeHelper::getFormName('header_enable_0');
?>
" value="0" <?php
ThemeHelper::checkedIf($this->data['option']['header_enable'], 0);
?>
/>
<label for="<?php
ThemeHelper::getFormName('header_enable_0');
?>
"><?php
esc_html_e('Disable', THEME_DOMAIN);
?>
</label>
</div>
</li>
<li>
<h5><?php
esc_html_e('Header background image', THEME_DOMAIN);
?>
示例5: esc_html_e
/>
<label for="<?php
ThemeHelper::getFormName('footer_bottom_enable_0');
?>
"><?php
esc_html_e('Disable', THEME_DOMAIN);
?>
</label>
<input type="radio" name="<?php
ThemeHelper::getFormName('footer_bottom_enable');
?>
" id="<?php
ThemeHelper::getFormName('footer_bottom_enable_2');
?>
" value="-1" <?php
ThemeHelper::checkedIf($this->data['option']['footer_bottom_enable'], -1);
?>
/>
<label for="<?php
ThemeHelper::getFormName('footer_bottom_enable_2');
?>
"><?php
esc_html_e('Use global settings', THEME_DOMAIN);
?>
</label>
</div>
</li>
<li>
<h5><?php
esc_html_e('Page background color', THEME_DOMAIN);
?>
示例6: esc_html_e
/>
<label for="<?php
ThemeHelper::getFormName('go_to_page_top_animation_enable_1');
?>
"><?php
esc_html_e('Enable', THEME_DOMAIN);
?>
</label>
<input type="radio" name="<?php
ThemeHelper::getFormName('go_to_page_top_animation_enable');
?>
" id="<?php
ThemeHelper::getFormName('go_to_page_top_animation_enable_2');
?>
" value="0" <?php
ThemeHelper::checkedIf($this->data['option']['go_to_page_top_animation_enable'], 0);
?>
/>
<label for="<?php
ThemeHelper::getFormName('go_to_page_top_animation_enable_2');
?>
"><?php
esc_html_e('Disable', THEME_DOMAIN);
?>
</label>
</div>
</li>
<li>
<h5><?php
esc_html_e('Duration', THEME_DOMAIN);
?>
示例7: esc_html_e
" value="1" <?php
ThemeHelper::checkedIf($this->data['option']['responsive_mode_enable'], 1);
?>
/>
<label for="<?php
ThemeHelper::getFormName('responsive_mode_enable_1');
?>
"><?php
esc_html_e('Enable', THEME_DOMAIN);
?>
</label>
<input type="radio" name="<?php
ThemeHelper::getFormName('responsive_mode_enable');
?>
" id="<?php
ThemeHelper::getFormName('responsive_mode_enable_0');
?>
" value="0" <?php
ThemeHelper::checkedIf($this->data['option']['responsive_mode_enable'], 0);
?>
/>
<label for="<?php
ThemeHelper::getFormName('responsive_mode_enable_0');
?>
"><?php
esc_html_e('Disable', THEME_DOMAIN);
?>
</label>
</div>
</li>
</ul>
示例8: esc_html_e
/>
<label for="<?php
ThemeHelper::getFormName('menu_scroll_animation_enable_1');
?>
"><?php
esc_html_e('Enable', THEME_DOMAIN);
?>
</label>
<input type="radio" name="<?php
ThemeHelper::getFormName('menu_scroll_animation_enable');
?>
" id="<?php
ThemeHelper::getFormName('menu_scroll_animation_enable_2');
?>
" value="0" <?php
ThemeHelper::checkedIf($this->data['option']['menu_scroll_animation_enable'], 0);
?>
/>
<label for="<?php
ThemeHelper::getFormName('menu_scroll_animation_enable_2');
?>
"><?php
esc_html_e('Disable', THEME_DOMAIN);
?>
</label>
</div>
</li>
<li>
<h5><?php
esc_html_e('Scrolling speed', THEME_DOMAIN);
?>
示例9: foreach
<?php
$i = 0;
foreach ($this->data['dictionary']['user'] as $value) {
$i++;
?>
<input type="checkbox" name="<?php
ThemeHelper::getFormName('maintenance_mode_user_id[]');
?>
" id="<?php
ThemeHelper::getFormName('maintenance_mode_user_id_' . $i);
?>
" value="<?php
echo ThemeHelper::esc_attr($value->data->ID);
?>
" <?php
ThemeHelper::checkedIf($this->data['option']['maintenance_mode_user_id'], $value->data->ID);
?>
/>
<label for="<?php
ThemeHelper::getFormName('maintenance_mode_user_id_' . $i);
?>
"><?php
echo ThemeHelper::esc_html($value->data->display_name);
?>
</label>
<?php
}
?>
</div>
</li>
<li>
示例10: esc_html_e
" value="1" <?php
ThemeHelper::checkedIf($this->data['option']['fancybox_video_close_button'], 1);
?>
/>
<label for="<?php
ThemeHelper::getFormName('fancybox_video_close_button_1');
?>
"><?php
esc_html_e('Enable', THEME_DOMAIN);
?>
</label>
<input type="radio" name="<?php
ThemeHelper::getFormName('fancybox_video_close_button');
?>
" id="<?php
ThemeHelper::getFormName('fancybox_video_close_button_0');
?>
" value="0" <?php
ThemeHelper::checkedIf($this->data['option']['fancybox_video_close_button'], 0);
?>
/>
<label for="<?php
ThemeHelper::getFormName('fancybox_video_close_button_0');
?>
"><?php
esc_html_e('Disable', THEME_DOMAIN);
?>
</label>
</div>
</li>
</ul>