WordPress.org

Plugin Directory

Changeset 1355283


Ignore:
Timestamp:
02/21/16 18:45:28 (22 months ago)
Author:
sxss
Message:

Updated for i18n

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sxss-signature/trunk/signature.php

    r937001 r1355283  
    4444 
    4545// settingspage 
    46 function sxss_signature_settings()  
     46function sxss_signature_settings() 
    4747{ 
    4848    // save settings 
     
    5252 
    5353        update_option('sxss_signature', $signature); 
    54          
     54 
    5555        if( true == isset($_POST["sxss_signature_home"]) && $_POST["sxss_signature_home"] == 1 ) update_option('sxss_signature_home', 1); 
    5656        else update_option('sxss_signature_home', 0); 
    57          
     57 
    5858        if( true == isset($_POST["sxss_signature_posts"]) && $_POST["sxss_signature_posts"] == 1 ) update_option('sxss_signature_posts', 1); 
    5959        else update_option('sxss_signature_posts', 0); 
     
    6565        else update_option('sxss_signature_feeds', 0); 
    6666 
    67         $message = '<div id="message" class="updated fade"><p><strong>' . __('Signature updated', 'sxss_signature') . '</strong></p></div>';  
    68     }  
     67        $message = '<div id="message" class="updated fade"><p><strong>' . __('Signature updated', 'sxss-signature') . '</strong></p></div>';  
     68    } 
    6969 
    7070    // get settings from db 
     
    7777    // Setup TinyMCE Editor 
    7878    // Thanks for the suggestion to http://premium.wpmudev.org/blog/display-the-full-tinymce-editor-in-wordpress/ 
    79     function sxss_signature_tinemce_buttons($buttons)  
     79    function sxss_signature_tinemce_buttons($buttons) 
    8080    { 
    8181        $buttons[] = 'fontselect'; 
     
    9595    add_filter( 'mce_buttons_3', 'sxss_signature_tinemce_buttons' ); 
    9696 
    97     function sxss_signature_myformatTinyMCE( $in )  
     97    function sxss_signature_myformatTinyMCE( $in ) 
    9898    { 
    9999        $in['wordpress_adv_hidden'] = FALSE; 
     
    113113        <div id="icon-options-general" class="icon32"><br /></div> 
    114114 
    115         <h2>' . __('Signature for posts, pages and feeds', 'sxss_signature') . '</h2> 
     115        <h2>' . __('Signature for posts, pages and feeds', 'sxss-signature') . '</h2> 
    116116 
    117117        <form method="post" action=""> 
    118118 
    119119        <input type="hidden" name="action" value="update" /> 
    120          
    121         <p><input type="checkbox" name="sxss_signature_home" value="1" ' . $sxss_home . '/> ' . __('Display signature on the homepage', 'sxss_signature') . '</p> 
    122          
    123         <p><input type="checkbox" name="sxss_signature_posts" value="1" ' . $sxss_posts . '/> ' . __('Display signature under posts', 'sxss_signature') . '</p> 
    124          
    125         <p><input type="checkbox" name="sxss_signature_pages" value="1" ' . $sxss_pages . '/> ' . __('Display signature under pages', 'sxss_signature') . '</p> 
    126          
    127         <p><input type="checkbox" name="sxss_signature_feeds" value="1" ' . $sxss_feeds . '/> ' . __('Display signature under RSS feed content', 'sxss_signature') . '</p> 
    128          
    129         <p>' . __('The signature you enter here will be displayed under your posts and pages', 'sxss_signature') . ':</p> 
    130          
     120 
     121        <p><input type="checkbox" name="sxss_signature_home" value="1" ' . $sxss_home . '/> ' . __('Display signature on the homepage', 'sxss-signature') . '</p> 
     122 
     123        <p><input type="checkbox" name="sxss_signature_posts" value="1" ' . $sxss_posts . '/> ' . __('Display signature under posts', 'sxss-signature') . '</p> 
     124 
     125        <p><input type="checkbox" name="sxss_signature_pages" value="1" ' . $sxss_pages . '/> ' . __('Display signature under pages', 'sxss-signature') . '</p> 
     126 
     127        <p><input type="checkbox" name="sxss_signature_feeds" value="1" ' . $sxss_feeds . '/> ' . __('Display signature under RSS feed content', 'sxss-signature') . '</p> 
     128 
     129        <p>' . __('The signature you enter here will be displayed under your posts and pages', 'sxss-signature') . ':</p> 
     130 
    131131        <style type="text/css" media="screen"> 
    132          
    133         #wp-sxss_signature-wrap { max-width: 90%; }  
     132 
     133        #wp-sxss_signature-wrap { max-width: 90%; } 
    134134        .wp-editor-area     { max-height: 100px; } 
    135          
     135 
    136136        </style>'; 
    137          
     137 
    138138        the_editor($signature,'sxss_signature'); 
    139          
     139 
    140140        echo ' 
    141141 
     
    157157// register settings page 
    158158function sxss_signature_admin_menu() 
    159 {   
    160     add_options_page(__('sxss Signature', 'sxss_signature'), __('sxss Signature', 'sxss_signature'), 9, 'sxss_signature', 'sxss_signature_settings');   
    161 }   
     159{ 
     160    add_options_page(__('sxss Signature', 'sxss_signature'), __('sxss Signature', 'sxss_signature'), 9, 'sxss_signature', 'sxss_signature_settings'); 
     161} 
    162162 
    163 add_action("admin_menu", "sxss_signature_admin_menu");  
     163add_action("admin_menu", "sxss_signature_admin_menu"); 
    164164 
    165165// display signature 
Note: See TracChangeset for help on using the changeset viewer.