Plugin Directory

Changeset 1105293


Ignore:
Timestamp:
03/04/2015 05:45:20 PM (11 years ago)
Author:
FeniXx
Message:

Úprava menší chyby verze 1.5.1

Location:
ceske-komentare/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ceske-komentare/trunk/README.txt

    r1105258 r1105293  
    11=== Plugin Name ===
    2 Contributors: (this should be a list of wordpress.org userid's)
     2Contributors: FeniXx
    33Donate link: http://blog.doprofilu.cz
    44Tags: komentáře,čeština,
    55Requires at least: 3.0.1
    6 Tested up to: 4.1
    7 Stable tag: 1.5
     6Tested up to: 4.1.1
     7Stable tag: 1.5.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • ceske-komentare/trunk/ceske-komentare.php

    r1105258 r1105293  
    44Plugin URI:        https://github.com/fenix11/ceske-komentare
    55Description:       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
     6Version:           1.5.1
     7Author:            fenixx
     8Author URI:        http://blog.doprofilu.cz
    89License:           GNU General Public License v2
    910License URI:       http://www.gnu.org/licenses/gpl-2.0.html
    10 Domain Path:       /languages
    11 Text Domain:       ceske-komentare
    12 GitHub Plugin URI: https://github.com/fenix11/ceske-komentare
    13 GitHub Branch:     master
    1411*/
    1512// If this file is called directly, abort.
     
    1815}
    1916
     17
    2018function pridat() {
    21 
    2219    // Activation code here...
    2320    add_option( 'pocet0', 'Žádný komentář', '', 'yes' );
     
    6259
    6360
     61
    6462add_action('comments_number', 'ceske_komentare', 10, 2);
    6563
    66 add_filter('plugin_action_links', 'myplugin_plugin_action_links', 10, 2);
    6764
    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;
     65function 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;
    8473}
    8574
     75add_filter('plugin_row_meta','komentare_meta', 10, 2); 
     76
    8677?>
Note: See TracChangeset for help on using the changeset viewer.