Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function wpex_img($args){
- //slider
- if( $args == 'slider_width' ) return '940';
- if( $args == 'slider_height' ) {
- if ( wpex_get_data('slider_height','400') !== '' ) {
- return wpex_get_data('slider_height','400');
- } else {
- return 9999;
- }
- }
- if( $args == 'slider_crop' ) {
- if ( wpex_get_data('slider_height','400') !== '' ) {
- return true;
- } else {
- return false;
- }
- }
- //gallery entries
- if( $args == 'gallery_width' ) return '400';
- if( $args == 'gallery_height' ) return '320';
- if( $args == 'gallery_crop' ) return true;
- //home blog entries
- if( $args == 'blog_entry_width' ) return '400';
- if( $args == 'blog_entry_height' ) return '320';
- if( $args == 'blog_entry_crop' ) return true;
- //blog related entries
- if( $args == 'blog_related_entry_width' ) return '400';
- if( $args == 'blog_related_entry_height' ) return '320';
- if( $args == 'blog_related_entry_crop' ) return true;
- //blog post/entry
- if( $args == 'blog_post_width' ) return '700';
- if( $args == 'blog_post_height' ) return '320';
- if( $args == 'blog_post_crop' ) return true;
- //portfolio entries
- if( $args == 'portfolio_entry_width' ) return '400';
- if( $args == 'portfolio_entry_height' ) return '320';
- if( $args == 'portfolio_entry_crop' ) return true;
- if( $args == 'portfolio_related_entry_width' ) return '400';
- if( $args == 'portfolio_related_entry_height' ) return '320';
- if( $args == 'portfolio_related_entry_crop' ) return true;
- //portfolio post
- if( $args == 'portfolio_post_width' ) return '700';
- if( $args == 'portfolio_post_height' ) return 9999;
- if( $args == 'portfolio_post_crop' ) return false;
- //tabbed widget
- if( $args == 'tab_widget_width' ) return '70';
- if( $args == 'tab_widget_height' ) return '60';
- if( $args == 'tab_widget_crop' ) return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement