Plugin Directory

Changeset 2888946


Ignore:
Timestamp:
03/29/2023 08:00:50 AM (3 years ago)
Author:
undefinedfr
Message:

Updating trunk

Location:
linky/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • linky/trunk/linky.php

    r2871722 r2888946  
    1111  Plugin URI: https://www.undefined.fr
    1212  Description: Create & manage link’s hub for your social profile directly in your websites
    13   Version: 1.4.4
     13  Version: 1.4.5
    1414  Author Name: Nicolas RIVIERE (hello@undefined.fr)
    1515  Author: Nicolas RIVIERE (Undefined)
     
    2323use LinkyApp\Helper\WPLinkyHelper;
    2424
    25 define('UNDFND_WP_LINKY_VERSION', '1.4.4');
     25define('UNDFND_WP_LINKY_VERSION', '1.4.5');
    2626define('UNDFND_WP_LINKY_DOMAIN', 'linky');
    2727define('UNDFND_WP_LINKY_SLUG', 'wp-linky');
  • linky/trunk/readme.txt

    r2871722 r2888946  
    55Requires at least: 4.0
    66Tested up to: 6.1.1
    7 Stable tag: 1.4.4
     7Stable tag: 1.4.5
    88Requires PHP: 5.4
    99License: GPLv2 or later
     
    214214* add mastodon social
    215215
     216=1.4.5=
     217* footer does not display by default
     218
    216219== Upgrade Notice ==
    217220
  • linky/trunk/src/Entity/Page.php

    r2462845 r2888946  
    152152    public $labels;
    153153
     154    /**
     155     * @var string $show_footer
     156     */
     157    public $show_footer;
     158
    154159    public function __construct($data = [])
    155160    {
  • linky/trunk/views/appareance.php

    r2716180 r2888946  
    250250                <div class="clearfix"></div>
    251251            </div>
     252        </div>
     253        <div class="separator-form"></div>
     254        <h3><?php echo __('Footer', 'linky'); ?></h3>
     255        <div class="col-lr">
     256            <div class="fom-control">
     257                <div class="form-field">
     258                    <?php $show_footer = WPLinkyHelper::getOptionValue('show_footer', $appareance); ?>
     259                    <label for="show_footer"><?php echo __('Display "Powered by Undefined"', 'linky'); ?></label>
     260                    <input type="radio" id="show_footer" value="yes" name="show_footer" <?php echo $show_footer == 'yes' ? 'checked' : ''; ?>> <span><?php echo __('Yes', 'linky'); ?></span>
     261                    <input type="radio" value="no" name="show_footer" <?php echo empty($show_footer) || $show_footer != 'yes' ? 'checked' : ''; ?>> <span><?php echo __('No', 'linky'); ?></span>
     262                </div>
     263            </div>
    252264            <div class="form-field">
    253265                <div class="pull-right">
  • linky/trunk/views/front/page.php

    r2784121 r2888946  
    3838        </div>
    3939    <?php endif; ?>
    40     <?php require_once UNDFND_WP_LINKY_PLUGIN_DIR . 'views/front/footer.php'; ?>
     40    <?php if($page->get('show_footer') == 'yes'): ?>
     41        <?php require_once UNDFND_WP_LINKY_PLUGIN_DIR . 'views/front/footer.php'; ?>
     42    <?php else: ?>
     43        <footer class="footer"></footer>
     44    <?php endif; ?>
    4145</div>
Note: See TracChangeset for help on using the changeset viewer.