Changeset 1477637
- Timestamp:
- 08/18/2016 08:36:46 AM (10 years ago)
- Location:
- nictitate-toolkit
- Files:
-
- 105 added
- 6 edited
-
tags/1.0.3 (added)
-
tags/1.0.3/Changelog.txt (added)
-
tags/1.0.3/ajax.php (added)
-
tags/1.0.3/css (added)
-
tags/1.0.3/css/metabox.css (added)
-
tags/1.0.3/css/widget.css (added)
-
tags/1.0.3/js (added)
-
tags/1.0.3/js/metabox (added)
-
tags/1.0.3/js/metabox/metabox.js (added)
-
tags/1.0.3/js/shortcodes (added)
-
tags/1.0.3/js/shortcodes/accordions.js (added)
-
tags/1.0.3/js/shortcodes/alert.js (added)
-
tags/1.0.3/js/shortcodes/button.js (added)
-
tags/1.0.3/js/shortcodes/contact_form.js (added)
-
tags/1.0.3/js/shortcodes/dropcaps.js (added)
-
tags/1.0.3/js/shortcodes/forms (added)
-
tags/1.0.3/js/shortcodes/google_map.js (added)
-
tags/1.0.3/js/shortcodes/icons (added)
-
tags/1.0.3/js/shortcodes/icons/accordions.png (added)
-
tags/1.0.3/js/shortcodes/icons/alert.png (added)
-
tags/1.0.3/js/shortcodes/icons/audio.png (added)
-
tags/1.0.3/js/shortcodes/icons/button.png (added)
-
tags/1.0.3/js/shortcodes/icons/contact_form.png (added)
-
tags/1.0.3/js/shortcodes/icons/dropcaps.png (added)
-
tags/1.0.3/js/shortcodes/icons/google_map.png (added)
-
tags/1.0.3/js/shortcodes/icons/one_fourth.png (added)
-
tags/1.0.3/js/shortcodes/icons/one_half.png (added)
-
tags/1.0.3/js/shortcodes/icons/one_third.png (added)
-
tags/1.0.3/js/shortcodes/icons/posts_lastest.png (added)
-
tags/1.0.3/js/shortcodes/icons/posts_most_comment.png (added)
-
tags/1.0.3/js/shortcodes/icons/posts_popular.png (added)
-
tags/1.0.3/js/shortcodes/icons/posts_random.png (added)
-
tags/1.0.3/js/shortcodes/icons/pricing_table.png (added)
-
tags/1.0.3/js/shortcodes/icons/tabs.png (added)
-
tags/1.0.3/js/shortcodes/icons/three_fourth.png (added)
-
tags/1.0.3/js/shortcodes/icons/toggle.png (added)
-
tags/1.0.3/js/shortcodes/icons/two_third.png (added)
-
tags/1.0.3/js/shortcodes/icons/vimeo.png (added)
-
tags/1.0.3/js/shortcodes/icons/youtube.png (added)
-
tags/1.0.3/js/shortcodes/one_fourth.js (added)
-
tags/1.0.3/js/shortcodes/one_half.js (added)
-
tags/1.0.3/js/shortcodes/one_third.js (added)
-
tags/1.0.3/js/shortcodes/posts_lastest.js (added)
-
tags/1.0.3/js/shortcodes/posts_most_comment.js (added)
-
tags/1.0.3/js/shortcodes/posts_popular.js (added)
-
tags/1.0.3/js/shortcodes/posts_random.js (added)
-
tags/1.0.3/js/shortcodes/pricing_table.js (added)
-
tags/1.0.3/js/shortcodes/tabs.js (added)
-
tags/1.0.3/js/shortcodes/three_fourth.js (added)
-
tags/1.0.3/js/shortcodes/toggle.js (added)
-
tags/1.0.3/js/shortcodes/two_third.js (added)
-
tags/1.0.3/js/shortcodes/vimeo.js (added)
-
tags/1.0.3/js/shortcodes/youtube.js (added)
-
tags/1.0.3/js/widget (added)
-
tags/1.0.3/js/widget/jflickrfeed-min.js (added)
-
tags/1.0.3/js/widget/jflickrfeed.js (added)
-
tags/1.0.3/js/widget/widget.js (added)
-
tags/1.0.3/languages (added)
-
tags/1.0.3/languages/nictitate-toolkit.pot (added)
-
tags/1.0.3/metabox-fields (added)
-
tags/1.0.3/metabox-fields/icon.php (added)
-
tags/1.0.3/nictitate-toolkit.php (added)
-
tags/1.0.3/posttype (added)
-
tags/1.0.3/posttype/client (added)
-
tags/1.0.3/posttype/client/client.php (added)
-
tags/1.0.3/posttype/client/options_client.php (added)
-
tags/1.0.3/posttype/portfolio (added)
-
tags/1.0.3/posttype/portfolio/options_portfolio.php (added)
-
tags/1.0.3/posttype/portfolio/portfolio.php (added)
-
tags/1.0.3/posttype/post (added)
-
tags/1.0.3/posttype/post/options_post.php (added)
-
tags/1.0.3/posttype/service (added)
-
tags/1.0.3/posttype/service/options_service.php (added)
-
tags/1.0.3/posttype/service/service.php (added)
-
tags/1.0.3/posttype/staff (added)
-
tags/1.0.3/posttype/staff/options_staff.php (added)
-
tags/1.0.3/posttype/staff/staff.php (added)
-
tags/1.0.3/posttype/testimonial (added)
-
tags/1.0.3/posttype/testimonial/options_testimonial.php (added)
-
tags/1.0.3/posttype/testimonial/testimonial.php (added)
-
tags/1.0.3/readme.txt (added)
-
tags/1.0.3/shortcodes.php (added)
-
tags/1.0.3/util.php (added)
-
tags/1.0.3/widgets (added)
-
tags/1.0.3/widgets/widget_about.php (added)
-
tags/1.0.3/widgets/widget_categories.php (added)
-
tags/1.0.3/widgets/widget_clients.php (added)
-
tags/1.0.3/widgets/widget_contact_form.php (added)
-
tags/1.0.3/widgets/widget_flickr.php (added)
-
tags/1.0.3/widgets/widget_portfolios.php (added)
-
tags/1.0.3/widgets/widget_posts_carousel.php (added)
-
tags/1.0.3/widgets/widget_posts_list.php (added)
-
tags/1.0.3/widgets/widget_sequence_slider.php (added)
-
tags/1.0.3/widgets/widget_services.php (added)
-
tags/1.0.3/widgets/widget_services_intro.php (added)
-
tags/1.0.3/widgets/widget_services_tabs.php (added)
-
tags/1.0.3/widgets/widget_skill.php (added)
-
tags/1.0.3/widgets/widget_socials.php (added)
-
tags/1.0.3/widgets/widget_staffs.php (added)
-
tags/1.0.3/widgets/widget_subscribe.php (added)
-
tags/1.0.3/widgets/widget_tagline.php (added)
-
tags/1.0.3/widgets/widget_testimonials.php (added)
-
tags/1.0.3/widgets/widget_text.php (added)
-
trunk/Changelog.txt (modified) (1 diff)
-
trunk/js/widget/jflickrfeed-min.js (added)
-
trunk/js/widget/jflickrfeed.js (added)
-
trunk/nictitate-toolkit.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/util.php (modified) (9 diffs)
-
trunk/widgets/widget_posts_carousel.php (modified) (1 diff)
-
trunk/widgets/widget_posts_list.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
nictitate-toolkit/trunk/Changelog.txt
r1457319 r1477637 1 1 Change log 2 3 === Aug 18 2016 === 4 1.0.3 5 - Added function "nictitate_toolkit_get_video_thumbnails_url" 2 6 3 7 === Jul 20 2016 === -
nictitate-toolkit/trunk/nictitate-toolkit.php
r1457319 r1477637 4 4 Plugin URI: http://kopatheme.com 5 5 Description: A specific plugin use in Nictitate Theme to help you register post types and shortcodes. 6 Version: 1.0. 26 Version: 1.0.3 7 7 Author: kopatheme 8 8 Author URI: http://kopatheme.com -
nictitate-toolkit/trunk/readme.txt
r1457319 r1477637 4 4 Requires at least: 3.8 5 5 Tested up to: 4.3 6 Stable tag: 1.0. 26 Stable tag: 1.0.3 7 7 License: GPLv3 8 8 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 12 12 13 13 A specific plugin use in Nictitate Theme to help you register post types and shortcodes. 14 15 === Aug 18 2016 === 16 1.0.3 17 - Added function "nictitate_toolkit_get_video_thumbnails_url" 14 18 15 19 == Changelog == -
nictitate-toolkit/trunk/util.php
r1457319 r1477637 4 4 5 5 $all_cats = get_terms('portfolio_project'); 6 $categories = array('' => __('-- none --', ' friday-toolkit'));6 $categories = array('' => __('-- none --', 'nictitate-toolkit')); 7 7 foreach ( $all_cats as $cat ) { 8 8 $categories[ $cat->slug ] = $cat->name; … … 10 10 11 11 $all_tags = get_terms('portfolio_tag'); 12 $tags = array('' => __('-- none --', ' friday-toolkit'));12 $tags = array('' => __('-- none --', 'nictitate-toolkit')); 13 13 foreach( $all_tags as $tag ) { 14 14 $tags[ $tag->slug ] = $tag->name; … … 19 19 'type' => 'text', 20 20 'std' => '', 21 'label' => __( 'Title:', ' friday-toolkit' ),21 'label' => __( 'Title:', 'nictitate-toolkit' ), 22 22 ), 23 23 'categories' => array( 24 24 'type' => 'multiselect', 25 25 'std' => '', 26 'label' => __( 'Categories:', ' friday-toolkit' ),26 'label' => __( 'Categories:', 'nictitate-toolkit' ), 27 27 'options' => $categories, 28 28 'size' => '5', … … 30 30 'relation' => array( 31 31 'type' => 'select', 32 'label' => __( 'Relation:', ' friday-toolkit' ),32 'label' => __( 'Relation:', 'nictitate-toolkit' ), 33 33 'std' => 'OR', 34 34 'options' => array( 35 'AND' => __( 'AND', ' friday-toolkit' ),36 'OR' => __( 'OR', ' friday-toolkit' ),35 'AND' => __( 'AND', 'nictitate-toolkit' ), 36 'OR' => __( 'OR', 'nictitate-toolkit' ), 37 37 ), 38 38 ), … … 40 40 'type' => 'multiselect', 41 41 'std' => '', 42 'label' => __( 'Tags:', ' friday-toolkit' ),42 'label' => __( 'Tags:', 'nictitate-toolkit' ), 43 43 'options' => $tags, 44 44 'size' => '5', … … 47 47 'type' => 'select', 48 48 'std' => 'DESC', 49 'label' => __( 'Order:', ' friday-toolkit' ),49 'label' => __( 'Order:', 'nictitate-toolkit' ), 50 50 'options' => array( 51 'ASC' => __( 'ASC', ' friday-toolkit' ),52 'DESC' => __( 'DESC', ' friday-toolkit' ),51 'ASC' => __( 'ASC', 'nictitate-toolkit' ), 52 'DESC' => __( 'DESC', 'nictitate-toolkit' ), 53 53 ), 54 54 ), … … 56 56 'type' => 'select', 57 57 'std' => 'date', 58 'label' => __( 'Orderby:', ' friday-toolkit' ),58 'label' => __( 'Orderby:', 'nictitate-toolkit' ), 59 59 'options' => array( 60 'date' => __( 'Date', ' friday-toolkit' ),61 'rand' => __( 'Random', ' friday-toolkit' ),62 'comment_count' => __( 'Number of comments', ' friday-toolkit' ),60 'date' => __( 'Date', 'nictitate-toolkit' ), 61 'rand' => __( 'Random', 'nictitate-toolkit' ), 62 'comment_count' => __( 'Number of comments', 'nictitate-toolkit' ), 63 63 ), 64 64 ), … … 66 66 'type' => 'number', 67 67 'std' => '5', 68 'label' => __( 'Number of posts:', ' friday-toolkit' ),68 'label' => __( 'Number of posts:', 'nictitate-toolkit' ), 69 69 'min' => '1', 70 70 ) … … 187 187 return new WP_Query( $args ); 188 188 } 189 190 function nictitate_toolkit_get_video_thumbnails_url($type, $url) { 191 $thubnails = ''; 192 $matches = array(); 193 if ('youtube' === $type) { 194 preg_match("#(?<=v=)[a-zA-Z0-9-]+(?=&)|(?<=v\/)[^&\n]+|(?<=v=)[^&\n]+|(?<=youtu.be/)[^&\n]+#", $url, $matches); 195 $file_url = "http://gdata.youtube.com/feeds/api/videos/" . $matches[0] . "?v=2&alt=jsonc"; 196 $results = wp_remote_get($file_url); 197 198 if (!is_wp_error($results)) { 199 $json = json_decode($results['body']); 200 $thubnails = $json->data->thumbnail->hqDefault; 201 } 202 } else if ('vimeo' === $type) { 203 preg_match_all('#(http://vimeo.com)/([0-9]+)#i', $url, $matches); 204 $imgid = $matches[2][0]; 205 206 $results = wp_remote_get("http://vimeo.com/api/v2/video/$imgid.php"); 207 208 if (!is_wp_error($results)) { 209 $hash = unserialize($results['body']); 210 $thubnails = $hash[0]['thumbnail_large']; 211 } 212 } 213 return $thubnails; 214 } -
nictitate-toolkit/trunk/widgets/widget_posts_carousel.php
r1457319 r1477637 164 164 165 165 if ( isset($video['type']) && isset($video['url']) ) { 166 $video_thumbnail = nictitate_ lite_get_video_thumbnails_url( $video['type'], $video['url'] );166 $video_thumbnail = nictitate_toolkit_get_video_thumbnails_url( $video['type'], $video['url'] ); 167 167 } 168 168 } -
nictitate-toolkit/trunk/widgets/widget_posts_list.php
r1457319 r1477637 150 150 151 151 if ( isset($video['type']) && isset($video['url']) ) { 152 $video_thumbnail = nictitate_ lite_get_video_thumbnails_url( $video['type'], $video['url'] );152 $video_thumbnail = nictitate_toolkit_get_video_thumbnails_url( $video['type'], $video['url'] ); 153 153 } 154 154 }
Note: See TracChangeset
for help on using the changeset viewer.