Changeset 1416558
- Timestamp:
- 05/13/2016 07:33:32 PM (10 years ago)
- Location:
- katracker/trunk
- Files:
-
- 4 added
- 4 deleted
- 4 edited
-
README.txt (modified) (2 diffs)
-
katracker.php (modified) (1 diff)
-
shortcode/katracker-shortcode.css (added)
-
shortcode/katracker-shortcode.php (added)
-
shortcode/shortcode-content.php (deleted)
-
shortcode/shortcode-style.css (deleted)
-
shortcode/shortcode.php (modified) (2 diffs)
-
widget/katracker-widget.css (added)
-
widget/katracker-widget.php (added)
-
widget/widget-content.php (deleted)
-
widget/widget-style.css (deleted)
-
widget/widget.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
katracker/trunk/README.txt
r1416531 r1416558 38 38 Note that torrents view best in list view and not in grid view. 39 39 40 For theme developers: 41 If you want to override the widget or the shortcode implementations and stylesheets, don't edit the files in the plugin directory as they will revert every time the plugin is updated. Instead, include in your theme directory a copy of the following files: 42 * For the widget: katracker-widget.php and katracker-widget.css 43 * For the shortcode: katracker-shortcode.php and katracker-shortcode.css 44 40 45 == Screenshots == 41 46 … … 47 52 48 53 == Changelog == 54 = 1.0.4 = 55 * Changed filenames, so there is better support to override plugins file in wordpress themes. 56 49 57 = 1.0.3 = 50 58 * Fixed seed/peer statistics -
katracker/trunk/katracker.php
r1416531 r1416558 5 5 * Description: The only full and all powerful, complete bittorrent tracker integration for wordpress. 6 6 * Author: nicoco 7 * Version: 1.0. 37 * Version: 1.0.4 8 8 * Author URI: kateam.org 9 9 * License: GPL2 -
katracker/trunk/shortcode/shortcode.php
r1398530 r1416558 27 27 $template_part = locate_template( KATRACKER_PRE . '-shortcode.php' ); 28 28 if ( empty( $template_part ) ) { 29 $template_part = plugin_dir_path( __FILE__ ) . 'shortcode-content.php';29 $template_part = plugin_dir_path( __FILE__ ) . KATRACKER_PRE . '-shortcode.php'; 30 30 } 31 31 … … 46 46 $template_part = locate_template( array( KATRACKER_PRE . '-shortcode.css' ) ); 47 47 if ( empty( $template_part ) ) { 48 $template_part = plugins_url( 'shortcode-style.css', __FILE__ );48 $template_part = plugins_url( KATRACKER_PRE . '-shortcode.css', __FILE__ ); 49 49 } else { 50 50 $template_part = get_template_directory_uri() . '/' . KATRACKER_PRE . '-shortcode.css'; -
katracker/trunk/widget/widget.php
r1407779 r1416558 33 33 $template_part = locate_template( KATRACKER_PRE . '-widget.php' ); 34 34 if ( empty( $template_part ) ) { 35 $template_part = plugin_dir_path( __FILE__ ) . 'widget-content.php';35 $template_part = plugin_dir_path( __FILE__ ) . KATRACKER_PRE . '-widget.php'; 36 36 } 37 37 38 38 // Load Style 39 wp_enqueue_style( 'katracker- shortcode-style' );39 wp_enqueue_style( 'katracker-widget-style' ); 40 40 require_once $template_part; 41 41 … … 96 96 $template_part = locate_template( array( KATRACKER_PRE . '-widget.css' ) ); 97 97 if ( empty( $template_part ) ) { 98 $template_part = plugins_url( 'widget-style.css', __FILE__ );98 $template_part = plugins_url( KATRACKER_PRE . '-widget.css', __FILE__ ); 99 99 } else { 100 100 $template_part = get_template_directory_uri() . '/' . KATRACKER_PRE . '-widget.css';
Note: See TracChangeset
for help on using the changeset viewer.