Changeset 1105293
- Timestamp:
- 03/04/2015 05:45:20 PM (11 years ago)
- Location:
- ceske-komentare/trunk
- Files:
-
- 2 edited
-
README.txt (modified) (1 diff)
-
ceske-komentare.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ceske-komentare/trunk/README.txt
r1105258 r1105293 1 1 === Plugin Name === 2 Contributors: (this should be a list of wordpress.org userid's)2 Contributors: FeniXx 3 3 Donate link: http://blog.doprofilu.cz 4 4 Tags: komentáře,čeština, 5 5 Requires at least: 3.0.1 6 Tested up to: 4.1 7 Stable tag: 1.5 6 Tested up to: 4.1.1 7 Stable tag: 1.5.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
ceske-komentare/trunk/ceske-komentare.php
r1105258 r1105293 4 4 Plugin URI: https://github.com/fenix11/ceske-komentare 5 5 Description: Plugin převede všechny řetězce, kde se nachází slovo komentář do správného pádu. v 1.1 Lze nastavit vlastní řetězce. 6 Author: Petr Baloun 7 Version: 1.5 6 Version: 1.5.1 7 Author: fenixx 8 Author URI: http://blog.doprofilu.cz 8 9 License: GNU General Public License v2 9 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html 10 Domain Path: /languages11 Text Domain: ceske-komentare12 GitHub Plugin URI: https://github.com/fenix11/ceske-komentare13 GitHub Branch: master14 11 */ 15 12 // If this file is called directly, abort. … … 18 15 } 19 16 17 20 18 function pridat() { 21 22 19 // Activation code here... 23 20 add_option( 'pocet0', 'Žádný komentář', '', 'yes' ); … … 62 59 63 60 61 64 62 add_action('comments_number', 'ceske_komentare', 10, 2); 65 63 66 add_filter('plugin_action_links', 'myplugin_plugin_action_links', 10, 2);67 64 68 function myplugin_plugin_action_links($links, $file) { 69 static $this_plugin; 70 71 if (!$this_plugin) { 72 $this_plugin = plugin_basename(__FILE__); 73 } 74 75 if ($file == $this_plugin) { 76 // The "page" query string value must be equal to the slug 77 // of the Settings admin page we defined earlier, which in 78 // this case equals "myplugin-settings". 79 $settings_link = '<a href="' . get_bloginfo('wpurl') . '/wp-admin/options-general.php?page=ceske_komentare">Nastavení</a>'; 80 array_unshift($links, $settings_link); 81 } 82 83 return $links; 65 function komentare_meta( $links, $file ) { // Add a link to this plugin's settings page 66 static $this_plugin; 67 if(!$this_plugin) $this_plugin = plugin_basename(__FILE__); 68 if($file == $this_plugin) { 69 $settings_link = '<a href="options-general.php?page=ceske_komentare">'.__('Nastavení', 'ceske-komentare').'</a>'; 70 array_unshift($links, $settings_link); 71 } 72 return $links; 84 73 } 85 74 75 add_filter('plugin_row_meta','komentare_meta', 10, 2); 76 86 77 ?>
Note: See TracChangeset
for help on using the changeset viewer.