Plugin Directory

Changeset 847292

Timestamp:
01/28/2014 10:32:41 PM (11 years ago)
Author:
simon.goodchild
Message:

v1.1 - added link target and visibility

Location:
custom-ribbon-maker/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • custom-ribbon-maker/trunk/customribbonmaker.php

    r720442 r847292  
    33Plugin Name: Custom Ribbon Maker
    44Plugin URI: http://www.symposiac.com
    5 Description: Add a custom ribbon to your site, set your own position, colours, text, link, etc
     5Description: Add a custom ribbon to your site, set your own position, colours, text, link, etc
    66Author: Simon Goodchild
    7 Version: 1.0
     7Version: 1.
    88Author URI: http://www.symposiac.com
    99*/
  • custom-ribbon-maker/trunk/customribbonmaker_admin.php

    r720443 r847292  
    1111    if (isset($_POST['rm_start_color'])) {
    1212        update_option('rm_text', $_POST['rm_text']);
    13         update_option('rm_target', isset($_POST['rm_target']) ? $_POST['rm_target'] : '');
    1413        update_option('rm_url', $_POST['rm_url']);
    1514        update_option('rm_font', $_POST['rm_font']);
     
    5453        update_option('rm_shadow', $_POST['rm_shadow']);
    5554        update_option('rm_shadow_str', $_POST['rm_shadow_str']);
     55
     56
     57
     58
     59
     60
    5661    }
    5762   
     
    5964    update_option('rm_shadow', ($x = get_option('rm_shadow')) ? $x : 'rgba(255,255,255,0.5) 0px 1px 0px');
    6065    update_option('rm_shadow_str', ($x = get_option('rm_shadow_str')) ? $x : '1.0');
    61     update_option('rm_target', ($x = get_option('rm_target')) ? $x : '_self');
    6266    update_option('rm_url', ($x = get_option('rm_url')) ? $x : '/');
    6367    update_option('rm_font', ($x = get_option('rm_font')) ? $x : 'bold 15px Sans-Serif');
     
    7377    update_option('rm_padding', ($x = get_option('rm_padding')) ? $x : '17');
    7478    update_option('rm_width', ($x = get_option('rm_width')) ? $x : '320');
     79
     80
    7581
    7682    echo '<form action="#" method="POST">';
     
    8187    echo '<tr style="height:30px"><td style="width:150px">'.__('Hyperlink', TEXT_DOMAIN).'</td>';
    8288        echo '<td><input type="text" name="rm_url" style="width:250px" value="'.get_option('rm_url').'" /></td></tr>';
     89
     90
    8391    echo '<tr style="height:30px"><td style="width:150px">'.__('Font', TEXT_DOMAIN).'</td>';
    8492        echo '<td><input type="text" name="rm_font" style="width:250px" value="'.get_option('rm_font').'" /></td></tr>';
     
    115123    echo '<tr style="height:30px"><td style="width:150px">'.__('Padding', TEXT_DOMAIN).'</td>';
    116124        echo '<td><input type="text" name="rm_padding" style="width:50px" value="'.get_option('rm_padding').'" /> pixels</td></tr>';
     125
     126
     127
     128
     129
     130
     131
     132
     133
    117134
    118135    echo '<tr><td colspan="2" style="padding-top:40px"><input type="submit" class="button-primary" value="'.__('Save', TEXT_DOMAIN).'" /></td></tr>';
  • custom-ribbon-maker/trunk/readme.txt

    r723280 r847292  
    66Tags: ribbon, banner, custom, maker, diy
    77Requires at least: 3.0
    8 Tested up to: 3.5
    9 Stable tag: 1.0
     8Tested up to: 3.
     9Stable tag: 1.
    1010License: GPLv2 or later
    1111
    12 Add a ribbon to your site, with your own text, link, position and style!
     12Add a ribbon to your site, with your own text, link, position and style!
    1313
    1414== Description ==
     
    2626* Fixed or scrolls with page
    2727* Fine tune the width, length and position to allow for any amount of text
     28
    2829
    2930== Installation ==
Note: See TracChangeset for help on using the changeset viewer.