Plugin Directory

Changeset 1884662


Ignore:
Timestamp:
05/31/2018 07:57:19 AM (8 years ago)
Author:
basticom
Message:

Improved multi-language support among other things

Location:
basticom-framework
Files:
4 edited
13 copied

Legend:

Unmodified
Added
Removed
  • basticom-framework/tags/1.4.8/admin/modules/bstcmfw-cookie.php

    r1883427 r1884662  
    7070    // Include CSS and JS file
    7171    wp_enqueue_style( 'bstcmfw-cookie-style', plugin_dir_url( __FILE__ ) . '/includes/bstcmfw-cookie.css' );
    72     wp_enqueue_script( 'bstcmfw-cookie-script', plugin_dir_url( __FILE__ ) . '/includes/bstcmfw-cookie.js' );
     72    wp_enqueue_script( 'bstcmfw-cookie-script', plugin_dir_url( __FILE__ ) . '/includes/bstcmfw-cookie.js', array('jquery') );
    7373
    7474    if ( is_admin() ) {
     
    9999
    100100    // Check if cookie lang has been posted
    101     // If cookie_lang is empty set cookie lang to: nl
     101    // If cookie_lang is empty, set cookie_lang to default site language
    102102    if( isset( $_POST['cookie_lang'] ) ) {
    103103        $bstcmfw_cookie_lang = $_POST['cookie_lang'];
    104104    } else {
    105         $bstcmfw_cookie_lang = 'nl';
     105        $bstcmfw_cookie_lang = get_bloginfo('language');
    106106    }
    107107
  • basticom-framework/tags/1.4.8/admin/modules/includes/bstcmfw-cookie.css

    r1880716 r1884662  
    99    text-align: center;
    1010    z-index: 2147483647;
    11     padding: 20px;
     11    padding: 20px 0;
    1212    border-radius: 2px;
    1313    display: none;
  • basticom-framework/tags/1.4.8/basticom-framework.php

    r1883427 r1884662  
    44Plugin URI: https://www.basticom.nl
    55Description: WordPress framework
    6 Version: 1.4.7
     6Version: 1.4.8
    77Author: Basticom
    88Author URI: http://www.basticom.nl
  • basticom-framework/tags/1.4.8/readme.txt

    r1883427 r1884662  
    7575= 1.4.7 =
    7676* Fixed some checks
     77
     78= 1.4.8 =
     79* Fixed front-end cookie style
     80* Fixed jQuery error
     81* Fixed setting language based on site language
     82
     83
  • basticom-framework/trunk/admin/modules/bstcmfw-cookie.php

    r1883427 r1884662  
    7070    // Include CSS and JS file
    7171    wp_enqueue_style( 'bstcmfw-cookie-style', plugin_dir_url( __FILE__ ) . '/includes/bstcmfw-cookie.css' );
    72     wp_enqueue_script( 'bstcmfw-cookie-script', plugin_dir_url( __FILE__ ) . '/includes/bstcmfw-cookie.js' );
     72    wp_enqueue_script( 'bstcmfw-cookie-script', plugin_dir_url( __FILE__ ) . '/includes/bstcmfw-cookie.js', array('jquery') );
    7373
    7474    if ( is_admin() ) {
     
    9999
    100100    // Check if cookie lang has been posted
    101     // If cookie_lang is empty set cookie lang to: nl
     101    // If cookie_lang is empty, set cookie_lang to default site language
    102102    if( isset( $_POST['cookie_lang'] ) ) {
    103103        $bstcmfw_cookie_lang = $_POST['cookie_lang'];
    104104    } else {
    105         $bstcmfw_cookie_lang = 'nl';
     105        $bstcmfw_cookie_lang = get_bloginfo('language');
    106106    }
    107107
  • basticom-framework/trunk/admin/modules/includes/bstcmfw-cookie.css

    r1880716 r1884662  
    99    text-align: center;
    1010    z-index: 2147483647;
    11     padding: 20px;
     11    padding: 20px 0;
    1212    border-radius: 2px;
    1313    display: none;
  • basticom-framework/trunk/basticom-framework.php

    r1883427 r1884662  
    44Plugin URI: https://www.basticom.nl
    55Description: WordPress framework
    6 Version: 1.4.7
     6Version: 1.4.8
    77Author: Basticom
    88Author URI: http://www.basticom.nl
  • basticom-framework/trunk/readme.txt

    r1883427 r1884662  
    7575= 1.4.7 =
    7676* Fixed some checks
     77
     78= 1.4.8 =
     79* Fixed front-end cookie style
     80* Fixed jQuery error
     81* Fixed setting language based on site language
     82
     83
Note: See TracChangeset for help on using the changeset viewer.