'',
'route' => '',
'sparkles' => '',
'wand-sparkles' => '',
'sliders' => '',
'filter' => '',
'check' => '',
'check-ring' => '',
'info' => '',
'heart' => '',
'x' => '',
'grid' => '',
'server' => '',
'eye' => '',
'key' => '',
'external-link' => '',
);
if ( ! isset( $icons[ $name ] ) ) {
return '';
}
$svg = sprintf(
'',
esc_attr( $class ),
$icons[ $name ]
);
return wp_kses(
$svg,
array(
'svg' => array(
'class' => true,
'viewbox' => true,
'fill' => true,
'stroke' => true,
'stroke-width' => true,
'stroke-linecap' => true,
'stroke-linejoin' => true,
'aria-hidden' => true,
'focusable' => true,
),
'path' => array( 'd' => true ),
'circle' => array(
'cx' => true,
'cy' => true,
'r' => true,
),
'rect' => array(
'x' => true,
'y' => true,
'width' => true,
'height' => true,
'rx' => true,
),
)
);
}
if ( ! function_exists( 'acu_fs' ) ) {
/**
* Returns the Freemius SDK instance.
*
* @return Freemius
*/
function acu_fs() {
global $acu_fs;
if ( ! isset( $acu_fs ) ) {
require_once ACU_PLUGIN_DIR . 'vendor/freemius/start.php';
$acu_fs = fs_dynamic_init(
array(
'id' => ACU_FREEMIUS_PRODUCT_ID,
'slug' => 'advance-canonical-url',
'type' => 'plugin',
'public_key' => ACU_FREEMIUS_PUBLIC_KEY,
'is_premium' => false,
'has_premium_version' => false,
'has_addons' => false,
'has_paid_plans' => true,
'is_org_compliant' => true,
'menu' => array(
'slug' => 'advance_canonical_settings',
'account' => false,
'contact' => false,
'support' => false,
'pricing' => false,
'parent' => array(
'slug' => 'options-general.php',
),
),
)
);
}
return $acu_fs;
}
acu_fs();
acu_fs()->add_filter( 'is_pricing_page_visible', '__return_false' );
do_action( 'acu_fs_loaded' );
}
require_once ACU_PLUGIN_DIR . 'includes/advance-canonical-url.php';
require_once ACU_PLUGIN_DIR . 'includes/canonical-meta-box.php';
register_activation_hook( ACU_PLUGIN_FILE, array( 'advance_canonical_url', 'acu_activation' ) );
/**
* Starts the plugin after all plugins are available.
*/
function acu_run_plugin() {
new advance_canonical_url();
new advance_canonical_meta_box();
}
add_action( 'plugins_loaded', 'acu_run_plugin' );