This file contains hidden or 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
/* MIXINS ___________________________________________*/ | |
// Transitions | |
@mixin transition($transition-property, $transition-time, $method) { | |
-webkit-transition: $transition-property $transition-time $method; | |
-moz-transition: $transition-property $transition-time $method; | |
-ms-transition: $transition-property $transition-time $method; | |
transition: $transition-property $transition-time $method; | |
} |
This file contains hidden or 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
$('.checkbox').click(function(){ | |
$('.content').slideToggle(this.checked); | |
}); |
This file contains hidden or 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 | |
$service_link = get_sub_field('service_link'); | |
$service_title = get_sub_field('service_title'); | |
if( $service_link != '' ){ ?> | |
<a href="<?php echo $service_link; ?>" title="<?php echo $service_title; ?>"><?php echo $service_title; ?></a> | |
<?php } else { ?> |
This file contains hidden or 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
$ for f in *; do mv "$f" "`echo $f | tr "[:upper:]" "[:lower:]"`"; done |
This file contains hidden or 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
//CONNECTION FEES | |
function add_connection_fee( $cart_object ) { | |
global $woocommerce; | |
$specialfeecat = 17; // category id for the special fee | |
$spfee = 0.00; // initialize special fee | |
$spfeeperprod = 9.99; //special fee per product | |
foreach ( $cart_object->cart_contents as $key => $value ) { |
This file contains hidden or 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 | |
if(is_admin()) { new wp_topups(); } | |
class wp_topups { | |
public function __construct() { | |
add_action( 'admin_menu', array($this, 'add_menu_example_list_table_page' )); | |
} | |
public function add_menu_example_list_table_page() { | |
add_menu_page( 'Account Top Ups', 'Account Top Ups', 'manage_options', basename(__FILE__), array($this, 'list_table_page'), 'dashicons-chart-bar', '4' ); | |
} |
This file contains hidden or 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
0113 Leeds Numbers | |
0114 Sheffield Numbers | |
0115 Nottingham Numbers | |
0116 Leicester Numbers | |
0117 Bristol Numbers | |
0118 Reading Numbers | |
01200 Clitheroe Numbers | |
01202 Bournemouth Numbers | |
01204 Bolton Numbers | |
01205 Boston Numbers |
This file contains hidden or 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
/* TABS */ | |
$('.tab-panel').hide(); | |
$('.tab-panel:first').show(); | |
$('.tabs li:first').addClass('active'); | |
$('.tabs li a').click(function(){ | |
$('.tabs li').removeClass('active'); | |
$(this).parent().addClass('active'); | |
var currentTab = $(this).attr('href'); | |
$('.tab-panel').fadeOut(200); |
This file contains hidden or 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
// Activate WordPress Maintenance Mode | |
function wp_maintenance_mode(){ | |
if(!current_user_can('edit_themes') || !is_user_logged_in()){ | |
wp_die('<h1 style="color:red">Website under Maintenance</h1><br />We are performing scheduled maintenance. We will be back on-line shortly!'); | |
} | |
} | |
add_action('get_header', 'wp_maintenance_mode'); |
This file contains hidden or 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
.htaccess | |
/* | |
Disable ETags | |
*/ | |
Header unset ETag | |
FileETag None | |
/* | |
Add Expire Dates |