Plugin Directory

Changeset 1266934


Ignore:
Timestamp:
10/15/2015 09:43:32 PM (10 years ago)
Author:
GZep
Message:

Some code fixes

Location:
footer-code/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • footer-code/trunk/footer-code.php

    r1160820 r1266934  
    55Plugin URI: http://gzep.ru/footer-code-wordpress-plugin/
    66Description: Simplest plugin that allow to inject any code into footer of a web page.
    7 Version: 1.1
     7Version: 1.2
    88Author: Gaiaz Iusipov
    99Author URI: http://gzep.ru
  • footer-code/trunk/languages/footer-code-ru_RU.po

    r1160820 r1266934  
    33"Project-Id-Version: \n"
    44"POT-Creation-Date: 2015-03-14 00:12+0300\n"
    5 "PO-Revision-Date: 2015-05-15 01:52+0300\n"
     5"PO-Revision-Date: 2015-10-16 00:10+0300\n"
    66"Last-Translator: Gaiaz Iusipov <[email protected]>\n"
    77"Language-Team: \n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "X-Generator: Poedit 1.7.5\n"
     12"X-Generator: Poedit 1.8.5\n"
    1313"X-Poedit-Basepath: .\n"
    1414"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
     
    1717#: ../options.php:25 ../options.php:41
    1818msgid "Footer Code"
    19 msgstr "Код footer"
     19msgstr "Код подвала"
    2020
    2121#: ../options.php:34
  • footer-code/trunk/options.php

    r1160820 r1266934  
    2323    public function admin_menu()
    2424    {
    25         $title = __('Footer Code', self::DOMAIN); 
    26         add_options_page($title, $title, 'manage_options', 'footer-code-admin',
     25        $title = __('Footer Code', self::DOMAIN);
     26        add_options_page($title, $title, 'manage_options', 'footer-code',
    2727            [$this, 'admin_page']);
    2828    }
     
    3030    public function admin_init()
    3131    {       
    32         register_setting('footer_code_option_group', 'footer_code', '');
    33         add_settings_section('footer_code_section', '', '', 'footer-code-admin');
     32        register_setting('footer_code', 'footer_code');
     33        add_settings_section('default', false, false, 'footer-code');
    3434        add_settings_field('footer_code', __('Insert code:', self::DOMAIN),
    35             [$this, 'field_callback'], 'footer-code-admin', 'footer_code_section');
     35            [$this, 'field_callback'], 'footer-code', 'default');
    3636    }
    3737
    3838    public function admin_page()
    3939    {
    40         echo '<div class="wrap"><h2>'
    41             . __('Footer Code', self::DOMAIN)
    42             . '</h2><form method="post" action="options.php">';
    43         do_settings_sections('footer-code-admin');
    44         settings_fields('footer_code_option_group');
     40        echo '<div class="wrap">'
     41            . '<h2>' . __('Footer Code', self::DOMAIN) . '</h2>'
     42            . '<form method="post" action="options.php">';
     43        settings_fields('footer_code');
     44        do_settings_sections('footer-code');
    4545        submit_button();
    4646        echo '</form></div>';
     
    4949    public function field_callback()
    5050    {
    51         echo '<textarea name="footer_code" style="width: 100%; height: 150px;">'
     51        echo '<textarea name="footer_code" style="width: 100%; height: 200px;">'
    5252            . esc_attr(get_option('footer_code')) . '</textarea>';
    5353    }
  • footer-code/trunk/readme.txt

    r1160820 r1266934  
    22Contributors: GZep
    33Donate link: http://gzep.ru/donate/
    4 Tags: footer, code, inject, insert, metrika, analytics
     4Tags: wp_footer, footer, code, inject, insert, metrika, analytics
    55Requires at least: 4.0
    6 Tested up to: 4.2.2
     6Tested up to: 4.3.1
    77Stable tag: trunk
    88License: MIT
Note: See TracChangeset for help on using the changeset viewer.