set_default_options();
}
public function booking_shortcode($atts) {
ob_start();
include LBG_PLUGIN_PATH . ‘templates/booking-widget.php’;
return ob_get_clean();
}
public function enqueue_scripts() {
wp_enqueue_style(‘lbg-styles’, LBG_PLUGIN_URL . ‘assets/css/style.css’);
wp_enqueue_script(‘lbg-booking’, LBG_PLUGIN_URL . ‘assets/js/booking.js’, array(‘jquery’), ‘1.0.0’, true);
wp_localize_script(‘lbg-booking’, ‘lbg_ajax’, array(
‘ajax_url’ => admin_url(‘admin-ajax.php’),
‘nonce’ => wp_create_nonce(‘lbg_nonce’)
));
}
public function activate() {
// Create database tables
$database = new LBG_Database();
$database->create_tables();
// Set default options
$this->set_default_options();
}
public function deactivate() {
// Clean up scheduled events
wp_clear_scheduled_hook(‘lbg_send_reminder_email’);
}
private function set_default_options() {
// Your business information
if (!get_option(‘lbg_business_info’)) {
update_option(‘lbg_business_info’, array(
‘name’ => ‘Luxury Barbering Group Inc’,
‘phone’ => ‘904-993-0213′,
’email’ => ‘Fareed@LuxuryBarberingGroup.com’,
‘instagram’ => ‘@Fareed_DA_Barber’,
‘address’ => ‘6010 Duclay Road, Suite 17, Jacksonville, FL 32244’
));
}
// Your business hours
if (!get_option(‘lbg_business_hours’)) {
update_option(‘lbg_business_hours’, array(
‘monday’ => array(‘open’ => ’08:00′, ‘close’ => ’17:00′),
‘tuesday’ => array(‘open’ => ’08:00′, ‘close’ => ’17:00′),
‘wednesday’ => array(‘open’ => ’08:00′, ‘close’ => ’17:00′),
‘thursday’ => array(‘open’ => ’08:00′, ‘close’ => ’17:00′),
‘friday’ => array(‘open’ => ’08:00′, ‘close’ => ’17:00′),
‘saturday’ => array(‘open’ => ’07:00′, ‘close’ => ’16:00′),
‘sunday’ => array(‘open’ => ‘closed’, ‘close’ => ‘closed’)
));
}
// Your services with exact pricing
if (!get_option(‘lbg_services’)) {
update_option(‘lbg_services’, array(
‘haircut’ => array(
‘name’ => ‘Haircut (Fades, Temp Fades and Taper Fades)’,
‘price’ => 50,
‘duration’ => 60,
‘description’ => ‘Professional haircut including all fade styles’
),
‘haircut_beard’ => array(
‘name’ => ‘Haircut & Beard’,
‘price’ => 60,
‘duration’ => 90,
‘description’ => ‘Includes hot towel and lather’
),
‘student_haircut’ => array(
‘name’ => ‘Student Haircut (Up to age 19)’,
‘price’ => 40,
‘duration’ => 45,
‘description’ => ‘Special student pricing for ages 19 and under’
),
‘beard_trim’ => array(
‘name’ => ‘Beard Trim’,
‘price’ => 35,
‘duration’ => 30,
‘description’ => ‘Hot towel and lather included’
),
‘tape_up’ => array(
‘name’ => ‘Tape-Up (Just the Outline)’,
‘price’ => 30,
‘duration’ => 30,
‘description’ => ‘Clean up the outline only’
),
‘full_shave’ => array(
‘name’ => ‘Full Shave’,
‘price’ => 45,
‘duration’ => 45,
‘description’ => ‘Hot towel and lather included’
),
‘luxury_package’ => array(
‘name’ => ‘Luxury Package’,
‘price’ => 100,
‘duration’ => 105,
‘description’ => ‘Haircut and Beard with detoxifying facial’
)
));
}
}
}
// Initialize the plugin
new Luxury_Barbering_Booking();
?>