Last active
August 29, 2015 14:15
-
-
Save isotrope/91341c9a148e5c4830ac to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function ($) { | |
$(document).ready(function () { | |
var icons = { | |
header : "ui-icon-circle-arrow-e", | |
activeHeader: "ui-icon-circle-arrow-s" | |
}, | |
$accordion = $("#accordion"); | |
$accordion.accordion({ | |
icons: icons | |
}); | |
$("#toggle").button().click(function () { | |
if ($accordion.accordion("option", "icons")) { | |
$accordion.accordion("option", "icons", null); | |
} else { | |
$accordion.accordion("option", "icons", icons); | |
} | |
}); | |
}); | |
})(jQuery); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function raaron_admin_enqueue_scripts() { | |
$handle = 'gravity-styles'; | |
$src = plugins_url() . '/gravity-styles-plugin/css/settings-styles.css'; | |
wp_register_style( $handle, $src ); | |
wp_enqueue_style( $handle ); | |
wp_enqueue_script( 'gravity_styles-script', plugins_url() . '/path/to/script.js', array( 'jquery-ui-accordion' ), '1.0' ); | |
} | |
add_action( 'admin_enqueue_scripts', 'raaron_admin_enqueue_scripts' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment