Plugin Directory

Changeset 2055549


Ignore:
Timestamp:
03/22/2019 05:00:23 PM (7 years ago)
Author:
kingthemes
Message:

ver 2.8.1

Location:
kingcomposer/trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • kingcomposer/trunk/assets/css/kc.builder.css

    r2037584 r2055549  
    52715271    color: #333;
    52725272}
    5273 
    5274 /*!
    5275  * Pikaday
    5276  * 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 hack
    5291 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: both
    5300 }
    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 
    54855273/* styling for abbr */
    54865274.pika-table abbr {
  • kingcomposer/trunk/assets/js/kc.params.js

    r1878002 r2055549  
    584584
    585585            render : function( el, params, data ){
    586 
     586               
    587587                if( typeof params != 'object' )
    588588                    return false;
    589 
     589                   
    590590                var param, value, atts;
    591591
  • kingcomposer/trunk/includes/kc.actions.php

    r2031894 r2055549  
    192192        'params' => $p.'params.js',
    193193        'jscolor' => $p.'vendors/jscolor.js',
    194         'pikaday' => $p.'vendors/pikaday.js',
    195194        'freshslider' => $p.'vendors/freshslider.min.js')
    196195    );
     
    397396
    398397        if( isset( $_GET['id'] ) ){
    399             echo 'kc_post_ID = "'.$_GET['id'].'",';
     398            echo 'kc_post_ID = "'.esc_html($_GET['id']).'",';
    400399            echo 'kc_post_title = "'. esc_attr( get_the_title( $_GET['id'] ) ) .'",';
    401400            if ( $_GET['id'] && has_post_thumbnail( $_GET['id'] ) ) {
     
    601600    $id = isset($_POST['post_ID']) ? $_POST['post_ID'] : $post->ID;
    602601   
    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    ) {
    604606        $meta = kc_process_save_meta($id, $_POST['kc_post_meta']);
     607    }
     608   
    605609    /*
    606610    *   Create cache when KC active
    607611    */
    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    ) {
    610620
    611621        require_once KC_PATH.'/includes/kc.front.php';
     
    663673       
    664674        if( !isset($_POST['action']) || $_POST['action'] !== 'inline-save'){
    665             $wpdb->update(
     675            /*$wpdb->update(
    666676
    667677                $wpdb->prefix.'posts',
     
    673683
    674684                array( 'ID' => $id )
    675             );
     685            );*/
    676686        }
    677687       
     
    737747    if (!add_post_meta( $id, 'kc_data', $param, true))
    738748        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 );
    739754       
    740755    return $param;
  • kingcomposer/trunk/includes/kc.functions.php

    r2031894 r2055549  
    450450
    451451        $content = get_post_field('post_content_filtered', $id );
     452       
    452453        if( empty( $content ) )
    453454            $content = get_post_field( 'post_content', $id );
  • kingcomposer/trunk/includes/kc.maps.php

    r2031894 r2055549  
    40084008                        'label'         => __( 'Date time', 'kingcomposer' ),
    40094009                        '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'),
    40114012                        'admin_label'   => true
    40124013                    ),
  • kingcomposer/trunk/includes/kc.param.types.php

    r2008142 r2055549  
    647647
    648648    <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     #>
    662649
    663650<?php
  • kingcomposer/trunk/kingcomposer.php

    r2037584 r2055549  
    44Plugin URI: https://kingcomposer.com/
    55Description: 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
     6Version: 2.8.1
    77Author: King-Theme
    88Author URI: http://king-theme.com/
  • kingcomposer/trunk/readme.txt

    r2038639 r2055549  
    158158
    159159== Changelog ==
     160
     161= 2.8.1 (22 Mar, 2019) =
     162* [Improve] Security update
    160163
    161164= 2.8 (23 Feb, 2019) =
Note: See TracChangeset for help on using the changeset viewer.