Initial commit xmarticaims

This commit is contained in:
2026-11-02 10:26:32 -06:00
commit e74236f5c1
9764 changed files with 2880647 additions and 0 deletions
@@ -0,0 +1,103 @@
<?php
/**
* Class to auto-insert snippets anywhere by a CSS selector.
*
* @package wpcode
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Class WPCode_Auto_Insert_Anywhere.
*/
class WPCode_Auto_Insert_Anywhere_Lite extends WPCode_Auto_Insert_Type {
/**
* The type unique name (slug).
*
* @var string
*/
public $name = 'anywhere';
/**
* The category of this type.
*
* @var string
*/
public $category = 'global';
/**
* Not available to select.
*
* @var string
*/
public $code_type = 'pro';
/**
* Text to display next to optgroup label.
*
* @var string
*/
public $label_pill = 'PRO';
/**
* Load the available options and labels.
*
* @return void
*/
public function init() {
}
/**
* Load the label.
*
* @return void
*/
public function load_label() {
$this->label = __( 'Anywhere (CSS Selector)', 'insert-headers-and-footers' );
}
/**
* Load the available locations.
*
* @return void
*/
public function load_locations() {
$this->locations = array(
'before_css_selector' => array(
'label' => __( 'Before HTML Element', 'insert-headers-and-footers' ),
'description' => __( 'Insert snippet before the HTML element specified by the CSS selector.', 'insert-headers-and-footers' ),
),
'after_css_selector' => array(
'label' => __( 'After HTML Element', 'insert-headers-and-footers' ),
'description' => __( 'Insert snippet after the HTML element specified by the CSS selector.', 'insert-headers-and-footers' ),
),
'start_css_selector' => array(
'label' => __( 'At the start of HTML Element', 'insert-headers-and-footers' ),
'description' => __( 'Insert snippet before the content of the HTML element specified by CSS selector.', 'insert-headers-and-footers' ),
),
'end_css_selector' => array(
'label' => __( 'At the end of HTML Element', 'insert-headers-and-footers' ),
'description' => __( 'Insert snippet after the content of the HTML element specified by CSS selector.', 'insert-headers-and-footers' ),
),
'replace_css_selector' => array(
'label' => __( 'Replace HTML Element', 'insert-headers-and-footers' ),
'description' => __( 'Completely replace the HTML element specified by the CSS selector with the output of this snippet.', 'insert-headers-and-footers' ),
),
);
}
/**
* Load the upgrade strings.
*
* @return void
*/
public function load_upgrade_strings() {
$this->upgrade_title = __( 'Insert Anywhere by CSS Selector is a Premium feature', 'insert-headers-and-footers' );
$this->upgrade_text = __( 'Upgrade to PRO today and insert snippets anywhere on your site using CSS selectors to target any HTML element.', 'insert-headers-and-footers' );
$this->upgrade_link = wpcode_utm_url( 'https://wpcode.com/lite/', 'edit-snippet', 'auto-insert', 'anywhere' );
}
}
new WPCode_Auto_Insert_Anywhere_Lite();
@@ -0,0 +1,117 @@
<?php
/**
* Class for auto-insert inside content.
*
* @package wpcode
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Class WPCode_Auto_Insert_Single.
*/
class WPCode_Auto_Insert_Content_Lite extends WPCode_Auto_Insert_Type {
/**
* The type unique name (slug).
*
* @var string
*/
public $name = 'content';
/**
* The category of this type.
*
* @var string
*/
public $category = 'page';
/**
* Not available to select.
*
* @var string
*/
public $code_type = 'pro';
/**
* Text to display next to optgroup label.
*
* @var string
*/
public $label_pill = 'PRO';
/**
* Load the available options and labels.
*
* @return void
*/
public function init() {
}
/**
* Load the label.
*
* @return void
*/
public function load_label() {
$this->label = __( 'Content', 'insert-headers-and-footers' );
}
/**
* Load the available locations.
*
* @return void
*/
public function load_locations() {
$this->locations = array(
'after_words' => array(
'label' => esc_html__( 'Insert After # Words', 'insert-headers-and-footers' ),
'description' => esc_html__( 'Insert snippet after a minimum number of words.', 'insert-headers-and-footers' ),
),
'every_words' => array(
'label' => esc_html__( 'Insert Every # Words', 'insert-headers-and-footers' ),
'description' => esc_html__( 'Insert snippet every # number of words.', 'insert-headers-and-footers' ),
),
'content_half' => array(
'label' => esc_html__( 'Insert in the Middle of the Content', 'insert-headers-and-footers' ),
'description' => esc_html__( 'Insert snippet in the middle of the post content.', 'insert-headers-and-footers' ),
),
'content_quarter' => array(
'label' => esc_html__( 'Insert after first Quarter (25%)', 'insert-headers-and-footers' ),
'description' => esc_html__( 'Insert snippet after the first quarter of the post content.', 'insert-headers-and-footers' ),
),
'content_quarter_third' => array(
'label' => esc_html__( 'Insert after 3rd Quarter (75%)', 'insert-headers-and-footers' ),
'description' => esc_html__( 'Insert snippet after the third quarter of the post content.', 'insert-headers-and-footers' ),
),
'content_one_third' => array(
'label' => esc_html__( 'Insert after first Third (33%)', 'insert-headers-and-footers' ),
'description' => esc_html__( 'Insert snippet after the first third of the post content.', 'insert-headers-and-footers' ),
),
'content_two_thirds' => array(
'label' => esc_html__( 'Insert after second Third (66%)', 'insert-headers-and-footers' ),
'description' => esc_html__( 'Insert snippet after the second third of the post content.', 'insert-headers-and-footers' ),
),
'content_80' => array(
'label' => esc_html__( 'Insert after 80%', 'insert-headers-and-footers' ),
'description' => esc_html__( 'Insert snippet after 80% of the post content.', 'insert-headers-and-footers' ),
),
);
}
/**
* Load the upgrade strings.
*
* @return void
*/
public function load_upgrade_strings() {
$this->upgrade_title = __( 'Word-based content locations are a PRO feature', 'insert-headers-and-footers' );
$this->upgrade_text = __( 'Upgrade to PRO today and get access to automatic word-count based insert locations.', 'insert-headers-and-footers' );
$this->upgrade_link = wpcode_utm_url( 'https://wpcode.com/lite/', 'edit-snippet', 'auto-insert', 'content' );
}
}
new WPCode_Auto_Insert_Content_Lite();
@@ -0,0 +1,123 @@
<?php
/**
* Easy Digital Downloads specific auto-insert locations.
*
* @package WPCode
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Class WPCode_Auto_Insert_EDD.
*/
class WPCode_Auto_Insert_EDD_Lite extends WPCode_Auto_Insert_Type {
/**
* The type unique name (slug).
*
* @var string
*/
public $name = 'edd';
/**
* The category of this type.
*
* @var string
*/
public $category = 'ecommerce';
/**
* Not available to select.
*
* @var string
*/
public $code_type = 'pro';
/**
* Text to display next to optgroup label.
*
* @var string
*/
public $label_pill = 'PRO';
/**
* Load the available options and labels.
*
* @return void
*/
public function init() {
}
/**
* Load the label.
*
* @return void
*/
public function load_label() {
$this->label = 'Easy Digital Downloads';
}
/**
* Load the available locations.
*
* @return void
*/
public function load_locations() {
$this->locations = array(
'edd_purchase_link_top' => array(
'label' => __( 'Before the Purchase Button', 'insert-headers-and-footers' ),
'description' => __( 'Insert snippet before the EDD purchase button.', 'insert-headers-and-footers' ),
),
'edd_purchase_link_end' => array(
'label' => __( 'After the Purchase Button', 'insert-headers-and-footers' ),
'description' => __( 'Insert snippet after the EDD purchase button.', 'insert-headers-and-footers' ),
),
'edd_before_download_content' => array(
'label' => __( 'Before the Single Download', 'insert-headers-and-footers' ),
'description' => __( 'Insert snippet before the single EDD download content.', 'insert-headers-and-footers' ),
),
'edd_after_download_content' => array(
'label' => __( 'After the Single Download', 'insert-headers-and-footers' ),
'description' => __( 'Insert snippet after the single EDD download content.', 'insert-headers-and-footers' ),
),
'edd_before_cart' => array(
'label' => __( 'Before the Cart', 'insert-headers-and-footers' ),
'description' => __( 'Insert snippet before the EDD cart.', 'insert-headers-and-footers' ),
),
'edd_after_cart' => array(
'label' => __( 'After the Cart', 'insert-headers-and-footers' ),
'description' => __( 'Insert snippet after the EDD cart.', 'insert-headers-and-footers' ),
),
'edd_before_checkout_cart' => array(
'label' => __( 'Before the Checkout Cart', 'insert-headers-and-footers' ),
'description' => __( 'Insert snippet before the EDD cart on the checkout page.', 'insert-headers-and-footers' ),
),
'edd_after_checkout_cart' => array(
'label' => __( 'After the Checkout Cart', 'insert-headers-and-footers' ),
'description' => __( 'Insert snippet after the EDD cart on the checkout page.', 'insert-headers-and-footers' ),
),
'edd_before_purchase_form' => array(
'label' => __( 'Before the Checkout Form', 'insert-headers-and-footers' ),
'description' => __( 'Insert snippet before the EDD checkout form on the checkout page.', 'insert-headers-and-footers' ),
),
'edd_after_purchase_form' => array(
'label' => __( 'After the Checkout Form', 'insert-headers-and-footers' ),
'description' => __( 'Insert snippet after the EDD checkout form on the checkout page', 'insert-headers-and-footers' ),
),
);
}
/**
* Load the upgrade strings.
*
* @return void
*/
public function load_upgrade_strings() {
$this->upgrade_title = __( 'Easy Digital Downloads Locations are a PRO feature', 'insert-headers-and-footers' );
$this->upgrade_text = __( 'Upgrade to PRO today and get access to advanced eCommerce auto-insert locations and conditional logic rules for your needs.', 'insert-headers-and-footers' );
$this->upgrade_link = wpcode_utm_url( 'https://wpcode.com/lite/', 'edit-snippet', 'auto-insert', 'edd' );
}
}
new WPCode_Auto_Insert_EDD_Lite();
@@ -0,0 +1,115 @@
<?php
/**
* MemberPress-specific auto-insert locations.
*
* @package WPCode
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Class WPCode_Auto_Insert_MemberPress_Lite.
*/
class WPCode_Auto_Insert_MemberPress_Lite extends WPCode_Auto_Insert_Type {
/**
* The type unique name (slug).
*
* @var string
*/
public $name = 'memberpress';
/**
* The category of this type.
*
* @var string
*/
public $category = 'ecommerce';
/**
* Not available to select.
*
* @var string
*/
public $code_type = 'pro';
/**
* Text to display next to optgroup label.
*
* @var string
*/
public $label_pill = 'PRO';
/**
* Load the available options and labels.
*
* @return void
*/
public function init() {
}
/**
* Load the label.
*
* @return void
*/
public function load_label() {
$this->label = 'MemberPress';
}
/**
* Load the available locations.
*
* @return void
*/
public function load_locations() {
$this->locations = array(
'mepr-above-checkout-form' => array(
'label' => __( 'Before the Registration Form', 'insert-headers-and-footers' ),
'description' => __( 'Insert snippet before the MemberPress registration form used for checkout.', 'insert-headers-and-footers' ),
),
'mepr-checkout-before-submit' => array(
'label' => __( 'Before Checkout Submit Button', 'insert-headers-and-footers' ),
'description' => __( 'Insert snippet right before the MemberPress checkout submit button.', 'insert-headers-and-footers' ),
),
'mepr-checkout-before-coupon-field' => array(
'label' => __( 'Before Checkout Coupon Field', 'insert-headers-and-footers' ),
'description' => __( 'Insert snippet before the MemberPress checkout coupon field.', 'insert-headers-and-footers' ),
),
'mepr-account-home-before-name' => array(
'label' => __( 'Before Account First Name', 'insert-headers-and-footers' ),
'description' => __( 'Insert snippet to the Home tab of the MemberPress Account page before First Name field.', 'insert-headers-and-footers' ),
),
'mepr_before_account_subscriptions' => array(
'label' => __( 'Before Subscriptions Content', 'insert-headers-and-footers' ),
'description' => __( 'Insert snippet at the beginning of the Subscriptions tab on the MemberPress Account page.', 'insert-headers-and-footers' ),
),
'mepr-login-form-before-submit' => array(
'label' => __( 'Before Login Form Submit', 'insert-headers-and-footers' ),
'description' => __( 'Insert snippet before the Remember Me checkbox on the MemberPress Login page.', 'insert-headers-and-footers' ),
),
'mepr_unauthorized_message_before' => array(
'label' => __( 'Before the Unauthorized Message', 'insert-headers-and-footers' ),
'description' => __( 'Insert a snippet before the notice that access to the content is unauthorized. ', 'insert-headers-and-footers' ),
),
'mepr_unauthorized_message_after' => array(
'label' => __( 'After the Unauthorized Message', 'insert-headers-and-footers' ),
'description' => __( 'Insert a snippet after the notice that access to the content is unauthorized. ', 'insert-headers-and-footers' ),
),
);
}
/**
* Load the upgrade strings.
*
* @return void
*/
public function load_upgrade_strings() {
$this->upgrade_title = __( 'MemberPress Locations are a PRO feature', 'insert-headers-and-footers' );
$this->upgrade_text = __( 'Upgrade to PRO today and get access to advanced eCommerce auto-insert locations and conditional logic rules for your needs.', 'insert-headers-and-footers' );
$this->upgrade_link = wpcode_utm_url( 'https://wpcode.com/lite/', 'edit-snippet', 'auto-insert', 'memberpress' );
}
}
new WPCode_Auto_Insert_MemberPress_Lite();
@@ -0,0 +1,136 @@
<?php
/**
* WooCommerce-specific auto-insert locations.
*
* @package WPCode
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Class WPCode_Auto_Insert_WooCommerce_Lite.
*/
class WPCode_Auto_Insert_WooCommerce_Lite extends WPCode_Auto_Insert_Type {
/**
* The type unique name (slug).
*
* @var string
*/
public $name = 'woocommerce';
/**
* The category of this type.
*
* @var string
*/
public $category = 'ecommerce';
/**
* Not available to select.
*
* @var string
*/
public $code_type = 'pro';
/**
* Text to display next to optgroup label.
*
* @var string
*/
public $label_pill = 'PRO';
/**
* Load the available options and labels.
*
* @return void
*/
public function init() {
}
/**
* Load the label.
*
* @return void
*/
public function load_label() {
$this->label = 'WooCommerce';
}
/**
* Load the available locations.
*
* @return void
*/
public function load_locations() {
$this->locations = array(
'wc_before_products_list' => array(
'label' => __( 'Before the List of Products', 'insert-headers-and-footers' ),
'description' => __( 'Insert snippet before the list of products on a WooCommerce page.', 'insert-headers-and-footers' ),
),
'wc_after_products_list' => array(
'label' => __( 'After the List of Products', 'insert-headers-and-footers' ),
'description' => __( 'Insert snippet after the list of products on a WooCommerce page.', 'insert-headers-and-footers' ),
),
'wc_before_single_product' => array(
'label' => __( 'Before the Single Product', 'insert-headers-and-footers' ),
'description' => __( 'Insert snippet before the content on the single WooCommerce product page.', 'insert-headers-and-footers' ),
),
'wc_after_single_product' => array(
'label' => __( 'After the Single Product', 'insert-headers-and-footers' ),
'description' => __( 'Insert snippet after the content on the single WooCommerce product page.', 'insert-headers-and-footers' ),
),
'wc_before_single_product_summary' => array(
'label' => __( 'Before the Single Product Summary', 'insert-headers-and-footers' ),
'description' => __( 'Insert snippet before the product summary on the single WooCommerce product page.', 'insert-headers-and-footers' ),
),
'wc_after_single_product_summary' => array(
'label' => __( 'After the Single Product Summary', 'insert-headers-and-footers' ),
'description' => __( 'Insert snippet after the product summary on the single WooCommerce product page.', 'insert-headers-and-footers' ),
),
'woocommerce_before_cart' => array(
'label' => __( 'Before the Cart', 'insert-headers-and-footers' ),
'description' => __( 'Insert snippet before the cart on WooCommerce pages.', 'insert-headers-and-footers' ),
),
'woocommerce_after_cart' => array(
'label' => __( 'After the Cart', 'insert-headers-and-footers' ),
'description' => __( 'Insert snippet after the cart on WooCommerce pages.', 'insert-headers-and-footers' ),
),
'woocommerce_before_checkout_form' => array(
'label' => __( 'Before the Checkout Form', 'insert-headers-and-footers' ),
'description' => __( 'Insert snippet before the checkout form on the WooCommerce checkout page.', 'insert-headers-and-footers' ),
),
'woocommerce_after_checkout_form' => array(
'label' => __( 'After the Checkout Form', 'insert-headers-and-footers' ),
'description' => __( 'Insert snippet after the checkout form on the WooCommerce checkout page.', 'insert-headers-and-footers' ),
),
'woocommerce_checkout_order_review_19' => array(
'label' => __( 'Before Checkout Payment Button', 'insert-headers-and-footers' ),
'description' => __( 'Insert snippet before the checkout payment button on the WooCommerce checkout page.', 'insert-headers-and-footers' ),
),
'woocommerce_checkout_order_review_21' => array(
'label' => __( 'After Checkout Payment Button', 'insert-headers-and-footers' ),
'description' => __( 'Insert snippet after the checkout payment button on the WooCommerce checkout page.', 'insert-headers-and-footers' ),
),
'woocommerce_before_thankyou' => array(
'label' => __( 'Before the Thank You Page', 'insert-headers-and-footers' ),
'description' => __( 'Insert snippet before the thank you page content for WooCommerce.', 'insert-headers-and-footers' ),
),
);
}
/**
* Load the upgrade strings.
*
* @return void
*/
public function load_upgrade_strings() {
$this->upgrade_title = __( 'WooCommerce Locations are a PRO feature', 'insert-headers-and-footers' );
$this->upgrade_text = __( 'Upgrade to PRO today and get access to advanced eCommerce auto-insert locations and conditional logic rules for your needs.', 'insert-headers-and-footers' );
$this->upgrade_link = wpcode_utm_url( 'https://wpcode.com/lite/', 'edit-snippet', 'auto-insert', 'woocommerce' );
}
}
new WPCode_Auto_Insert_WooCommerce_Lite();