| 1 |
<?php namespace TierPricingTable\Integrations\Plugins\RankMath; |
| 2 |
|
| 3 |
use TierPricingTable\Settings\CustomOptions\TPTSwitchOption; |
| 4 |
use TierPricingTable\Settings\Sections\SectionAbstract; |
| 5 |
|
| 6 |
class Settings extends SectionAbstract { |
| 7 |
|
| 8 |
public function getName(): string { |
| 9 |
return 'Rank Math SEO'; |
| 10 |
} |
| 11 |
|
| 12 |
public function getSlug(): string { |
| 13 |
return 'rank_math'; |
| 14 |
} |
| 15 |
|
| 16 |
public function getSettings(): array { |
| 17 |
return array( |
| 18 |
array( |
| 19 |
'title' => 'Rank Math SEO', |
| 20 |
'id' => \TierPricingTable\Settings\Settings::SETTINGS_PREFIX . '_subsection_' . $this->getSlug(), |
| 21 |
'desc' => __( 'Configure the integration with Rank Math SEO plugin to use tiered pricing variables in your SEO metadata.', |
| 22 |
'tier-pricing-table' ), |
| 23 |
'type' => 'title', |
| 24 |
), |
| 25 |
array( |
| 26 |
'title' => __( 'Enable custom variables', 'tier-pricing-table' ), |
| 27 |
'id' => \TierPricingTable\Settings\Settings::SETTINGS_PREFIX . 'rank_math_enable_variables', |
| 28 |
'type' => TPTSwitchOption::FIELD_TYPE, |
| 29 |
'default' => 'yes', |
| 30 |
'extended_description' => __( 'Enable you to use the %lowest_price% and %price_range% variables to display the lowest price and price range of products with tiered pricing in Rank Math SEO metadata.', |
| 31 |
'tier-pricing-table' ), |
| 32 |
), |
| 33 |
array( |
| 34 |
'title' => __( 'Enhance product schema with tiered pricing offers', 'tier-pricing-table' ), |
| 35 |
'id' => \TierPricingTable\Settings\Settings::SETTINGS_PREFIX . 'rank_math_enhance_schema', |
| 36 |
'type' => TPTSwitchOption::FIELD_TYPE, |
| 37 |
'default' => 'no', |
| 38 |
'extended_description' => __( 'Enhance the product schema with tiered pricing offers. Adds an offer for each tier and the lowest price as the main offer.', |
| 39 |
'tier-pricing-table' ), |
| 40 |
), |
| 41 |
array( |
| 42 |
'type' => 'sectionend', |
| 43 |
), |
| 44 |
); |
| 45 |
} |
| 46 |
|
| 47 |
public function isIntegration(): bool { |
| 48 |
return true; |
| 49 |
} |
| 50 |
} |
| 51 |
|