Plugin Directory

Changeset 3041451


Ignore:
Timestamp:
02/26/2024 05:13:05 PM (2 years ago)
Author:
lirancohen
Message:

Add align property

Location:
givebutter/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • givebutter/trunk/givebutter-widget.php

    r3032946 r3041451  
    11<?php
     2if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
     3
    24/*
    35Plugin Name: Givebutter Widgets
    46Description: Plugin for embedding Givebutter widgets via shortcodes
    5 Version: 1.1.0
     7Version: 1.0.1
    68Author: Givebutter
    79Author URI: https://givebutter.com
     
    2325    }
    2426
     27    if (!empty($atts['align'])) {
     28        $widgetHtml .= ' align="' . esc_attr($atts['align']) . '"';
     29    }
     30
    2531    $widgetHtml .= '></givebutter-widget>';
    2632
     
    3137// Enqueue the Givebutter widget library
    3238function givebutter_widget_enqueue_script() {
    33     $account = get_option('givebutter-widget-account');
     39    $account = sanitize_text_field(get_option('givebutter-widget-account'));
    3440
    3541    if (!empty($account)) {
  • givebutter/trunk/readme.txt

    r3032946 r3041451  
    22Contributors: lirancohen
    33Tags: givebutter, widgets
    4 Requires at least: 2.5
     4Version: 1.0.1
     5Requires at least: 2.7
    56Tested up to: 6.3
    6 Stable tag: 1.0.0
     7Stable tag: 1.0.1
    78License: GPLv2
    89License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    23244. Navigate to ***Settings > Givebutter Widget*** and enter your ***Givebutter Account ID***.
    2425
     26== Changelog ==
    2527
    26 == Screenshots ==
    27 
    28 ...
    29 
    30 
    31 == Changelog ==
     28= 1.0.1 =
     29* Added support for horizontal alignment (left, center, right).
    3230
    3331= 1.0.0 =
Note: See TracChangeset for help on using the changeset viewer.