Changeset 1523345
- Timestamp:
- 10/27/2016 06:40:37 PM (9 years ago)
- Location:
- pl-platform/trunk
- Files:
-
- 16 edited
-
engine/lib/functions.php (modified) (3 diffs)
-
engine/sections/menus/style.css (modified) (1 diff)
-
engine/ui/css/admin.css (modified) (1 diff)
-
engine/ui/css/components.css (modified) (1 diff)
-
engine/ui/css/workarea.css (modified) (1 diff)
-
engine/ui/js/admin.js (modified) (1 diff)
-
engine/ui/js/common.js (modified) (1 diff)
-
engine/ui/js/editing.js (modified) (1 diff)
-
engine/ui/js/site.js (modified) (1 diff)
-
engine/ui/js/utils.js (modified) (1 diff)
-
engine/ui/plugins/codemirror/pl.codemirror.js (modified) (1 diff)
-
engine/ui/plugins/squire/squire.js (modified) (1 diff)
-
engine/ui/plugins/wizard/wizard.js (modified) (1 diff)
-
engine/ui/plugins/wp/colorpicker-wp.js (modified) (1 diff)
-
pl-platform.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pl-platform/trunk/engine/lib/functions.php
r1516998 r1523345 2988 2988 function pl_pagination() { 2989 2989 2990 ob_start(); 2991 2990 2992 if ( function_exists( 'wp_pagenavi' ) ) : 2991 2993 wp_pagenavi(); … … 3007 3009 <?php 3008 3010 endif; 3011 3012 echo apply_filters( 'pl_pagination', ob_get_clean() ); 3009 3013 } 3010 3014 … … 3340 3344 return admin_url( 'admin-ajax.php', 'relative' ); 3341 3345 } 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 */ 3353 function 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 */ 3375 function 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 } 3401 add_action( 'wp_enqueue_scripts', 'pl_enqueue_google_fonts_action' ); -
pl-platform/trunk/engine/sections/menus/style.css
r1517015 r1523345 1 /* PageLines Platform - 5.0.1 592 * Built: Monday, October 17th, 2016, 23:381 /* PageLines Platform - 5.0.160 2 * Built: Thursday, October 27th, 2016, 19:38 3 3 * https://www.pagelines.com 4 4 * Copyright (c) 2016 PageLines; Licensed GPL-3.0 */ -
pl-platform/trunk/engine/ui/css/admin.css
r1517015 r1523345 1 /* PageLines Platform - 5.0.1 592 * Built: Monday, October 17th, 2016, 23:381 /* PageLines Platform - 5.0.160 2 * Built: Thursday, October 27th, 2016, 19:38 3 3 * https://www.pagelines.com 4 4 * Copyright (c) 2016 PageLines; Licensed GPL-3.0 */ -
pl-platform/trunk/engine/ui/css/components.css
r1517015 r1523345 1 /* PageLines Platform - 5.0.1 592 * Built: Monday, October 17th, 2016, 23:381 /* PageLines Platform - 5.0.160 2 * Built: Thursday, October 27th, 2016, 19:38 3 3 * https://www.pagelines.com 4 4 * Copyright (c) 2016 PageLines; Licensed GPL-3.0 */ -
pl-platform/trunk/engine/ui/css/workarea.css
r1517015 r1523345 1 /* PageLines Platform - 5.0.1 592 * Built: Monday, October 17th, 2016, 23:381 /* PageLines Platform - 5.0.160 2 * Built: Thursday, October 27th, 2016, 19:38 3 3 * https://www.pagelines.com 4 4 * Copyright (c) 2016 PageLines; Licensed GPL-3.0 */ -
pl-platform/trunk/engine/ui/js/admin.js
r1517015 r1523345 1 /* PageLines Platform - 5.0.1 592 * Built: Monday, October 17th, 2016, 23:381 /* PageLines Platform - 5.0.160 2 * Built: Thursday, October 27th, 2016, 19:38 3 3 * https://www.pagelines.com 4 4 * Copyright (c) 2016 PageLines; Licensed GPL-3.0 */ -
pl-platform/trunk/engine/ui/js/common.js
r1517015 r1523345 1 /* PageLines Platform - 5.0.1 592 * Built: Monday, October 17th, 2016, 23:381 /* PageLines Platform - 5.0.160 2 * Built: Thursday, October 27th, 2016, 19:38 3 3 * https://www.pagelines.com 4 4 * Copyright (c) 2016 PageLines; Licensed GPL-3.0 */ -
pl-platform/trunk/engine/ui/js/editing.js
r1517015 r1523345 1 /* PageLines Platform - 5.0.1 592 * Built: Monday, October 17th, 2016, 23:381 /* PageLines Platform - 5.0.160 2 * Built: Thursday, October 27th, 2016, 19:38 3 3 * https://www.pagelines.com 4 4 * Copyright (c) 2016 PageLines; Licensed GPL-3.0 */ -
pl-platform/trunk/engine/ui/js/site.js
r1517015 r1523345 1 /* PageLines Platform - 5.0.1 592 * Built: Monday, October 17th, 2016, 23:381 /* PageLines Platform - 5.0.160 2 * Built: Thursday, October 27th, 2016, 19:38 3 3 * https://www.pagelines.com 4 4 * Copyright (c) 2016 PageLines; Licensed GPL-3.0 */ -
pl-platform/trunk/engine/ui/js/utils.js
r1517015 r1523345 1 /* PageLines Platform - 5.0.1 592 * Built: Monday, October 17th, 2016, 23:381 /* PageLines Platform - 5.0.160 2 * Built: Thursday, October 27th, 2016, 19:38 3 3 * https://www.pagelines.com 4 4 * 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.1 592 * Built: Monday, October 17th, 2016, 23:381 /* PageLines Platform - 5.0.160 2 * Built: Thursday, October 27th, 2016, 19:39 3 3 * https://www.pagelines.com 4 4 * Copyright (c) 2016 PageLines; Licensed GPL-3.0 */ -
pl-platform/trunk/engine/ui/plugins/squire/squire.js
r1517015 r1523345 1 /* PageLines Platform - 5.0.1 592 * Built: Monday, October 17th, 2016, 23:381 /* PageLines Platform - 5.0.160 2 * Built: Thursday, October 27th, 2016, 19:39 3 3 * https://www.pagelines.com 4 4 * Copyright (c) 2016 PageLines; Licensed GPL-3.0 */ -
pl-platform/trunk/engine/ui/plugins/wizard/wizard.js
r1517015 r1523345 1 /* PageLines Platform - 5.0.1 592 * Built: Monday, October 17th, 2016, 23:381 /* PageLines Platform - 5.0.160 2 * Built: Thursday, October 27th, 2016, 19:39 3 3 * https://www.pagelines.com 4 4 * 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.1 592 * Built: Monday, October 17th, 2016, 23:381 /* PageLines Platform - 5.0.160 2 * Built: Thursday, October 27th, 2016, 19:39 3 3 * https://www.pagelines.com 4 4 * Copyright (c) 2016 PageLines; Licensed GPL-3.0 */ -
pl-platform/trunk/pl-platform.php
r1517015 r1523345 4 4 Description: An insanely-fast real time design platform for WordPress. 5 5 6 Version: 5.0.1 596 Version: 5.0.160 7 7 8 8 Author: PageLines -
pl-platform/trunk/readme.txt
r1517015 r1523345 3 3 Contributors: pagelines 4 4 Tested up to: 4.7 5 Stable tag: 5.0.1 595 Stable tag: 5.0.160 6 6 License: GPLv3 or later 7 7 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 79 79 80 80 == 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' ); 81 86 82 87 = 5.0.159 =
Note: See TracChangeset
for help on using the changeset viewer.