Пример #1
0
/**
 * Build the javascript variables that are used in Custom Options.
 *
 * @since 1.0
 */
function genesis_extender_custom_php_vars()
{
    ?>
<script type="text/javascript">
<?php 
    if (get_bloginfo('version') < 3.1) {
        $conditionals_list_menu_width = '250';
    } else {
        $conditionals_list_menu_width = '266';
    }
    ?>
	var genesis_extender_custom_url = '<?php 
    echo admin_url('admin.php?page=genesis-extender-custom');
    ?>
';
	var conditionals_list_menu_width = <?php 
    echo $conditionals_list_menu_width;
    ?>
;
	var e_name = '<?php 
    _e('Name', 'extender');
    ?>
';
	var e_file_name = '<?php 
    _e('File Name', 'extender');
    ?>
';
	var e_template_name = '<?php 
    _e('Template Name', 'extender');
    ?>
';
	var e_template_type = '<?php 
    _e('Template Type', 'extender');
    ?>
';
	var e_label_create_conditional = '<?php 
    _e('Automatically create a Custom Conditional for this Label', 'extender');
    ?>
';
	var e_tag = '<?php 
    _e('Tag', 'extender');
    ?>
';
	var e_do_shortcode = '<?php 
    _e('[do_shortcode]', 'extender');
    ?>
';
	var e_delete = '<?php 
    _e('Delete', 'extender');
    ?>
';
	var e_hook = '<?php 
    _e('Hook', 'extender');
    ?>
';
	var e_priority = '<?php 
    _e('Priority', 'extender');
    ?>
';
	var e_hooked = '<?php 
    _e('Hooked', 'extender');
    ?>
';
	var e_shortcode = '<?php 
    _e('Shortcode', 'extender');
    ?>
';
	var e_both = '<?php 
    _e('Both', 'extender');
    ?>
';
	var e_css = '<?php 
    _e('CSS', 'extender');
    ?>
';
	var e_deactivate = '<?php 
    _e('Deactivate', 'extender');
    ?>
';
	var e_page_template = '<?php 
    _e('Page Template', 'extender');
    ?>
';
	var e_wp_template = '<?php 
    _e('WordPress Template', 'extender');
    ?>
';
	var e_conditionals = '<?php 
    _e('Conditionals', 'extender');
    ?>
';
	var e_class = '<?php 
    _e('Class', 'extender');
    ?>
';
	var f_genesis_extender_list_conditional_examples = '<?php 
    genesis_extender_list_conditional_examples();
    ?>
';
	var f_genesis_extender_list_hooks = '<?php 
    genesis_extender_list_hooks();
    ?>
';
	var f_genesis_extender_list_conditionals = '<?php 
    genesis_extender_list_conditionals();
    ?>
';
</script>
<?php 
}
Пример #2
0
    _e('Both', 'extender');
    ?>
</option><option value="css"><?php 
    _e('CSS', 'extender');
    ?>
</option><option value="no"><?php 
    _e('Deactivate', 'extender');
    ?>
</option></select>
					</p>
					<p>
						<span><?php 
    _e('Conditionals', 'extender');
    ?>
</span> <select class="conditionals-list-multiselect" id="custom-hook-conditionals-list-1" name="custom_hook_conditionals_list[1][]" multiple="multiple" style="width:250px;"><?php 
    genesis_extender_list_conditionals();
    ?>
</select> <span id="1" class="button delete-hook"><?php 
    _e('Delete', 'extender');
    ?>
</span><span class="do-shortcode button" style="margin-right:192px !important;"><?php 
    _e('[do_shortcode]', 'extender');
    ?>
</span>
					</p>
					<p>
						<textarea class="resizable genesis-extender-tabby-textarea" id="custom-hook-textarea-1" name="custom_hook_textarea[1]" style="width:778px;height:100px;text-align:left;"></textarea>
					</p>
				</div>
			</div>
<?php