Changeset 1137232
- Timestamp:
- 04/17/2015 02:39:55 PM (11 years ago)
- Location:
- simple-newsletter-br/trunk
- Files:
-
- 2 added
- 3 edited
-
languages (added)
-
languages/simple-newsletter-br-en_US.mo (added)
-
readme.txt (modified) (1 diff)
-
simple-newsletter.php (modified) (3 diffs)
-
views/admin_form.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
simple-newsletter-br/trunk/readme.txt
r1137139 r1137232 1 1 === Simple Newsletter === 2 Contributors: ooprogramador2 Contributors: Robson Miranda 3 3 Donate Link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=4EVZYCQUEETWL 4 4 Tags: Email, Newsletter, double opt-in, export, Email template -
simple-newsletter-br/trunk/simple-newsletter.php
r1137139 r1137232 9 9 Author: Robson Miranda 10 10 Text Domain: simple-newsletter-br 11 Domain Path: /languages 11 12 */ 12 13 … … 21 22 add_action('admin_menu', array(&$this,'settings')); 22 23 add_action( 'wp_enqueue_scripts', array(&$this,'scripts' )); 24 add_action('init', array($this, 'load_sn_tranlate')); 23 25 24 26 if(isset($_POST['simplenewsletter'])) … … 33 35 34 36 add_shortcode('simplenewsletter', array(&$this,'generateForm')); 37 } 38 39 public function load_sn_tranlate() 40 { 41 load_plugin_textdomain('simple-newsletter-br', FALSE, dirname(plugin_basename(__FILE__)).'/languages/'); 35 42 } 36 43 -
simple-newsletter-br/trunk/views/admin_form.php
r1137139 r1137232 31 31 <tbody> 32 32 <tr valign="top"> 33 <th scope="row"> Double Opt-in (Confirmação)</th>33 <th scope="row"><?php echo __('Double Opt-in (Confirmação)', 'simple-newsletter-br') ?></th> 34 34 <td> 35 35 <select name="simplenewsletter_dbloptin" class="large-text"> … … 41 41 42 42 <tr valign="top"> 43 <th scope="row"> Logo ( URL Completa )</th>43 <th scope="row"><?php echo __('Logo ( URL Completa )', 'simple-newsletter-br') ?></th> 44 44 <td> 45 45 <input name="simplenewsletter_logo" id="" type="text" value="<?php echo get_option("simplenewsletter_logo"); ?>" class="large-text" /> … … 48 48 49 49 <tr valign="top"> 50 <th scope="row"> Exibir Campo Nome</th>50 <th scope="row"><?php echo __('Exibir Campo Nome', 'simple-newsletter-br') ?></th> 51 51 <td> 52 52 <select name="simplenewsletter_showname" class="large-text"> 53 <option value='1' <?php selected( get_option("simplenewsletter_showname"), 1, true); ?>> Sim</option>54 <option value='0' <?php selected( get_option("simplenewsletter_showname"), 0, true); ?>> Não</option>53 <option value='1' <?php selected( get_option("simplenewsletter_showname"), 1, true); ?>><?php echo __('Sim', 'simple-newsletter-br') ?></option> 54 <option value='0' <?php selected( get_option("simplenewsletter_showname"), 0, true); ?>><?php echo __('Não', 'simple-newsletter-br') ?></option> 55 55 </select> 56 56 </td> … … 58 58 59 59 <tr valign="top"> 60 <th scope="row"> Mensagem de Sucesso</th>60 <th scope="row"><?php echo __('Mensagem de Sucesso', 'simple-newsletter-br') ?></th> 61 61 <td> 62 62 <input name="simplenewsletter_successmessage" id="" type="text" value="<?php echo get_option("simplenewsletter_successmessage"); ?>" class="large-text" /> … … 64 64 </tr> 65 65 <tr valign="top"> 66 <th scope="row"> Mensagem após Confirmação</th>66 <th scope="row"><?php echo __('Mensagem exibida após confirmação', 'simple-newsletter-br') ?></th> 67 67 <td> 68 68 <input name="simplenewsletter_confirmedmessage" id="" type="text" value="<?php echo get_option("simplenewsletter_confirmedmessage"); ?>" class="large-text" /> … … 71 71 72 72 <tr valign="top"> 73 <th scope="row"> Texto do Email</th>73 <th scope="row"><?php echo __('Texto do Email', 'simple-newsletter-br') ?></th> 74 74 <td> 75 75 <input name="simplenewsletter_confirmationemail" id="" type="text" value="<?php echo get_option("simplenewsletter_confirmationemail"); ?>" class="large-text" /> … … 78 78 79 79 <tr valign="top"> 80 <th scope="row"> Exibir Mensagem <br/>(Somente com Ajax)</th>80 <th scope="row"><?php echo __('Exibir mensagem', 'simple-newsletter-br') ?></th> 81 81 <td> 82 82 <select name="simplenewsletter_showon" class="large-text"> 83 <option value='prepend' <?php selected( get_option("simplenewsletter_showon"), 'prepend', true); ?>> Acima do Formulário</option>84 <option value='append' <?php selected( get_option("simplenewsletter_showon"), 'append', true); ?>> Abaixo do formulário</option>85 <option value='substitute' <?php selected( get_option("simplenewsletter_showon"), 'substitute', true); ?>> Substituir Formulário</option>83 <option value='prepend' <?php selected( get_option("simplenewsletter_showon"), 'prepend', true); ?>><?php echo __('Acima do formulário', 'simple-newsletter-br') ?></option> 84 <option value='append' <?php selected( get_option("simplenewsletter_showon"), 'append', true); ?>><?php echo __('Abaixo do Formulário', 'simple-newsletter-br') ?></option> 85 <option value='substitute' <?php selected( get_option("simplenewsletter_showon"), 'substitute', true); ?>><?php echo __('Substituir Formulário', 'simple-newsletter-br') ?></option> 86 86 </select> 87 87 </td>
Note: See TracChangeset
for help on using the changeset viewer.