Plugin Directory

Changeset 558700


Ignore:
Timestamp:
06/15/2012 06:18:08 PM (14 years ago)
Author:
Lukenzi
Message:

Verze 2.0.0

Location:
ceska-podpora-wordpressu
Files:
33 added
7 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • ceska-podpora-wordpressu/trunk/ceska-podpora-wordpressu.php

    r413543 r558700  
    22/*
    33Plugin Name: Česká podpora WordPressu
    4 Plugin URI: http://www.wp-blog.cz
    5 Description: Plugin České podpory WordPressu. Informace, novinky, rady, tipy a triky, vše přehledně na Vaší nástěnce v administraci
    6 Version: 1.1.4
     4Plugin URI: http://wp-blog.cz
     5Description: Plugin České podpory WordPressu. Informace, novinky, rady, tipy a triky, vše přehledně na nástěnce v administraci vašeho webu
     6Version: 2.0.0
    77Author: Lukenzi
    8 Author URI: http://www.wp-blog.cz/o-autorovi/
    9 License: GPLv2 or later
     8Author URI: http://wp-blog.cz/
     9License: GPLv3
    1010*/
    1111
    12 /*  Copyright 2011, Lukenzi  (email : mail@Lukenzi.info)
    13 
    14     This program is free software; you can redistribute it and/or modify
    15     it under the terms of the GNU General Public License as published by
    16     the Free Software Foundation; either version 2 of the License, or
    17     (at your option) any later version.
    18 
    19     This program is distributed in the hope that it will be useful,
    20     but WITHOUT ANY WARRANTY; without even the implied warranty of
    21     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    22     GNU General Public License for more details.
    23 
    24     You should have received a copy of the GNU General Public License
    25     along with this program; if not, write to the Free Software
    26     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    27 */
    28 
    29 
    30 
    31 /** Nastavení cest **/
    32 define('CP_ROOT', str_replace('\\', '/', dirname(__FILE__)).'/');
    33 define('CP_LIB', CP_ROOT.'lib/');
    34 define('CP_CFG', CP_ROOT.'cfg/');
    35 define('CP_PLUGIN', plugin_basename(__FILE__));
    36 if(!defined('WP_CONTENT_URL')){
    37    if(defined('WP_SITEURL')) define('WP_CONTENT_URL', WP_SITEURL.'/wp-content');
    38    else define('WP_CONTENT_URL', get_option('url').'/wp-content');
    39 }
    40 if(!defined('WP_PLUGIN_URL')) define('WP_PLUGIN_URL', WP_CONTENT_URL.'/plugins');
    41 define('CP_PLUGIN_URL', WP_PLUGIN_URL.'/ceska-podpora-wordpressu');
    42 
    43 /** Ošetření proti přímému načtení souboru **/
    4412if (!defined('ABSPATH')) die();
    4513
    46 /** Ošetření načítání pluginu nepřihlášenými uživateli **/
    47 if(is_admin()){
     14if(!is_admin()){
     15    return;
     16}else{
     17    $cp_plugin_url = plugin_dir_url(__FILE__);
    4818
    49 /** Načtení překladu **/
    50 if(function_exists('load_plugin_textdomain')){
    51   load_plugin_textdomain('cpwp','/wp-content/plugins/ceska-podpora-wordpressu/lang/');
     19    require dirname(__FILE__).'/plugin-config/config.php';
     20    require dirname(__FILE__).'/plugin-library/feed.php';
     21    require dirname(__FILE__).'/plugin-library/widget.php';
     22
     23    CP_RunPlugin();
    5224}
    53 /** Načtení nastavení URL adres **/
    54 include CP_CFG.'config.php';
    55 
    56 /** Načtení jednotlivých RSS kanálů **/
    57 include CP_LIB.'class-feed.php';
    58 $cp_feed = new CPFeed;
    59 
    60 /** Spuštění pluginu **/
    61 include CP_LIB.'class-core.php';
    62 $cp = new CPCore;
    63 $cp->RunPlugin();
    64 
    65 unset($cp);
    66 
    67 }// END is_admin()
    68 ?>
  • ceska-podpora-wordpressu/trunk/readme.txt

    r413543 r558700  
    11=== Česká podpora WordPressu ===
    22Contributors: Lukenzi
    3 Donate link: http://www.wp-blog.cz/o-autorovi/
    4 Tags: help,czech,forum,česká,podpora,novinky,rady
    5 Requires at least: 3.0
    6 Tested up to: 3.2.1
    7 Stable tag: 1.1.4
     3Donate link: http://wp-blog.cz/
     4Tags: Czech,help,Česká podpora,Fórum,Separatista
     5Requires at least: 3.3.1
     6Tested up to: 3.4.0
     7Stable tag: 2.0.0
    88
    9 Plugin České podpory WordPressu. Informace, novinky, rady, tipy a triky, vše přehledně v administraci
     9Plugin České podpory WordPressu. Informace, novinky, rady, tipy a triky, vše přehledně na nástěnce v administraci vašeho webu.
    1010
    1111== Description ==
    1212
    13 Plugin České podpory WordPressu. Informace, novinky, rady, tipy a triky, vše přehledně na nástěnce v administraci vašeho webu.
     13Nejnovější příspěvky z fóra České podpory WordPressu a články z webu Separatista.net můžete mít nyní přehledně zobrazeny na nástěnce ve vaší administraci.
    1414
    15 == Installation ==
    16 
    17 Jak nainstalovat tento plugin?
    18 
    19 1. Nakopírujte složku s pluginem `ceska-podpora-wordpressu` do složky vašeho WordPressu `/wp-content/plugins/`
    20 2. Na stránce 'Pluginy' v administraci aktivujte plugin s názvem 'Česká podpora WordPressu'
    21 3. Na nástěnce v administraci teď uvidíte nový widget s nejnovějšími příspěvky a tématy na fóru České podpory pro WordPress
    2215
    2316== Screenshots ==
    2417
    25181. Aktivovaný plugin na nástěnce v administraci
    26 2. Odkaz v menu na stránku s nastavením pluginu
    27 3. Nastavení pluginu
    28 
    2919
    3020
    3121== Changelog ==
     22
     23= 2.0.0 =
     24* Kompletní přepsání pluginu
     25* Zrušena možnost nastavení pluginu v administraci
     26* Zrušeno ukládání nastavení do databáze
     27* Zrušena podpora pro překlad
     28* Přidána podpora pro WPMU
     29* Přidán odkaz pro aktualizaci informací ve widgetu
     30* Přidána možnost změnit výchozí nastavení pomocí konstant
    3231
    3332= 1.1.4 =
     
    5756
    5857= 1.0.2 =
    59 * Opravena chyba zobrazování ikonky
     58* Opravena chyba zobrazování ikonky 
    6059* Přidáno do repozitáře WordPressu
    6160
     
    6766
    6867
    69 == Credits ==
    7068
    71 Copyright 2011 by Lukenzi
    72 
    73 This program is free software; you can redistribute it and/or modify
    74 it under the terms of the GNU General Public License as published by
    75 the Free Software Foundation; either version 2 of the License, any
    76 later version.
    77 
    78 This program is distributed in the hope that it will be useful,
    79 but WITHOUT ANY WARRANTY; without even the implied warranty of
    80 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    81 GNU General Public License for more details.
    82 
    83 You should have received a copy of the GNU General Public License
    84 along with this program; if not, write to the Free Software
    85 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
Note: See TracChangeset for help on using the changeset viewer.