WordPress.org

Plugin Directory

Changeset 532666


Ignore:
Timestamp:
04/18/12 04:08:15 (2 years ago)
Author:
ZaMoose
Message:

More checkins. AJAX is getting there, but this is mainly README-related.

Location:
lb-colorbox/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • lb-colorbox/trunk/include/lbcb-cpt.php

    r532283 r532666  
    170170    $cb_ID = wp_insert_post( $post ); 
    171171     
     172    $cb_types = array( 'original', 'colourlover', 'studiopress', 'kuler', 'colllor', 'other' ); 
     173     
     174    if( in_array( $colorbox['type'], $types) ){ 
     175        $lbcb_type = $colorbox['type']; 
     176    }else{ 
     177        $lbcb_type = 'other'; 
     178    } 
    172179     
    173180    if( $cb_ID != 0 ){ 
     181        add_post_meta( $cb_ID, '_lbcb_type', $lbcb_type, true ); 
    174182        add_post_meta( $cb_ID, '_lbcb_author', $colorbox['author'], true ); 
    175183        add_post_meta( $cb_ID, '_lbcb_url', $colorbox['url'], true ); 
  • lb-colorbox/trunk/include/lbcb-kuler.php

    r532108 r532666  
    2323    set_exception_handler( 'lbcb_error_handler' ); 
    2424 
     25    $lbcb_options = get_option('lbcb_options'); 
     26    $num_kulers = $lbcb_options['num_kulers']; 
     27 
    2528    $kuler_trans = get_transient( 'lbcb_' . $kuler_type . '_kulers' ); 
    2629 
    27     if( empty($kuler_trans) ){ 
     30    $kuler_trans_count = count($kuler_trans); 
     31 
     32    if( empty($kuler_trans) || ( $kuler_trans_count != $num_kulers) ){ 
    2833        $lbcb_options = get_option( 'lbcb_options' ); 
    2934        $kuler_api_key = $lbcb_options['kuler_api_key']; 
     
    3237            $kuler = new Kuler_Api( $kuler_api_key ); 
    3338         
    34             $kuler_tmp = $kuler->get( $kuler_type ); 
     39            $kuler_tmp = $kuler->get( $kuler_type, '0', $num_kulers ); 
    3540            $hr_k = array(); 
    3641 
  • lb-colorbox/trunk/lb-colorbox.php

    r532283 r532666  
    4848include( 'include/lbcb-output.php' ); 
    4949 
    50 foreach($ratedk as $rks){ 
    51     // echo "<pre>"; 
    52     // var_dump($rks); 
    53     // echo "</pre>"; 
    54     //var_dump($rks); 
    55     //lbcb_insert_colorbox( $rks ); 
    56 } 
    57  
    5850function lbcb_enqueue_styles(){ 
    5951        wp_enqueue_style( 'lb-colorbox', plugin_dir_url(__FILE__) . 'include/css/lbcb-core.css', '', '', 'screen' ); 
  • lb-colorbox/trunk/readme.txt

    r532108 r532666  
    1313Collect color schemes. Use 'em, display 'em, go nuts. 
    1414 
    15 For backwards compatibility, if this section is missing, the full length of the short description will be used, and 
    16 Markdown parsed. 
     15LB Colorbox is a new way to collect color schemes and tuck them away inside of WordPress for safe keeping. If you've ever admired the palettes available at [ColourLovers](http://www.colourlovers.com/), [StudioPress](http://www.studiopress.com/palettes), [Colllor](http://colllor.com) or elsewhere, you can now recreate that functionality from the safety of your own WordPress home. 
    1716 
    18 A few notes about the sections above: 
    19  
    20     Note that the `readme.txt` of the stable tag is the one that is considered the defining one for the plugin, so 
    21 if the `/trunk/readme.txt` file says that the stable tag is `4.3`, then it is `/tags/4.3/readme.txt` that'll be used 
    22 for displaying information about the plugin.  In this situation, the only thing considered from the trunk `readme.txt` 
    23 is the stable tag pointer.  Thus, if you develop in trunk, you can update the trunk `readme.txt` to reflect changes in 
    24 your in-development version, without having that information incorrectly disclosed about the current stable version 
    25 that lacks those changes -- as long as the trunk's `readme.txt` points to the correct stable tag. 
    26  
    27     If no stable tag is provided, it is assumed that trunk is stable, but you should specify "trunk" if that's where 
    28 you put the stable version, in order to eliminate any doubt. 
    29  
     17You can also directly import color schemes from Adobe's [Kuler service](http://kuler.adobe.com/). You'll need to apply for a [Kuler API key](http://kuler.adobe.com/api/) in order to use this feature, but once you've done so, a wealth of options are available to you. 
    3018== Installation == 
    31  
    32  
    3319 
    34201. Upload the `lb-colorbox/` directory to the `/wp-content/plugins/` directory 
     
    3925== Frequently Asked Questions == 
    4026 
    41 = A question that someone might have = 
     27= Where are the settings? = 
    4228 
    43 An answer to that question. 
    44  
    45 = What about foo bar? = 
    46  
    47 Answer to foo bar dilemma. 
     29Under Settings->ColorBox 
    4830 
    4931== Screenshots == 
Note: See TracChangeset for help on using the changeset viewer.