WordPress.org

Plugin Directory

Changeset 608628


Ignore:
Timestamp:
10/05/12 18:46:57 (19 months ago)
Author:
MattyRob
Message:

Reuse $vale in frontend class

Location:
subscribe2/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • subscribe2/trunk/ReadMe.txt

    r608626 r608628  
    326326* Refresh Subscribers page in admin, tables now sortable on present columns 
    327327* Order CSS files better by applying CSSComb 
     328* Reuse $value variable in the 'frontend' class to reduce translation strings 
    328329 
    329330= Version 8.5 by Matthew Robinson = 
  • subscribe2/trunk/classes/class-s2-frontend.php

    r606059 r608628  
    5858            $this->form = "<form method=\"post\" action=\"" . $url . "\"><input type=\"hidden\" name=\"ip\" value=\"" . $_SERVER['REMOTE_ADDR'] . "\" /><p><label for=\"s2email\">" . __('Your email:', 'subscribe2') . "</label><br /><input type=\"text\" name=\"email\" id=\"s2email\" value=\"" . $value . "\" size=\"" . $size . "\" /></p><p>" . $this->input_form_action . "</p></form>"; 
    5959        } else { 
    60             $this->form = "<form method=\"post\" action=\"" . $url . "\"><input type=\"hidden\" name=\"ip\" value=\"" . $_SERVER['REMOTE_ADDR'] . "\" /><p><label for=\"s2email\">" . __('Your email:', 'subscribe2') . "</label><br /><input type=\"text\" name=\"email\" id=\"s2email\" value=\"" . $value . "\" size=\"" . $size . "\" onfocus=\"if (this.value == '" . __('Enter email address...', 'subscribe2') . "') {this.value = '';}\" onblur=\"if (this.value == '') {this.value = '" . __('Enter email address...', 'subscribe2') . "';}\" /></p><p>" . $this->input_form_action . "</p></form>\r\n"; 
     60            $this->form = "<form method=\"post\" action=\"" . $url . "\"><input type=\"hidden\" name=\"ip\" value=\"" . $_SERVER['REMOTE_ADDR'] . "\" /><p><label for=\"s2email\">" . __('Your email:', 'subscribe2') . "</label><br /><input type=\"text\" name=\"email\" id=\"s2email\" value=\"" . $value . "\" size=\"" . $size . "\" onfocus=\"if (this.value == '" . $value . "') {this.value = '';}\" onblur=\"if (this.value == '') {this.value = '" . $value . "';}\" /></p><p>" . $this->input_form_action . "</p></form>\r\n"; 
    6161        } 
    6262        $this->s2form = $this->form; 
Note: See TracChangeset for help on using the changeset viewer.