Sonal S Sinha

Forum Replies Created

Viewing 15 posts - 29,851 through 29,865 (of 31,333 total)
  • Author
    Posts
  • in reply to: homepage boxes dont appear #24263
    Sonal S SinhaSonal S Sinha
    Moderator
    • Topics: 0
    • Replies: 31333
    • Total: 31333
    Member since: August 16, 2013

    Great.

    Regards,
    Dave

    in reply to: BeFit Layout problems across devices #24261
    Sonal S SinhaSonal S Sinha
    Moderator
    • Topics: 0
    • Replies: 31333
    • Total: 31333
    Member since: August 16, 2013

    Hi Dave,

    Login details not working.

    Regards,
    Brad

    in reply to: Home Page Slider Not Displaying Text #24260
    Sonal S SinhaSonal S Sinha
    Moderator
    • Topics: 0
    • Replies: 31333
    • Total: 31333
    Member since: August 16, 2013

    Hi Daniel,

    Remove default image and add your own image and save and publish.

    Regards,
    Brad

    in reply to: homepage boxes dont appear #24259
    Sonal S SinhaSonal S Sinha
    Moderator
    • Topics: 0
    • Replies: 31333
    • Total: 31333
    Member since: August 16, 2013

    Hi Lisa,

    Kindly go to Settings>>Reading>>Select Your latest posts.

    Regards,
    Dave

    in reply to: BeFit Layout problems across devices #24254
    Sonal S SinhaSonal S Sinha
    Moderator
    • Topics: 0
    • Replies: 31333
    • Total: 31333
    Member since: August 16, 2013

    Kindly send us your URL of the site and WordPress admin details via sktthemes.net/contact

    Please mention this forum URL while replying so that we understand what needs to be done.

    Regards,
    Brad

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

    Hi Colleen,

    Kindly go to Appereance>>Theme Option>>Basic Setting>>Custom CSS Box

    Add this code:

    .header .header-inner .nav ul li ul li a{text-align:center !important;}

    Regards,
    Brad

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

    Hi Peeter,

    Kindly send us your URL of the site and WordPress admin details via sktthemes.net/contact

    We will resolve the issue.

    Please mention this forum URL while replying so that we understand what needs to be done.

    Regards,
    Dave

    in reply to: Contact Form Access #24249
    Sonal S SinhaSonal S Sinha
    Moderator
    • Topics: 0
    • Replies: 31333
    • Total: 31333
    Member since: August 16, 2013

    Hi Kely,

    Kindly use plugin Contact Form 7. It has more features than our default contact form.

    Regards,
    Brad

    in reply to: Footer section is shaking #24248
    Sonal S SinhaSonal S Sinha
    Moderator
    • Topics: 0
    • Replies: 31333
    • Total: 31333
    Member since: August 16, 2013

    Hi Pradeep,

    Kindly send us your URL of the site and WordPress admin details via sktthemes.net/contact

    We will check and resolve the issue.

    Please mention this forum URL while replying so that we understand what needs to be done.

    Regards,
    Brad

    in reply to: BeFit Layout problems across devices #24246
    Sonal S SinhaSonal S Sinha
    Moderator
    • Topics: 0
    • Replies: 31333
    • Total: 31333
    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

    in reply to: Translation problems #24239
    Sonal S SinhaSonal S Sinha
    Moderator
    • Topics: 0
    • Replies: 31333
    • Total: 31333
    Member since: August 16, 2013

    Hi Julie,

    We will definitely solve this issue by tomorrow.

    Regards,
    Brad

    in reply to: Testimonials cuted #24238
    Sonal S SinhaSonal S Sinha
    Moderator
    • Topics: 0
    • Replies: 31333
    • Total: 31333
    Member since: August 16, 2013

    Hi Julie,

    Team member issue has been solved. Kindly check and confirm.

    Regards,
    Brad

    in reply to: MoversPackersPro – Editing the Search Page #24225
    Sonal S SinhaSonal S Sinha
    Moderator
    • Topics: 0
    • Replies: 31333
    • Total: 31333
    Member since: August 16, 2013

    Great.

    Regards,
    Dave

    in reply to: Need Help: Centering logo and footer div in responsive layout #24224
    Sonal S SinhaSonal S Sinha
    Moderator
    • Topics: 0
    • Replies: 31333
    • Total: 31333
    Member since: August 16, 2013

    Okay, Kindly send us your URL of the site and WordPress admin details via sktthemes.net/contact

    Please mention this forum URL while replying so that we understand what needs to be done.

    Regards,
    Dave

    in reply to: Naturo Pro Q's #24221
    Sonal S SinhaSonal S Sinha
    Moderator
    • Topics: 0
    • Replies: 31333
    • Total: 31333
    Member since: August 16, 2013

    Hi Rebecca,

    Kindly send us your URL of the site and WordPress admin details via sktthemes.net/contact

    We will check and resolve all issues.

    Please mention this forum URL while replying so that we understand what needs to be done.

    Regards,
    Dave

Viewing 15 posts - 29,851 through 29,865 (of 31,333 total)