.vc_btn3-container { margin-bottom: 2px; // no need to make gold ration in backend } @import "../shortcodes/vc_button3_editform.less";/** * Plugin Name: Foodbakery Multi Opening Hours * Plugin URI: http://themeforest.net/user/Chimpstudio/ * Description: Foodbakery Multi Opening Hours Add on * Version: 3.3 * Author: ChimpStudio * Author URI: http://themeforest.net/user/Chimpstudio/ * @package Foodbakery * Text Domain: foodbakery_multi_opening_hours */ // Direct access not allowed. if (!defined('ABSPATH')) { exit; } if (!class_exists('foodbakery_multi_opening_hours')) { /** * Class foodbakery_multi_opening_hours */ class foodbakery_multi_opening_hours { /** * foodbakery_multi_opening_hours constructor. */ public function __construct() { // Define constants define('FOODBAKERY_MULTI_OPENING_HOURS_PLUGIN_URL', WP_PLUGIN_URL . '/foodbakery-multi-opening-hours'); define('FOODBAKERY_MULTI_OPENING_HOURS_CORE_DIR', WP_PLUGIN_DIR . '/foodbakery-multi-opening-hours'); define('FOODBAKERY_MULTI_OPENING_HOURS_INCLUDES_DIR', FOODBAKERY_MULTI_OPENING_HOURS_CORE_DIR . '/includes'); define('FOODBAKERY_MULTI_OPENING_HOURS_LANGUAGES_DIR', FOODBAKERY_MULTI_OPENING_HOURS_CORE_DIR . '/languages'); $this->admin_notices = array(); //admin notices add_action('admin_notices', array($this, 'foodbakery_multi_opening_hours_notices_callback')); if (!$this->check_dependencies()) { return false; } // enqueue script admin //add_action( 'admin_enqueue_scripts', array($this, 'admin_styles_enqueue')); // enqueue script frontend add_action('wp_enqueue_scripts', array($this, 'foodbakery_multi_opening_hours_enqueue'), 20); // include files $this->foodbakery_multi_opening_hours_includes(); /* initialize the text domain for multiple languages */ add_action( 'init', array( $this, 'init' ), 0 ); } /** * enqueue script admin */ public function admin_styles_enqueue(){ $rand_id = rand(0001, 1000); // Enqueue CSS wp_enqueue_style('foodbakery_multi_opening_hours_style_custom_admin', plugins_url('/assets/css/style_custom_admin.css', __FILE__)); } /** * @param bool $disable * @return bool */ public function check_dependencies($disable = false) { $result = true; $active_plugins = get_option('active_plugins', array()); if (is_multisite()) { $active_sitewide_plugins = get_site_option('active_sitewide_plugins', array()); $active_sitewide_plugins = array_keys($active_sitewide_plugins); $active_plugins = array_merge($active_plugins, $active_sitewide_plugins); } $foodbakery_is_active = in_array('wp-foodbakery/wp-foodbakery.php', $active_plugins); if (!$foodbakery_is_active) { $this->admin_notices[] = '