本文整理匯總了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>