WordPress.org

Plugin Directory

Changeset 154357


Ignore:
Timestamp:
09/13/09 13:54:26 (5 years ago)
Author:
foxinni
Message:

V.1.1

Location:
themesmith/trunk
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • themesmith/trunk/files/audio.php

    r152605 r154357  
    2121        'orderby'    => $themesmith['audio_orderby'], 
    2222        'id'         => $post->ID, 
    23         'captions'   => $themesmith['audio_caption'], 
     23        'captions'   => $themesmith['audio_captions'], 
     24        'link'       => $themesmith['audio_caption_link'], 
    2425        'width'      => $themesmith['audio_width'], 
    2526        'height'     => $themesmith['audio_height'], 
     
    5758       $post_id = $attachment->ID;     
    5859       $title = trim($attachment->post_title); 
    59        $content = trim($attachment->post_content); 
    6060       $caption = trim($attachment->post_excerpt); 
    6161       $path = $attachment->guid; 
     62       $duration = trim($attachment->post_content); // Used for file play length 
    6263 
    6364       $output .= "<div class='themesmith-audio-player'>" ; 
     
    7677       $output .=  "so.addVariable('repeat','$repeat');\n";    
    7778       $output .=  "so.addVariable('skin','$skin');\n"; 
     79       if(!empty($duration)){ 
     80        $output .=  "so.addVariable('duration',$duration);" . "\n"; 
     81       } 
    7882       $output .=  "so.write('themesmith-audio-holder-$post_id-$counter');"; 
    7983       $output .=  "</script>"; 
    8084        
    81        if($captions == 'on'){ 
    82             $output .= "<span class='themesmith-audio-title'>$title</span><span class='themesmith-audio-excerpt'>$caption</span>";  
     85       if(!empty($title) AND $captions == 'on' AND $link == 'off'){ 
     86            $output .= "<span class='themesmith-audio-title'>$title</span>";} 
     87        
     88       if(!empty($title) AND $captions == 'on' AND $link == 'on'){ 
     89            $output .= "<span class='themesmith-audio-title'><a href='$path'>$title</a></span>";} 
     90        
     91       if(!empty($caption)){ 
     92           $output .= "<span class='themesmith-audio-excerpt'>$caption</span>"; 
    8393        } 
    84         //$output .= "<span class='themesmith-music-content'>{$post_content}</span>";      
    8594        $output .= "</div>";  
    8695        
  • themesmith/trunk/files/options.php

    r152605 r154357  
    2323    //Videos 
    2424    'videos_caption' => 'on', 
     25    'videos_caption_link' => 'off', 
    2526    'videos_order' => 'DESC', 
    2627    'videos_orderby' => 'menu_order date', 
     
    3435    //Audio 
    3536    'audio_caption' => 'on', 
     37    'audio_caption_link' => 'off', 
    3638    'audio_order' => 'DESC', 
    3739    'audio_orderby' => 'menu_order date', 
     
    6163        "options" => array( 
    6264           "photos_caption" => array(  
    63                         "label" => "Photo Captions", 
     65                        "label" => "Captions", 
    6466                        "type" => "input-select", 
    6567                        "selection" => array("on","off"), 
     
    130132        ), 
    131133        "options" => array( 
    132             "videos_caption" => array(  
    133                     "label" => "Video Captions", 
     134            "videos_captions" => array(  
     135                    "label" => "Captions", 
    134136                    "type" => "input-select", 
    135137                    "selection" => array("on","off"), 
    136138                    "value" => "on", 
    137139                    "info" => "Enable or Disable captions on Videos"),   
     140                     
     141           "videos_caption_link" => array(  
     142                        "label" => "Caption Link", 
     143                        "type" => "input-select", 
     144                        "selection" => array("on","off"), 
     145                        "value" => "off", 
     146                        "info" => "Enable or disable a link to the source file on the caption text"),   
    138147                     
    139148            "videos_order" => array(  
     
    206215        ), 
    207216        "options" => array(                  
    208             "audio_caption" => array(  
     217            "audio_captions" => array(  
    209218                        "label" => "Captions", 
    210219                        "type" => "input-select", 
    211220                        "selection" => array("on","off"), 
    212221                        "value" => "on", 
    213                         "info" => "Enable or disable captions on audio uploads"),   
     222                        "info" => "Enable or disable captions on audio uploads"), 
     223                         
     224           "audio_caption_link" => array(  
     225                        "label" => "Caption Link", 
     226                        "type" => "input-select", 
     227                        "selection" => array("on","off"), 
     228                        "value" => "off", 
     229                        "info" => "Enable or disable a link to the source file on the caption text"),   
    214230                         
    215231            "audio_order" => array(  
  • themesmith/trunk/files/videos.php

    r152605 r154357  
    2626        'poster'     => $themesmith['videos_image'], 
    2727        'captions'   => $themesmith['videos_captions'], 
     28        'link'       => $themesmith['videos_caption_link'], 
    2829        'repeat'     => $themesmith['videos_repeat'], 
    2930        'volume'     => $themesmith['videos_volume'], 
     
    6465       $post_id = $attachment->ID;      
    6566       $title = $attachment->post_title; 
    66        $content = $attachment->post_content; 
    6767       $caption = $attachment->post_excerpt; 
    6868       $path = $attachment->guid; 
    69        $start_image = $poster;  
     69       $start_image = $poster; 
     70       //$duration = $attachment->post_content; 
     71         
    7072        
    7173       $output .=  "<div class='themesmith-video-wrap'>\n"; 
     
    8688       $output .=  "s1.write('video-holder-$post_id-$counter');\n"; 
    8789       $output .=  "</script>"; 
    88        if(!empty($title)){ 
    89        $output .= "<span class='themesmith-video-title'>$title</span>\n";} 
     90 
     91       if(!empty($title) AND $captions == 'on' AND $link == 'off'){ 
     92         $output .= "<span class='themesmith-video-title'>$title</span>\n";} 
     93        
     94       if(!empty($title) AND $captions == 'on' AND $link == 'on'){ 
     95         $output .= "<span class='themesmith-video-title'><a href='$path'>$title</a></span>\n";} 
     96         
    9097       if(!empty($caption)){ 
    91        $output .= "<span class='themesmith-video-caption'>$caption</span>\n";} 
    92        $output .= "</div>"; 
     98        $output .= "<span class='themesmith-video-caption'>$caption</span>\n";} 
     99         
     100        $output .= "</div>"; 
    93101        
    94102     }  
  • themesmith/trunk/readme.txt

    r152611 r154357  
    44Requires at least: 2.6 
    55Tested up to: 2.8.4 
    6 Stable tag: 1.0 
     6Stable tag: 1.1 
    77 
    88Powerfull shortcodes to enhance your WordPress content. [photos] [videos] [audio] 
     
    23231. Upload the `/themesmith/` folder to the `/wp-content/plugins/` directory 
    24242. Activate the plugin through the 'Plugins' menu in WordPress 
    25 3. Adjust the default settings up to work with your theme. 
     253. Adjust the default settings to work with your theme. 
    26264. Upload content with the WordPress uploader. 
    27 5. Add the appropriate  shortcodes to your Post or Page content to start using it. 
     275. Add the appropriate shortcodes to your Post or Page content to start using it. 
    2828 
    2929 
     
    3131 
    32321. See how to use it at <a href="http://themesmith.com">ThemeSmith.com</a> 
     332. ThemeSmith Backend <a href="http://themesmith.com">ThemeSmith.com</a> 
    3334 
    3435== Changelog == 
    3536 
     37= 1.1 = 
     38* /files/audio.php - Added duration for of mp3 file. Time in seconds. Specified via uploads "Description" field. Added checks for possible empty content field. Added link to title text when applicable. 
     39* /files/video.php - Added checks for possible empty content field. Added link to title text when applicable. 
     40* /files/options.php - Added new options for content title linking. Changed some wording. 
     41* /screenshot-2.png - ADDED new screenshot file. 
    3642 
    3743= 1.0 = 
Note: See TracChangeset for help on using the changeset viewer.