Warning: session_start(): Session cannot be started after headers have already been sent in /home/tvrreohg/public_html/manga.php on line 13
License_API::is_license_active(),
'urls' => [
'modules' => ELEMENTOR_PRO_MODULES_URL,
'connect' => License_Admin::get_url(),
],
];
/**
* Localized editor settings.
*
* Filters the localized settings used in the editor as JavaScript variables.
*
* By default Elementor Pro passes some editor settings to be consumed as JavaScript
* variables. This hook allows developers to add extra settings values to be consumed
* using JavaScript in the editor.
*
* @since 1.0.0
*
* @param array $settings Localized editor settings.
*/
$settings = apply_filters( 'elementor_pro/editor/localize_settings', $settings );
return $settings;
}
public function enqueue_editor_styles() {
wp_enqueue_style(
'elementor-pro',
$this->get_css_assets_url( 'editor', null, 'default', true ),
[
'elementor-editor',
],
ELEMENTOR_PRO_VERSION
);
}
public function enqueue_editor_scripts() {
wp_enqueue_script(
'elementor-pro',
$this->get_js_assets_url( 'editor' ),
[
'backbone-marionette',
'elementor-common',
'elementor-editor-modules',
'elementor-editor-document',
],
ELEMENTOR_PRO_VERSION,
true
);
wp_set_script_translations( 'elementor-pro', 'elementor-pro' );
$this->print_config( 'elementor-pro' );
}
public function localize_settings( array $settings ) {
$settings['elementPromotionURL'] = Plugin::instance()->license_admin->get_connect_url([
'utm_source' => '%s', // Will be replaced in the frontend to the widget name
'utm_medium' => 'wp-dash',
'utm_campaign' => 'connect-and-activate-license',
'utm_content' => 'editor-widget-promotion',
]);
$settings['dynamicPromotionURL'] = Plugin::instance()->license_admin->get_connect_url( [
'utm_source' => '%s', // Will be replaced in the frontend to the control name
'utm_medium' => 'wp-dash',
'utm_campaign' => 'connect-and-activate-license',
'utm_content' => 'editor-dynamic-promotion',
] );
return $settings;
}
public function on_elementor_init() {
Plugin::elementor()->editor->notice_bar = new Notice_Bar();
if ( isset( Plugin::elementor()->editor->promotion ) ) {
Plugin::elementor()->editor->promotion = new Promotion();
}
}
public function on_elementor_editor_init() {
Plugin::elementor()->common->add_template( __DIR__ . '/template.php' );
}
protected function get_assets_base_url() {
return ELEMENTOR_PRO_URL;
}
}