Plugin Directory

Changeset 2530552


Ignore:
Timestamp:
05/12/2021 03:58:01 PM (5 years ago)
Author:
marcopappalardo
Message:

Creted Aio Settings Section and created credit builder elemnt

Location:
all-in-one-avada-addons
Files:
1891 added
2 edited

Legend:

Unmodified
Added
Removed
  • all-in-one-avada-addons/trunk/all-in-one-avada-addons.php

    r2503989 r2530552  
    44 * Plugin URI: http://www.advisionplus.com
    55 * Description: This is an addons collection for Avada Theme.
    6  * Version: 1.1.3
     6 * Version: 1.1.4
    77 * Author: Marco Pappalardo
    88 * Author URI: http://www.marcopappalardo.it
    99 */
    1010
     11define('PLUGIN_URL', plugins_url('all-in-one-avada-addons/'));
     12define('PLUGIN_PATH', plugin_dir_path(__FILE__));
     13
     14global $plugin_data;
     15
     16if ( is_admin() ) {
     17    if( ! function_exists('get_plugin_data') ){
     18        require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
     19    }
     20    $plugin_data = get_plugin_data( __FILE__ );
     21}
     22
     23define('AIO_PLUGIN_VERSION', $plugin_data['Version']);
     24
     25
    1126function callback_for_setting_up_scripts() {
    12     wp_register_style( 'all-in-one-style', plugins_url('css/all-in-one-style.css', __FILE__));
     27    wp_register_style( 'all-in-one-style', PLUGIN_URL.'assets/css/public/all-in-one-style.css');
    1328    wp_enqueue_style( 'all-in-one-style' );
    14     wp_enqueue_script( 'global-jQuery', plugins_url('all-in-one-avada-addons/js/global.js'), array(), false, true ); 
     29    wp_enqueue_script( 'global-jQuery', PLUGIN_URL.'assets/js/public/global.js', array(), false, true ); 
    1530}
    1631add_action('wp_enqueue_scripts', 'callback_for_setting_up_scripts');
    1732
     33function callback_for_setting_up_scripts_admin() {
     34    wp_register_style( 'all-in-one-style-admin', PLUGIN_URL.'assets/css/admin/all-in-one-style-admin.css');
     35    wp_enqueue_style( 'all-in-one-style-admin' );
     36    wp_enqueue_script( 'global-jQuery', PLUGIN_URL.'assets/js/admin/global-admin.js', array(), false, true ); 
     37}
     38add_action('admin_enqueue_scripts', 'callback_for_setting_up_scripts_admin');
    1839
    1940add_action ('wp_enqueue_script', 'enqueue_scripts');
     
    3152include_once('template/addons-post-carousel.php' );
    3253
     54// Include Addon to add Credit.
     55include_once('builder-elements/credits.php');
     56
    3357// Include Addon to show Post Type in Archive Pages.
    3458include_once('deprecated/addons-post-archive-page.php' );
    3559
    3660include_once('template/template-woo-product.php');
     61
     62if ( !class_exists( 'ReduxFramework' ) && file_exists( dirname( __FILE__ ) . '/inc/aio-redux-core/framework.php' ) ) {
     63    require_once( dirname( __FILE__ ) . '/inc/aio-redux-core/framework.php' );
     64}
     65if ( !isset( $redux_demo ) && file_exists( dirname( __FILE__ ) . '/inc/aio-redux-core/config/config.php' ) ) {
     66    require_once( dirname( __FILE__ ) . '/inc/aio-redux-core/config/config.php' );
     67}
     68if (file_exists( dirname( __FILE__ ) . '/function.php' ) ) {
     69    require_once( dirname( __FILE__ ) . '/function.php' );
     70}
  • all-in-one-avada-addons/trunk/template/template-woo-product.php

    r2449424 r2530552  
    900900                            'heading'          => esc_attr__( 'Font Family', 'fusion-builder' ),
    901901                            /* translators: URL for the link. */
    902                             'description'      => sprintf( esc_html__( 'Controls the font family of the title text.  Leave empty if the global font family for the corresponding heading size (h1-h6) should be used: %s.', 'fusion-builder' ), $to_link ),
     902                            'description'      => sprintf( esc_html__( 'Controls the font family of the title text.  Leave empty if the global font family for the corresponding heading size (h1-h6) should be used.', 'fusion-builder' ) ),
    903903                            'param_name'       => 'title',
    904904                            'group'            => esc_attr__( 'Title', 'avada_addons' ),
     
    10581058                        'heading'          => esc_attr__( 'Font Family', 'fusion-builder' ),
    10591059                        /* translators: URL for the link. */
    1060                         'description'      => sprintf( esc_html__( 'Controls the font family of the terms text.  Leave empty if the global font family for the corresponding heading size (h1-h6) should be used: %s.', 'fusion-builder' ), $to_link ),
     1060                        'description'      => sprintf( esc_html__( 'Controls the font family of the terms text.  Leave empty if the global font family for the corresponding heading size (h1-h6) should be used.', 'fusion-builder' ) ),
    10611061                        'param_name'       => 'terms',
    10621062                        'group'            => esc_attr__( 'Terms', 'avada_addons' ),
     
    13451345                        'heading'          => esc_attr__( 'Font Family', 'fusion-builder' ),
    13461346                        /* translators: URL for the link. */
    1347                         'description'      => sprintf( esc_html__( 'Controls the font family of the price text.  Leave empty if the global font family for the corresponding heading size (h1-h6) should be used: %s.', 'fusion-builder' ), $to_link ),
     1347                        'description'      => sprintf( esc_html__( 'Controls the font family of the price text.  Leave empty if the global font family for the corresponding heading size (h1-h6) should be used.', 'fusion-builder' ) ),
    13481348                        'param_name'       => 'price',
    13491349                        'group'            => esc_attr__( 'Price', 'avada_addons' ),
     
    15821582                            'heading'          => esc_attr__( 'Font Family', 'fusion-builder' ),
    15831583                            /* translators: URL for the link. */
    1584                             'description'      => sprintf( esc_html__( 'Controls the font family of the button text.  Leave empty if the global font family for the corresponding heading size (h1-h6) should be used: %s.', 'fusion-builder' ), $to_link ),
     1584                            'description'      => sprintf( esc_html__( 'Controls the font family of the button text.  Leave empty if the global font family for the corresponding heading size (h1-h6) should be used.', 'fusion-builder' ) ),
    15851585                            'param_name'       => 'button',
    15861586                            'group'            => esc_attr__( 'Button', 'avada_addons' ),
     
    20372037                            'remove_from_atts' => true,
    20382038                            'heading'          => esc_attr__( 'Font Family', 'fusion-builder' ),
    2039                             'description'      => sprintf( esc_html__( 'Controls the font family of the title text.  Leave empty if the global font family for the corresponding heading size (h1-h6) should be used: %s.', 'fusion-builder' ), $to_link ),
     2039                            'description'      => sprintf( esc_html__( 'Controls the font family of the title text.  Leave empty if the global font family for the corresponding heading size (h1-h6) should be used.', 'fusion-builder' ) ),
    20402040                            'param_name'       => 'title',
    20412041                            'group'            => esc_attr__( 'Title', 'avada_addons' ),
     
    21922192                        'remove_from_atts' => true,
    21932193                        'heading'          => esc_attr__( 'Font Family', 'fusion-builder' ),
    2194                         'description'      => sprintf( esc_html__( 'Controls the font family of the terms text.  Leave empty if the global font family for the corresponding heading size (h1-h6) should be used: %s.', 'fusion-builder' ), $to_link ),
     2194                        'description'      => sprintf( esc_html__( 'Controls the font family of the terms text.  Leave empty if the global font family for the corresponding heading size (h1-h6) should be used.', 'fusion-builder' ) ),
    21952195                        'param_name'       => 'terms',
    21962196                        'group'            => esc_attr__( 'Terms', 'avada_addons' ),
     
    24752475                        'remove_from_atts' => true,
    24762476                        'heading'          => esc_attr__( 'Font Family', 'fusion-builder' ),
    2477                         'description'      => sprintf( esc_html__( 'Controls the font family of the price text.  Leave empty if the global font family for the corresponding heading size (h1-h6) should be used: %s.', 'fusion-builder' ), $to_link ),
     2477                        'description'      => sprintf( esc_html__( 'Controls the font family of the price text.  Leave empty if the global font family for the corresponding heading size (h1-h6) should be used.', 'fusion-builder' ) ),
    24782478                        'param_name'       => 'price',
    24792479                        'group'            => esc_attr__( 'Price', 'avada_addons' ),
     
    27072707                            'remove_from_atts' => true,
    27082708                            'heading'          => esc_attr__( 'Font Family', 'fusion-builder' ),
    2709                             'description'      => sprintf( esc_html__( 'Controls the font family of the button text.  Leave empty if the global font family for the corresponding heading size (h1-h6) should be used: %s.', 'fusion-builder' ), $to_link ),
     2709                            'description'      => sprintf( esc_html__( 'Controls the font family of the button text.  Leave empty if the global font family for the corresponding heading size (h1-h6) should be used.', 'fusion-builder' ) ),
    27102710                            'param_name'       => 'button',
    27112711                            'group'            => esc_attr__( 'Button', 'avada_addons' ),
Note: See TracChangeset for help on using the changeset viewer.