Search Results for 'shortcode'

Home Forums Search Search Results for 'shortcode'

Viewing 15 results - 1,711 through 1,725 (of 2,038 total)
  • Author
    Search Results
  • #24392
    Sonal S SinhaSonal S Sinha
    Moderator
    • Topics: 0
    • Replies: 31283
    • Total: 31283
    Member since: August 16, 2013

    Hi Wen,

    You can use 3 column shortcode in section 1 and put a code or widget in that shortcodes.

    Remove homepage boxes via CSS and add 3 column shortcode in section 1

    Regards,
    Dave

    #24246
    Sonal S SinhaSonal S Sinha
    Moderator
    • Topics: 0
    • Replies: 31283
    • Total: 31283
    Member since: August 16, 2013

    Hi Dave,

    I am not sure which version you are using but anyways here is the code. I have deleted the website prefix input field in the file.

    <?php
    /**
     * @package SKT BeFit
     * Setup the WordPress core custom functions feature.
     *
    */
    
    add_action('skt_befit_optionsframework_custom_scripts', 'skt_befit_optionsframework_custom_scripts');
    function skt_befit_optionsframework_custom_scripts() { ?>
    	<script type="text/javascript">
        jQuery(document).ready(function() {
        
            jQuery('#example_showhidden').click(function() {
                jQuery('#section-example_text_hidden').fadeToggle(400);
            });
            
            if (jQuery('#example_showhidden:checked').val() !== undefined) {
                jQuery('#section-example_text_hidden').show();
            }
            
        });
        </script><?php
    }
    
    // custom javascript for head
    add_action('wp_head','hook_custom_javascript');
    
    // get_the_content format text
    function get_the_content_format( $str ){
    	$raw_content = apply_filters( 'the_content', $str );
    	$content = str_replace( ']]>', ']]>', $raw_content );
    	return $content;
    }
    // the_content format text
    function the_content_format( $str ){
    	echo get_the_content_format( $str );
    }
    
    function is_google_font( $font ){
    	$notGoogleFont = array( 'Arial', 'Comic Sans MS', 'FreeSans', 'Georgia', 'Lucida Sans Unicode', 'Palatino Linotype', 'Symbol', 'Tahoma', 'Trebuchet MS', 'Verdana' );
    	if( in_array($font, $notGoogleFont) ){
    		return false;
    	}else{
    		return true;
    	}
    }
    
    // subhead section function
    function sub_head_section( $more ) {
    	$pgs = 0;
    	do {
    		$pgs++;
    	} while ($more > $pgs);
    	return $pgs;
    }
    
    //[clear]
    function clear_func() {
    	$clr = '<div class="clear"></div>';
    	return $clr;
    }
    add_shortcode( 'clear', 'clear_func' );
    
    //[separator height="20"]
    function separator_shortcode_func($atts ) {
    	extract( shortcode_atts( array(
    		'height' => '20',
    	), $atts ) );
    	$sptr = '<div style="clear:both; min-height:20px; height:'.$height.'px; background:url('.get_template_directory_uri().'/images/hr_double.png) no-repeat center center transparent;"></div>';
    	return $sptr;
    }
    add_shortcode( 'separator', 'separator_shortcode_func' );
    
    //[blankspace height="20"]
    function blankspace_shortcode_func($atts ) {
    	extract( shortcode_atts( array(
    		'height' => '20',
    	), $atts ) );
    	$sptr = '<div class="custom-height" style="height:'.$height.'px;"></div>';
    	return $sptr;
    }
    add_shortcode( 'blankspace', 'blankspace_shortcode_func' );
    
    //[column_content]Your content here...[/column_content]
    function column_content_func( $atts, $content = null ) {
    	extract( shortcode_atts( array(
    		'type' => '',
    		'animation' => '',
    	), $atts ) );
    	$colPos = strpos($type, '_last');
    	if($colPos === false){
    		$cnt = '<div class="'.$type.' '.$animation.'">'.do_shortcode($content).'</div>';
    	}else{
    		$type = substr($type,0,$colPos);
    		$cnt = '<div class="'.$type.' '.$animation.' last_column">'.do_shortcode($content).'</div>';
    	}
    	return $cnt;
    }
    add_shortcode( 'column_content', 'column_content_func' );
    
    //[hr]
    function hrule_func() {
    	$hrule = '<div class="clear hrule"></div>';
    	return $hrule;
    }
    add_shortcode( 'hr', 'hrule_func' );
    
    //[hr_top]
    function hr_top_func() {
    	$hr_top = '<div class="clear linktotop"><a title="Top of Page" href="#top">Back to Top</a></div><div class="clear hrule"></div>';
    	return $hr_top;
    }
    add_shortcode( 'hr_top', 'hr_top_func' );
    
    // [searchform]
    function searchform_shortcode_func( $atts ){
    	return get_search_form( false );
    }
    add_shortcode( 'searchform', 'searchform_shortcode_func' );
    
    // accordion
    function accordion_func( $atts, $content = null ) {
    	$acc = '<div style="margin-top:10px;">'.get_the_content_format( do_shortcode($content) ).'<div class="clear"></div></div>';
    	return $acc;
    }
    add_shortcode( 'accordion', 'accordion_func' );
    function accordion_content_func( $atts, $content = null ) {
    	extract( shortcode_atts( array(
    		'title' => 'Accordion Title',
    	), $atts ) );
    	$content = wpautop(trim($content));
    	$acn = '<div class="accordion-box"><h2>'.$title.'</h2>
    			<div class="acc-content">'.$content.'</div><div class="clear"></div></div>';
    	return $acn;
    }
    add_shortcode( 'accordion_content', 'accordion_content_func' );
    
    /* [features name="name" icon="icon" url="url"]loremcontent[/features]*/
    
    // add shortcode for features
    function featuresbox($atts, $content = null){
    		extract( shortcode_atts(array(
    			'title' => 'title',
    			'icon'  => get_template_directory_uri().'/images/patterns.png',
    			'url' => 'url',
    		), $atts));
    		
    		return '
    				<div class="feature-box">
    				<a href="'.$url.'">
    					<img src="'.$icon.'" />
    					<h2>'.$title.'</h2>
    					<span></span>
    					<p>'.$content.'</p>
    					<a class="read-more" href="'.$url.'">Read More</a> 
    				</a>	
    				</div>	
    		';
    }
    add_shortcode('features','featuresbox');
    
    /* [appointment title="title" buttontext="button text" url="button url"]content[/appointment] */
    
    // add shortcode for book appointment box
    function appointmentbox($atts, $content = null){
    		extract( shortcode_atts(array(
    			'title' => 'title',
    			'buttontext'  => 'button',
    			'url' => 'url',
    		), $atts));
    		
    		return '
    			<div class="appointmentarea">
    				 <div class="appointmentbox">
    				 	<div class="app-contentarea">
    						<h2>'.$title.'</h2>
    						<p>'.$content.'</p>
    					</div>
    					<div class="app-buttonarea">
    						<div class="appointmentbutton"><a href="'.$url.'">'.$buttontext.'</a></div>
    					</div>
    					<div class="clear"></div>
    				 </div>
    			</div>	
    		';
    }
    add_shortcode('appointment','appointmentbox');
    
    /* [courselist title="title"]Content[/courselist] */
    function aboutcourse($atts, $content = null){
    	extract(
    		shortcode_atts(array(
    			'title' => 'title',
    		), $atts));
    		
    		return '
    		<div class="courselistbox">
    			<div class="coursetitle">'.$title.'</div>
    			<div class="clear"></div>
    			<div class="coursedesc">'.$content.'</div>
    		</div>	
    		';
    }	
    add_shortcode('courselist','aboutcourse');	
    /* Playing */
    
    // remove excerpt more
    function new_excerpt_more( $more ) {
    	return '... ';
    }
    add_filter('excerpt_more', 'new_excerpt_more');
    
    // get post categories function
    function getPostCategories(){
    	$categories = get_the_category();
    	$catOut = '';
    	$separator = ', ';
    	$catOutput = '';
    	if($categories){
    		foreach($categories as $category) {
    			$catOutput .= '<a href="'.get_category_link( $category->term_id ).'" title="' . esc_attr( sprintf( __( "View all posts in %s", 'skt-befit' ), $category->name ) ) . '">'.$category->cat_name.'</a>'.$separator;
    		}
    		$catOut = 'Categories: '.trim($catOutput, $separator);
    	}
    	return $catOut;
    }
    
    // replace last occurance of a string.
    function str_lreplace($search, $replace, $subject){
    	$pos = strrpos($subject, $search);
    	if($pos !== false){
    		$subject = substr_replace($subject, $replace, $pos, strlen($search));
    	}
    	return $subject;
    }
    
    function pricing_table_shortcode_func( $atts, $content = null ) {
       extract( shortcode_atts( array(
    		'columns' => '4',
    	), $atts ) );
    	$ptbl = '<div class="pricing_table pcol'.$columns.'">'.do_shortcode( str_replace(array('<br />','\t','\n','\r','\0'.'\x0B'), array('','','','','',''), $content) ) .'<div class="clear"></div></div>';
    	return $ptbl;
    }
    add_shortcode( 'pricing_table', 'pricing_table_shortcode_func' );
    
    function price_column_func( $atts, $content = null ) {
       extract( shortcode_atts( array(
    		'highlight' => '',
    		'bgcolor' => '',
    	), $atts ) );
    	$pcol = '<div class="price_col '.( (strtolower($highlight) == 'yes') ? 'highlight' : '' ).'" '.( ($bgcolor!='') ? 'style="background-color:'.$bgcolor.' !important;"' : '' ) .'>'.do_shortcode( $content ) .'</div>';
        return $pcol;
    }
    add_shortcode( 'price_column', 'price_column_func' );
    
    function price_column_header_func( $atts, $content = null ) {
    	$pheader = '<div class="th">'.strip_tags($content).'</div>';
        return $pheader;
    }
    add_shortcode( 'price_header', 'price_column_header_func' );
    
    function price_column_footer_func( $atts, $content = null ) {
       extract( shortcode_atts( array(
    		'link' => '#',
    	), $atts ) );
    	$pfooter = '<div class="tf"><a href="'.$link.'">'.strip_tags($content).'</a></div>';
        return $pfooter;
    }
    add_shortcode( 'price_footer', 'price_column_footer_func' );
    
    function price_row_footer_func( $atts, $content = null ) {
    	$prow = '<div class="td">'.$content.'</div>';
        return $prow;
    }
    add_shortcode( 'price_row', 'price_row_footer_func' );
    
    function readmore_func( $atts) {
    	extract(shortcode_atts(array(	
    	'button'		=> '',	
    	'links'		=> '',
    	'align'		=> '',						
    	), $atts));
    	$rrow = '<div class="view-all-btn" style="text-align:'.$align.'"><a href="'.$links.'">'.$button.'</a></div>';
        return $rrow;
    }
    add_shortcode( 'readmore-link', 'readmore_func' );
    
    // custom post type for Testimonials
    function my_custom_post_testimonials() {
    	$labels = array(
    		'name'               => __( 'Testimonials','skt-befit'),
    		'singular_name'      => __( 'Testimonials','skt-befit'),
    		'add_new'            => __( 'Add Testimonials','skt-befit'),
    		'add_new_item'       => __( 'Add New Testimonial','skt-befit'),
    		'edit_item'          => __( 'Edit Testimonial','skt-befit'),
    		'new_item'           => __( 'New Testimonial','skt-befit'),
    		'all_items'          => __( 'All Testimonials','skt-befit'),
    		'view_item'          => __( 'View Testimonial','skt-befit'),
    		'search_items'       => __( 'Search Testimonial','skt-befit'),
    		'not_found'          => __( 'No Testimonial found','skt-befit'),
    		'not_found_in_trash' => __( 'No Testimonial found in the Trash','skt-befit'), 
    		'parent_item_colon'  => '',
    		'menu_name'          => 'Testimonials'
    	);
    	$args = array(
    		'labels'        => $labels,
    		'description'   => 'Manage Testimonials',
    		'public'        => true,
    		'menu_icon'		=> 'dashicons-format-quote',
    		'menu_position' => null,
    		'supports'      => array( 'title', 'editor', 'thumbnail'),
    		'has_archive'   => true,
    	);
    	register_post_type( 'testimonials', $args );	
    }
    add_action( 'init', 'my_custom_post_testimonials' );
    
    // add meta box to testimonials
    add_action( 'admin_init', 'my_testimonial_admin_function' );
    function my_testimonial_admin_function() {
        add_meta_box( 'testimonial_meta_box',
            'Testimonial Info',
            'display_testimonial_meta_box',
            'testimonials', 'normal', 'high'
        );
    }
    // add meta box form to doctor
    function display_testimonial_meta_box( $testimonial ) {
        // Retrieve current name of the Director and Movie Rating based on review ID
    	$companyname = esc_html( get_post_meta( $testimonial->ID, 'companyname', true ) );  
        $possition = esc_html( get_post_meta( $testimonial->ID, 'possition', true ) ); 
    	
        ?>
        <table width="100%">
            <tr>
                <td width="20%">Company Name </td>
                <td width="80%"><input size="80" type="text" name="companyname" value="<?php echo $companyname; ?>" /></td>
            </tr> 
            <tr>
                <td width="20%">Designation </td>
                <td width="80%"><input size="80" type="text" name="possition" value="<?php echo $possition; ?>" /></td>
            </tr>       
        </table>
        <?php    
    }
    // save testimonial meta box form data
    add_action( 'save_post', 'add_testimonial_fields_function', 10, 2 );
    function add_testimonial_fields_function( $testimonial_id, $testimonial ) {
        // Check post type for testimonials
        if ( $testimonial->post_type == 'testimonials' ) {
            // Store data in post meta table if present in post data
    		if ( isset($_POST['companyname']) ) {
                update_post_meta( $testimonial_id, 'companyname', $_POST['companyname'] );
            } 
            if ( isset($_POST['possition']) ) {
                update_post_meta( $testimonial_id, 'possition', $_POST['possition'] );
            }       
        }
    }
    
    //Testimonials function
    function testimonials_output_func( $atts ){
    	$testimonialoutput = '<div id="testimonials"><div class="quotes">
                <ul>';
    	wp_reset_query();
    	query_posts('post_type=testimonials');
    	if ( have_posts() ) :
    		while ( have_posts() ) : the_post();
    		$companyname = esc_html( get_post_meta( get_the_ID(), 'companyname', true ) );
    		$possition = esc_html( get_post_meta( get_the_ID(), 'possition', true ) );
    			$testimonialoutput .= '
      			 <li>			 	
    				<div class="testimonialcontentbox">
    				  '.befit_content(60).'				  
    				</div>	
    				<div class="tm_thumb">'.get_the_post_thumbnail( get_the_ID(), array(70,70) ).'</div>
    				<h6> '.get_the_title().'</h6>
    				<span>'.$companyname.', <cite>'.$possition.'</cite></span>
                  </li>
    			';
    		endwhile;
    		 $testimonialoutput .= '</ul></div></div>';
    	else:
    	  $testimonialoutput = '<div id="testimonials">
              <div class="quotes">
                <ul>
                  <li>                 
                      <div class="testimonialcontentbox">
    				   <p>Aliquam et varius orci, ut ornare justo. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque augue metus, blandit vel nibh sed, sollicitudin placerat quam. Quisque id scelerisque nibh. Phasellus in orci et felis tristique finibus non quis erat. Quisque nec congue nunc, sagittis aliquet orci. Quisque pulvinar feugiat sodales. Nam fermentum tempus odio sed euismod Quisque pulvinar feugiat sodales. Nam fermentum tempus odio sed euismod.</p>                   
    				  </div> 
    				  <div class="tm_thumb"><img src="'.get_template_directory_uri()."/images/testimonial.jpg".'" alt="" /></div> 
    				  <h6>Eficitur Sodale</h6>
    				  <span>Some Company, <cite>CEO</cite></span>			              
                  </li>
    			  
                  <li>                 
                      <div class="testimonialcontentbox">
    				   <p>Aliquam et varius orci, ut ornare justo. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque augue metus, blandit vel nibh sed, sollicitudin placerat quam. Quisque id scelerisque nibh. Phasellus in orci et felis tristique finibus non quis erat. Quisque nec congue nunc, sagittis aliquet orci. Quisque pulvinar feugiat sodales. Nam fermentum tempus odio sed euismod Quisque pulvinar feugiat sodales. Nam fermentum tempus odio sed euismod.</p>                   		  
    				  </div> 
    				  <div class="tm_thumb"><img src="'.get_template_directory_uri()."/images/testimonial.jpg".'" alt="" /></div> 
    				  <h6>Christopher Hitchens </h6>
    				  <span>Some Company, <cite>Manager</cite></span>	          
                  </li>
    			               
                </ul>         
        </div>  
      </div>
    	   ';			
    	  endif;  
    	wp_reset_query();
    	$testimonialoutput .= '</div>';
    	
    	return $testimonialoutput;
    }
    add_shortcode( 'testimonials', 'testimonials_output_func' );
    
    function latestposts_func( $atts ) {
       extract( shortcode_atts( array(
    		'col' => 4,
    	), $atts ) );
    
    	$lbposts = '<div class="latest_posts">';
    	$args = array( 'posts_per_page' => $col, 'post__not_in' => get_option('sticky_posts'), 'orderby' => 'date', 'order' => 'desc' );
    	query_posts( $args );
    	$n = 0;
    	if ( have_posts() ) {
    		while ( have_posts() ) { 
    			$n++;
    			the_post();
    			if( $col == 1 ){
    				$lbposts .= '<div class="full_width BlogPost';
    			}elseif( $col == 2 ){
    				$lbposts .= '<div class="one_half BlogPost';
    			}elseif( $col == 3 ){
    				$lbposts .= '<div class="one_third BlogPost';
    			}elseif( $col == 4 ){
    				$lbposts .= '<div class="one_fourth BlogPost';
    			}elseif( $col == 5 ){
    				$lbposts .= '<div class="one_fifth BlogPost';
    			}
    			if( $n == $col ) {
    				$lbposts .= ' last_column">';
    			} else {
    				$lbposts .= '">';
    			}
    			$lbposts .= '<a href="'.get_permalink().'" title="'.get_the_title().'">'.( (get_the_post_thumbnail( get_the_ID(), 'thumbnail') != '') ? get_the_post_thumbnail( get_the_ID(), 'full') : '<img src="'.get_template_directory_uri().'/images/thumb_07.jpg" />' ).'</a>
    				<h2><a href="'.get_permalink().'" title="'.get_the_title().'">'.get_the_title().'</a></h2>
    				<div class="clear"></div>
    				
    				<div class="postauthor">'.get_the_author().'</div>
    				<div class="postdate">'.get_the_date('F j, Y').'</div>
    				
    				<div class="clear"></div>
    				'.befit_content(36).'
    				<div class="clear"></div>
    				<a class="news-more" href="'.get_permalink().'">Read More</a> 
    				</div>';
    		}
    	}else{
    		$lbposts .= '<p>Sorry! There are no latest posts.</p>';
    	}
    	wp_reset_query();
    	$lbposts .= '<div class="clear"></div></div>';
        return $lbposts;
    }
    add_shortcode( 'latest-posts', 'latestposts_func' );
    
    /* Playing */
    /*Latest news Function*/
    function home_latest_news( $atts ){
       extract( shortcode_atts( array(
    		'show' => 3,
    	), $atts ) );
    	$frp = '';
    	wp_reset_query();
    	$n = 0;
    	query_posts(  array( 'posts_per_page'=>$show, 'post__not_in' => get_option('sticky_posts') )  );
    	if ( have_posts() ) :
    		while ( have_posts() ) : the_post();
    			$n++;
    			if( $n%2==0 ) 
    			$nomgn = 'last';
    			else
    			$nomgn = ' ';
    			if ( has_post_thumbnail()) {
    				$large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'thumbnail');
    				$imgUrl = $large_image_url[0];
    			}else{
    				$imgUrl = get_template_directory_uri().'/images/img_404.png';
    			} 
    			
    			$frp .= '<div class="news-post '.$nomgn.'">
    							 <a href="'.get_the_permalink().'"><img src="'.$imgUrl.'" alt="" /></a>						 
    							 <a href="'.get_the_permalink().'"><h6>'.get_the_title().'</h6></a>		
    							 <span>Posted by <a>'.get_the_author().'</a> / '. get_comments_number() .' <a>Comments</a></span>						
    							 <p>'.skt_befit_string_limit_words(get_the_excerpt(),43).'</p>							
    							<div class="clear"></div>
                            </div>';		
    		endwhile;
    	endif;
    	wp_reset_query();
    	$frp .= '<div class="clear"></div>';
    	
    	return $frp;
    }
    add_shortcode( 'latest-news', 'home_latest_news' );
    /* Playing */
    
    /*Latest news Function*/
    function footer_recent_posts_func( $atts ){
       extract( shortcode_atts( array(
    		'show' => 4,
    	), $atts ) );
    	$frp = '';
    	wp_reset_query();
    	$n = 0;
    	query_posts(  array( 'posts_per_page'=>$show, 'post__not_in' => get_option('sticky_posts') )  );
    	if ( have_posts() ) :
    		while ( have_posts() ) : the_post();
    			$n++;
    			if( $n%2==0 ) 
    			$nomgn = 'last';
    			else
    			$nomgn = ' ';
    			if ( has_post_thumbnail()) {
    				$large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'thumbnail');
    				$imgUrl = $large_image_url[0];
    			}else{
    				$imgUrl = get_template_directory_uri().'/images/img_404.png';
    			} 
    			
    			$frp .= '<div class="recent-post '.$nomgn.'">
    							 <a href="'.get_the_permalink().'"><img src="'.$imgUrl.'" alt="" /></a>						 
    							 <a href="'.get_the_permalink().'"><h6>'.get_the_title().'</h6></a>								
    							 <p>'.skt_befit_string_limit_words(get_the_excerpt(),8).'</p>							
    							<div class="clear"></div>
                            </div>';		
    		endwhile;
    	endif;
    	wp_reset_query();
    	$frp .= '<div class="clear"></div>';
    	
    	return $frp;
    }
    add_shortcode( 'footer-posts', 'footer_recent_posts_func' );
    
    //custom post type for Our Team
    function my_custom_post_team() {
    	$labels = array(
    		'name'               => __( 'Our Team', 'skt-befit' ),
    		'singular_name'      => __( 'Our Team', 'skt-befit' ),
    		'add_new'            => __( 'Add New', 'skt-befit' ),
    		'add_new_item'       => __( 'Add New Team Member', 'skt-befit' ),
    		'edit_item'          => __( 'Edit Team Member', 'skt-befit' ),
    		'new_item'           => __( 'New Member', 'skt-befit' ),
    		'all_items'          => __( 'All Members', 'skt-befit' ),
    		'view_item'          => __( 'View Members', 'skt-befit' ),
    		'search_items'       => __( 'Search Team Members', 'skt-befit' ),
    		'not_found'          => __( 'No Team members found', 'skt-befit' ),
    		'not_found_in_trash' => __( 'No Team members found in the Trash', 'skt-befit' ), 
    		'parent_item_colon'  => '',
    		'menu_name'          => 'Our Team'
    	);
    	$args = array(
    		'labels'        => $labels,
    		'description'   => 'Manage Team',
    		'public'        => true,
    		'menu_position' => null,
    		'menu_icon'		=> 'dashicons-groups',
    		'supports'      => array( 'title', 'editor', 'thumbnail' ),
    		'rewrite' => array('slug' => 'our-team'),
    		'has_archive'   => true,
    	);
    	register_post_type( 'team', $args );
    	flush_rewrite_rules();
    }
    add_action( 'init', 'my_custom_post_team' );
    
    // add meta box to team
    add_action( 'admin_init', 'my_team_admin_function' );
    function my_team_admin_function() {
        add_meta_box( 'team_meta_box',
            'Member Info',
            'display_team_meta_box',
            'team', 'normal', 'high'
        );
    }
    // add meta box form to team
    function display_team_meta_box( $team ) {
        // Retrieve current name of the Director and Movie Rating based on review ID
        $designation = esc_html( get_post_meta( $team->ID, 'designation', true ) );
        $facebook = get_post_meta( $team->ID, 'facebook', true );
    	$facebooklink = esc_url( get_post_meta( $team->ID, 'facebooklink', true ) );
        $twitter = get_post_meta( $team->ID, 'twitter', true );
    	$twitterlink = esc_url( get_post_meta( $team->ID, 'twitterlink', true ) );
        $linkedin = get_post_meta( $team->ID, 'linkedin', true );
    	$linkedinlink = esc_url( get_post_meta( $team->ID, 'linkedinlink', true ) );
    	$pint = get_post_meta( $team->ID, 'google', true );
    	$googlelink = esc_url( get_post_meta( $team->ID, 'googlelink', true ) );
        $dribbble = get_post_meta( $team->ID, 'dribbble', true );
    	$dribbblelink = get_post_meta( $team->ID, 'dribbblelink', true );
        ?>
        <table width="100%">
            <tr>
                <td width="20%">Designation </td>
                <td width="80%"><input type="text" name="designation" value="<?php echo $designation; ?>" /></td>
            </tr>
            <tr>
                <td width="20%">Social link 1</td>
                <td width="40%"><input type="text" name="facebook" value="<?php echo $facebook; ?>" /></td>
                <td width="40%"><input style="width:500px;" type="text" name="facebooklink" value="<?php echo $facebooklink; ?>" /></td>
            </tr>
            <tr>
                <td width="20%">Social Link 2</td>
                <td width="40%"><input type="text" name="twitter" value="<?php echo $twitter; ?>" /></td>
                <td width="40%"><input style="width:500px;" type="text" name="twitterlink" value="<?php echo $twitterlink; ?>" /></td>
            </tr>
            <tr>
                <td width="20%">Social Link 3</td>
                <td width="40%"><input type="text" name="linkedin" value="<?php echo $linkedin; ?>" /></td>
                <td width="40%"><input style="width:500px;" type="text" name="linkedinlink" value="<?php echo $linkedinlink; ?>" /></td>
            </tr>
            <tr>
                <td width="20%">Social Link 4</td>
                <td width="40%"><input type="text" name="dribbble" value="<?php echo $dribbble; ?>" /></td>
                <td width="40%"><input style="width:500px;" type="text" name="dribbblelink" value="<?php echo $dribbblelink; ?>" /></td>
            </tr>
            <tr>
                <td width="20%">Social Link 5</td>
                <td width="40%"><input type="text" name="google" value="<?php echo $pint; ?>" /></td>
                <td width="40%"><input style="width:500px;" type="text" name="googlelink" value="<?php echo $googlelink; ?>" /></td>
            </tr>
            <tr>
            	<td width="100%" colspan="3"><label style="font-size:12px;"><strong>Note:</strong> Icon name should be in lowercase without space. More social icons can be found at: http://fortawesome.github.io/Font-Awesome/icons/</label> </td>
            </tr>
        </table>
        <?php    
    }
    // save team meta box form data
    add_action( 'save_post', 'add_team_fields_function', 10, 2 );
    function add_team_fields_function( $team_id, $team ) {
        // Check post type for testimonials
        if ( $team->post_type == 'team' ) {
            // Store data in post meta table if present in post data
            if ( isset($_POST['designation']) ) {
                update_post_meta( $team_id, 'designation', $_POST['designation'] );
            }
            if ( isset($_POST['facebook']) ) {
                update_post_meta( $team_id, 'facebook', $_POST['facebook'] );
            }
    		if ( isset($_POST['facebooklink']) ) {
                update_post_meta( $team_id, 'facebooklink', $_POST['facebooklink'] );
            }
            if ( isset($_POST['twitter']) ) {
                update_post_meta( $team_id, 'twitter', $_POST['twitter'] );
            }
    		if ( isset($_POST['twitterlink']) ) {
                update_post_meta( $team_id, 'twitterlink', $_POST['twitterlink'] );
            }
            if ( isset($_POST['linkedin']) ) {
                update_post_meta( $team_id, 'linkedin', $_POST['linkedin'] );
            }
    		if ( isset($_POST['linkedinlink']) ) {
                update_post_meta( $team_id, 'linkedinlink', $_POST['linkedinlink'] );
            }
            if ( isset($_POST['dribbble']) ) {
                update_post_meta( $team_id, 'dribbble', $_POST['dribbble'] );
            }
    		if ( isset($_POST['dribbblelink']) ) {
                update_post_meta( $team_id, 'dribbblelink', $_POST['dribbblelink'] );
            }
    		if ( isset($_POST['google']) ) {
                update_post_meta( $team_id, 'google', $_POST['google'] );
            }
    		if ( isset($_POST['googlelink']) ) {
                update_post_meta( $team_id, 'googlelink', $_POST['googlelink'] );
            }
        }
    }
    
    function ourteamposts_func( $atts ) {
       extract( shortcode_atts( array(
    		'col' => '',
    	), $atts ) );
    	  extract( shortcode_atts( array( 'show' => '',), $atts ) ); $postoutput = ''; wp_reset_query();
    	$bposts = '<div class="section-teammember">';
    	$args = array( 'post_type' => 'team', 'posts_per_page' => $show, 'post__not_in' => get_option('sticky_posts'), 'orderby' => 'date', 'order' => 'desc' );
    	query_posts( $args );
    	$n = 0;
    	if ( have_posts() ) {
    		while ( have_posts() ) { 
    			the_post();
    			$n++; if( $n%4 == 0 ) $nomargn = ' last'; else $nomargn = '';
    			$designation = esc_html( get_post_meta( get_the_ID(), 'designation', true ) );
    			$facebook = get_post_meta( get_the_ID(), 'facebook', true );
    			$facebooklink = get_post_meta( get_the_ID(), 'facebooklink', true );
    			$twitter = get_post_meta( get_the_ID(), 'twitter', true );
    			$twitterlink = get_post_meta( get_the_ID(), 'twitterlink', true );
    			$linkedin = get_post_meta( get_the_ID(), 'linkedin', true );
    			$linkedinlink = get_post_meta( get_the_ID(), 'linkedinlink', true );
    			$dribbble = get_post_meta( get_the_ID(), 'dribbble', true );
    			$dribbblelink = get_post_meta( get_the_ID(), 'dribbblelink', true );
    			$pint = get_post_meta( get_the_ID(), 'google', true );
    			$googlelink = get_post_meta( get_the_ID(), 'googlelink', true );
    			 
    				$bposts .= '<div class="teammember-list'.$nomargn.'">';
    			$bposts .= '<a href="'.get_permalink().'" title="'.get_the_title().'">'.get_the_post_thumbnail( get_the_ID(), array(150,150) ).'</a>
    				<h5>'.get_the_title().'</h5>
    				<div class="member-desination">'.$designation.'</div>';
    			$bposts .= '<div class="member-social-icon">';
    								if( $facebook != '' ){
    									$bposts .= '<a href="'.$facebooklink.'" title="'.$facebook.'" target="_blank"><i class="fa fa-'.$facebook.' fa-lg"></i></a>';
    								}
    								if( $twitter != '' ){
    									$bposts .= '<a href="'.$twitterlink.'" title="'.$twitter.'" target="_blank"><i class="fa fa-'.$twitter.' fa-lg"></i></a>';
    								}
    								if( $linkedin != '' ){
    									$bposts .= '<a href="'.$linkedinlink.'" title="'.$linkedin.'" target="_blank"><i class="fa fa-'.$linkedin.' fa-lg"></i></a>';
    								}
    								if( $dribbble != '' ){
    									$bposts .= '<a href="'.$dribbblelink.'" title="'.$dribbble.'" target="_blank"><i class="fa fa-'.$dribbble.' fa-lg"></i></a>';
    								}
    								if( $pint != '' ){
    									$bposts .= '<a href="'.$googlelink.'" title="'.$pint.'" target="_blank"><i class="fa fa-'.$pint.' fa-lg"></i></a><div class="clear"></div>';
    								}
    				$bposts .= '</div>';
    			$bposts .= '</div>';
    		}
    	}else{
    		$bposts .= 'There are no found team member';
    	}
    	wp_reset_query();
    	$bposts .= '<div class="clear"></div></div>';
        return $bposts;
    }
    add_shortcode( 'ourteam', 'ourteamposts_func' );
    
    // shortcode for custom width
    function skt_befit_custom_width_func($atts, $content = null){
    		extract(shortcode_atts(array(
    			'width'		=> 'width',						
    			'class'		=> null
    		), $atts));
    		return '<div class="'.$class.'" style="width:'.$width.';">'.do_shortcode($content).'</div>';		
    }
    
    add_shortcode('area','skt_befit_custom_width_func');
    
    // Social Icon Shortcodes
    
    function skt_befit_social_area($atts,$content = null){
      return '<div class="social-icons">'.do_shortcode($content).'</div>';
     }
    add_shortcode('social_area','skt_befit_social_area');
    
    function skt_befit_social($atts){
     extract(shortcode_atts(array(
      'icon' => '',
      'link' => ''
     ),$atts));
      return '<a href="'.$link.'" target="_blank" class="fa fa-'.$icon.' fa-1x" title="'.$icon.'"></a>';
     }
    add_shortcode('social','skt_befit_social');
    
    function contactform_func( $atts ) {
        $atts = shortcode_atts( array(
            'to_email' => get_bloginfo('admin_email'),
    		'title' => 'Contact enquiry - '.home_url( '/' ),
        ), $atts );
    
    	$cform = "<div class=\"main-form-area\" id=\"contactform_main\">";
    
    	$cerr = array();
    	if( isset($_POST['c_submit']) && $_POST['c_submit']=='Submit' ){
    		$name 			= trim( $_POST['c_name'] );
    		$email 			= trim( $_POST['c_email'] );
    		$phone 			= trim( $_POST['c_phone'] );
    		$comments 		= trim( $_POST['c_comments'] );
    		$captcha 		= trim( $_POST['c_captcha'] );
    		$captcha_cnf	= trim( $_POST['c_captcha_confirm'] );
    
    		if( !$name )
    			$cerr['name'] = 'Please enter your name.';
    		if( ! filter_var($email, FILTER_VALIDATE_EMAIL) ) 
    			$cerr['email'] = 'Please enter a valid email.';
    		if( !$phone )
    			$cerr['phone'] = 'Please enter your phone number.';
    		if( !$comments )
    			$cerr['comments'] = 'Please enter your message.';
    		if( !$captcha || (md5($captcha) != $captcha_cnf) )
    			$cerr['captcha'] = 'Please enter the correct answer.';
    
    		if( count($cerr) == 0 ){
    			$subject = $atts['title'];
    			$headers = "From: ".$name." <" . strip_tags($email) . ">\r\n";
    			$headers .= "MIME-Version: 1.0\r\n";
    			$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
    
    			$message = '<html><body>
    							<table>
    								<tr><td>Name: </td><td>'.$name.'</td></tr>
    								<tr><td>Email: </td><td>'.$email.'</td></tr>
    								<tr><td>Phone: </td><td>'.$phone.'</td></tr>
    								<tr><td>Message: </td><td>'.$comments.'</td></tr>
    							</table>
    						</body>
    					</html>';
    			mail( $atts['to_email'], $subject, $message, $headers);
    			$cform .= '<div class="success_msg">Thank you! A representative will get back to you very shortly.</div>';
    			unset( $name, $email, $phone, $comments, $captcha );
    		}else{
    			$cform .= '<div class="error_msg">';
    			$cform .= implode('<br />',$cerr);
    			$cform .= '</div>';
    		}
    	}
    
    	$capNum1 	= rand(1,4);
    	$capNum2 	= rand(1,5);
    	$capSum		= $capNum1 + $capNum2;
    	$sumStr		= $capNum1." + ".$capNum2 ." = ";
    
    	$cform .= "<form name=\"contactform\" action=\"#contactform_main\" method=\"post\">
    			<p><input type=\"text\" name=\"c_name\" value=\"". ( ( empty($name) == false ) ? $name : "" ) ."\" placeholder=\"Name\" /></p>
    			<p><input type=\"email\" name=\"c_email\" value=\"". ( ( empty($email) == false ) ? $email : "" ) ."\" placeholder=\"Email\" /></p><div class=\"clear\"></div>
    			<p><input type=\"tel\" name=\"c_phone\" value=\"". ( ( empty($phone) == false ) ? $phone : "" ) ."\" placeholder=\"Phone\" /></p>
    			<p><textarea name=\"c_comments\" placeholder=\"Message\">". ( ( empty($comments) == false ) ? $comments : "" ) ."</textarea></p><div class=\"clear\"></div>";
    	$cform .= "<p><span class=\"capcode\">$sumStr</span><input style=\"width:200px;\" type=\"text\" placeholder=\"Captcha\" value=\"". ( ( empty($captcha) == false ) ? $captcha : "" ) ."\" name=\"c_captcha\" /><input type=\"hidden\" name=\"c_captcha_confirm\" value=\"". md5($capSum)."\"></p><div class=\"clear\"></div>";
    	$cform .= "<p class=\"sub\"><input type=\"submit\" name=\"c_submit\" value=\"Submit\" class=\"search-submit\" /></p>
    		</form>
    	</div>";
    
        return $cform;
    }
    add_shortcode( 'contactform', 'contactform_func' );
    
    //custom post type for Our photogallery
    function my_custom_post_photogallery() {
    	$labels = array(
    		'name'               => __( 'Photo Gallery','skt-befit' ),
    		'singular_name'      => __( 'Photo Gallery','skt-befit' ),
    		'add_new'            => __( 'Add New','skt-befit' ),
    		'add_new_item'       => __( 'Add New Image','skt-befit' ),
    		'edit_item'          => __( 'Edit Image','skt-befit' ),
    		'new_item'           => __( 'New Image','skt-befit' ),
    		'all_items'          => __( 'All Images','skt-befit' ),
    		'view_item'          => __( 'View Image','skt-befit' ),
    		'search_items'       => __( 'Search Images','skt-befit' ),
    		'not_found'          => __( 'No images found','skt-befit' ),
    		'not_found_in_trash' => __( 'No images found in the Trash','skt-befit' ), 
    		'parent_item_colon'  => '',
    		'menu_name'          => 'Photo Gallery'
    	);
    	$args = array(
    		'labels'        => $labels,
    		'description'   => 'Manage Photo Gallery',
    		'public'        => true,
    		'menu_icon'		=> 'dashicons-format-image',
    		'menu_position' => null,
    		'supports'      => array( 'title', 'thumbnail' ),
    		'has_archive'   => true,
    	);
    	register_post_type( 'photogallery', $args );
    }
    add_action( 'init', 'my_custom_post_photogallery' );
    
    //  register gallery taxonomy
    register_taxonomy( "gallerycategory", 
    	array("photogallery"), 
    	array(
    		"hierarchical" => true, 
    		"label" => "Gallery Category", 
    		"singular_label" => "Photo Gallery", 
    		"rewrite" => true
    	)
    );
    
    add_action("manage_posts_custom_column",  "photogallery_custom_columns");
    add_filter("manage_edit-photogallery_columns", "photogallery_edit_columns");
    function photogallery_edit_columns($columns){
    	$columns = array(
    		"cb" => '<input type="checkbox" />',
    		"title" => "Gallery Title",
    		"pcategory" => "Gallery Category",
    		"view" => "Image",
    		"date" => "Date",
    	);
    	return $columns;
    }
    function photogallery_custom_columns($column){
    	global $post;
    	switch ($column) {
    		case "pcategory":
    			echo get_the_term_list($post->ID, 'gallerycategory', '', ', ','');
    		break;
    		case "view":
    			the_post_thumbnail('thumbnail');
    		break;
    		case "date":
    
    		break;
    	}
    }
    
    //[photogallery filter="false"]
    function photogallery_shortcode_func( $atts ) {
    	extract( shortcode_atts( array(
    		'show' => -1,
    		'filter' => 'true'
    	), $atts ) );
    	$pfStr = '';
    
    	$pfStr .= '<div class="photobooth">';
    	if( $filter == 'true' ){
    		$pfStr .= '<div class="filter-gallery"><ul class="clean" id="filter"><li class="current"><a href="javascript:void(0)">All</a></li>';
    		$categories = get_categories( array('taxonomy' => 'gallerycategory') );
    		foreach ($categories as $category) {
    			$pfStr .= '<li><a href="javascript:void(0)">'.$category->name.'</a></li>';
    		}
    		$pfStr .= '</ul></div>';
    	}
    
    	$pfStr .= '<div class="gallery"><ul class="clean" id="portfolio">';
    	$j=0;
    	query_posts('post_type=photogallery&posts_per_page='.$show); 
    	if ( have_posts() ) : while ( have_posts() ) : the_post(); 
    	$j++;
    		$videoUrl = get_post_meta( get_the_ID(), 'video_file_url', true);
    		$imgSrc = wp_get_attachment_image_src( get_post_thumbnail_id(), array(370, 250));
    		$terms = wp_get_post_terms( get_the_ID(), 'gallerycategory', array("fields" => "all"));
    		$slugAr = array();
    		foreach( $terms as $tv ){
    			$slugAr[] = $tv->slug;
    		}
    		if ( $imgSrc[0]!='' ) {
    			$imgUrl = $imgSrc[0];
    		}else{
    			$imgUrl = get_template_directory_uri().'/images/img_404.png';
    		}
    		$pfStr .= '<li class="'.implode(' ', $slugAr).'" '.( ($j%3==0) ? 'style="margin-right:0"' : '' ).'>
                    <strong>'.get_the_title().'</strong>                
     <a href="'.( ($videoUrl) ? $videoUrl : $imgSrc[0] ).'" rel="prettyPhoto[pp_gal]"><img src="'.$imgSrc[0].'"/></a>
                </li>';
    		unset( $slugAr );
    	endwhile; else: 
    		$pfStr .= '<p>Sorry, photo gallery is empty.</p>';
    	endif; 
    	wp_reset_query();
    	$pfStr .= '</ul></div>';
    	$pfStr .= '<div class="clear"></div></div>';
    	return $pfStr;
    }
    add_shortcode( 'photogallery', 'photogallery_shortcode_func' );
    
    /*toggle function*/
    function toggle_func( $atts, $content = null ) {
    	extract( shortcode_atts( array(
    		'title' => 'Click here to toggle content',
    	), $atts ) );
    	$tog_content = "<div class=\"toggle_holder\"><h3 class=\"slide_toggle\"><a href=\"#\">{$title}</a></h3>
    					<div class=\"slide_toggle_content\">".get_the_content_format( $content )."</div></div>";
    
    	return $tog_content;
    }
    add_shortcode( 'toggle_content', 'toggle_func' );
    
    function tabs_func( $atts, $content = null ) {
    	$tabs = '<div class="tabs-wrapper"><ul class="tabs">'.do_shortcode($content).'</ul></div>';
    	return $tabs;
    }
    add_shortcode( 'tabs', 'tabs_func' );
    
    function tab_func( $atts, $content = null ) {
    	extract( shortcode_atts( array(
    		'title' => 'Tab Title',
    	), $atts ) );
    	$rand = rand(100,999);
    	$tab = '<li><a rel="tab'.$rand.'" href="javascript:void(0)"><span>'.$title.'</span></a><div id="tab'.$rand.'" class="tab-content">'.get_the_content_format($content).'</div></li>';
    	return $tab;
    }
    add_shortcode( 'tab', 'tab_func' );
    
    function gradient_button_func( $atts ) {
    	extract( shortcode_atts( array(
    		'size' => 'small',
    		'bg_color' => '#636b74',
    		'color' => '#fff',
    		'text' => 'More',
    		'title' => 'Click',
    		'url' => '',
    		'position' => 'center',
    	), $atts ) );
    	$btn  = "<div class=\"clear\"></div>";
    	$btn .= "<a href=\"{$url}\" "; 
    	$btn .= ($title != "") ? " title=\"{$title}\" " : "";
    	$btn .= "class=\"grad-btn-{$size} btn-align-{$position}\" style=\"background-color:{$bg_color}; color:{$color}\">";
    	$btn .= "{$text}</a>";
    	$btn  .= "<div class=\"clear\"></div>";
    
    	return $btn;
    }
    add_shortcode( 'gradient_button', 'gradient_button_func' );
    
    function simple_button_func( $atts ) {
    	extract( shortcode_atts( array(
    		'size' => 'small',
    		'bg_color' => '#636b74',
    		'color' => '#fff',
    		'text' => 'More',
    		'title' => 'Click',
    		'url' => '',
    		'position' => 'left',
    	), $atts ) );
    	$btn  = "<div class=\"clear\"></div>";
    	$btn .= "<a href=\"{$url}\" ";  
    	$btn .= ($title != "") ? " title=\"{$title}\" " : "";
    	$btn .= "class=\"simple-btn-{$size} btn-align-{$position}\" style=\"background-color:{$bg_color}; color:{$color}\">";
    	$btn .= "{$text}</a>";
    	$btn  .= "<div class=\"clear\"></div>";
    
    	return $btn;
    }
    add_shortcode( 'simple_button', 'simple_button_func' );
    
    function round_button_func( $atts ) {
    	extract( shortcode_atts( array(
    		'style' => 'dark',
    		'text' => 'More',
    		'title' => 'Click',
    		'url' => '',
    		'position' => 'left',
    	), $atts ) );
    	$btn  = "<div class=\"clear\"></div>";
    	$btn .= "<a href=\"{$url}\" ";
    	$btn .= ($title != "") ? " title=\"{$title}\" " : ""; 
    	$btn .= "class=\"round-btn-{$style} round-btn btn-align-{$position}\">";
    	$btn .= "<span>{$text}</span></a>";
    	$btn  .= "<div class=\"clear\"></div>";
    
    	return $btn;
    }
    add_shortcode( 'round_button', 'round_button_func' );
    
    function msg_box_func( $atts, $content = null ) {
    	extract( shortcode_atts( array(
    		'type' => 'info',
    		'bg_color' => '#f6f6f6',
    		'color' => '#333',
    		'start_color' => "#fff",
    		'end_color' => "#eee",
    		'border' => "#ccc",
    		'align' => '',
    		'width' => '100%',
    	), $atts ) );
    	$msg = '';
    
    	if($type == 'success'){
    		$msg  = '<div class="msg-success"><div class="msg-box-icon">';
    		$msg .= ($content == '') ? "This is a sample of the 'success' style message box shortcode. To use this style use the following shortcode" : $content;
    		$msg .= '</div></div>';
    	}elseif($type == 'error'){
    		$msg  = '<div class="msg-error"><div class="msg-box-icon">';
    		$msg .= ($content == '') ? "This is a sample of the 'error' style message box shortcode. To use this style use the following shortcode." : $content;
    		$msg .= '</div></div>';
    	}elseif($type == 'warning'){
    		$msg  = '<div class="msg-warning"><div class="msg-box-icon">';
    		$msg .= ($content == '') ? "This is a sample of the 'warning' style message box shortcode. To use this style use the following shortcode." : $content;
    		$msg .= '</div></div>';
    	}elseif($type == 'info'){
    		$msg  = '<div class="msg-info"><div class="msg-box-icon">';
    		$msg .= ($content == '') ? "This is a sample of the 'info' style message box shortcode. To use this style use the following shortcode." : $content;
    		$msg .= '</div></div>';
    	}elseif($type == 'about'){
    		$msg  = '<div class="msg-about"><div class="msg-box-icon">';
    		$msg .= ($content == '') ? "This is a sample of the 'about' style message box shortcode. To use this style use the following shortcode." : $content;
    		$msg .= '</div></div>';
    	}elseif($type == 'custom'){
    		$msg  = "<div style=\"width:{$width};\" class=\"msg-align-{$align}\"><div class=\"msg-custom\" style=\"background-color:{$end_color}; background: -moz-linear-gradient(center top , {$start_color}, {$end_color}); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from({$start_color}), to({$end_color})); background: -webkit-linear-gradient(top, {$start_color}, {$end_color}); background: -ms-linear-gradient(top, {$start_color}, {$end_color}); background: -o-linear-gradient(top, {$start_color}, {$end_color}); border:1px {$border} solid; color:{$color};\">";
    		$msg .= ($content == '') ? "This is a sample of the 'simple' style message box shortcode." : $content;
    		$msg .= '</div></div><div class="clear"></div>';
    	}elseif($type == 'simple'){
    		$msg  = "<div class=\"msg-simple\" style=\"background-color:{$bg_color}; color:{$color};\">";
    		$msg .= ($content == '') ? "This is a sample of the 'simple' style message box shortcode." : $content;
    		$msg .= '</div>';
    	}
    	return $msg;
    }
    add_shortcode( 'message', 'msg_box_func' );
    
    function unorderedlist_func( $atts, $content = null ) {
    	extract( shortcode_atts( array(
    		'style' => 'list-1',
    	), $atts ) );
    	$content = wpautop(trim($content));
    	$ulist = '<ul class="'.$style.'">'.$content.'</ul>';
    	return $ulist;
    }
    add_shortcode( 'unordered_list', 'unorderedlist_func' );
    
    function heading_title_func( $atts, $content = null ) {
       extract( shortcode_atts( array(	
    	'underline'	=> '',
    	'align'		=> ''	
    	), $atts ) ); 
    	$hdntitle = '<h2 class="heading '.( (strtolower($underline) == 'yes') ? 'underline' : '' ).'" '.( ($align!='') ? 'style="text-align:'.$align.' !important;"' : '' ) .'>'.do_shortcode( $content ) .'</h2>'; 
        return $hdntitle;
    }
    add_shortcode( 'heading', 'heading_title_func' );
    
    // add shortcode for skills
    function skt_befit_skills($skt_skill_var){
    	extract( shortcode_atts(array(
    		'title' 	=> 'title',
    		'percent'	=> 'percent',
    		'bgcolor'	=> 'bgcolor',
    	), $skt_skill_var));
    	
    	return '<div class="skillbar clearfix " data-percent="'.$percent.'%">
    			<div class="skillbar-title"><span>'.$title.'</span></div>
    			<div class="skill-bg"><div class="skillbar-bar" style="background:'.$bgcolor.'"></div></div>
    			<div class="skill-bar-percent">'.$percent.'%</div>
    			</div>';
    }
    
    add_shortcode('skill','skt_befit_skills');
    
    /*clients function*/
    function skt_client_logos($atts, $content = null){
    	return '<div class="client_lists">'.do_shortcode($content).'</div>';
    	}
    add_shortcode('client_lists','skt_client_logos');
    
    function skt_client($atts){
    	extract(shortcode_atts(array(
    	'image'	=> '',
    	'link'	=> '#',
    	'clear'	=> ''
    	), $atts));
    	return '<div class="client '.$clear.'"><a href="'.$link.'" target="_blank"><img src="'.$image.'" /></a></div>';
    	}
    add_shortcode('client','skt_client');
    
    // [iconlist title="title" icon="icon"]
    function skt_listicon($skt_var){
    		extract( shortcode_atts(array(
    			'title' => 'title',
    			'link' => '',
    			'icon'  => get_template_directory_uri().'/images/facebook-icon.png',
    		), $skt_var));
    		
    		return '<div class="iconlistarea">
    			<ul>
    				<li><a target="_blank" href="'.$link.'"><img src="'.$icon.'" />'.$title.'</a></li>
    			</ul>
    		</div>';
    }
    add_shortcode('iconlist','skt_listicon');
    
    define('SKT_THEME_DOC','http://sktthemesdemo.net/documentation/skt-befit-doc/');

    Regards,
    Brad

    #24075
    Daniela MariaDaniela Maria
    Member
    • Topics: 2
    • Replies: 3
    • Total: 5
    Member since: February 13, 2016

    Hallo,
    here are my answers… you’re right, I was vague enough

    1 – home page: the pics of the slider cannot be customized — Not sure what its supposed to mean. You can go to appearance>theme options>homepage slider to remove existing images and upload and set up your own.

    Firt of all: this is not the first web site I make, so let’s skip the obvious. I know you have to face whatever question but it just isn’t the case. I changed the pics (see link below) but I cannot change their dimensions, or I was not able to. I’d love my images to be smaller in height

    2 – hp: the three column section doesn’t work in the pro version — Not sure how is that possible kindly show us your website URL.

    http://www.yogafilicudi.it
    I had a beautiful working 3col sect in the free preview

    3 – menu bar: submenues cannot be changed in the theme options – one should start tweaking with css (but then, find me a good reason to pay for the theme)
    Appearance>menus should take care of menus and submenus.

    That’s obvious, but what if I want to change the font case, the line height, the background and so on, of the sub menu?

    4 – the page where i put the shortcode for the team does not load it unless one touches the scroll bar (!) — You can remove animation as given in steps here: https://www.sktthemes.org/forums/topic/home-page-responsive-display/

    ok, i’ll do this

    5 – the widgets seem all to take ages to up load and MY SERVER IS SUPER QUICK so don’t put the blame on it– Kindly show us your website where it takes ages to show up widgets.

    Regards,
    Shri

    #23990
    Sonal S SinhaSonal S Sinha
    Keymaster
    • Topics: 10
    • Replies: 6995
    • Total: 7005
    Member since: June 12, 2013

    Hi,

    Answers to your questions:

    1 – home page: the pics of the slider cannot be customized — Not sure what its supposed to mean. You can go to appearance>theme options>homepage slider to remove existing images and upload and set up your own.

    2 – hp: the three column section doesn’t work in the pro version — Not sure how is that possible kindly show us your website URL.

    3 – menu bar: submenues cannot be changed in the theme options – one should start tweaking with css (but then, find me a good reason to pay for the theme)
    Appearance>menus should take care of menus and submenus.

    4 – the page where i put the shortcode for the team does not load it unless one touches the scroll bar (!) — You can remove animation as given in steps here: https://www.sktthemes.org/forums/topic/home-page-responsive-display/

    5 – the widgets seem all to take ages to up load and MY SERVER IS SUPER QUICK so don’t put the blame on it– Kindly show us your website where it takes ages to show up widgets.

    Regards,
    Shri

    #23967
    MaureenMaureen
    Member
    • Topics: 0
    • Replies: 1
    • Total: 1
    Member since: February 23, 2016

    Have the pro version of skt black theme, I have no gallery template under templates and there is no portfolio shortcodes in shortcodes menu.
    regards
    Maureen

    #23913
    Cristian PascualCristian Pascual
    Member
    Member since: April 8, 2015

    Hi, I’ve changed the images of the service button, but the images won’t load. If I click just the link on the brower, they work just fine.

    This is the text I’ve used (with WMPL plugin):

    [wpml_language code=’en’][services title=”What” icon=”http://www.in-edit.org/public/Feed Dog/logo-anillo-Feed-Dog_100.png” link=”http://moritz.feeddog.org/the-festival/?lang=en” button_text=”Read More”]Moritz Feed Dog is the first Documentary Film Festival about Fashion, Culture & City in Spain. [/services][services title=”When” icon=”http://www.in-edit.org/public//Feed Dog/calendar.jpg” link=”http://moritz.feeddog.org/schedule/?lang=en” button_text=”Receive email”]On March 10th, 11th, 13th and 14th at Aribau Club Cinema, Barcelona. If you want us to inform you when the schedule is available, click here.[/services][services title=”Program” icon=”http://www.in-edit.org//public//Feed Dog/camarafilming.jpg” link=”http://moritz.feeddog.org/avanc-de-programacio-2016?lang=en” button_text=”Read More”]We have most of this years program confirmed. Sinopsis and trailers here.[/services][services title=”Extra Activities” icon=”http://moritz.feeddog.org/wp-content/uploads/2016/02/convocatoria.jpg” link=”http://moritz.feeddog.org/activities/?lang=en” button_text=”Read More”]Moritz Feed Dog will not only be about fashion documentaries. Check the first extra activities!.[/services][/wpml_language]

    #23911
    Daniela MariaDaniela Maria
    Member
    Member since: February 13, 2016

    Hi,
    here’s a list of things you should fix in order to sell a theme and be sure you’re going to sell another one later (joking… but realistic)

    1 – home page: the pics of the slider cannot be customized
    2 – hp: the three column section doesn’t work in the pro version
    3 – menu bar: submenues cannot be changed in the theme options – one should start tweaking with css (but then, find me a good reason to pay for the theme)
    4 – the page where i put the shortcode for the team does not load it unless one touches the scroll bar (!)
    5 – the widgets seem all to take ages to up load and MY SERVER IS SUPER QUICK so don’t put the blame on it
    thanks
    Daniela

    #23827
    DavidDavid
    Member
    Member since: February 22, 2016

    In my Theme Options (SKT Girlie), on the shortcodes tab, there is a shortcode for [testomonials], but I can;t find any documentation on how to use it. When I try use it, I get the message: There are not found “TESTIMONIALS”;

    #23762
    Dianne KalafDianne Kalaf
    Member
    Member since: September 8, 2015

    Hi I was wondering how to put my phone number in the header. I tried using the shortcode
    .header:after {
    content: “call us: 917-560-8273”;
    width: 195px;
    display: block;
    padding: 60px 50px;
    border-radius: 0 04px 5px;
    background: #000;
    font-size: 20px;
    text-align: right;
    color: #9bd671;
    position: absolute;
    top: 0;
    right: 50%;
    margin-right: -500px;
    }

    The problem is that when I look at the site on a mobile device it doesn’t look right. I know this is supposed to be a responsive theme so could you help me out with this? Thanks.
    bridgeandtunnelmail.com

    #23463
    LibertyLiberty
    Participant
    Member since: January 22, 2016

    I’m using the construction-pro theme. I put the shortcode [contactform to_email=”test@example.com” title=”Contact Form”] into a text widget in the main sidebar area but it does not work. I tried other shortcodes but no shortcodes work in a text widget.

    #23395
    Sonal S SinhaSonal S Sinha
    Moderator
    • Topics: 0
    • Replies: 31283
    • Total: 31283
    Member since: August 16, 2013

    Hi Javier,

    Kindly copy the contact form 7 shortcode and paste it to contact us page.

    Regards,
    Dave

    #23385
    ThayerThayer
    Participant
    • Topics: 2
    • Replies: 8
    • Total: 10
    Member since: January 14, 2016

    No, I have not done anything with shortcode.

    #23383
    Sonal S SinhaSonal S Sinha
    Keymaster
    • Topics: 10
    • Replies: 6995
    • Total: 7005
    Member since: June 12, 2013

    Somehow column code is messed here.

    In the first column code itself we see all the rest 3 are coming and not separately as should be the case.

    Did you place any div etc or html code with the shortcode?

    Regards,
    Shri

    #23340

    In reply to: contact forms

    Sonal S SinhaSonal S Sinha
    Moderator
    • Topics: 0
    • Replies: 31283
    • Total: 31283
    Member since: August 16, 2013

    Hi Nader,

    If you want to use contact form 7 then kindly install the plugin and use the shortcode given by contact form 7. You can paste the shortcode in the pages as well as widgets.

    Regards,
    Brad

    #23188

    Topic: Gallery

    in forum All Other Themes
    PeterPeter
    Member
    Member since: February 6, 2016

    Hi!

    I tried to create a photogallery and separate photos by different categories, but when I added the shortcode [portfolio-thumbnail cat=”category”] with ANY name in the category (or even without names), it shows up ALL the images that have any category. Can you please check this? The theme is SKT Full Width Pro.
    The website is “soubigell.com”

    I know this subject has been on the forum earlier but the solution is not shown.
    Thank you for your help.

Viewing 15 results - 1,711 through 1,725 (of 2,038 total)