Plugin Directory

Changeset 586549


Ignore:
Timestamp:
08/16/2012 09:01:05 PM (14 years ago)
Author:
siteapps
Message:

set release 1.1, fix tag type field

Location:
siteapps/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • siteapps/trunk/insert_id.tpl

    r586317 r586549  
    2424                                        </th>
    2525                                        <td valign="top">
    26                                             <input type="radio" value="1" name="sa_tag_type" checked="true">Synchronous
    27                                             <input type="radio" value="2" name="sa_tag_type">Asynchronous
     26                                            <input type="radio" value="2" name="sa_tag_type" [%SA_TAG_TYPE_ASYNC%]>Asynchronous (Default)
     27                                            <input type="radio" value="1" name="sa_tag_type" [%SA_TAG_TYPE_SYNC%]>Synchronous
    2828                                        </td>
    2929                                    </tr>
  • siteapps/trunk/readme.txt

    r410441 r586549  
    22Contributors: siteapps, leandrolages, pklien
    33Tags: web apps, webpps, widgets, siteapps, website marketplace
    4 Requires at least: 2.7.2
     4Requires at least: 2.8
    55Tested up to: 3.2
    6 Stable tag: 1.0
     6Stable tag: 1.1
    77
    88This plugin enables the use of all website apps of the SiteApps.com marketplace on your Wordpress site.
  • siteapps/trunk/siteapps.php

    r586317 r586549  
    158158      $sa_id = (isset($options['id'])) ? $options['id'] : '';
    159159     
    160       echo str_replace('[%SA_ID%]',$sa_id, $buffer);
     160      $sync_check = ($options['type'] === 1)?'checked="true"':'';
     161      $async_check = ($options['type'] === 1)?'':'checked="true"';
    161162     
     163      $sa_type = (isset($options['type'])) ? $options['id'] : '';
     164     
     165      $buffer = str_replace('[%SA_ID%]',$sa_id, $buffer);
     166      $buffer = str_replace('[%SA_TAG_TYPE_SYNC%]',$sync_check, $buffer);
     167      $buffer = str_replace('[%SA_TAG_TYPE_ASYNC%]',$async_check, $buffer);
     168      echo $buffer;
    162169   }
    163170
Note: See TracChangeset for help on using the changeset viewer.