src/web/app/themes/atahualpa/functions/bfa_css_admin_head.php
changeset 0 505fe5249d9c
equal deleted inserted replaced
-1:000000000000 0:505fe5249d9c
       
     1 <?php
       
     2 function bfa_ata_admin_enqueue($hook) {
       
     3 	
       
     4 	$url = get_template_directory_uri() ;
       
     5 	wp_enqueue_script( 'jscolor', "$url/options/jscolor/jscolor.js", false, '1.0.8' );
       
     6 	wp_enqueue_script( 'ajaxupload', "$url/js/ajaxupload.js", false, '3.6' );
       
     7 	wp_enqueue_script( 'mootools', "$url/options/mootools-for-textarea.js", false, '1.2.1' );
       
     8 	wp_enqueue_script( 'uvumi-textarea', "$url/options/UvumiTextarea-compressed.js", array( 'mootools' ), '1.1.0' );
       
     9 	wp_enqueue_script( 'ata-admin', "$url/options/ata-admin.js", array( 'jquery' ), '2011-06-10' );
       
    10 	
       
    11 	wp_enqueue_style( 'ata-admin', "$url/options/ata-admin.css", false, '2011-04-28' );
       
    12 	wp_enqueue_style( 'uvumi-textarea', "$url/options/uvumi-textarea.css", false, '2011-04-28' );	
       
    13 }
       
    14 
       
    15 
       
    16 function bfa_add_stuff_admin_head() {
       
    17 	$templateURI = get_template_directory_uri(); 
       
    18 	$homeURL = get_home_url();  	
       
    19 	if ( isset($_GET['page'])) {
       
    20 		if ( strpos( $_GET['page'], "atahualpa-" ) === 0 ) {
       
    21 			// Create a WP nonce for the Ajax action later on
       
    22 			$nonce = wp_create_nonce( 'reset_widget_areas' );
       
    23 			$nonce2 = wp_create_nonce( 'delete_bfa_ata4' );
       
    24 			$nonce3 = wp_create_nonce( 'import_settings' );
       
    25 			echo "<script type='text/javascript'>var nonce = '$nonce'; var nonce2 = '$nonce2'; var nonce3 = '$nonce3';</script>";
       
    26 		}
       
    27 	}
       
    28 }
       
    29 ?>