--- a/mystickyelements/mystickyelements-admin.php
+++ b/mystickyelements/mystickyelements-admin.php
@@ -1661,6 +1661,10 @@
}
public function myStickyelements_intro_popup_action() {
+ if ( ! current_user_can( 'manage_options' ) ) {
+ wp_die(0);
+ }
+
if( !empty( $_REQUEST['nonce'] ) && wp_verify_nonce( $_REQUEST['nonce'], 'myStickyelements_update_popup_status' ) ) {
update_option( "mystickyelements_intro_popup", "hide" );
}
@@ -1669,6 +1673,10 @@
}
public function mystickyelements_admin_send_message_to_owner() {
+
+ if ( ! current_user_can( 'manage_options' ) ) {
+ wp_die(0);
+ }
$response = array();
$response['status'] = 0;
$response['error'] = 0;
@@ -1787,7 +1795,11 @@
public function my_sticky_elements_bulks(){
global $wpdb;
-
+
+ if ( ! current_user_can( 'manage_options' ) ) {
+ wp_die(0);
+ }
+
check_ajax_referer( 'mystickyelements', 'wpnonce' );
if( isset($_POST['wpnonce']) ){
--- a/mystickyelements/mystickyelements-front.php
+++ b/mystickyelements/mystickyelements-front.php
@@ -36,10 +36,37 @@
wp_enqueue_style('font-awesome-css', plugins_url('/css/font-awesome.min.css', __FILE__), array() , MY_STICKY_ELEMENT_VERSION);
wp_enqueue_style('mystickyelements-front-css', plugins_url('/css/mystickyelements-front'. esc_attr($min) .'.css', __FILE__), array(), MY_STICKY_ELEMENT_VERSION );
-
+ $custom_css = '';
+
// Add Themme custom CSS
- if ( isset($contact_form['form_css']) || isset($general_settings['tabs_css']) || ( isset($general_settings['font_family']) && $general_settings['font_family'] != '') ) {
- $custom_css = '';
+ if ( ( isset($contact_form['direction']) && $contact_form['direction'] == 'RTL' ) || isset($contact_form['form_css']) || isset($general_settings['tabs_css']) || ( isset($general_settings['font_family']) && $general_settings['font_family'] != '') ) {
+
+ /*
+ * Call Open Sans Hebrew font file called one when the user choose direction RTL
+ */
+ $custom_css .= "@font-face {
+ font-family: 'Open Sans Hebrew';
+ src: url('" . plugins_url('/fonts/OpenSansHebrew-Regular.woff', __FILE__) . "') format('woff');
+ font-weight: normal;
+ font-style: normal;
+ font-display: swap;
+ }
+
+ .mystickyelements-contact-form[dir='rtl'],
+ .mystickyelements-contact-form[dir='rtl'] .element-contact-form .contact-form-heading,
+ .mystickyelements-contact-form[dir='rtl'] form.stickyelements-form input,
+ .mystickyelements-contact-form[dir='rtl'] form.stickyelements-form textarea,
+ .mystickyelements-fixed[dir='rtl'] .mystickyelements-social-icon,
+ .mystickyelements-fixed[dir='rtl'] .mystickyelements-social-text,
+ html[dir='rtl'] .mystickyelements-contact-form,
+ html[dir='rtl'] .mystickyelements-contact-form .element-contact-form .contact-form-heading,
+ html[dir='rtl'] .mystickyelements-contact-form form.stickyelements-form input,
+ html[dir='rtl'] .mystickyelements-contact-form form.stickyelements-form textarea,
+ html[dir='rtl'] .mystickyelements-fixed .mystickyelements-social-icon,
+ html[dir='rtl'] .mystickyelements-fixed .mystickyelements-social-text {
+ font-family: 'Open Sans Hebrew';
+ }
+ ";
if ( isset($general_settings['font_family']) && $general_settings['font_family'] != '' ) {
if(isset($general_settings['font_family'] ) && $general_settings['font_family'] == 'System Stack' ){
@@ -82,9 +109,8 @@
}
if (isset($general_settings['tabs_css']) && $general_settings['tabs_css'] !='' ) {
$custom_css .= trim(strip_tags($general_settings['tabs_css']));
- }
+ }
-
if (!empty($custom_css)) {
wp_add_inline_style('mystickyelements-front-css', $custom_css);
}
@@ -116,20 +142,21 @@
wp_enqueue_script( 'mailcheck-js', plugins_url('/js/mailcheck'.esc_attr($min).'.js', __FILE__), ['jquery'], MY_STICKY_ELEMENT_VERSION, ['strategy' => 'defer', 'in_footer'=> true ]);
wp_enqueue_script('autocomplete-email-js', plugins_url('/js/jquery.email-autocomplete'.esc_attr($min).'.js', __FILE__), ['jquery'], MY_STICKY_ELEMENT_VERSION, ['strategy' => 'defer', 'in_footer'=> true ]);
+ if( apply_filters('mystickyelements_enable_intlTelInput_library', true ) ) {
+ wp_enqueue_style('intl-tel-input', plugins_url('/intl-tel-input-src/build/css/intlTelInput.css', __FILE__), array(), MY_STICKY_ELEMENT_VERSION);
+
+ wp_enqueue_script('intl-tel-input-js', plugins_url('/intl-tel-input-src/build/js/intlTelInput.js', __FILE__), array('jquery'), MY_STICKY_ELEMENT_VERSION, ['strategy' => 'defer', 'in_footer'=> true ]);
+ }
+
wp_enqueue_script('mystickyelements-fronted-js', plugins_url('/js/mystickyelements-fronted'.esc_attr($min).'.js', __FILE__), array('jquery'), MY_STICKY_ELEMENT_VERSION, ['strategy' => 'defer', 'in_footer'=> true ] );
$locale_settings = array(
'ajaxurl' => admin_url('admin-ajax.php'),
'ajax_nonce' => wp_create_nonce('mystickyelements'),
+ 'plugin_url' => MYSTICKYELEMENTS_URL
);
wp_localize_script('mystickyelements-fronted-js', 'mystickyelements', $locale_settings);
-
- wp_enqueue_style('intl-tel-input', plugins_url('/intl-tel-input-src/build/css/intlTelInput.css', __FILE__), array(), MY_STICKY_ELEMENT_VERSION);
-
- wp_enqueue_script('intl-tel-input-js', plugins_url('/intl-tel-input-src/build/js/intlTelInput.js', __FILE__), array('jquery'), MY_STICKY_ELEMENT_VERSION, ['strategy' => 'defer', 'in_footer'=> true ]);
-
- wp_localize_script('intl-tel-input-js', 'mystickyelement_obj', array('plugin_url' => MYSTICKYELEMENTS_URL));
}
public function mystickyelement_element_footer()
--- a/mystickyelements/mystickyelements.php
+++ b/mystickyelements/mystickyelements.php
@@ -3,7 +3,7 @@
Plugin Name: myStickyElements
Plugin URI: https://premio.io/
Description: myStickyElements is simple yet very effective plugin. It is perfect to fill out usually unused side space on webpages with some additional messages, videos, social widgets ...
-Version: 2.3.3
+Version: 2.3.4
Author: Premio
Author URI: https://premio.io/
Domain Path: /languages
@@ -15,7 +15,7 @@
define('MYSTICKYELEMENTS_URL', plugins_url('/', __FILE__)); // Define Plugin URL
define('MYSTICKYELEMENTS_PATH', plugin_dir_path(__FILE__)); // Define Plugin Directory Path
define('MYSTICKYELEMENTS_BASE', plugin_basename(__FILE__));
-define("MY_STICKY_ELEMENT_VERSION", "2.3.3");
+define("MY_STICKY_ELEMENT_VERSION", "2.3.4");
if(!defined('MSE_DEV_MODE')) {
define('MSE_DEV_MODE', false);
}
@@ -3713,7 +3713,6 @@
require_once MYSTICKYELEMENTS_PATH . 'class-help.php';
require_once MYSTICKYELEMENTS_PATH . 'mystickyelements-admin.php';
require_once MYSTICKYELEMENTS_PATH . 'mystickyelements-front.php';
- require_once MYSTICKYELEMENTS_PATH . 'includes/class-affiliate.php';
}