Plugin Directory

Changeset 1523345


Ignore:
Timestamp:
10/27/2016 06:40:37 PM (9 years ago)
Author:
pagelines
Message:

Committing 5.0.160 to trunk

Location:
pl-platform/trunk
Files:
16 edited

Legend:

Unmodified
Added
Removed
  • pl-platform/trunk/engine/lib/functions.php

    r1516998 r1523345  
    29882988function pl_pagination() {
    29892989
     2990  ob_start();
     2991
    29902992  if ( function_exists( 'wp_pagenavi' ) ) :
    29912993    wp_pagenavi();
     
    30073009      <?php
    30083010  endif;
     3011
     3012  echo apply_filters( 'pl_pagination', ob_get_clean() );
    30093013}
    30103014
     
    33403344  return admin_url( 'admin-ajax.php', 'relative' );
    33413345}
     3346
     3347/**
     3348 * Allow themes and plugins to easily enqueue Google fonts with one single HTTP request.
     3349 *
     3350 * @example pl_enqueue_google_font( 'Droid Serif', array( '400', '700' ) );
     3351 *          pl_enqueue_google_font( 'Fjalla One' );
     3352 */
     3353function pl_enqueue_google_font( $font = false, $args = array() ) {
     3354
     3355  global $pl_enqueue_google_fonts;
     3356
     3357  if( false === $font || ! is_string( $font ) ) {
     3358    return false;
     3359  }
     3360
     3361  if( ! is_array( $pl_enqueue_google_fonts ) ) {
     3362    $pl_enqueue_google_fonts = array();
     3363  }
     3364
     3365  /**
     3366   * Add font to array
     3367   */
     3368  $pl_enqueue_google_fonts[$font] = $args;
     3369
     3370}
     3371
     3372/**
     3373 * Enqueue google fonts added with pl_enqueue_google_font()
     3374 */
     3375function pl_enqueue_google_fonts_action() {
     3376
     3377  global $pl_enqueue_google_fonts;
     3378
     3379  $gfonts   = array();
     3380  $base_url = '//fonts.googleapis.com/css';
     3381
     3382
     3383  if( is_array( $pl_enqueue_google_fonts ) ) {
     3384    foreach( $pl_enqueue_google_fonts as $family => $args ) {
     3385      if( is_array( $args ) && ! empty( $args ) ) {
     3386        $args = ':' . implode( ',', $args );
     3387      } else {
     3388        $args = '';
     3389      }
     3390      $gfonts[] = sprintf( '%s%s', str_replace( ' ', '+', $family ), $args );
     3391    }
     3392
     3393    if( ! empty( $gfonts ) ) {
     3394      $url = sprintf( '%s?family=%s', $base_url, implode( '|', $gfonts ) );
     3395    }
     3396
     3397    // enqueue the built font url
     3398    wp_enqueue_style( 'pl5-google-fonts', $url  );
     3399  }
     3400}
     3401add_action( 'wp_enqueue_scripts', 'pl_enqueue_google_fonts_action' );
  • pl-platform/trunk/engine/sections/menus/style.css

    r1517015 r1523345  
    1 /* PageLines Platform - 5.0.159
    2 * Built: Monday, October 17th, 2016, 23:38
     1/* PageLines Platform - 5.0.160
     2* Built: Thursday, October 27th, 2016, 19:38
    33* https://www.pagelines.com
    44* Copyright (c) 2016 PageLines; Licensed GPL-3.0 */
  • pl-platform/trunk/engine/ui/css/admin.css

    r1517015 r1523345  
    1 /* PageLines Platform - 5.0.159
    2 * Built: Monday, October 17th, 2016, 23:38
     1/* PageLines Platform - 5.0.160
     2* Built: Thursday, October 27th, 2016, 19:38
    33* https://www.pagelines.com
    44* Copyright (c) 2016 PageLines; Licensed GPL-3.0 */
  • pl-platform/trunk/engine/ui/css/components.css

    r1517015 r1523345  
    1 /* PageLines Platform - 5.0.159
    2 * Built: Monday, October 17th, 2016, 23:38
     1/* PageLines Platform - 5.0.160
     2* Built: Thursday, October 27th, 2016, 19:38
    33* https://www.pagelines.com
    44* Copyright (c) 2016 PageLines; Licensed GPL-3.0 */
  • pl-platform/trunk/engine/ui/css/workarea.css

    r1517015 r1523345  
    1 /* PageLines Platform - 5.0.159
    2 * Built: Monday, October 17th, 2016, 23:38
     1/* PageLines Platform - 5.0.160
     2* Built: Thursday, October 27th, 2016, 19:38
    33* https://www.pagelines.com
    44* Copyright (c) 2016 PageLines; Licensed GPL-3.0 */
  • pl-platform/trunk/engine/ui/js/admin.js

    r1517015 r1523345  
    1 /* PageLines Platform - 5.0.159
    2 * Built: Monday, October 17th, 2016, 23:38
     1/* PageLines Platform - 5.0.160
     2* Built: Thursday, October 27th, 2016, 19:38
    33* https://www.pagelines.com
    44* Copyright (c) 2016 PageLines; Licensed GPL-3.0 */
  • pl-platform/trunk/engine/ui/js/common.js

    r1517015 r1523345  
    1 /* PageLines Platform - 5.0.159
    2 * Built: Monday, October 17th, 2016, 23:38
     1/* PageLines Platform - 5.0.160
     2* Built: Thursday, October 27th, 2016, 19:38
    33* https://www.pagelines.com
    44* Copyright (c) 2016 PageLines; Licensed GPL-3.0 */
  • pl-platform/trunk/engine/ui/js/editing.js

    r1517015 r1523345  
    1 /* PageLines Platform - 5.0.159
    2 * Built: Monday, October 17th, 2016, 23:38
     1/* PageLines Platform - 5.0.160
     2* Built: Thursday, October 27th, 2016, 19:38
    33* https://www.pagelines.com
    44* Copyright (c) 2016 PageLines; Licensed GPL-3.0 */
  • pl-platform/trunk/engine/ui/js/site.js

    r1517015 r1523345  
    1 /* PageLines Platform - 5.0.159
    2 * Built: Monday, October 17th, 2016, 23:38
     1/* PageLines Platform - 5.0.160
     2* Built: Thursday, October 27th, 2016, 19:38
    33* https://www.pagelines.com
    44* Copyright (c) 2016 PageLines; Licensed GPL-3.0 */
  • pl-platform/trunk/engine/ui/js/utils.js

    r1517015 r1523345  
    1 /* PageLines Platform - 5.0.159
    2 * Built: Monday, October 17th, 2016, 23:38
     1/* PageLines Platform - 5.0.160
     2* Built: Thursday, October 27th, 2016, 19:38
    33* https://www.pagelines.com
    44* Copyright (c) 2016 PageLines; Licensed GPL-3.0 */
  • pl-platform/trunk/engine/ui/plugins/codemirror/pl.codemirror.js

    r1517015 r1523345  
    1 /* PageLines Platform - 5.0.159
    2 * Built: Monday, October 17th, 2016, 23:38
     1/* PageLines Platform - 5.0.160
     2* Built: Thursday, October 27th, 2016, 19:39
    33* https://www.pagelines.com
    44* Copyright (c) 2016 PageLines; Licensed GPL-3.0 */
  • pl-platform/trunk/engine/ui/plugins/squire/squire.js

    r1517015 r1523345  
    1 /* PageLines Platform - 5.0.159
    2 * Built: Monday, October 17th, 2016, 23:38
     1/* PageLines Platform - 5.0.160
     2* Built: Thursday, October 27th, 2016, 19:39
    33* https://www.pagelines.com
    44* Copyright (c) 2016 PageLines; Licensed GPL-3.0 */
  • pl-platform/trunk/engine/ui/plugins/wizard/wizard.js

    r1517015 r1523345  
    1 /* PageLines Platform - 5.0.159
    2 * Built: Monday, October 17th, 2016, 23:38
     1/* PageLines Platform - 5.0.160
     2* Built: Thursday, October 27th, 2016, 19:39
    33* https://www.pagelines.com
    44* Copyright (c) 2016 PageLines; Licensed GPL-3.0 */
  • pl-platform/trunk/engine/ui/plugins/wp/colorpicker-wp.js

    r1517015 r1523345  
    1 /* PageLines Platform - 5.0.159
    2 * Built: Monday, October 17th, 2016, 23:38
     1/* PageLines Platform - 5.0.160
     2* Built: Thursday, October 27th, 2016, 19:39
    33* https://www.pagelines.com
    44* Copyright (c) 2016 PageLines; Licensed GPL-3.0 */
  • pl-platform/trunk/pl-platform.php

    r1517015 r1523345  
    44Description:  An insanely-fast real time design platform for WordPress.
    55
    6 Version:      5.0.159
     6Version:      5.0.160
    77
    88Author:       PageLines
  • pl-platform/trunk/readme.txt

    r1517015 r1523345  
    33Contributors: pagelines
    44Tested up to: 4.7
    5 Stable tag: 5.0.159
     5Stable tag: 5.0.160
    66License: GPLv3 or later
    77License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    7979
    8080== Changelog ==
     81
     82= 5.0.160 =
     83
     84* New filter: pl_pagination
     85* New function: pl_enqueue_google_font. Usage: pl_enqueue_google_font( 'Fjalla One' );
    8186
    8287= 5.0.159 =
Note: See TracChangeset for help on using the changeset viewer.