Exemple #1
0
 function woothemes_admin_head()
 {
     //Setup Custom Navigation Menu
     if (function_exists('woo_custom_navigation_setup')) {
         woo_custom_navigation_setup();
     }
 }
function woothemes_admin_head()
{
    //Tweaked the message on theme activate
    ?>
    <script type="text/javascript">
    jQuery(function(){
    	
        var message = '<p>This <strong>WooTheme</strong> comes with a <a href="<?php 
    echo admin_url('admin.php?page=woothemes');
    ?>
">comprehensive options panel</a>. This theme also supports widgets, please visit the <a href="<?php 
    echo admin_url('widgets.php');
    ?>
">widgets settings page</a> to configure them.</p>';
    	jQuery('.themes-php #message2').html(message);
    
    });
    </script>
    <?php 
    //Setup Custom Navigation Menu
    if (function_exists('woo_custom_navigation_setup')) {
        woo_custom_navigation_setup();
    }
}
function woo_custom_nav_reset()
{
    global $wpdb;
    $table_name = $wpdb->prefix . "woo_custom_nav_records";
    //DROP existing tables
    $wpdb->query("DROP TABLE " . $table_name);
    $table_name_menus = $wpdb->prefix . "woo_custom_nav_menus";
    //DELETE existing menus
    $wpdb->query("DROP TABLE " . $table_name_menus);
    woo_custom_navigation_setup();
    return true;
}