Plugin Directory

Changeset 1723487


Ignore:
Timestamp:
09/02/2017 02:00:37 AM (8 years ago)
Author:
PierreMinik
Message:

You can now load the templates through widgets.

Location:
lisa-templates
Files:
398 added
4 edited

Legend:

Unmodified
Added
Removed
  • lisa-templates/trunk/README.txt

    r1722011 r1723487  
    55Requires at least: 4.8
    66Tested up to: 4.8.1
    7 Stable tag: 1.0.1
     7Stable tag: 1.1.0
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    4141* [Timber](https://wordpress.org/plugins/timber-library/)
    4242
    43 *Soon to be launched:*
     43### Now available: [Lisa Templates Pro](https://templates.lisa.gl)
    4444
    45 **Lisa Templates Pro**: autoload the templates based on customised conditions and provide more data sources.
     45**Lisa Templates Pro**: autoload the templates based on customized conditions.
    4646
    47 ## Where can I learn more about Twig-templates?
     47### Where can I learn more about Twig-templates?
    4848
    4949Lisa Templates is running Twig through a plugin called Timber. Learn more about Timber at their [excellent documentation site](https://timber.github.io/docs/).
     
    6666== Changelog ==
    6767
     68**1.1.0**
     69You can now load the templates through widgets.
     70
    6871**1.0.1**
    6972
  • lisa-templates/trunk/admin/class-lisa-admin.php

    r1720883 r1723487  
    147147    );
    148148
    149     $attr_placement_value = esc_js( get_post_meta( $post->ID, '_lisa_attribute_placement', true ) ); ?>
     149    $attr_placement_value = esc_js( get_post_meta( $post->ID, '_lisa_attribute_placement', true ) );
     150
     151        if ( empty( $attr_placement_value ) ) {
     152            $attr_placement_value = 'replace';
     153        }
     154        ?>
    150155        <div id="lisa-conditions">
    151156            <p class="lisa_attribute_placement_wrapper">
     
    186191
    187192    $data_source_value = esc_js( get_post_meta( $post->ID, '_lisa_data_source', true ) );
     193
     194        if( empty( $data_source_value ) ) {
     195            $data_source_value = 'single';
     196        }
     197
    188198        $data_query_value = json_encode( get_post_meta( $post->ID, '_lisa_data_query', true ), JSON_PRETTY_PRINT );
     199
     200        if ( $data_query_value == '""' ) {
     201            $data_query_value = json_encode(
     202                array(
     203                    'post_type'              => array( 'post' ),
     204                    'post_status'            => array( 'publish' ),
     205                    'posts_per_page'         => '10',
     206                    'order'                  => 'DESC',
     207                    'orderby'                => 'date',
     208                ),
     209                JSON_PRETTY_PRINT
     210            );
     211        }
    189212        ?>
    190213        <div id="lisa-data">
  • lisa-templates/trunk/includes/class-lisa.php

    r1720883 r1723487  
    7474
    7575        $this->plugin_name = 'lisa';
    76         $this->version = '1.0.0';
     76        $this->version = '1.1.0';
    7777
    7878        $this->load_dependencies();
     
    109109        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/helpers.php';
    110110        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/shortcode.php';
     111        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/widget.php';
    111112
    112113        /**
  • lisa-templates/trunk/lisa-templates.php

    r1722011 r1723487  
    1111 * Plugin URI:        https://templates.lisa.gl
    1212 * Description:       Easily write templates filled with custom data that can be loaded through a shortcode.
    13  * Version:           1.0.1
     13 * Version:           1.1.0
    1414 * Author:            Pierre Minik Lynge
    1515 * Author URI:        https://miniup.gl
Note: See TracChangeset for help on using the changeset viewer.