Ejemplo n.º 1
0
<?php

preg_match('/\\[(.*?)\\]/', wptouch_admin_get_setting_name(), $matches);
$post_type_name = str_replace(array('[', ']'), '', $matches[0]);
$type_object = urlencode(serialize(get_post_type_object($post_type_name)));
?>

<input type="checkbox" class="checkbox" name="<?php 
wptouch_admin_the_encoded_setting_name();
?>
" id="<?php 
wptouch_admin_the_setting_name();
?>
" <?php 
if (wptouch_admin_is_post_type_checked()) {
    echo ' checked';
}
if (wptouch_admin_is_setting_pro()) {
    echo ' disabled';
}
?>
 value="<?php 
echo $post_type_name . '||||' . $type_object;
?>
" />
<input type="hidden" name="object_<?php 
wptouch_admin_the_encoded_setting_name();
?>
" id="<?php 
wptouch_admin_the_setting_name();
?>
Ejemplo n.º 2
0
function wptouch_admin_the_setting_name()
{
    echo wptouch_admin_get_setting_name();
}
Ejemplo n.º 3
0
wptouch_admin_the_setting_name();
?>
"<?php 
if (wptouch_admin_is_post_type_checked()) {
    echo " checked";
}
?>
 value="<?php 
echo $post_type_name . '||||' . $type_object_encoded;
?>
" />
	<input type="checkbox" class="checkbox" name="<?php 
wptouch_admin_the_encoded_setting_name();
?>
" id="<?php 
echo str_replace('[', '-', str_replace(']', '-', wptouch_admin_get_setting_name()));
?>
" <?php 
if (wptouch_admin_is_post_type_checked()) {
    echo ' checked';
}
?>
 value="<?php 
echo $post_type_name . '||||' . $type_object_encoded;
?>
" />
	<label for="<?php 
echo str_replace('[', '-', str_replace(']', '-', wptouch_admin_get_setting_name()));
?>
"></label>
</div>
Ejemplo n.º 4
0
<?php

$settings = wptouch_get_settings();
ob_start();
wp_dropdown_pages();
$contents = ob_get_contents();
ob_end_clean();
$contents = str_replace("id='page_id'", 'id="' . wptouch_admin_get_setting_name() . '"', $contents);
$contents = str_replace("name='page_id'", 'name="' . wptouch_admin_get_encoded_setting_name() . '"', $contents);
$value_string = 'value="' . $settings->homepage_redirect_wp_target . '"';
$contents = str_replace($value_string, $value_string . ' selected', $contents);
echo $contents;
?>
<label for="homepage_redirect_wp_target"><?php 
_e('WordPress Page', 'wptouch-pro');
?>
</label>