__( 'Advanced Ads – Ad', 'ads-for-visual-composer' ), 'description' => __( 'Displays an Ad', 'ads-for-visual-composer' ), 'base' => 'the_ad', 'icon' => plugins_url( 'assets/icon.png', __FILE__ ), 'category' => 'Ads', 'group' => 'Advanced Ads', 'params' => array( array( 'type' => 'textfield', 'heading' => __( 'Ad Id', 'ads-for-visual-composer' ), 'param_name' => 'id', 'description' => __( 'Enter the ID of the ad.', 'ads-for-visual-composer' ), ), ) ) ); vc_map( array( 'name' => __( 'Advanced Ads – Group', 'ads-for-visual-composer' ), 'description' => __( 'Displays an Ad Group', 'ads-for-visual-composer' ), 'base' => 'the_ad_group', 'icon' => plugins_url( 'assets/icon.png', __FILE__ ), 'category' => 'Ads', 'group' => 'Advanced Ads', "params" => array( array( 'type' => 'textfield', 'holder' => 'div', 'heading' => __( 'Ad Group Id', 'ads-for-visual-composer' ), 'param_name' => 'id', 'description' => __( 'Enter the ad group ID.', 'ads-for-visual-composer' ), ), ) ) ); vc_map( array( 'name' => __( 'Advanced Ads – Placement', 'ads-for-visual-composer' ), 'description' => __( 'Displays an Ad Placement', 'ads-for-visual-composer' ), 'base' => 'the_ad_placement', 'icon' => plugins_url( 'assets/icon.png', __FILE__ ), 'category' => 'Ads', 'group' => 'Advanced Ads', 'params' => array( array( 'type' => 'textfield', 'holder' => 'div', 'heading' => __( 'Placement slug', 'ads-for-visual-composer' ), 'param_name' => 'id', 'description' => __( 'Enter the slug from a Manual Placement.', 'ads-for-visual-composer' ), ), ), ) ); } /** * Warn if WP Bakery Visual Composer plugin is missing */ public function show_vc_version_notice() { $plugin_data = get_plugin_data( __FILE__ ); echo '
' . sprintf( // translators: %s is the name of this plugin. __( '%s requires the WPBakery Page Builder plugin to be installed and activated on your site.', 'ads-for-visual-composer' ), esc_attr( $plugin_data['Name'] ) ) . '
' . sprintf( __( '%s requires the Advanced Ads plugin to be installed and activated on your site.', 'ads-for-visual-composer' ), $plugin_data['Name'] ) . ' ' . $link . '