MOON
Server: Apache
System: Linux server.netcommlabs.in 3.10.0-1160.83.1.el7.x86_64 #1 SMP Wed Jan 25 16:41:43 UTC 2023 x86_64
User: dermova (1051)
PHP: 5.4.45
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/dermova/www/india/wp-content/plugins/wptouch/admin/settings/include/custom-latest-posts.php
<?php 
	$settings = foundation_get_settings();
	
	ob_start();
	wp_dropdown_pages(); 
	$contents = ob_get_contents();
	ob_end_clean();
	
	$contents = str_replace( 'page_id', wptouch_admin_get_manual_encoded_setting_name( 'foundation', 'latest_posts_page' ), $contents );
	$value_string = 'value="' . $settings->latest_posts_page . '"';
	$contents = str_replace( $value_string, $value_string . ' selected', $contents );
	
	$is_custom = ( $settings->latest_posts_page == 'none' ? ' selected' : '' );
	$contents = str_replace( '</select>', '<option class="level-0" value="none"' . $is_custom . '>' . __( "None (Use WordPress Settings)", "wptouch-pro" ) . '</option></select>', $contents );
	
	echo $contents;	
?>