Plugin Directory

Changeset 2096073


Ignore:
Timestamp:
05/27/2019 09:13:09 PM (7 years ago)
Author:
orbam7819
Message:

Tagging version 0.5.61.

Location:
events-as-posts
Files:
1 deleted
5 edited
13 copied

Legend:

Unmodified
Added
Removed
  • events-as-posts/tags/0.5.61/eap-functions.php

    r2096028 r2096073  
    243243
    244244    $setting = get_option( 'eap_settings_style' );
    245 
    246     // 1 column layout (default)
    247     if ( $setting['layout'] == 1 || !$setting['layout'] ) {
    248         ?>
    249         <style>
    250             .eap__list {
    251                 grid-template-columns: 1fr;
    252             }
    253             .eap__title {
    254                 margin: 0 0 .6em !important;
    255             }
    256             @media all and (min-width: 576px) {
    257                 .eap__event {
    258                     display: -ms-grid;
    259                     display: grid;
    260                     grid-template-columns: 1fr 2fr;
    261                     grid-gap: 1.6em;
    262                 }
    263             }
    264         </style>
    265         <?php
    266 
    267     // 2 columns layout
    268     } elseif ( $setting['layout'] == 2 ) {
    269         ?>
    270         <style>
    271             .eap__title {
    272                 margin: .6em 0 .6em;
    273             }
    274             @media all and (min-width: 576px) {
    275                 .eap__list {
    276                     grid-template-columns: repeat(2, 1fr);
    277                 }
    278             }
    279         </style>
    280         <?php
    281 
    282     // 3 columns layout
    283     } elseif ( $setting['layout'] == 3 ) {
    284         ?>
    285         <style>
    286             .eap__title {
    287                 margin: .6em 0 .6em;
    288             }
    289             @media all and (min-width: 576px) {
    290                 .eap__list {
    291                     grid-template-columns: repeat(3, 1fr);
    292                 }
    293             }
    294         </style>
    295         <?php
    296     }
    297245    ?>
    298 
    299246    <style>
    300         .eap__img img {
    301             width: 100%;
    302         }
    303 
    304         .no-wrap {
    305             white-space: nowrap;
    306         }
    307 
    308         .eap__meta .dashicons {
    309             vertical-align: middle;
    310         }
    311 
    312         .eap__list {
    313             display: -ms-grid;
    314             display: grid;
    315             grid-gap: 1.6em;
    316             background:
    317             <?php
    318             if ( $setting['bg_color'] ) {
    319 
    320                 echo $setting['bg_color'];
    321             }
    322             ?>
    323             ;
    324         }
    325         .eap__event {
    326             padding: 1em;
    327             background:
    328             <?php
    329             if ( $setting['event_bg_color'] ) {
    330 
    331                 echo $setting['event_bg_color'];
    332             }
    333             ?>
    334             ;
    335         }
    336 
    337         <?php
    338         // custom css
    339         if ( $setting['custom_css'] ) {
    340 
    341             echo htmlentities( $setting['custom_css'] );
    342         }
    343         ?>
     247        /* Events as Posts */
     248        <?php if ( $setting['layout'] == 1 || ! isset( $setting['layout'] ) ) : ?>
     249            .eap__list { grid-template-columns: 1fr; }
     250            .eap__title { margin: 0 0 .6em !important;}
     251            @media all and (min-width: 576px) { .eap__event { display: -ms-grid; display: grid; grid-template-columns: 1fr 2fr; grid-gap: 1.6em; } }
     252        <?php elseif ( $setting['layout'] == 2 ) : ?>
     253            .eap__title { margin: .6em 0 .6em; }
     254            @media all and (min-width: 576px) { .eap__list { grid-template-columns: repeat(2, 1fr); } }
     255        <?php elseif ( $setting['layout'] == 3 ) : ?>
     256            .eap__title { margin: .6em 0 .6em; }
     257            @media all and (min-width: 576px) { .eap__list { grid-template-columns: repeat(3, 1fr); } }
     258        <?php endif; ?>
     259
     260        .eap__img img { width: 100%; }
     261        .no-wrap { white-space: nowrap; }
     262        .eap__meta .dashicons { vertical-align: middle; }
     263        .eap__list { display: -ms-grid; display: grid; grid-gap: 1.6em; background: <?php echo ( isset( $setting['bg_color'] ) && ! empty ( $setting['bg_color'] ) ) ? $setting['bg_color'] : 'initial'; ?>; }
     264        .eap__event { padding: 1em; background: <?php echo ( isset( $setting['event_bg_color'] ) && ! empty ( $setting['event_bg_color'] ) ) ? $setting['event_bg_color'] : 'initial'; ?>; }
     265        <?php if ( isset( $setting['custom_css'] ) && ! empty ( $setting['custom_css'] ) ) echo htmlentities( $setting['custom_css'] ); ?>
    344266    </style>
    345267    <?php
  • events-as-posts/tags/0.5.61/events-as-posts.php

    r2096028 r2096073  
    44Plugin URI:   https://wordpress.org/plugins/events-as-posts/
    55Description:  A simple plugin that allows you to post events on your site
    6 Version:      0.5.6
     6Version:      0.5.61
    77Author:       Ambrogio Piredda
    88Author URI:   https://profiles.wordpress.org/orbam7819
     
    3636if ( ! defined( 'EAP_VERSION' ) ) {
    3737
    38     define('EAP_VERSION', '0.5.6');
     38    define('EAP_VERSION', '0.5.61');
    3939}
    4040
  • events-as-posts/tags/0.5.61/readme.txt

    r2096028 r2096073  
    77Requires at least: 4.8
    88Tested up to: 5.2
    9 Stable tag: 0.5.6
     9Stable tag: 0.5.61
    1010Requires PHP: 5.4
    1111License: GPLv2 or later
     
    7474== Changelog ==
    7575
     76= 0.5.61 &mdash; 27 of May, 2019 =
     77* Cleaned up code that displays the styles, and correct a wrong option name in setting's page
     78
    7679= 0.5.6 &mdash; 27 of May, 2019 =
    7780* Removed front-end and admin stylesheets to improve performance
  • events-as-posts/tags/0.5.61/settings/eap-display-settings.php

    r2096028 r2096073  
    354354    ?>
    355355
    356     <input type="text" class="eap__color-field" maxlength="7" name="eap_settings_style[event_bg_color]" value="<?php echo isset( $setting['event_color'] ) ? esc_attr( $setting['event_color'] ) : '#f4f4f4'; ?>" data-default-color="#f4f4f4" />
     356    <input type="text" class="eap__color-field" maxlength="7" name="eap_settings_style[event_bg_color]" value="<?php echo isset( $setting['event_bg_color'] ) ? esc_attr( $setting['event_bg_color'] ) : '#f4f4f4'; ?>" data-default-color="#f4f4f4" />
    357357    <?php
    358358}
  • events-as-posts/trunk/eap-functions.php

    r2096028 r2096073  
    243243
    244244    $setting = get_option( 'eap_settings_style' );
    245 
    246     // 1 column layout (default)
    247     if ( $setting['layout'] == 1 || !$setting['layout'] ) {
    248         ?>
    249         <style>
    250             .eap__list {
    251                 grid-template-columns: 1fr;
    252             }
    253             .eap__title {
    254                 margin: 0 0 .6em !important;
    255             }
    256             @media all and (min-width: 576px) {
    257                 .eap__event {
    258                     display: -ms-grid;
    259                     display: grid;
    260                     grid-template-columns: 1fr 2fr;
    261                     grid-gap: 1.6em;
    262                 }
    263             }
    264         </style>
    265         <?php
    266 
    267     // 2 columns layout
    268     } elseif ( $setting['layout'] == 2 ) {
    269         ?>
    270         <style>
    271             .eap__title {
    272                 margin: .6em 0 .6em;
    273             }
    274             @media all and (min-width: 576px) {
    275                 .eap__list {
    276                     grid-template-columns: repeat(2, 1fr);
    277                 }
    278             }
    279         </style>
    280         <?php
    281 
    282     // 3 columns layout
    283     } elseif ( $setting['layout'] == 3 ) {
    284         ?>
    285         <style>
    286             .eap__title {
    287                 margin: .6em 0 .6em;
    288             }
    289             @media all and (min-width: 576px) {
    290                 .eap__list {
    291                     grid-template-columns: repeat(3, 1fr);
    292                 }
    293             }
    294         </style>
    295         <?php
    296     }
    297245    ?>
    298 
    299246    <style>
    300         .eap__img img {
    301             width: 100%;
    302         }
    303 
    304         .no-wrap {
    305             white-space: nowrap;
    306         }
    307 
    308         .eap__meta .dashicons {
    309             vertical-align: middle;
    310         }
    311 
    312         .eap__list {
    313             display: -ms-grid;
    314             display: grid;
    315             grid-gap: 1.6em;
    316             background:
    317             <?php
    318             if ( $setting['bg_color'] ) {
    319 
    320                 echo $setting['bg_color'];
    321             }
    322             ?>
    323             ;
    324         }
    325         .eap__event {
    326             padding: 1em;
    327             background:
    328             <?php
    329             if ( $setting['event_bg_color'] ) {
    330 
    331                 echo $setting['event_bg_color'];
    332             }
    333             ?>
    334             ;
    335         }
    336 
    337         <?php
    338         // custom css
    339         if ( $setting['custom_css'] ) {
    340 
    341             echo htmlentities( $setting['custom_css'] );
    342         }
    343         ?>
     247        /* Events as Posts */
     248        <?php if ( $setting['layout'] == 1 || ! isset( $setting['layout'] ) ) : ?>
     249            .eap__list { grid-template-columns: 1fr; }
     250            .eap__title { margin: 0 0 .6em !important;}
     251            @media all and (min-width: 576px) { .eap__event { display: -ms-grid; display: grid; grid-template-columns: 1fr 2fr; grid-gap: 1.6em; } }
     252        <?php elseif ( $setting['layout'] == 2 ) : ?>
     253            .eap__title { margin: .6em 0 .6em; }
     254            @media all and (min-width: 576px) { .eap__list { grid-template-columns: repeat(2, 1fr); } }
     255        <?php elseif ( $setting['layout'] == 3 ) : ?>
     256            .eap__title { margin: .6em 0 .6em; }
     257            @media all and (min-width: 576px) { .eap__list { grid-template-columns: repeat(3, 1fr); } }
     258        <?php endif; ?>
     259
     260        .eap__img img { width: 100%; }
     261        .no-wrap { white-space: nowrap; }
     262        .eap__meta .dashicons { vertical-align: middle; }
     263        .eap__list { display: -ms-grid; display: grid; grid-gap: 1.6em; background: <?php echo ( isset( $setting['bg_color'] ) && ! empty ( $setting['bg_color'] ) ) ? $setting['bg_color'] : 'initial'; ?>; }
     264        .eap__event { padding: 1em; background: <?php echo ( isset( $setting['event_bg_color'] ) && ! empty ( $setting['event_bg_color'] ) ) ? $setting['event_bg_color'] : 'initial'; ?>; }
     265        <?php if ( isset( $setting['custom_css'] ) && ! empty ( $setting['custom_css'] ) ) echo htmlentities( $setting['custom_css'] ); ?>
    344266    </style>
    345267    <?php
  • events-as-posts/trunk/events-as-posts.php

    r2096028 r2096073  
    44Plugin URI:   https://wordpress.org/plugins/events-as-posts/
    55Description:  A simple plugin that allows you to post events on your site
    6 Version:      0.5.6
     6Version:      0.5.61
    77Author:       Ambrogio Piredda
    88Author URI:   https://profiles.wordpress.org/orbam7819
     
    3636if ( ! defined( 'EAP_VERSION' ) ) {
    3737
    38     define('EAP_VERSION', '0.5.6');
     38    define('EAP_VERSION', '0.5.61');
    3939}
    4040
  • events-as-posts/trunk/readme.txt

    r2096028 r2096073  
    77Requires at least: 4.8
    88Tested up to: 5.2
    9 Stable tag: 0.5.6
     9Stable tag: 0.5.61
    1010Requires PHP: 5.4
    1111License: GPLv2 or later
     
    7474== Changelog ==
    7575
     76= 0.5.61 &mdash; 27 of May, 2019 =
     77* Cleaned up code that displays the styles, and correct a wrong option name in setting's page
     78
    7679= 0.5.6 &mdash; 27 of May, 2019 =
    7780* Removed front-end and admin stylesheets to improve performance
  • events-as-posts/trunk/settings/eap-display-settings.php

    r2096028 r2096073  
    354354    ?>
    355355
    356     <input type="text" class="eap__color-field" maxlength="7" name="eap_settings_style[event_bg_color]" value="<?php echo isset( $setting['event_color'] ) ? esc_attr( $setting['event_color'] ) : '#f4f4f4'; ?>" data-default-color="#f4f4f4" />
     356    <input type="text" class="eap__color-field" maxlength="7" name="eap_settings_style[event_bg_color]" value="<?php echo isset( $setting['event_bg_color'] ) ? esc_attr( $setting['event_bg_color'] ) : '#f4f4f4'; ?>" data-default-color="#f4f4f4" />
    357357    <?php
    358358}
Note: See TracChangeset for help on using the changeset viewer.