esc_html__('WooCommerce', 'siteseo'),
'tab_siteseopro_easydigital_downloads' => esc_html__('Easy Digital Downloads', 'siteseo'),
'tab_siteseopro_pagespeed_insights' => esc_html__('PageSpeed Insights', 'siteseo'),
'tab_siteseopro_dublin_core' => esc_html__('Dublin Core', 'siteseo'),
'tab_siteseopro_local_business' => esc_html__('Local Business', 'siteseo'),
'tab_siteseopro_structured_data' => esc_html__('Structured Data Types', 'siteseo')
];
echo '
';
}
static function woocommerce_tab(){
global $siteseo;
if(!empty($_POST['submit'])){
self::save_settings();
}
$options = $siteseo->pro;
// Check if settings are enable
$cart_page = !empty($options['woocommerce_cart_page_no_index']);
$checkout_page = !empty($options['woocommerce_checkout_page_no_index']);
$account_page = !empty($options['woocommerce_customer_account_page_no_index']);
$woo_og_price = !empty($options['woocommerce_product_og_price']);
$woo_og_currency = !empty($options['woocommerce_product_og_currency']);
$woo_meta_generator = !empty($options['woocommerce_meta_generator']);
$schema_output = !empty($options['woocommerce_schema_output']);
$schema_breadcrumbs = !empty($options['woocommerce_schema_breadcrumbs_output']);
$toggle_state_woocommerce = !empty($options['toggle_state_woocommerce']) ? $options['toggle_state_woocommerce'] : '';
echo 'WooCommerce
' . ($toggle_state_woocommerce ? 'Click to disable this feature' : 'Click to enable this feature') . '
'.esc_html__('Enhance WooCommerce SEO by enabling this feature, which automatically adds Product Identifier Type and Product Identifier Value fields to the WooCommerce product metabox (e.g., barcode). These fields are essential for enriching the Product schema, helping search engines better understand and display your products', 'siteseo-pro').'
';
if(!is_plugin_active('woocommerce/woocommerce.php')){
echo''.__('You need to enable WooCommerce to apply these settings.', 'siteseo-pro').'
';
}
echo'
';
}
static function easy_digital_downloads_tab() {
if(!empty($_POST['submit'])){
self::save_settings();
}
$options = get_option('siteseo_pro_options');
// check settings enable
$option_og_price = isset($options['edd_product_og_price']) ? $options['edd_product_og_price'] : '';
$option_og_currency = isset($options['edd_product_og_currency']) ? $options['edd_product_og_currency'] : '';
$option_meta_generator = isset($options['edd_meta_generator']) ? $options['edd_meta_generator'] : '';
$toggle_state_easy_digital = isset($options['toggle_state_easy_digital']) ? $options['toggle_state_easy_digital'] : '';
echo 'Easy Digital Downloads
' . (!empty($toggle_state_easy_digital) ? esc_html__('Click to disable this feature', 'siteseo-pro') : esc_html__('Click to enable this feature', 'siteseo-pro')) . '
'.esc_html__('Improve Easy Digital Downloads SEO', 'siteseo-pro').'
';
if(!is_plugin_active('easy-digital-downloads/easy-digital-downloads.php')){
echo '';
_e('You need to enable Easy Digital Downloads to apply these settings.', 'siteseo-pro');
echo '
';
}
echo'
';
}
static function pagespeed_insights_tab(){
global $siteseo;
if(!empty($_POST['submit'])){
self::save_settings();
}
// check settings enable
$check_api_key = !empty($siteseo->pro['ps_api_key']) ? $siteseo->pro['ps_api_key'] : '';
$docs = function_exists('siteseo_get_docs_links') ? siteseo_get_docs_links() : '';
echo 'PageSpeed Insights
'.esc_html__('Check your site performance with Google PageSpeed Insights.', 'siteseo-pro').'
'.esc_html__('Learn how your site has performed, based on data from your actual users around the world.', 'siteseo-pro').'
';
echo ' ';
echo'';
$page_speed = get_option('siteseo_pro_page_speed', []);
if(!empty($page_speed['mobile']) && !empty($page_speed['desktop'])){
PageSpeed::analysis();
}
echo'
';
}
static function dublin_core_tab(){
global $siteseo;
if(!empty($_POST['submit'])){
self::save_settings();
}
$dublin_core = !empty($siteseo->pro['dublin_core_enable']);
$toggle_state_dublin_core = !empty($siteseo->pro['toggle_state_dublin_core']) ? $siteseo->pro['toggle_state_dublin_core'] : '';
echo 'Dublin Core
' . (!empty($toggle_state_dublin_core) ? 'Click to disable this feature' : 'Click to enable this feature') . '
' .
' ' . esc_html__('Dublin Core is a set of meta tags to describe your content','siteseo-pro') .
' ' . esc_html__('These tags are automatically generated. Recognized by states / governments, they are used by directories, Bing, Baidu and Yandex.','siteseo-pro') .
'
';
}
static function local_business_tab(){
global $siteseo;
if(!empty($_POST['submit'])){
self::save_settings();
}
// Time slots
$days = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'];
$hours = range('00', '23');
$mins = ['00', '15', '30', '45', '59'];
if(isset($_POST['siteseo_pro_options']) && is_array($_POST['siteseo_pro_options'])){
$siteseo_pro_options = map_deep(wp_unslash($_POST['siteseo_pro_options']), 'sanitize_text_field');
}
$business_type['LocalBusiness'] = 'Local Business (default)';
$business_type['AnimalShelter'] = 'Animal Shelter';
$business_type['ChildCare'] = 'Child Care';
$business_type['DryCleaningOrLaundry'] = 'Dry Cleaning Or Laundry';
$business_type['EmergencyService'] = 'Emergency Service';
$business_type['FireStation'] = '|-FireStation';
$business_type['Hospital'] = '|-Hospital';
$business_type['PoliceStation'] = '|-Police Station';
$business_type['EmploymentAgency'] = 'Employment Agency';
$business_type['Entertainment Business'] = 'Entertainment Business';
$business_type['AdultEntertainment'] = '|-AdultEntertainment';
$business_type['AmusementPark'] = '|-Amusement Park';
$business_type['ArtGallery'] = '|-Art Gallery';
$business_type['Casino'] = '|-Casino';
$business_type['ComedyClub'] = '|-Comedy Club';
$business_type['MovieTheater'] = '|-Movie Theater';
$business_type['NightClub'] = '|-Night Club';
$business_type['FinancialService'] = '|-Financial Service';
$business_type['AccountingService'] = '|-Accounting Service';
$business_type['AutomatedTeller'] = '|-Automated Teller';
$business_type['BankOrCreditUnion'] = '|-Bank Or CreditUnion';
$business_type['InsuranceAgency'] = '|-Insurance Agency';
$business_type['FoodEstablishment'] = 'Food Establishment';
$business_type['Bakery'] = '|-Bakery';
$business_type['BarOrPub'] = '|-Bar Or Pub';
$business_type['Brewery'] = 'Brewery';
$business_type['CafeOrCoffeeShop'] = '|-Cafe Or CoffeeShop';
$business_type['FastFoodRestaurant'] = '|-Fast Food Restaurant';
$business_type['IceCreamShop'] = '|-Ice Cream Shop';
$business_type['Restaurant'] = '|-Restaurant';
$business_type['Winery'] = '|-Winery';
$business_type['GovernmentOffice'] = 'Government Office';
$business_type['PostOffice'] = '|-PostOffice';
$business_type['HealthAndBeautyBusiness'] = 'Health And Beauty Business';
$business_type['BeautySalon'] = '|-Beauty Salon';
$business_type['DaySpa'] = '|-DaySpa';
$business_type['HairSalon'] = '|-Hair Salon';
$business_type['HealthClub'] = '|-Health Club';
$business_type['NailSalon'] = '|-Nail Salon';
$business_type['TattooParlor'] = '|-Tattoo Parlor';
$business_type['HomeAndConstructionBusiness'] = '|-Home And Construction Business';
$business_type['Electrician'] = '|-Electrician';
$business_type['HVACBusiness'] = '|-HVAC Business';
$business_type['HousePainter'] = '|-House Painter';
$business_type['Locksmith'] = '|-Locksmith';
$business_type['MovingCompany'] = '|-MovingCompany';
$business_type['Plumber'] = '|-Plumber';
$business_type['RoofingContractor'] = '|-Roofing Contractor';
$business_type['InternetCafe'] = '|-Internet Cafe';
$business_type['MedicalBusiness'] = '|-Medical Business';
$business_type['CommunityHealth'] = '|-Community Health';
$business_type['Dentist'] = '|-Dentist';
$business_type['Dermatology'] = '|-Dermatology';
$business_type['DietNutrition'] = '|-Diet Nutrition';
$business_type['Emergency'] = '|-Emergency';
$business_type['Gynecologic'] = '|-Gynecologic';
$business_type['MedicalClinic'] = '|-MedicalClinic';
$business_type['Midwifery'] = '|-Midwifery';
$business_type['Nursing'] = '|-Nursing';
$business_type['Obstetric'] = '|-Obstetric';
$business_type['Oncologic'] = '|-Oncologic';
$business_type['Optician'] = '|-Optician';
$business_type['Otolaryngologic'] = '|-Otolaryngologic';
$business_type['Pediatric'] = '|-Pediatric';
$business_type['Pharmacy'] = '|-Pharmacy';
$business_type['Physiotherapy'] = '|-Physiotherapy';
$business_type['PlasticSurgery'] = '|-PlasticSurgery';
$business_type['Podiatric'] = '|-Podiatric';
$business_type['PrimaryCare'] = '|-PrimaryCare';
$business_type['Psychiatric'] = '|-Psychiatric';
$business_type['PublicHealth'] = '|-PublicHealth';
$business_type['VeterinaryCare'] = '|-VeterinaryCare';
$business_type['LegalService'] = '|-LegalService';
$business_type['Attorney'] = '|-Attorney';
$business_type['Notary'] = '|-Notary';
$business_type['Library'] = 'Library';
$business_type['LodgingBusiness'] = 'LodgingBusiness';
$business_type['BedAndBreakfast'] = '|-Bed And Breakfast';
$business_type['Campground'] = '|-Campground';
$business_type['Hostel'] = '|-Hostel';
$business_type['Hotel'] = '|-Hotel';
$business_type['Motel'] = '|-Motel';
$business_type['Resort'] ='|-Resort';
$business_type['ProfessionalService'] ='Professional Service';
$business_type['RadioStation'] ='Radio Station';
$business_type['RealEstateAgent'] ='Real Estate Agent';
$business_type['RecyclingCenter'] ='Recycling Center';
$business_type['SelfStorage'] ='Real Self Storage';
$business_type['ShoppingCenter'] ='ShoppingCenter';
$business_type['SportsActivityLocation'] ='Sports Activity Location';
$business_type['BowlingAlley'] ='|-Bowling Alley';
$business_type['ExerciseGym'] = '|-Exercise Gym';
$business_type['GolfCourse'] = '|-Golf Course';
$business_type['HealthClub'] = '|-HealthClub';
$business_type['PublicSwimmingPool'] = '|-Public Swimming Pool';
$business_type['SkiResort'] = '|-Ski Resort';
$business_type['SportsClub'] = '|-Sports Club';
$business_type['StadiumOrArena'] = '|-Stadium Or Arena';
$business_type['TennisComplex'] = '|-Tennis Complex';
$business_type['Store'] = '|-Store';
$business_type['AutoPartsStore'] = '|-Auto Parts Store';
$business_type['BikeStore'] = '|-Bike Store';
$business_type['BookStore'] = '|-Book Store';
$business_type['ClothingStore'] = '|-Clothing Store';
$business_type['ComputerStore'] = '|-Computer Store';
$business_type['ConvenienceStore'] = '|-Convenience Store';
$business_type['DepartmentStore'] = '|-Department Store';
$business_type['ElectronicsStore'] = '|-Electronics Store';
$business_type['Florist'] = '|-Florist';
$business_type['FurnitureStore'] = '|-Furniture Store';
$business_type['GardenStore'] = '|-Garden Store';
$business_type['GroceryStore'] = '|-Grocery Store';
$business_type['HardwareStore'] = '|-Hardware Store';
$business_type['HobbyShop'] = '|-Hobby Shop';
$business_type['HomeGoodsStore'] = '|-Home Goods Store';
$business_type['JewelryStore'] = '|-Jewelry Store';
$business_type['LiquorStore'] = '|-Liquor Store';
$business_type['MensClothingStore'] = '|-Mens Clothing Store';
$business_type['MobilePhoneStore'] = '|-Mobile Phone Store';
$business_type['MovieRentalStore'] = '|-Movie Rental Store';
$business_type['MusicStore'] = '|-Music Store';
$business_type['OfficeEquipmentStore'] = '|-Office Equipment Store';
$business_type['OutletStore'] = '|-Outlet Store';
$business_type['PawnShop'] = '|-Pawn Shop';
$business_type['PetStore'] = '|-PetStore';
$business_type['ShoeStore'] = '|-Shoe Store';
$business_type['SportingGoodsStore'] = '|-Sporting Goods Store';
$business_type['TireShop'] = '|-Tire Shop';
$business_type['ToyStore'] = '|-Toy Store';
$business_type['WholesaleStore'] = '|-Whole sale Store';
$business_type['TelevisionStation'] = '|-Whole sale Store';
$business_type['TouristInformationCenter'] = 'Tourist Information Center';
$business_type['TravelAgency'] = 'Travel Agency';
$business_type['AutomotiveBusiness'] = 'Automotive Business';
$business_type['AutoBodyShop'] = '|-Auto Body Shop';
$business_type['AutoDealer'] = '|-Auto Dealer';
$business_type['AutoPartsStore'] = '|-Auto Parts Store';
$business_type['AutoRental'] = '|-Auto Rental';
$business_type['AutoRepair'] = '|-Auto Repair';
$business_type['AutoWash'] = '|-AutoWash';
$business_type['GasStation'] = '|-Gas Station';
$business_type['MotorcycleDealer'] = '|-Motorcycle Dealer';
$business_type['MotorcycleRepair'] = '|-MotorcycleRepair';
// Get saved settings
$options = $siteseo->pro;
$display_schema = isset($options['local_business_display_schema']) ? esc_attr($options['local_business_display_schema']) : '';
$set_street_address = isset($options['street_address']) ? esc_attr($options['street_address']): '';
$set_city = isset($options['city']) ? esc_attr($options['city']): '';
$set_state = isset($options['state']) ? esc_attr($options['state']): '';
$set_postal_code = isset($options['postal_code']) ? esc_attr($options['postal_code']) : '' ;
$set_country = isset($options['country']) ? esc_attr($options['country']): '';
$set_latitude = isset($options['latitude'])? esc_attr($options['latitude']): '';
$set_longitude = isset($options['longitude']) ? esc_attr($options['longitude']) : '';
$set_place_id = isset($options['place_id']) ? esc_attr($options['place_id']) : '';
$set_url = isset($options['url']) ? esc_attr($options['url']) : '';
$set_telephone = isset($options['telephone']) ? esc_attr($options['telephone']): '';
$set_price_range = isset($options['price_range']) ? esc_attr($options['price_range']) : '';
$set_cuisine_served = isset($options['cuisine_served'])? esc_attr($options['cuisine_served']) : '';
$set_accepts_reser = isset($options['accepts_reser']) ? esc_attr($options['accepts_reser']) : '';
$set_business_type = isset($options['business_type']) ? esc_attr($options['business_type']) : 'LocalBusiness';
$toggle_state_local_buz = isset($options['toggle_state_local_buz']) ? esc_html($options['toggle_state_local_buz']): '';
$docs = siteseo_get_docs_links();
// Display the settings form
echo ''.esc_html__('Local Business', 'siteseo-pro').'
' . (!empty($toggle_state_local_buz) ? esc_html__('Click to disable this feature', 'siteseo-pro') : esc_html__('Click to enable this feature', 'siteseo-pro')) . '
';
echo''.esc_html__('Local Business data type for Google', 'siteseo-pro').'