Plugin Directory

Changeset 1725611


Ignore:
Timestamp:
09/06/2017 01:35:01 PM (8 years ago)
Author:
PierreMinik
Message:

Squeezed minor bugs.

Location:
lisa-templates
Files:
398 added
4 edited

Legend:

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

    r1723487 r1725611  
    55Requires at least: 4.8
    66Tested up to: 4.8.1
    7 Stable tag: 1.1.0
     7Stable tag: 1.1.1
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    6666== Changelog ==
    6767
     68**1.1.1**
     69Squeezed minor bugs.
     70
    6871**1.1.0**
    6972You can now load the templates through widgets.
  • lisa-templates/trunk/languages/lisa.pot

    r1720883 r1725611  
    44"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
    55"Project-Id-Version: Lisa Templates\n"
    6 "POT-Creation-Date: 2017-08-27 17:10-0200\n"
    7 "PO-Revision-Date: 2017-08-27 17:10-0200\n"
     6"POT-Creation-Date: 2017-09-06 11:23-0200\n"
     7"PO-Revision-Date: 2017-09-06 11:23-0200\n"
    88"Last-Translator: \n"
    99"Language-Team: \n"
     
    1313"X-Generator: Poedit 1.8.11\n"
    1414"X-Poedit-Basepath: ..\n"
    15 "X-Poedit-WPHeader: lisa.php\n"
     15"X-Poedit-WPHeader: lisa-templates.php\n"
    1616"X-Poedit-SourceCharset: UTF-8\n"
    1717"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
     
    2121"X-Poedit-SearchPathExcluded-0: *.js\n"
    2222
    23 #: admin/class-lisa-admin.php:83
     23#: admin/class-lisa-admin.php:87
    2424msgid "Template Code"
    2525msgstr ""
    2626
    27 #: admin/class-lisa-admin.php:92
     27#: admin/class-lisa-admin.php:96
    2828msgid "Conditions"
    2929msgstr ""
    3030
    31 #: admin/class-lisa-admin.php:101
     31#: admin/class-lisa-admin.php:105
    3232msgid "Data"
    3333msgstr ""
    3434
    35 #: admin/class-lisa-admin.php:116
     35#: admin/class-lisa-admin.php:121
    3636#, php-format
    3737msgid ""
     
    4040msgstr ""
    4141
    42 #: admin/class-lisa-admin.php:130
     42#: admin/class-lisa-admin.php:122
     43msgid "Also no <script> tags are allowed."
     44msgstr ""
     45
     46#: admin/class-lisa-admin.php:137
    4347msgid "Above content"
    4448msgstr ""
    4549
    46 #: admin/class-lisa-admin.php:134
     50#: admin/class-lisa-admin.php:141
    4751msgid "Below content"
    4852msgstr ""
    4953
    50 #: admin/class-lisa-admin.php:138
     54#: admin/class-lisa-admin.php:145
    5155msgid "Replace content"
    5256msgstr ""
    5357
    54 #: admin/class-lisa-admin.php:145
     58#: admin/class-lisa-admin.php:157
    5559msgid "Placement"
    5660msgstr ""
    5761
    58 #: admin/class-lisa-admin.php:155
     62#: admin/class-lisa-admin.php:167
    5963msgid "Autoload"
    6064msgstr ""
    6165
    62 #: admin/class-lisa-admin.php:176
     66#: admin/class-lisa-admin.php:188 includes/helpers.php:11
    6367msgid "Single"
    6468msgstr ""
    6569
    66 #: admin/class-lisa-admin.php:177
     70#: admin/class-lisa-admin.php:189 includes/helpers.php:12
    6771msgid "Query"
    6872msgstr ""
    6973
    70 #: admin/class-lisa-admin.php:184
     74#: admin/class-lisa-admin.php:215
    7175msgid "Source"
    7276msgstr ""
    7377
    74 #: admin/class-lisa-admin.php:193
     78#: admin/class-lisa-admin.php:224
    7579msgid ""
    7680"This exposes a <b>post</b> object referencing the current post object in "
     
    7882msgstr ""
    7983
    80 #: admin/class-lisa-admin.php:195
     84#: admin/class-lisa-admin.php:226
    8185msgid ""
    8286"This exposes a <b>posts</b> array in your code referencing the post objects "
     
    8488msgstr ""
    8589
    86 #: admin/class-lisa-admin.php:197
     90#: admin/class-lisa-admin.php:228
    8791msgid "Query (in JSON)"
    8892msgstr ""
    8993
    9094#: integrations/class-lisa-shortcake.php:45
    91 #: integrations/class-lisa-tailor.php:25 public/class-lisa-public.php:135
     95#: integrations/class-lisa-tailor.php:25 public/class-lisa-public.php:139
     96#: public/widget.php:23
    9297msgid "Lisa Template"
    9398msgstr ""
     
    96101#: integrations/class-lisa-tailor.php:28
    97102#: integrations/class-lisa-template-element.php:15
    98 #: integrations/class-lisa-template-element.php:44
     103#: integrations/class-lisa-template-element.php:44 public/widget.php:141
    99104msgid "Template"
    100105msgstr ""
     
    104109msgstr ""
    105110
    106 #: integrations/class-lisa-tailor.php:26
     111#: integrations/class-lisa-tailor.php:26 public/widget.php:26
    107112msgid "Renders a Lisa Template."
    108113msgstr ""
    109114
    110 #: integrations/class-lisa-template-element.php:36
     115#: integrations/class-lisa-template-element.php:36 public/widget.php:132
    111116msgid "Please select a template"
    112117msgstr ""
    113118
    114 #: lisa.php:38
     119#: lisa-templates.php:32
    115120msgid ""
    116121"<strong>Lisa Templates</strong> requires the plugin Timber to be activated; "
     
    118123msgstr ""
    119124
    120 #: public/class-lisa-public.php:109
     125#: public/class-lisa-public.php:113
    121126msgctxt "Post Type General Name"
    122127msgid "Lisa Templates"
    123128msgstr ""
    124129
    125 #: public/class-lisa-public.php:110
     130#: public/class-lisa-public.php:114
    126131msgctxt "Post Type Singular Name"
    127132msgid "Lisa Template"
     
    129134
    130135#. Plugin Name of the plugin/theme
    131 #: public/class-lisa-public.php:111 public/class-lisa-public.php:112
     136#: public/class-lisa-public.php:115 public/class-lisa-public.php:116
    132137msgid "Lisa Templates"
    133138msgstr ""
    134139
    135 #: public/class-lisa-public.php:113
     140#: public/class-lisa-public.php:117
    136141msgid "Template Archives"
    137142msgstr ""
    138143
    139 #: public/class-lisa-public.php:114
     144#: public/class-lisa-public.php:118
    140145msgid "Template Attributes"
    141146msgstr ""
    142147
    143 #: public/class-lisa-public.php:115
     148#: public/class-lisa-public.php:119
    144149msgid "Parent Template:"
    145150msgstr ""
    146151
    147 #: public/class-lisa-public.php:116
     152#: public/class-lisa-public.php:120
    148153msgid "All Templates"
    149154msgstr ""
    150155
    151 #: public/class-lisa-public.php:117
     156#: public/class-lisa-public.php:121
    152157msgid "Add New Template"
    153158msgstr ""
    154159
    155 #: public/class-lisa-public.php:118
     160#: public/class-lisa-public.php:122
    156161msgid "Add New"
    157162msgstr ""
    158163
    159 #: public/class-lisa-public.php:119
     164#: public/class-lisa-public.php:123
    160165msgid "New Template"
    161166msgstr ""
    162167
    163 #: public/class-lisa-public.php:120
     168#: public/class-lisa-public.php:124
    164169msgid "Edit Template"
    165170msgstr ""
    166171
    167 #: public/class-lisa-public.php:121
     172#: public/class-lisa-public.php:125
    168173msgid "Update Template"
    169174msgstr ""
    170175
    171 #: public/class-lisa-public.php:122
     176#: public/class-lisa-public.php:126
    172177msgid "View Template"
    173178msgstr ""
    174179
    175 #: public/class-lisa-public.php:123
     180#: public/class-lisa-public.php:127
    176181msgid "View Templates"
    177182msgstr ""
    178183
    179 #: public/class-lisa-public.php:124
     184#: public/class-lisa-public.php:128
    180185msgid "Search Template"
    181186msgstr ""
    182187
    183 #: public/class-lisa-public.php:125
     188#: public/class-lisa-public.php:129
    184189msgid "No templates found"
    185190msgstr ""
    186191
    187 #: public/class-lisa-public.php:126
     192#: public/class-lisa-public.php:130
    188193msgid "No templates found in Trash"
    189194msgstr ""
    190195
    191 #: public/class-lisa-public.php:127
     196#: public/class-lisa-public.php:131
    192197msgid "Insert into template"
    193198msgstr ""
    194199
    195 #: public/class-lisa-public.php:128
     200#: public/class-lisa-public.php:132
    196201msgid "Uploaded to this template"
    197202msgstr ""
    198203
    199 #: public/class-lisa-public.php:129
     204#: public/class-lisa-public.php:133
    200205msgid "Templates list"
    201206msgstr ""
    202207
    203 #: public/class-lisa-public.php:130
     208#: public/class-lisa-public.php:134
    204209msgid "Templates list navigation"
    205210msgstr ""
    206211
    207 #: public/class-lisa-public.php:131
     212#: public/class-lisa-public.php:135
    208213msgid "Filter templates list"
    209214msgstr ""
    210215
    211 #: public/class-lisa-public.php:136
     216#: public/class-lisa-public.php:140
    212217msgid "Lisa Templates for Content."
    213218msgstr ""
    214219
    215 #: public/shortcode.php:31
     220#: public/shortcode.php:26
    216221msgid "Please select a template to render."
    217222msgstr ""
    218223
    219224#. Plugin URI of the plugin/theme
    220 msgid "http://www.lisa.gl"
     225msgid "https://templates.lisa.gl"
    221226msgstr ""
    222227
  • lisa-templates/trunk/lisa-templates.php

    r1723487 r1725611  
    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.1.0
     13 * Version:           1.1.1
    1414 * Author:            Pierre Minik Lynge
    1515 * Author URI:        https://miniup.gl
  • lisa-templates/trunk/public/shortcode.php

    r1722011 r1725611  
    99  function lisa_shortcode( $atts, $content = null, $tag ) {
    1010    $atts = shortcode_atts( array(
    11       'id' => NULL,
    12       'conditions' => array()
     11      'id' => NULL
    1312    ), $atts, $tag );
    1413
     
    2524      // ID not specified, autoload it is..
    2625
    27       // Check if conditions are present.
    28       if ( empty( $atts['conditions'] ) ) {
    29         return sprintf( '<p>%s</p>', __( 'Please select a template to render.', 'lisa' ) );
    30       }
     26      return sprintf( '<p>%s</p>', __( 'Please select a template to render.', 'lisa' ) );
    3127
    32       $meta_query = array(
    33             'key' => '_lisa_attribute_autoload',
    34             'value' => '1'
    35         );
    36 
    37       $args['meta_query'][] = $meta_query;
    38 
    39         $meta_query = array(
    40             'key' => '_lisa_condition',
    41             'compare' => 'IN',
    42             'value' => $atts['conditions']
    43         );
    44 
    45         $args['meta_query'][] = $meta_query;
    4628    } else {
    4729      // An ID was specified, load that template.
     
    6143            while ( $query->have_posts() ) : $query->the_post();
    6244        $source = lisa_allowed_data_sources( get_post_meta( get_the_ID(), '_lisa_data_source', true ) );
     45
     46        $code = lisa_kses( get_post_meta( get_the_ID(), '_lisa_template_code', true ) );
     47
     48        $placement = get_post_meta( get_the_ID(), '_lisa_attribute_placement', true );
    6349
    6450        if ( $source == 'single' ) {
     
    8167        }
    8268
    83         $code = lisa_kses( get_post_meta( get_the_ID(), '_lisa_template_code', true ) );
    84 
    85         $placement = get_post_meta( get_the_ID(), '_lisa_attribute_placement', true );
    86 
    8769        $code = Timber::compile_string( $code, $context );
    8870
Note: See TracChangeset for help on using the changeset viewer.