'.sprintf(__('%s requires WPBakery Page Builder plugin to be installed and activated on your site.', 'borderless'), $plugin_data['Name']).'

'; } public function wpbakery_init() { require_once( BORDERLESS__WPBAKERY . "/lean-map.php"); require_once( BORDERLESS__WPBAKERY . "/paramns/icon-manager-param.php" ); } function wpbakery_icon_fonts_styles($hook) { // enqueue css files on backend if($hook == "post.php" || $hook == "post-new.php" || $hook == 'visual-composer_page_vc-roles'){ if((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') || is_ssl()) { $scheme = 'https'; } else { $scheme = 'http'; } $this->paths = wp_upload_dir(); $this->paths['fonts'] = 'borderless_icon_fonts'; $this->paths['fonturl'] = set_url_scheme($this->paths['baseurl'].'/'.$this->paths['fonts'], $scheme); $fonts = get_option('borderless_icon_fonts'); if(is_array($fonts)) { foreach($fonts as $font => $info) { if(strpos($info['style'], 'http://' ) !== false) { wp_enqueue_style('borderless-'.$font,$info['style']); } else { wp_enqueue_style('borderless-'.$font,trailingslashit($this->paths['fonturl']).$info['style']); } } } } } } new Borderless_Wpbakery();