Changeset 1214295
- Timestamp:
- 08/06/2015 06:23:10 PM (11 years ago)
- Location:
- penci-slider
- Files:
-
- 41 added
- 3 deleted
- 4 edited
-
tags/1.0 (added)
-
tags/1.0/css (added)
-
tags/1.0/css/admin.css (added)
-
tags/1.0/css/pencislider.css (added)
-
tags/1.0/fonts (added)
-
tags/1.0/fonts/Lovelo.eot (added)
-
tags/1.0/fonts/Lovelo.svg (added)
-
tags/1.0/fonts/Lovelo.ttf (added)
-
tags/1.0/fonts/Lovelo.woff (added)
-
tags/1.0/images (added)
-
tags/1.0/images/loading-pattern.png (added)
-
tags/1.0/images/next.png (added)
-
tags/1.0/images/no-thumb.jpg (added)
-
tags/1.0/images/pattern.png (added)
-
tags/1.0/images/penci-icon.png (added)
-
tags/1.0/images/penci-shortcode.png (added)
-
tags/1.0/images/prev.png (added)
-
tags/1.0/inc (added)
-
tags/1.0/inc/fonts.php (added)
-
tags/1.0/inc/functions.php (added)
-
tags/1.0/inc/pencislider-form.php (added)
-
tags/1.0/inc/shortcode.php (added)
-
tags/1.0/inc/style.php (added)
-
tags/1.0/init.php (added)
-
tags/1.0/js (added)
-
tags/1.0/js/admin.js (added)
-
tags/1.0/js/field_color.js (added)
-
tags/1.0/js/field_upload.js (added)
-
tags/1.0/js/field_upload_3_4.js (added)
-
tags/1.0/js/jquery.flexslider-min.js (added)
-
tags/1.0/js/jquery.flexslider.js (added)
-
tags/1.0/js/pencislider.js (added)
-
tags/1.0/js/script.min.js (added)
-
tags/1.0/languages (added)
-
tags/1.0/mce (added)
-
tags/1.0/mce/js (added)
-
tags/1.0/mce/js/mce.js (added)
-
tags/1.0/mce/mce.php (added)
-
tags/1.0/readme.txt (added)
-
trunk/inc/shortcode.php (modified) (3 diffs)
-
trunk/init.php (modified) (4 diffs)
-
trunk/js/field_upload_3_4.js (deleted)
-
trunk/js/jquery.flexslider-min.js (deleted)
-
trunk/js/jquery.flexslider.js (deleted)
-
trunk/js/reorder.js (added)
-
trunk/languages/xx_XX.po (added)
-
trunk/mce/js/mce.js (modified) (1 diff)
-
trunk/readme.txt (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
penci-slider/trunk/inc/shortcode.php
r1212241 r1214295 14 14 'category' => '', 15 15 'height' => '', 16 'order' => 'ASC',17 16 'transition' => 'slide', 18 17 'autoplay' => 'true', … … 26 25 if ( ! is_numeric( $container ) ) : $container = '1000'; endif; 27 26 if ( ! is_numeric( $height ) ) : $height = ''; endif; 28 if ( $order != 'DESC' && $order != 'desc' ) : $order = 'ASC'; endif;29 $order = strtoupper($order);30 27 if ( $transition != 'fade' ) : $transition = 'slide'; endif; 31 28 if ( $autoplay != 'false' ): $autoplay = 'true'; endif; … … 41 38 $slider_args = array( 42 39 'post_type' => 'penci_slider', 43 'order' => $order, 40 'order' => 'ASC', 41 'orderby' => 'menu_order' 44 42 ); 45 43 -
penci-slider/trunk/init.php
r1212241 r1214295 4 4 Plugin URI: http://pencidesign.com/ 5 5 Description: Easy to create a WordPress slider, full responsive, nice element transition and SEO optimized. 6 Version: 1. 06 Version: 1.1 7 7 Author: PenciDesign 8 8 Author URI: http://pencidesign.com/ … … 91 91 add_action( 'admin_print_styles', array( $this, 'enqueue_media' ) ); 92 92 93 // load plugin text domain for translations93 // Load plugin text domain for translations 94 94 add_action( 'plugins_loaded', array( $this, 'load_text_domain' ) ); 95 95 … … 97 97 add_action( 'wp_enqueue_scripts', array( $this, 'front_style' ) ); 98 98 99 // enqueue script and style in back-end 99 // Ajax action to update reorder 100 add_action( 'wp_ajax_penci_update_slide_order', array( $this, 'penci_slider_update_order' ) ); 101 102 // Reorder default columns pencislider in backend 103 add_filter( 'pre_get_posts', array( $this, 'set_penci_slider_admin_order' ) ); 104 105 // Enqueue script and style in back-end 100 106 add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue' ) ); 101 107 102 // add settings link to plugins page108 // Add settings link to plugins page 103 109 add_filter( 'plugin_action_links', array( $this, 'add_settings_links' ), 10, 2 ); 104 110 105 // register admin options111 // Register admin options 106 112 add_action( 'admin_init', array( $this, 'admin_options' ) ); 107 113 108 // add plugin options page114 // Add plugin options page 109 115 add_action( 'admin_menu', array( $this, 'add_options_page' ) ); 110 116 111 // add custom options117 // Add custom options 112 118 add_action( 'wp_head', array( $this, 'custom_options' ) ); 113 119 } … … 389 395 public function admin_enqueue() { 390 396 wp_enqueue_style( 'pencislider-admin-css', PENCI_SLIDER_URL . '/css/admin.css' ); 391 wp_register_script( 'pencislider-admin-js', PENCI_SLIDER_URL . '/js/admin.js', false, self::$version ); 397 wp_enqueue_script( 'jquery-ui-sortable', array( 'jquery' ) ); 398 wp_enqueue_script( 'reorder-slides', PENCI_SLIDER_URL . '/js/reorder.js', array( 'jquery' ), false, self::$version ); 399 wp_register_script( 'pencislider-admin-js', PENCI_SLIDER_URL . '/js/admin.js', array( 'jquery' ), false, self::$version ); 400 } 401 402 /** 403 * Reorder ajax callback 404 * @return void 405 * @since 1.1 406 */ 407 public function penci_slider_update_order() { 408 global $wpdb; 409 410 $post_type = $_POST['postType']; 411 $order = $_POST['order']; 412 413 if ( ! is_array( $order ) || $post_type != 'penci_slider' ) 414 return; 415 416 foreach ( $order as $menu_order => $post_id ) { 417 $post_id = intval( str_ireplace( 'post-', '', $post_id ) ); 418 $menu_order = intval( $menu_order ); 419 420 wp_update_post( array( 421 'ID' => stripslashes( htmlspecialchars( $post_id ) ), 422 'menu_order' => stripslashes( htmlspecialchars( $menu_order ) ) 423 ) ); 424 } 425 die( '1' ); 426 } 427 428 /** 429 * Order the default penci slider page correctly 430 * @return void 431 * @since 1.0 432 */ 433 public function set_penci_slider_admin_order( $wp_query ) { 434 if ( is_admin() ) { 435 $post_type = $wp_query->query['post_type']; 436 437 if ( $post_type == 'penci_slider' ) { 438 $wp_query->set( 'orderby', 'menu_order' ); 439 $wp_query->set( 'order', 'ASC' ); 440 } 441 } 392 442 } 393 443 -
penci-slider/trunk/mce/js/mce.js
r1212241 r1214295 24 24 { type: 'textbox', name: 'category', label: 'Category Name to filter slides' }, 25 25 { type : 'textbox', name : 'height', label: 'Slider Height(numeric value only, want smooth height let empty it)' }, 26 { type : 'listbox', name : 'order', label: 'Slides Order', 'values': [{ text: 'Ascending', value: 'asc' }, { text: 'Descending', value: 'desc' }] },27 26 { type : 'listbox', name : 'transition', label : 'Slider Transition', 'values': [{ text: 'Slide', value: 'slide' }, { text: 'Fade', value: 'fade' }] }, 28 27 { type : 'listbox', name : 'autoplay', label : 'Auto Play Slider?', 'values': [{ text: 'Yes', value: 'true' }, { text: 'No', value: 'false' }] }, -
penci-slider/trunk/readme.txt
r1213948 r1214295 5 5 Requires at least: 3.9 6 6 Tested up to: 4.3 7 Stable tag: 1. 07 Stable tag: 1.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 13 13 == Description == 14 14 15 http://www.youtube.com/watch?v=rbYXlOAdoYU16 17 15 Creating slideshows with [Penci Slider](http://pencidesign.com/) is fast and very easy. 18 16 … … 21 19 <h4>PenciSlider Features:</h4> 22 20 * Simple, easy to use - perfect for individual users, developers & clients 21 * New in version 1.1: Drag Drop to reorder slides 23 22 * Full Responsive design, SEO optimized slideshows 24 23 * Use shortcode to display everywhere you want … … 32 31 * Set image crop position 33 32 * WordPress Multi Site compatible 34 * Compatible with translation plugins (qTranslate & WPML, PolyLang)33 * Transition ready 35 34 * Loading is optimized 36 35 … … 74 73 75 74 == Changelog == 75 = 1.1= 76 * Add : Drag Drop to Reorder Slides 77 * Add : Transition ready to Penci Slider 78 * Remove: order parametters in penci_slider shortcode 79 76 80 = 1.0 = 77 81 * Just release 1.0
Note: See TracChangeset
for help on using the changeset viewer.