Plugin Directory

Changeset 826758


Ignore:
Timestamp:
12/21/2013 10:02:12 PM (12 years ago)
Author:
hovida
Message:

Version 1.0.3: Adding new method to get plain data, get_the_category_data([category_id])

Location:
category-thumbnails
Files:
10 added
2 edited

Legend:

Unmodified
Added
Removed
  • category-thumbnails/trunk/category-thumbnails.php

    r660966 r826758  
    44        Plugin URI:         http://hovida-design.de/plugin-kategorie-thumbnails/
    55        Author:             Adrian Preuss
    6         Version:            1.0.2
     6        Version:            1.0.3
    77        Description:        This Plugin provide functions like post-thumbnails for categories and (own) custom taxonomys. Please visit the Author-URL for Documentation.
    88    */
     
    271271    }
    272272   
     273    function get_the_category_data($category_id = null) {
     274        global $cat;
     275        global $wpdb;
     276       
     277        if($category_id != null) {
     278            $cat = $category_id;   
     279        }
     280       
     281        $size           = "";
     282        $attributes     = "";
     283        $result         = $wpdb->get_row("SELECT `term_thumbnail` FROM `" . $wpdb->prefix . "term_taxonomy` WHERE `term_id`='" . $cat . "' LIMIT 1");
     284        $data           = json_decode($result->term_thumbnail);
     285       
     286        return $data;
     287    }
     288   
    273289    // Call
    274290    new Category_Thumbnails();
  • category-thumbnails/trunk/readme.txt

    r660979 r826758  
    11=== Category Thumbnails ===
    22Contributors: Adrian Preuss
    3 Version: 1.0.2
     3Version: 1.0.3
    44Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=H56DKPMQE49NJ
    55Tags: category, thumbnail, taxonomy, custom
    66Requires at least: 3.4.2
    7 Tested up to: 3.6.0
    8 Stable tag: 1.0.2
     7Tested up to: 3.8.0
     8Stable tag: 1.0.3
    99
    1010This Plugin provide functions like post-thumbnails for categories and (own) custom taxonomys. Please visit the Author-URL for Documentation.
     
    2020*   the_category_thumbnail([category_id])
    2121*   get_the_category_thumbnail([category_id])
     22*   get_the_category_data([category_id])
    2223
    2324The Plugin is Multilangual. Following languages are available:
     
    6364== Change log ==
    6465
     66= 1.0.3 =
     67"[21.12.2013, Last Update: 23:01 AM] - Adrian Preuss"
     68
     69* Adding new method to get plain data, get_the_category_data([category_id])
     70
    6571= 1.0.2 =
    6672"[30.01.2013, Last Update: 00:18 AM] - Adrian Preuss"
Note: See TracChangeset for help on using the changeset viewer.