Skip to content

Commit

Permalink
licence update
Browse files Browse the repository at this point in the history
  • Loading branch information
rickyrauch committed Oct 9, 2013
1 parent e5750cc commit 9b67796
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 34 deletions.
26 changes: 9 additions & 17 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,26 +157,18 @@ function of_stylesheet() {
<?php
}

add_action( 'wp_head', 'of_stylesheet' );

if (get_option('licence_symbol')) {
require( get_template_directory() . '/inc/plugins/nav-menu-images/nav-menu-images.php' );

add_action( 'wp_head', 'of_stylesheet' );
// Re-define the options-framework URL
define( 'OPTIONS_FRAMEWORK_URL', get_template_directory_uri() . '/inc/options-framework/' );

require( get_template_directory() . '/inc/plugins/nav-menu-images/nav-menu-images.php' );

// Re-define the options-framework URL
define( 'OPTIONS_FRAMEWORK_URL', get_template_directory_uri() . '/inc/options-framework/' );

// Load the Options Framework Plugin
if ( !function_exists( 'optionsframework_init' ) ) {
define( 'OPTIONS_FRAMEWORK_DIRECTORY', get_template_directory() . '/inc/options-framework/' );
require_once OPTIONS_FRAMEWORK_DIRECTORY . 'options-framework.php';
}

require get_template_directory() . '/inc/Theme-Updater/updater.php';

}else{
require_once 'inc/licence.php';
// Load the Options Framework Plugin
if ( !function_exists( 'optionsframework_init' ) ) {
define( 'OPTIONS_FRAMEWORK_DIRECTORY', get_template_directory() . '/inc/options-framework/' );
require_once OPTIONS_FRAMEWORK_DIRECTORY . 'options-framework.php';
}

require get_template_directory() . '/inc/Theme-Updater/updater.php';

Empty file modified inc/licence.php
100644 → 100755
Empty file.
33 changes: 16 additions & 17 deletions js/site.js
Original file line number Diff line number Diff line change
@@ -1,28 +1,27 @@

(function($) {

var snapper = new Snap({
element: document.getElementById('page'),
disable: 'right',
touchToDrag: false,
hyperextensible: false
});
var snapper = new Snap({
element: document.getElementById('page'),
disable: 'right',
touchToDrag: false,
hyperextensible: false
});

var myToggleButton = document.getElementById('myToggleButton');
var myToggleButton = document.getElementById('myToggleButton');

if ($("#myToggleButton").length>0) {
if ($("#myToggleButton").length>0) {

myToggleButton.addEventListener('click', function(){
myToggleButton.addEventListener('click', function(){

if( snapper.state().state=="left" ){
snapper.close();
} else {
snapper.open('left');
}
if( snapper.state().state=="left" ){
snapper.close();
} else {
snapper.open('left');
}

});
});

};
};

$('code, pre').addClass('prettyprint');

Expand Down
Empty file modified options.php
100644 → 100755
Empty file.

0 comments on commit 9b67796

Please sign in to comment.