当前位置: 首页>>代码示例>>PHP>>正文


PHP ThemeHelper::selectedIf方法代码示例

本文整理汇总了PHP中ThemeHelper::selectedIf方法的典型用法代码示例。如果您正苦于以下问题:PHP ThemeHelper::selectedIf方法的具体用法?PHP ThemeHelper::selectedIf怎么用?PHP ThemeHelper::selectedIf使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ThemeHelper的用法示例。


在下文中一共展示了ThemeHelper::selectedIf方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: esc_html_e

		<ul class="to-form-field-list">
			<li>
				<h5><?php 
esc_html_e('404 error page', THEME_DOMAIN);
?>
</h5>
				<span class="to-legend"><?php 
esc_html_e('Get settings for 404 page from selected page.', THEME_DOMAIN);
?>
</span>
				<div class="to-clear-fix">
					<select name="<?php 
ThemeHelper::getFormName('page_404_page_id');
?>
" id="<?php 
ThemeHelper::getFormName('page_404_page_id');
?>
">
<?php 
foreach ($this->data['dictionary']['page'] as $value) {
    echo '<option value="' . ThemeHelper::esc_attr($value->ID) . '" ' . ThemeHelper::selectedIf($this->data['option']['page_404_page_id'], $value->ID, false) . '>' . ThemeHelper::esc_html($value->post_title) . '</option>';
}
?>
					</select>
				</div>
			</li>
		</ul>
开发者ID:slavai,项目名称:sadick,代码行数:27,代码来源:general_page.php

示例2: esc_html_e

</h5>
					<span class="to-legend"><?php 
esc_html_e('Select one of the available posts types and enter additional details about it (if needed).', THEME_DOMAIN);
?>
</span>
					<div class="to-clear-fix">
						<select name="<?php 
ThemeHelper::getFormName('post_type');
?>
" id="<?php 
ThemeHelper::getFormName('post_type');
?>
">
<?php 
foreach ($this->data['dictionary']['postType'] as $index => $value) {
    echo '<option value="' . ThemeHelper::esc_attr($index) . '" ' . ThemeHelper::selectedIf($this->data['option']['post_type'], $index, false) . '>' . ThemeHelper::esc_html($value[0]) . '</option>';
}
?>
						</select>
					</div>
				</li>
				<li>
					<h5><?php 
esc_html_e('Preambule', THEME_DOMAIN);
?>
</h5>
					<span class="to-legend"><?php 
esc_html_e('Enter preambule (the top part of the post, e.g: video, audio, image slider etc.) of the post. You can use shortcodes in this field.', THEME_DOMAIN);
?>
</span>
					<div class="to-clear-fix">
开发者ID:phanhoanglong2610,项目名称:anc_gvn,代码行数:31,代码来源:meta_box_post.php

示例3: esc_html_e

esc_html_e('Footer layout', THEME_DOMAIN);
?>
</h5>
					<span class="to-legend"><?php 
esc_html_e('Select layout of widgets in footer. This option works only if this widget area is selected as sidebar in footer.', THEME_DOMAIN);
?>
</span>
					<div class="to-clear-fix">
						<select name="<?php 
ThemeHelper::getFormName('widget_area_footer_layout');
?>
" id="<?php 
ThemeHelper::getFormName('widget_area_footer_layout');
?>
">
<?php 
foreach ($this->data['dictionary']['layout'] as $index => $value) {
    echo '<option value="' . ThemeHelper::esc_attr($index) . '" ' . ThemeHelper::selectedIf($this->data['option']['widget_area_footer_layout'], $index, false) . '>' . ThemeHelper::esc_html($index) . '</option>';
}
?>
						</select>
					</div>
				</li>
			</ul>
		</div>
		<script type="text/javascript">
			jQuery(document).ready(function($)
			{	
				$('.to').themeOptionElement({init:true});
			});
		</script>
开发者ID:slavai,项目名称:sadick,代码行数:31,代码来源:meta_box_widget_area.php

示例4: start_el


//.........这里部分代码省略.........
        echo esc_html($item->description);
        // textarea_escaped
        ?>
</textarea>
						<span class="description"><?php 
        _e('The description will be displayed in the menu if the current theme supports it.');
        ?>
</span>
					</label>
				</p>
<?php 
        if ($depth == 0) {
            $Layout = new ThemeLayout();
            $Menu = new ThemeMenu();
            $menuIcon = $Menu->getIcon();
            ?>
	            <p class="field-custom description description-wide">
	                <label for="edit-menu-item-icon-<?php 
            echo $item_id;
            ?>
">
	                    <?php 
            _e('Icon');
            ?>
<br />
						<select id="edit-menu-item-icon-<?php 
            echo $item_id;
            ?>
" name="menu_item_icon[<?php 
            echo $item_id;
            ?>
]" class="widefat code edit-menu-item-custom">
<?php 
            echo '<option value="-1" ' . ThemeHelper::selectedIf($item->icon, -1, false) . '>' . esc_html__('[None]', 'pb') . '</option>';
            foreach ($menuIcon as $index => $value) {
                echo '<option value="' . esc_attr($value) . '" ' . ThemeHelper::selectedIf($item->icon, $index, false) . '>' . esc_html($value) . '</option>';
            }
            ?>
						</select>
	                </label>
	            </p>				
				<p class="field-custom description description-wide">
					<label for="edit-menu-item-mega-menu-enable-<?php 
            echo $item_id;
            ?>
">
						<input type="checkbox" id="edit-menu-item-mega-menu-enable-<?php 
            echo $item_id;
            ?>
" value="1" name="menu_item_mega_menu_enable[<?php 
            echo $item_id;
            ?>
]"<?php 
            checked($item->mega_menu_enable, '1');
            ?>
 />
						<span class="description"><?php 
            _e('Enable Mega Menu');
            ?>
</span>
					</label>
				</p>				
	            <p class="field-custom description description-wide field-group-mega-menu">
	                <label for="edit-menu-item-mega-menu-layout-<?php 
            echo $item_id;
            ?>
开发者ID:phanhoanglong2610,项目名称:anc_gvn,代码行数:67,代码来源:Walker_Nav_Menu.php

示例5: esc_html_e

				</div>
				<div class="to-clear-fix">
					<span class="to-legend-field"><?php 
esc_html_e('Previous:', THEME_DOMAIN);
?>
</span>
					<select name="<?php 
ThemeHelper::getFormName('fancybox_image_easing_previous');
?>
" id="<?php 
ThemeHelper::getFormName('fancybox_image_easing_previous');
?>
">
<?php 
foreach ($this->data['dictionary']['easingType'] as $index => $value) {
    echo '<option value="' . ThemeHelper::esc_attr($index) . '" ' . ThemeHelper::selectedIf($this->data['option']['fancybox_image_easing_previous'], $index, false) . '>' . ThemeHelper::esc_html($value[0]) . '</option>';
}
?>
					</select>
				</div>
			</li>
			<li>
				<h5><?php 
esc_html_e('Speed', THEME_DOMAIN);
?>
</h5>
				<span class="to-legend"><?php 
esc_html_e('The time it takes (in ms) to complete transition.', THEME_DOMAIN);
?>
</span>
				<div>
开发者ID:phanhoanglong2610,项目名称:anc_gvn,代码行数:31,代码来源:plugin_fancybox_image.php

示例6: esc_html_e

					<?php 
esc_html_e('Specify the image size. For options "Length" and "Percentage" you have to specify these values in next field.', THEME_DOMAIN);
?>
<br/>
				</span>
				<div class="to-clear-fix">
					<select name="<?php 
ThemeHelper::getFormName('header_background_image_size_1');
?>
" id="<?php 
ThemeHelper::getFormName('header_background_image_size_1');
?>
">
<?php 
foreach ($this->data['dictionary']['backgroundSize'] as $index => $value) {
    echo '<option value="' . ThemeHelper::esc_attr($index) . '" ' . ThemeHelper::selectedIf($this->data['option']['header_background_image_size_1'], $index, false) . '>' . ThemeHelper::esc_html($value[0]) . '</option>';
}
?>
					</select>
				</div>
			</li>				
			<li>
				<h5><?php 
esc_html_e('Background image size', THEME_DOMAIN);
?>
</h5>
				<span class="to-legend">
					<?php 
esc_html_e('Sets the width and height of the background image.', THEME_DOMAIN);
?>
<br/>
开发者ID:slavai,项目名称:sadick,代码行数:31,代码来源:general_main.php

示例7: esc_html_e

</h5>
				<span class="to-legend"><?php 
esc_html_e('Select top menu.', THEME_DOMAIN);
?>
</span>
				<div class="to-clear-fix">
					<select name="<?php 
ThemeHelper::getFormName('menu_top_woocommerce');
?>
" id="<?php 
ThemeHelper::getFormName('menu_top_woocommerce');
?>
">
<?php 
foreach ($this->data['dictionary']['menu-1'] as $index => $value) {
    echo '<option value="' . ThemeHelper::esc_attr($index) . '" ' . ThemeHelper::selectedIf($this->data['option']['menu_top_woocommerce'], $index, false) . '>' . ThemeHelper::esc_html($value[0]) . '</option>';
}
?>
					</select>
				</div>
			</li>				
		</ul>
		<script type="text/javascript">
			jQuery(document).ready(function($) 
			{
				var element=$('.to').themeOptionElement();;
				element.bindBrowseMedia('#<?php 
ThemeHelper::getFormName('header_background_image_src_woocommerce_browse');
?>
');
			});
开发者ID:phanhoanglong2610,项目名称:anc_gvn,代码行数:31,代码来源:plugin_woocommerce.php

示例8: esc_html_e

echo ThemeHelper::esc_attr($this->data['option']['go_to_page_top_animation_duration']);
?>
" maxlength="5"/>
				</div>
			</li>
			<li>
				<h5><?php 
esc_html_e('Easing', THEME_DOMAIN);
?>
</h5>
				<span class="to-legend"><?php 
esc_html_e('Easing method of animation.', THEME_DOMAIN);
?>
</span>
				<div class="to-clear-fix">
					<select name="<?php 
ThemeHelper::getFormName('go_to_page_top_animation_easing');
?>
" id="<?php 
ThemeHelper::getFormName('go_to_page_top_animation_easing');
?>
">
<?php 
foreach ($this->data['dictionary']['easingType'] as $index => $value) {
    echo '<option value="' . ThemeHelper::esc_attr($index) . '" ' . ThemeHelper::selectedIf($this->data['option']['go_to_page_top_animation_easing'], $index, false) . '>' . ThemeHelper::esc_html($value[0]) . '</option>';
}
?>
					</select>
				</div>
			</li>
		</ul>
开发者ID:slavai,项目名称:sadick,代码行数:31,代码来源:general_go_top_top.php

示例9: esc_html_e

</h5>
				<span class="to-legend"><?php 
esc_html_e('Get settings for splash page from selected page.', THEME_DOMAIN);
?>
</span>
				<div class="to-clear-fix">
					<select name="<?php 
ThemeHelper::getFormName('maintenance_mode_post_id');
?>
" id="<?php 
ThemeHelper::getFormName('maintenance_mode_post_id');
?>
">
<?php 
foreach ($this->data['dictionary']['page'] as $value) {
    echo '<option value="' . ThemeHelper::esc_attr($value->ID) . '" ' . ThemeHelper::selectedIf($this->data['option']['maintenance_mode_post_id'], $value->ID, false) . '>' . ThemeHelper::esc_html($value->post_title) . '</option>';
}
?>
					</select>
				</div>
			</li>
			<li>
				<h5><?php 
esc_html_e('Disable maintenance mode for users', THEME_DOMAIN);
?>
</h5>
				<span class="to-legend"><?php 
esc_html_e('Allow to visit page (in normal mode) selected users:', THEME_DOMAIN);
?>
</span>
				<div class="to-checkbox-button">
开发者ID:slavai,项目名称:sadick,代码行数:31,代码来源:plugin_maintenance_mode.php


注:本文中的ThemeHelper::selectedIf方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。