Changeset 2055549
- Timestamp:
- 03/22/2019 05:00:23 PM (7 years ago)
- Location:
- kingcomposer/trunk
- Files:
-
- 8 edited
-
assets/css/kc.builder.css (modified) (1 diff)
-
assets/js/kc.params.js (modified) (1 diff)
-
includes/kc.actions.php (modified) (6 diffs)
-
includes/kc.functions.php (modified) (1 diff)
-
includes/kc.maps.php (modified) (1 diff)
-
includes/kc.param.types.php (modified) (1 diff)
-
kingcomposer.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
kingcomposer/trunk/assets/css/kc.builder.css
r2037584 r2055549 5271 5271 color: #333; 5272 5272 } 5273 5274 /*!5275 * Pikaday5276 * Copyright (c) 2014 David Bushell | BSD & MIT license | http://dbushell.com/5277 */5278 5279 .pika-single {5280 z-index: 9999;5281 position: relative;5282 color: #fff;5283 background: rgba(0,0,0,0.8);5284 font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;5285 border: 1px solid rgba(0,0,0,0.8);5286 border-top: none;5287 }5288 5289 /*5290 clear child float (pika-lendar), using the famous micro clearfix hack5291 http://nicolasgallagher.com/micro-clearfix-hack/5292 */5293 .pika-single:before,5294 .pika-single:after {5295 content: " ";5296 display: table;5297 }5298 .pika-single:after {5299 clear: both5300 }5301 .pika-single {5302 *zoom: 1 }5303 5304 5305 5306 .pika-single.is-bound {5307 position: absolute;5308 box-shadow: 0 5px 10px -5px rgba(0,0,0,.75);5309 z-index: 100001;5310 }5311 5312 .pika-lendar {5313 float: left;5314 width: 300px;5315 margin: 15px;5316 }5317 5318 .pika-title {5319 position: relative;5320 text-align: center;5321 }5322 5323 .pika-label {5324 display: inline-block;5325 *5326 display: inline;5327 position: relative;5328 z-index: 9999;5329 overflow: hidden;5330 margin: 0;5331 padding: 5px 3px;5332 font-size: 14px;5333 line-height: 20px;5334 font-weight: bold;5335 }5336 .pika-title select {5337 cursor: pointer;5338 position: absolute;5339 z-index: 9998;5340 margin: 0;5341 left: 0;5342 top: 5px;5343 filter: alpha(opacity=0);5344 opacity: 0;5345 }5346 5347 .pika-prev,5348 .pika-next {5349 display: block;5350 cursor: pointer;5351 position: relative;5352 outline: none;5353 border: 0;5354 padding: 0;5355 height: 30px;5356 white-space: nowrap;5357 overflow: hidden;5358 opacity: .8;5359 color: #fff;5360 background: transparent;5361 }5362 5363 .pika-prev:hover,5364 .pika-next:hover {5365 opacity: 1;5366 }5367 5368 .pika-prev,5369 .is-rtl .pika-next {5370 float: left;5371 *left: 0;5372 }5373 5374 .pika-next,5375 .is-rtl .pika-prev {5376 float: right;5377 *right: 0;5378 }5379 5380 .pika-prev.is-disabled,5381 .pika-next.is-disabled {5382 cursor: default;5383 opacity: .2;5384 }5385 5386 .pika-select {5387 display: inline-block;5388 *display: inline;5389 }5390 5391 .pika-table {5392 width: 100%;5393 border-collapse: collapse;5394 border-spacing: 0;5395 border: 0;5396 }5397 5398 .pika-table th,5399 .pika-table td {5400 width: 14.285714285714286%;5401 border: 1px solid rgba(255, 255, 255, 0.08);5402 text-align: center;5403 }5404 .pika-table .is-empty{5405 border: none !important;5406 background: transparent !important;5407 }5408 .pika-table th {5409 color: #333;5410 font-size: 12px;5411 line-height: 30px;5412 font-weight: bold;5413 text-align: center;5414 background: rgba(250, 250, 250, 0.75);5415 border: 1px solid rgba(20, 20, 20, 0.15);5416 }5417 5418 .pika-button {5419 cursor: pointer;5420 display: block;5421 box-sizing: border-box;5422 -moz-box-sizing: border-box;5423 outline: none;5424 border: 0;5425 margin: 0;5426 width: 100%;5427 padding: 5px;5428 color: #fff;5429 font-size: 12px;5430 line-height: 20px;5431 text-align: center;5432 background: rgba(245, 245, 245, 0.09);5433 }5434 5435 .pika-week {5436 font-size: 11px;5437 color: #999;5438 }5439 5440 .is-today .pika-button {5441 color: #33aaff;5442 font-weight: bold;5443 }5444 5445 .is-selected .pika-button {5446 color: #fff;5447 font-weight: bold;5448 background: #33aaff;5449 border-radius: 1px;5450 }5451 5452 .is-inrange .pika-button {5453 background: #D5E9F7;5454 }5455 5456 .is-startrange .pika-button {5457 color: #fff;5458 background: #6CB31D;5459 box-shadow: none;5460 border-radius: 3px;5461 }5462 5463 .is-endrange .pika-button {5464 color: #fff;5465 background: #33aaff;5466 box-shadow: none;5467 border-radius: 3px;5468 }5469 5470 .is-disabled .pika-button,5471 .is-outside-current-month .pika-button {5472 pointer-events: none;5473 cursor: default;5474 color: #999;5475 opacity: .3;5476 }5477 5478 .pika-button:hover {5479 color: #fff;5480 background: #ff8000;5481 box-shadow: none;5482 border-radius: 1px;5483 }5484 5485 5273 /* styling for abbr */ 5486 5274 .pika-table abbr { -
kingcomposer/trunk/assets/js/kc.params.js
r1878002 r2055549 584 584 585 585 render : function( el, params, data ){ 586 586 587 587 if( typeof params != 'object' ) 588 588 return false; 589 589 590 590 var param, value, atts; 591 591 -
kingcomposer/trunk/includes/kc.actions.php
r2031894 r2055549 192 192 'params' => $p.'params.js', 193 193 'jscolor' => $p.'vendors/jscolor.js', 194 'pikaday' => $p.'vendors/pikaday.js',195 194 'freshslider' => $p.'vendors/freshslider.min.js') 196 195 ); … … 397 396 398 397 if( isset( $_GET['id'] ) ){ 399 echo 'kc_post_ID = "'. $_GET['id'].'",';398 echo 'kc_post_ID = "'.esc_html($_GET['id']).'",'; 400 399 echo 'kc_post_title = "'. esc_attr( get_the_title( $_GET['id'] ) ) .'",'; 401 400 if ( $_GET['id'] && has_post_thumbnail( $_GET['id'] ) ) { … … 601 600 $id = isset($_POST['post_ID']) ? $_POST['post_ID'] : $post->ID; 602 601 603 if (isset($_POST['kc_post_meta']) && is_array($_POST['kc_post_meta'])) 602 if ( 603 isset($_POST['kc_post_meta']) && 604 is_array($_POST['kc_post_meta']) 605 ) { 604 606 $meta = kc_process_save_meta($id, $_POST['kc_post_meta']); 607 } 608 605 609 /* 606 610 * Create cache when KC active 607 611 */ 608 if (isset($id) && isset($_POST['content']) && isset($meta) && isset($meta['mode']) && $meta['mode'] == 'kc') 609 { 612 613 if ( 614 isset($id) && 615 isset($_POST['content']) && 616 isset($meta) && 617 isset($meta['mode']) && 618 $meta['mode'] == 'kc' 619 ) { 610 620 611 621 require_once KC_PATH.'/includes/kc.front.php'; … … 663 673 664 674 if( !isset($_POST['action']) || $_POST['action'] !== 'inline-save'){ 665 $wpdb->update(675 /*$wpdb->update( 666 676 667 677 $wpdb->prefix.'posts', … … 673 683 674 684 array( 'ID' => $id ) 675 ); 685 );*/ 676 686 } 677 687 … … 737 747 if (!add_post_meta( $id, 'kc_data', $param, true)) 738 748 update_post_meta( $id, 'kc_data', $param ); 749 750 $raw_content = stripslashes($_POST['content']); 751 752 if (!add_post_meta( $id, 'kc_raw_content', $raw_content, true)) 753 update_post_meta( $id, 'kc_raw_content', $raw_content ); 739 754 740 755 return $param; -
kingcomposer/trunk/includes/kc.functions.php
r2031894 r2055549 450 450 451 451 $content = get_post_field('post_content_filtered', $id ); 452 452 453 if( empty( $content ) ) 453 454 $content = get_post_field( 'post_content', $id ); -
kingcomposer/trunk/includes/kc.maps.php
r2031894 r2055549 4008 4008 'label' => __( 'Date time', 'kingcomposer' ), 4009 4009 'name' => 'datetime', 4010 'description' => __( 'Target date For Countdown.', 'kingcomposer' ), 4010 'description' => __( 'Target date For Countdow (yyyy/mm/dd)', 'kingcomposer' ), 4011 'value' => date('Y/m/d'), 4011 4012 'admin_label' => true 4012 4013 ), -
kingcomposer/trunk/includes/kc.param.types.php
r2008142 r2055549 647 647 648 648 <input name="{{data.name}}" class="kc-param" value="{{data.value}}" type="text" /> 649 <#650 data.callback = function( wrp, $ ){651 var d = new Pikaday(652 {653 field: wrp.find('.kc-param').get(0),654 firstDay: 1,655 format: 'yyyy/mm/dd',656 minDate: new Date(2016, 0, 1),657 maxDate: new Date(2020, 12, 31),658 yearRange: [2000,2020]659 });660 }661 #>662 649 663 650 <?php -
kingcomposer/trunk/kingcomposer.php
r2037584 r2055549 4 4 Plugin URI: https://kingcomposer.com/ 5 5 Description: KingComposer is the most professional WordPress page builder plugin, it's lightweight and high efficiency to help you build any layout design quickly. 6 Version: 2.8 6 Version: 2.8.1 7 7 Author: King-Theme 8 8 Author URI: http://king-theme.com/ -
kingcomposer/trunk/readme.txt
r2038639 r2055549 158 158 159 159 == Changelog == 160 161 = 2.8.1 (22 Mar, 2019) = 162 * [Improve] Security update 160 163 161 164 = 2.8 (23 Feb, 2019) =
Note: See TracChangeset
for help on using the changeset viewer.