Example #1
0
		  
		  <textarea id="wp-css-config-quick-editor-textarea-1" style="display: none" name="wp-css-config-quick-editor-textarea-1"><?php 
echo get_option('wpcss_quick_config_settings_' . wpcss_current_theme_slug());
?>
</textarea>
		  
		  <div id="csshero-save-nonce"> <?php 
wp_nonce_field('csshero_saving_nonce', 'csshero_saving_nonce_field');
?>
</div>
		  
		  <script>
		  function wpcss_initialize_editor_data()
							  {          
									 jQuery( "body" ).data( "wpcss_current_settings_array", '<?php 
echo addslashes(json_encode(unserialize(get_option('wpcss_current_settings_array_' . wpcss_current_theme_slug()))));
?>
' ).data( "wpcss_admin_url", ' <?php 
echo get_admin_url();
?>
' );
								  } 
					  
		  </script>
		<script type='text/javascript' src='http://csshero.org/production/heroes-loader.php?key=<?php 
echo wpcss_check_license();
?>
&theme=<?php 
echo $theme_slug . wpcss_gp();
?>
&plugins=<?php 
Example #2
0
function csshero_get_configuration_array($step_id = "default")
{
    if ($step_id == "default") {
        $wpcss_current_settings_array = unserialize(get_option('wpcss_current_settings_array_' . wpcss_current_theme_slug()));
    } else {
        if (!is_numeric($_GET['step_id'])) {
            die("<h1>Invalid step id, not numeric!");
        }
        $wpcss_current_settings_array = unserialize(get_option('wpcss_theme_settings_snapshot_array_' . wpcss_current_theme_slug() . '-' . $_GET['step_id']));
    }
    return $wpcss_current_settings_array;
}