Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the original files and replace all vc appearances with wpb #1

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
# WP Bakery Multilanguage

Author URI: https://allurewebsolutions.com
Plugin URI: https://vc-multilanguage.allureprojects.com/
Tags: visual composer, multilanguage, multi-language, translate, translation
Plugin URI: https://wpb-multilanguage.allureprojects.com/
Tags: wpbakery page builder, multilanguage, multi-language, translate, translation
Donate link: https://allurewebsolutions.com/product/donation
Tested up to: 5.3
Stable tag: 2.1.2
Tested up to: 5.8.1
Stable tag: 3.0.0

This is an add-on plugin for WPBakery Visual Composer that adds multilanguage support and functionality. Version 2.0 now also has automatic translations that you can turn on.
This is an add-on plugin for WPBakery Page Builder that adds multilanguage support and functionality. Version 2.0 now also has automatic translations that you can turn on.

## Description

This is an add-on plugin for WPBakery Visual Composer that adds functionality of a language switcher, making it very easy to create a multi-language site without an additional multi-language or translation plugin.
This is an add-on plugin for WPBakery Page Builder that adds functionality of a language switcher, making it very easy to create a multi-language site without an additional multi-language or translation plugin.

In version 2.0, we've added support for automatic translations using the Google Cloud Translate API.

[Full Setup Instructions & Walkthrough](https://allurewebsolutions.com/visual-composer-multilanguage-plugin)
[Full Setup Instructions & Walkthrough](https://allurewebsolutions.com/wpbakery-page-builder-multilanguage-plugin)

[Demo](https://vc-multilanguage.allureprojects.com)

## Installation

1) Activate the plugin. Must have Visual Composer also activated.
1) Activate the plugin. Must have WPBakery Page Builder also activated.
2) Go to plugin settings and input the languages you would like to support.
3) Go to VC editor and add rows. Select language from the dropdown and add a class of "language" to the extra classes section.
4) For auto translation, you follow step 3, but leave the text-block inside the row empty.
Expand Down
14 changes: 7 additions & 7 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,24 @@
Contributors: allurewebsolutions
Author URI: https://allurewebsolutions.com
Plugin URI: https://vc-multilanguage.allureprojects.com/
Tags: visual composer, multilanguage, multi-language, translate, translation
Tags: wpbakery page builder, multilanguage, multi-language, translate, translation
Donate link: https://allurewebsolutions.com/product/donation
Tested up to: 5.8
Stable tag: 2.1.2
Tested up to: 5.8.1
Stable tag: 3.0.0

This is an add-on plugin for WPBakery Visual Composer that adds multilanguage support and functionality. Version 2.0 now also has automatic translations that you can turn on.
This is an add-on plugin for WPBakery Page Builder that adds multilanguage support and functionality. Version 2.0 now also has automatic translations that you can turn on.

== Description ==
This is an add-on plugin for WPBakery Visual Composer that adds functionality of a language switcher, making it very easy to create a multi-language site without an additional multi-language or translation plugin.
This is an add-on plugin for WPBakery Page Builder that adds functionality of a language switcher, making it very easy to create a multi-language site without an additional multi-language or translation plugin.

In version 2.0, we've added support for automatic translations using the Google Cloud Translate API.

[Full Setup Instructions & Walkthrough](https://allurewebsolutions.com/visual-composer-multilanguage-plugin)
[Full Setup Instructions & Walkthrough](https://allurewebsolutions.com/wpbakery-page-builder-multilanguage-plugin)

[Demo](https://vc-multilanguage.allureprojects.com)

== Installation ==
1) Activate the plugin. Must have Visual Composer also activated.
1) Activate the plugin. Must have WPBakery Page Builder also activated.
2) Go to plugin settings and input the languages you would like to support.
3) Go to VC editor and add rows. Select language from the dropdown and add a class of "language" to the extra classes section.
4) For auto translation, you follow step 3, but leave the text-block inside the row empty.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
* @link https://allurewebsolutions.com
* @since 1.0.0
*
* @package Visual_Composer_Multilanguage
* @subpackage Visual_Composer_Multilanguage/admin
* @package Wpbakery_Page_Builder_Multilanguage
* @subpackage Wpbakery_Page_Builder_Multilanguage/admin
*/

/**
Expand All @@ -16,11 +16,11 @@
* Defines the plugin name, version, and two examples hooks for how to
* enqueue the admin-specific stylesheet and JavaScript.
*
* @package Visual_Composer_Multilanguage
* @subpackage Visual_Composer_Multilanguage/admin
* @package Wpbakery_Page_Builder_Multilanguage
* @subpackage Wpbakery_Page_Builder_Multilanguage/admin
* @author Allure Web Solutions <[email protected]>
*/
class Visual_Composer_Multilanguage_Admin {
class Wpbakery_Page_Builder_Multilanguage_Admin {

/**
* The options name to be used in this plugin
Expand All @@ -29,7 +29,7 @@ class Visual_Composer_Multilanguage_Admin {
* @access private
* @var string $option_name Option name of this plugin
*/
private $option_name = 'visual_composer_multilanguage';
private $option_name = 'wpbakery_page_builder_multilanguage';

/**
* The ID of this plugin.
Expand Down Expand Up @@ -75,15 +75,15 @@ public function enqueue_styles() {
* This function is provided for demonstration purposes only.
*
* An instance of this class should be passed to the run() function
* defined in Visual_Composer_Multilanguage_Loader as all of the hooks are defined
* defined in Wpbakery_Page_Builder_Multilanguage_Loader as all of the hooks are defined
* in that particular class.
*
* The Visual_Composer_Multilanguage_Loader will then create the relationship
* The Wpbakery_Page_Builder_Multilanguage_Loader will then create the relationship
* between the defined hooks and the functions defined in this
* class.
*/

wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/visual-composer-multilanguage-admin.css', array(), $this->version, 'all' );
wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/wpbakery-page-builder-multilanguage-admin.css', array(), $this->version, 'all' );

}

Expand All @@ -98,15 +98,15 @@ public function enqueue_scripts() {
* This function is provided for demonstration purposes only.
*
* An instance of this class should be passed to the run() function
* defined in Visual_Composer_Multilanguage_Loader as all of the hooks are defined
* defined in Wpbakery_Page_Builder_Multilanguage_Loader as all of the hooks are defined
* in that particular class.
*
* The Visual_Composer_Multilanguage_Loader will then create the relationship
* The Wpbakery_Page_Builder_Multilanguage_Loader will then create the relationship
* between the defined hooks and the functions defined in this
* class.
*/

wp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/visual-composer-multilanguage-admin.js', array( 'jquery' ), $this->version, false );
wp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/wpbakery-page-builder-multilanguage-admin.js', array( 'jquery' ), $this->version, false );

}

Expand All @@ -118,8 +118,8 @@ public function enqueue_scripts() {
public function add_options_page() {

$this->plugin_screen_hook_suffix = add_options_page(
__( 'VC Multilanguage Settings', 'visual-composer-multilanguage' ),
__( 'VC Multilanguage', 'visual-composer-multilanguage' ),
__( 'VC Multilanguage Settings', 'wpbakery-page-builder-multilanguage' ),
__( 'VC Multilanguage', 'wpbakery-page-builder-multilanguage' ),
'manage_options',
$this->plugin_name,
array( $this, 'display_options_page' )
Expand All @@ -135,15 +135,15 @@ public function add_options_page() {
public function register_setting() {
add_settings_section(
$this->option_name . '_general',
__( 'General', 'visual-composer-multilanguage' ),
__( 'General', 'wpbakery-page-builder-multilanguage' ),
array( $this, $this->option_name . '_general_cb' ),
$this->plugin_name
);

// Supported languages text field
add_settings_field(
$this->option_name . '_languages',
__( 'Languages', 'visual-composer-multilanguage' ),
__( 'Languages', 'wpbakery-page-builder-multilanguage' ),
array( $this, $this->option_name . '_languages_cb' ),
$this->plugin_name,
$this->option_name . '_general',
Expand All @@ -153,7 +153,7 @@ public function register_setting() {
// Supported languages text field
add_settings_field(
$this->option_name . '_default_language',
__( 'Select Default Language', 'visual-composer-multilanguage' ),
__( 'Select Default Language', 'wpbakery-page-builder-multilanguage' ),
array( $this, $this->option_name . '_default_language_cb' ),
$this->plugin_name,
$this->option_name . '_general',
Expand All @@ -163,7 +163,7 @@ public function register_setting() {
// Activate language switcher
add_settings_field(
$this->option_name . '_switcher',
__( 'Activate Language Switcher', 'visual-composer-multilanguage' ),
__( 'Activate Language Switcher', 'wpbakery-page-builder-multilanguage' ),
array( $this, $this->option_name . '_switcher_cb' ),
$this->plugin_name,
$this->option_name . '_general',
Expand All @@ -173,7 +173,7 @@ public function register_setting() {
// Activate automatic translations
add_settings_field(
$this->option_name . '_autotranslate',
__( 'Activate Automatic Translations', 'visual-composer-multilanguage' ),
__( 'Activate Automatic Translations', 'wpbakery-page-builder-multilanguage' ),
array( $this, $this->option_name . '_autotranslate_cb' ),
$this->plugin_name,
$this->option_name . '_general',
Expand All @@ -183,7 +183,7 @@ public function register_setting() {
// Activate styling
add_settings_field(
$this->option_name . '_styling',
__( 'Activate Styling', 'visual-composer-multilanguage' ),
__( 'Activate Styling', 'wpbakery-page-builder-multilanguage' ),
array( $this, $this->option_name . '_styling_cb' ),
$this->plugin_name,
$this->option_name . '_general',
Expand All @@ -193,7 +193,7 @@ public function register_setting() {
// Google API Key
add_settings_field(
$this->option_name . '_googleapikey',
__( 'Google Cloud Translate API Key', 'visual-composer-multilanguage' ),
__( 'Google Cloud Translate API Key', 'wpbakery-page-builder-multilanguage' ),
array( $this, $this->option_name . '_googleapikey_cb' ),
$this->plugin_name,
$this->option_name . '_general',
Expand Down Expand Up @@ -233,14 +233,14 @@ public function register_setting() {
*
* @since 1.0.0
*/
public function visual_composer_multilanguage_languages_cb() {
public function wpbakery_page_builder_multilanguage_languages_cb() {
$languages = get_option( $this->option_name . '_languages' );
?>
<fieldset>
<input type="text" name="<?php echo $this->option_name . '_languages' ?>"
id="<?php echo $this->option_name . '_languages' ?>"
value="<?php echo get_option( $this->option_name . '_languages' ) ?>"
placeholder="<?php _e( 'English', 'visual-composer-multilanguage' ); ?>"/>
placeholder="<?php _e( 'English', 'wpbakery-page-builder-multilanguage' ); ?>"/>
</fieldset>
<?php
}
Expand All @@ -250,13 +250,13 @@ public function visual_composer_multilanguage_languages_cb() {
*
* @since 1.0.0
*/
public function visual_composer_multilanguage_default_language_cb() {
public function wpbakery_page_builder_multilanguage_default_language_cb() {
?>
<fieldset>
<input type="text" name="<?php echo $this->option_name . '_default_language' ?>"
id="<?php echo $this->option_name . '_default_language' ?>"
value="<?php echo get_option( $this->option_name . '_default_language' ) ?>"
placeholder="<?php _e( 'English', 'visual-composer-multilanguage' ); ?>"/>
placeholder="<?php _e( 'English', 'wpbakery-page-builder-multilanguage' ); ?>"/>
</fieldset>
<?php
}
Expand All @@ -266,7 +266,7 @@ public function visual_composer_multilanguage_default_language_cb() {
*
* @since 1.0.0
*/
public function visual_composer_multilanguage_switcher_cb() {
public function wpbakery_page_builder_multilanguage_switcher_cb() {
$switcher = get_option( $this->option_name . '_switcher' );
?>
<fieldset>
Expand All @@ -284,7 +284,7 @@ public function visual_composer_multilanguage_switcher_cb() {
*
* @since 1.0.0
*/
public function visual_composer_multilanguage_autotranslate_cb() {
public function wpbakery_page_builder_multilanguage_autotranslate_cb() {
$autotranslate = get_option( $this->option_name . '_autotranslate' );
?>
<fieldset>
Expand All @@ -302,7 +302,7 @@ public function visual_composer_multilanguage_autotranslate_cb() {
*
* @since 1.0.0
*/
public function visual_composer_multilanguage_styling_cb() {
public function wpbakery_page_builder_multilanguage_styling_cb() {
$styling = get_option( $this->option_name . '_styling' );
?>
<fieldset>
Expand All @@ -320,14 +320,14 @@ public function visual_composer_multilanguage_styling_cb() {
*
* @since 1.0.0
*/
public function visual_composer_multilanguage_googleapikey_cb() {
public function wpbakery_page_builder_multilanguage_googleapikey_cb() {
$googleapikey = get_option( $this->option_name . '_googleapikey' );
?>
<fieldset>
<input type="text" name="<?php echo $this->option_name . '_googleapikey' ?>"
id="<?php echo $this->option_name . '_googleapikey' ?>"
value="<?php echo get_option( $this->option_name . '_googleapikey' ) ?>"
placeholder="<?php _e( 'API KEY', 'visual-composer-multilanguage' ); ?>"/>
placeholder="<?php _e( 'API KEY', 'wpbakery-page-builder-multilanguage' ); ?>"/>
</fieldset>
<?php
}
Expand All @@ -337,8 +337,8 @@ public function visual_composer_multilanguage_googleapikey_cb() {
*
* @since 1.0.0
*/
public function visual_composer_multilanguage_general_cb() {
echo '<p>' . __( 'List languages you would like supported, separated by a comma.', 'visual-composer-multilanguage' ) . '</p>';
public function wpbakery_page_builder_multilanguage_general_cb() {
echo '<p>' . __( 'List languages you would like supported, separated by a comma.', 'wpbakery-page-builder-multilanguage' ) . '</p>';
}

/**
Expand All @@ -347,7 +347,7 @@ public function visual_composer_multilanguage_general_cb() {
* @since 1.0.0
*/
public function display_options_page() {
include_once 'partials/visual-composer-multilanguage-admin-display.php';
include_once 'partials/wpbakery-page-builder-multilanguage-admin-display.php';
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
* included in this file.
*/

.settings_page_visual-composer-multilanguage input[type=text] {
.settings_page_wpbakery-page-builder-multilanguage input[type=text] {
width: 100%;
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
* @link https://allurewebsolutions.com
* @since 1.0.0
*
* @package Visual_Composer_Multilanguage
* @subpackage Visual_Composer_Multilanguage/admin/partials
* @package Wpbakery_Page_Builder_Multilanguage
* @subpackage Wpbakery_Page_Builder_Multilanguage/admin/partials
*/
?>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
* @link https://allurewebsolutions.com
* @since 1.0.0
*
* @package Visual_Composer_Multilanguage
* @subpackage Visual_Composer_Multilanguage/includes
* @package Wpbakery_Page_Builder_Multilanguage
* @subpackage Wpbakery_Page_Builder_Multilanguage/includes
*/

/**
Expand All @@ -16,11 +16,11 @@
* This class defines all code necessary to run during the plugin's activation.
*
* @since 1.0.0
* @package Visual_Composer_Multilanguage
* @subpackage Visual_Composer_Multilanguage/includes
* @package Wpbakery_Page_Builder_Multilanguage
* @subpackage Wpbakery_Page_Builder_Multilanguage/includes
* @author Allure Web Solutions <[email protected]>
*/
class Visual_Composer_Multilanguage_Activator {
class Wpbakery_Page_Builder_Multilanguage_Activator {

/**
* Short Description. (use period)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
* @link https://allurewebsolutions.com
* @since 1.0.0
*
* @package Visual_Composer_Multilanguage
* @subpackage Visual_Composer_Multilanguage/includes
* @package Wpbakery_Page_Builder_Multilanguage
* @subpackage Wpbakery_Page_Builder_Multilanguage/includes
*/

/**
Expand All @@ -16,11 +16,11 @@
* This class defines all code necessary to run during the plugin's deactivation.
*
* @since 1.0.0
* @package Visual_Composer_Multilanguage
* @subpackage Visual_Composer_Multilanguage/includes
* @package Wpbakery_Page_Builder_Multilanguage
* @subpackage Wpbakery_Page_Builder_Multilanguage/includes
* @author Allure Web Solutions <[email protected]>
*/
class Visual_Composer_Multilanguage_Deactivator {
class Wpbakery_Page_Builder_Multilanguage_Deactivator {

/**
* Short Description. (use period)
Expand Down
Loading