Plugin Directory

Changeset 544448


Ignore:
Timestamp:
05/15/2012 12:40:41 PM (14 years ago)
Author:
digitalnature
Message:

minor changes to the html code field

Location:
ad-manager-for-wp
Files:
9 added
4 edited

Legend:

Unmodified
Added
Removed
  • ad-manager-for-wp/trunk/ad-manager.php

    r544093 r544448  
    22/*
    33Plugin Name: Ad Manager
    4 Version: 0.9.2
     4Version: 0.9.3
    55Plugin URI: http://digitalnature.eu/forum/plugins/ad-manager/
    66Description: Manage ads on your website trough the WP dashboard
     
    3434
    3535  const
    36     VERSION     = '0.9.2',                                             // plugin version
     36    VERSION     = '0.9.3',                                             // plugin version
    3737    ID          = 'ad_manager',                                        // internally used, mostly for text domain
    3838    PROJECT_URI = 'http://digitalnature.eu/forum/plugins/ad-manager/'; // plugin project page
  • ad-manager-for-wp/trunk/ad-types.php

    r541912 r544448  
    5656  public function getDefaults(){
    5757    return array(
    58       'html' => '<div class="ad">'."\n&nbsp;&nbsp;".__('Add your HTML code here...', self::ID)."\n".'</div>',
     58      'html' => '<div class="ad">'."\n  ".__('Add your HTML code here...', self::ID)."\n".'</div>',
    5959    );
    6060  }
     
    6262  public function generateFormFields($id, $properties){
    6363    ?>
    64     <textarea class="widefat ad-html code" name="html" id="ad-html-<?php echo $id; ?>" class="code" rows="1"><?php echo $properties['html']; ?></textarea>
     64    <textarea class="widefat ad-html code" name="html" id="ad-html-<?php echo $id; ?>" class="code" rows="1"><?php echo esc_textarea($properties['html']); ?></textarea>
     65    <?php if(!current_user_can('unfiltered_html')): ?>
     66    <p class="notice">
     67      <?php _e('Some HTML tags are disallowed for security reasons (only super-administrators can post unfiltered code)'); ?>
     68    </p>
     69    <?php endif; ?>
    6570    <?php
    6671  }
  • ad-manager-for-wp/trunk/lang/ad-manager.pot

    r544093 r544448  
    33"Project-Id-Version: Ad Manager\n"
    44"Report-Msgid-Bugs-To: \n"
    5 "POT-Creation-Date: 2012-05-14 17:02+0200\n"
     5"POT-Creation-Date: 2012-05-15 15:39+0200\n"
    66"PO-Revision-Date: \n"
    77"Last-Translator: xs\n"
     
    309309msgstr ""
    310310
    311 #: c:\wamp\www\wpmu\wp-content\plugins\ad-manager/ad-types.php:88
     311#: c:\wamp\www\wpmu\wp-content\plugins\ad-manager/ad-types.php:67
     312msgid "Some HTML tags are disallowed for security reasons (only super-administrators can post unfiltered code)"
     313msgstr ""
     314
     315#: c:\wamp\www\wpmu\wp-content\plugins\ad-manager/ad-types.php:93
    312316msgid "Image w/ link"
    313317msgstr ""
    314318
    315 #: c:\wamp\www\wpmu\wp-content\plugins\ad-manager/ad-types.php:94
     319#: c:\wamp\www\wpmu\wp-content\plugins\ad-manager/ad-types.php:99
    316320msgid "Advertisment"
    317321msgstr ""
    318322
    319 #: c:\wamp\www\wpmu\wp-content\plugins\ad-manager/ad-types.php:106
     323#: c:\wamp\www\wpmu\wp-content\plugins\ad-manager/ad-types.php:111
    320324msgid "Link URI"
    321325msgstr ""
    322326
    323 #: c:\wamp\www\wpmu\wp-content\plugins\ad-manager/ad-types.php:110
     327#: c:\wamp\www\wpmu\wp-content\plugins\ad-manager/ad-types.php:115
    324328msgid "Title"
    325329msgstr ""
    326330
    327 #: c:\wamp\www\wpmu\wp-content\plugins\ad-manager/ad-types.php:114
     331#: c:\wamp\www\wpmu\wp-content\plugins\ad-manager/ad-types.php:119
    328332msgid "Image URI"
    329333msgstr ""
    330334
    331 #: c:\wamp\www\wpmu\wp-content\plugins\ad-manager/ad-types.php:121
     335#: c:\wamp\www\wpmu\wp-content\plugins\ad-manager/ad-types.php:126
    332336msgid "Track click count"
    333337msgstr ""
    334338
    335 #: c:\wamp\www\wpmu\wp-content\plugins\ad-manager/ad-types.php:128
     339#: c:\wamp\www\wpmu\wp-content\plugins\ad-manager/ad-types.php:133
    336340#, php-format
    337341msgid "and auto-disable after %s clicks (0 = no limit)"
    338342msgstr ""
    339343
    340 #: c:\wamp\www\wpmu\wp-content\plugins\ad-manager/ad-types.php:159
     344#: c:\wamp\www\wpmu\wp-content\plugins\ad-manager/ad-types.php:164
    341345msgid "You must provide a valid link URI"
    342346msgstr ""
  • ad-manager-for-wp/trunk/readme.txt

    r544093 r544448  
    6464== Changelog ==
    6565
     66= 0.9.3 =
     67* Code inside the textarea is now escaped for display
     68
    6669= 0.9.2 =
    6770* Fixed an issue where the HTML code would get escaped
Note: See TracChangeset for help on using the changeset viewer.