Changeset 1266934
- Timestamp:
- 10/15/2015 09:43:32 PM (10 years ago)
- Location:
- footer-code/trunk
- Files:
-
- 5 edited
-
footer-code.php (modified) (1 diff)
-
languages/footer-code-ru_RU.mo (modified) (previous)
-
languages/footer-code-ru_RU.po (modified) (3 diffs)
-
options.php (modified) (3 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
footer-code/trunk/footer-code.php
r1160820 r1266934 5 5 Plugin URI: http://gzep.ru/footer-code-wordpress-plugin/ 6 6 Description: Simplest plugin that allow to inject any code into footer of a web page. 7 Version: 1. 17 Version: 1.2 8 8 Author: Gaiaz Iusipov 9 9 Author URI: http://gzep.ru -
footer-code/trunk/languages/footer-code-ru_RU.po
r1160820 r1266934 3 3 "Project-Id-Version: \n" 4 4 "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" 6 6 "Last-Translator: Gaiaz Iusipov <[email protected]>\n" 7 7 "Language-Team: \n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "X-Generator: Poedit 1. 7.5\n"12 "X-Generator: Poedit 1.8.5\n" 13 13 "X-Poedit-Basepath: .\n" 14 14 "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" … … 17 17 #: ../options.php:25 ../options.php:41 18 18 msgid "Footer Code" 19 msgstr "Код footer"19 msgstr "Код подвала" 20 20 21 21 #: ../options.php:34 -
footer-code/trunk/options.php
r1160820 r1266934 23 23 public function admin_menu() 24 24 { 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', 27 27 [$this, 'admin_page']); 28 28 } … … 30 30 public function admin_init() 31 31 { 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'); 34 34 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'); 36 36 } 37 37 38 38 public function admin_page() 39 39 { 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'); 45 45 submit_button(); 46 46 echo '</form></div>'; … … 49 49 public function field_callback() 50 50 { 51 echo '<textarea name="footer_code" style="width: 100%; height: 150px;">'51 echo '<textarea name="footer_code" style="width: 100%; height: 200px;">' 52 52 . esc_attr(get_option('footer_code')) . '</textarea>'; 53 53 } -
footer-code/trunk/readme.txt
r1160820 r1266934 2 2 Contributors: GZep 3 3 Donate link: http://gzep.ru/donate/ 4 Tags: footer, code, inject, insert, metrika, analytics4 Tags: wp_footer, footer, code, inject, insert, metrika, analytics 5 5 Requires at least: 4.0 6 Tested up to: 4. 2.26 Tested up to: 4.3.1 7 7 Stable tag: trunk 8 8 License: MIT
Note: See TracChangeset
for help on using the changeset viewer.