Plugin Directory

Changeset 1417007


Ignore:
Timestamp:
05/14/2016 02:42:52 PM (10 years ago)
Author:
xnicoco
Message:

Improved shortcode structure

Location:
katracker/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • katracker/trunk/README.txt

    r1416933 r1417007  
    3838Note that torrents view best in list view and not in grid view.
    3939
     40= Requirements =
     41* php 5.3 or later
     42
    4043= View uploaded torrents =
    4144To view a single torrent use the [torrent] shortcode, you can tweak the shortcode with the following attributes:
    42 <ul>
    43     <li>id=(torrent id) *required</li>
    44     <li>stats=(1 or 0, shows torrent stats)</li>
    45     <li>files=(1 or 0, shows a torrent file list)</li>
    46 </ul>
     45<ul><li>id=(torrent id) *required</li>
     46<li>stats=(1 or 0, shows torrent stats)</li>
     47<li>files=(1 or 0, shows a torrent file list)</li></ul>
    4748
    4849To view a list of uploaded torrents, use the [torrents] shortcode:
    4950
    50 <ul>
    51     <li>id=(list of torrent ids seperated by commas)</li>
    52     <li>category=(if set, lists the torrents in a specific category, otherwise lists all categories)</li>
    53     <li>stats=(1 or 0, shows torrent stats)</li>
    54     <li>files=(1 or 0, shows a torrent file list)</li>
    55 </ul>
     51<ul><li>id=(list of torrent ids seperated by commas)</li>
     52<li>category=(if set, lists the torrents in a specific category, otherwise lists all categories)</li>
     53<li>stats=(1 or 0, shows torrent stats)</li>
     54<li>files=(1 or 0, shows a torrent file list)</li></ul>
    5655By default shows all enabled torrents.
    5756
  • katracker/trunk/katracker.php

    r1416912 r1417007  
    8181    unset( $current, $katracker_slug );
    8282
    83     load_plugin_textdomain( 'katracker' );
     83    load_plugin_textdomain( 'katracker', false, dirname( plugin_basename(__FILE__) ) . '/lang/' );
    8484
    8585    // Check if there is a tracker page, and set it's link according to the main tracker link
Note: See TracChangeset for help on using the changeset viewer.