Changeset 2625738
- Timestamp:
- 11/07/2021 07:44:56 PM (4 years ago)
- Location:
- smart-app-banner/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (1 diff)
-
wsl-smart-app-banner.php (modified) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
-
smart-app-banner/trunk/readme.txt
r2625731 r2625738 3 3 Donate link: http://www.wandlesoftware.com/products/open-source-software/wordpress-smart-app-banner-plugin 4 4 Tags: ios, iphone, ipad, smart, app, banner, apple 5 Requires at least: 3.1.45 Requires at least: 4.6 6 6 Tested up to: 5.8.1 7 7 Stable tag: 1.1.2 -
smart-app-banner/trunk/wsl-smart-app-banner.php
r1916550 r2625738 9 9 Description: Makes the Smart App Banner appear on iOS6 and above. 10 10 Author: Stephen Darlington, Wandle Software Limited 11 Text Domain: wsl-smart-app-banner11 Text Domain: smart-app-banner 12 12 Version: 1.1.2 13 13 Author URI: http://www.wandlesoftware.com/ … … 30 30 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 31 31 */ 32 33 function wsl_smart_app_banner_init() {34 $plugin_dir = basename(dirname(__FILE__));35 load_plugin_textdomain( 'wsl-smart-app-banner', false, $plugin_dir );36 }37 add_action('plugins_loaded', 'wsl_smart_app_banner_init');38 32 39 33 function wsl_output_safari_app_banner($post_ID) { … … 104 98 // Admin menu gubbins 105 99 function wsl_smart_app_banner_admin_menu() { 106 add_options_page( __('Smart App Banner Settings', ' wsl-smart-app-banner'),107 __('Smart App Banner', ' wsl-smart-app-banner'),100 add_options_page( __('Smart App Banner Settings', 'smart-app-banner'), 101 __('Smart App Banner', 'smart-app-banner'), 108 102 'manage_options', 109 103 'wsl-smart-app-banner', … … 166 160 // Put an settings updated message on the screen 167 161 ?> 168 <div class="updated"><p><strong><?php _e( 'app added.', ' wsl-smart-app-banner' ); ?></strong></p></div>162 <div class="updated"><p><strong><?php _e( 'app added.', 'smart-app-banner' ); ?></strong></p></div> 169 163 <?php 170 164 } … … 196 190 197 191 ?> 198 <div class="updated"><p><strong><?php _e('settings saved.', ' wsl-smart-app-banner' ); ?></strong></p></div>192 <div class="updated"><p><strong><?php _e('settings saved.', 'smart-app-banner' ); ?></strong></p></div> 199 193 <?php 200 194 } … … 210 204 211 205 ?> 212 <div class="updated"><p><strong><?php _e('deleted ', ' wsl-smart-app-banner' ); ?></strong></p></div>206 <div class="updated"><p><strong><?php _e('deleted ', 'smart-app-banner' ); ?></strong></p></div> 213 207 <?php 214 208 } … … 221 215 // header 222 216 223 echo "<h2>" . __( 'Smart App Banner Settings', ' wsl-smart-app-banner' ) . "</h2>";217 echo "<h2>" . __( 'Smart App Banner Settings', 'smart-app-banner' ) . "</h2>"; 224 218 225 219 // settings form … … 230 224 <input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y"> 231 225 232 <h3><?php _e('Homepage', ' wsl-smart-app-banner'); ?></h3>233 <p><?php _e('These values are used on your home page. (Leave blank if no banner is required.)', ' wsl-smart-app-banner'); ?></p>226 <h3><?php _e('Homepage', 'smart-app-banner'); ?></h3> 227 <p><?php _e('These values are used on your home page. (Leave blank if no banner is required.)', 'smart-app-banner'); ?></p> 234 228 235 229 <table> 236 230 <tr> 237 <td><?php _e('App ID:',' wsl-smart-app-banner'); ?></td>231 <td><?php _e('App ID:','smart-app-banner'); ?></td> 238 232 <td><input type="text" name="<?php echo $appid_field_name; ?>" value="<?php echo $appid_val; ?>" /></td> 239 233 </tr> 240 234 241 235 <tr> 242 <td><?php _e('App ID (iPad):',' wsl-smart-app-banner'); ?></td>243 <td><input type="text" name="<?php echo $appid_ipad_field_name; ?>" value="<?php echo $appid_ipad_val; ?>" /> <?php _e('(optional)', ' wsl-smart-app-banner'); ?></td>244 </tr> 245 246 <tr> 247 <td><?php _e('Affiliate data:',' wsl-smart-app-banner'); ?></td>236 <td><?php _e('App ID (iPad):','smart-app-banner'); ?></td> 237 <td><input type="text" name="<?php echo $appid_ipad_field_name; ?>" value="<?php echo $appid_ipad_val; ?>" /> <?php _e('(optional)', 'smart-app-banner'); ?></td> 238 </tr> 239 240 <tr> 241 <td><?php _e('Affiliate data:','smart-app-banner'); ?></td> 248 242 <td><input type="text" name="<?php echo $affiliate_field_name; ?>" value="<?php echo $affiliate_val; ?>" /></td> 249 243 </tr> 250 244 251 245 <tr> 252 <td><?php _e('App argument:',' wsl-smart-app-banner'); ?></td>246 <td><?php _e('App argument:','smart-app-banner'); ?></td> 253 247 <td><input type="text" name="<?php echo $argument_field_name; ?>" value="<?php echo $argument_val; ?>" /></td> 254 248 </tr> 255 249 256 250 <tr> 257 <td><?php _e('Show on all pages:',' wsl-smart-app-banner'); ?></td>251 <td><?php _e('Show on all pages:','smart-app-banner'); ?></td> 258 252 <td><input type="checkbox" name="<?php echo $global_banner_field_name; ?>" value="Yes" <?php if ($global_banner_val == "Yes") { echo "checked"; } ?> /></td> 259 253 </tr> … … 266 260 </p> 267 261 268 <h3><?php _e('Apps', ' wsl-smart-app-banner'); ?></h3>262 <h3><?php _e('Apps', 'smart-app-banner'); ?></h3> 269 263 270 264 <table> 271 265 <tr> 272 266 <td> </td> 273 <td><h4><?php _e('App name',' wsl-smart-app-banner'); ?></h4></td>274 <td><h4><?php _e('App ID',' wsl-smart-app-banner'); ?></h4></td>275 <td><h4><?php _e('App ID (iPad):',' wsl-smart-app-banner'); ?></h4></td>276 <td><h4><?php _e('Affiliate data:',' wsl-smart-app-banner'); ?></h4></td>277 <td><h4><?php _e('App argument:',' wsl-smart-app-banner'); ?></h4></td>267 <td><h4><?php _e('App name','smart-app-banner'); ?></h4></td> 268 <td><h4><?php _e('App ID','smart-app-banner'); ?></h4></td> 269 <td><h4><?php _e('App ID (iPad):','smart-app-banner'); ?></h4></td> 270 <td><h4><?php _e('Affiliate data:','smart-app-banner'); ?></h4></td> 271 <td><h4><?php _e('App argument:','smart-app-banner'); ?></h4></td> 278 272 <td> </td> 279 273 </tr> … … 333 327 add_meta_box( 334 328 'wsl_smart_app_banner_id', // this is HTML id of the box on edit screen 335 __('Smart App Banner',' wsl-smart-app-banner'), // title of the box329 __('Smart App Banner','smart-app-banner'), // title of the box 336 330 'wsl_smart_app_banner_display_options', // function to be called to display the checkboxes, see the function below 337 331 $element, // on which edit screen the box should appear … … 375 369 </script> 376 370 <tr> 377 <td><?php _e('Apps:',' wsl-smart-app-banner'); ?></td>371 <td><?php _e('Apps:','smart-app-banner'); ?></td> 378 372 <td><select id="wsl-app-selection"><option></option> 379 373 <?php … … 388 382 ?> 389 383 <tr> 390 <td><?php _e('App ID:',' wsl-smart-app-banner'); ?></td>384 <td><?php _e('App ID:','smart-app-banner'); ?></td> 391 385 <td><input id="app_id" type="text" name="wsl_smart_app_banner_app_id" value="<?php echo $app_id_list[0]; ?>" /></td> 392 386 </tr> 393 387 <tr> 394 <td><?php _e('App ID (iPad):',' wsl-smart-app-banner'); ?></td>395 <td><input id="app_id_ipad" type="text" name="wsl_smart_app_banner_app_id_ipad" value="<?php echo $app_id_ipad_list[0]; ?>" /> <?php _e('(optional)', ' wsl-smart-app-banner'); ?></td>388 <td><?php _e('App ID (iPad):','smart-app-banner'); ?></td> 389 <td><input id="app_id_ipad" type="text" name="wsl_smart_app_banner_app_id_ipad" value="<?php echo $app_id_ipad_list[0]; ?>" /> <?php _e('(optional)', 'smart-app-banner'); ?></td> 396 390 </tr> 397 391 <tr> 398 <td><?php _e('Affiliate data:',' wsl-smart-app-banner'); ?></td>392 <td><?php _e('Affiliate data:','smart-app-banner'); ?></td> 399 393 <td><input id="app_affiliate" type="text" name="wsl_smart_app_banner_affiliate_data" value="<?php echo $affiliate_data[0]; ?>" /></td> 400 394 </tr> 401 395 <tr> 402 <td><?php _e('App argument:',' wsl-smart-app-banner'); ?></td>396 <td><?php _e('App argument:','smart-app-banner'); ?></td> 403 397 <td><input id="app_argument" type="text" name="wsl_smart_app_banner_app_argument" value="<?php echo $app_argument[0]; ?>" /></td> 404 398 </tr>
Note: See TracChangeset
for help on using the changeset viewer.