Example #1
0
<?php

$title = $link = $size = $el_position = $width = $el_class = '';
extract(shortcode_atts(array('title' => '', 'link' => '', 'el_class' => '', 'animation' => ''), $atts));
$output = $animation_css = '';
if ($link == '') {
    return null;
}
if ($animation != '') {
    $animation_css = ' mk-animate-element ' . $animation . ' ';
}
global $wp_embed;
$embed = $wp_embed->run_shortcode('[embed width="1140" height="641"]' . $link . '[/embed]');
$output .= "\n\t" . '<div class="wpb_video_widget ' . $animation_css . $el_class . '">';
$output .= "\n\t\t" . '<div class="wpb_wrapper">';
if (!empty($title)) {
    $output .= '<h3 class="mk-shortcode mk-fancy-title pattern-style mk-shortcode-heading"><span>' . $title . '</span></h3>';
}
$output .= '<div class="video-container" ' . get_schema_markup('video') . '>' . $embed . '</div>';
$output .= "\n\t\t" . '</div>';
$output .= "\n\t" . '</div>';
echo $output;
Example #2
0
        $header_sticky_style_css = 'sticky-style-fixed';
    }
}
?>

<body <?php 
body_class(mk_get_body_class($post_id));
?>
 data-backText="<?php 
_e('Back', 'mk_framework');
?>
" data-vm-anim="<?php 
echo $mk_options['vertical_menu_anim'];
?>
" <?php 
echo get_schema_markup('body');
?>
data-adminbar="<?php 
echo is_admin_bar_showing();
?>
">

<?php 
do_action('theme_after_body_tag_start');
?>

<div id="mk-boxed-layout">
<div id="mk-theme-container">

<div id="header-holder"></div>
<header id="header">
Example #3
0
echo $toolbar_toggle;
?>
 <?php 
echo $header_sticky_style_css;
?>
 <?php 
echo $mk_options['banner_size'] == 'true' ? ' mk-background-stretch' : '';
?>
 <?php 
echo $header_width_class;
?>
 <?php 
echo $trans_header_class;
?>
" <?php 
echo get_schema_markup('header');
?>
>

<?php 
if ($show_header != 'no-header' && $show_header != 'no-header-title' && $show_header != 'no-header-title-footer' && $show_header != 'no-header-footer') {
    ?>

<div class="mk-header-holder">

<?php 
    do_action('header_banner_video');
    /************************************************************
       Header Toolbar
       *************************************************************/
    if ($toolbar_toggle == 'true') {
<?php

extract(shortcode_atts(array('mp3_file' => '', 'ogg_file' => '', 'audio_author' => '', 'thumb' => '', 'remove_thumb' => 'false', 'el_class' => '', 'large_player_class' => 'mk-audio-shortcode', 'img_dimension' => 170), $atts));
$output = $has_image = '';
$audio_id = uniqid();
/* Random Color variations for Audio box background */
$audio_box_color = array('#00c8d7', '#e1ba05', '#da4c26', '#f56a5f', '#00b89a', '#95c76a', '#acacac', '#d19760');
$random_colors = array_rand($audio_box_color, 1);
$output .= '<div class="mk-audio-section ' . $large_player_class . '" style="background-color:' . $audio_box_color[$random_colors] . '" ' . get_schema_markup('audio') . '>';
if ($thumb && $remove_thumb == 'false') {
    require_once THEME_FUNCTIONS . "/bfi_cropping.php";
    $image_src = bfi_thumb($thumb, array('width' => $img_dimension, 'height' => $img_dimension));
    $output .= '<img class="audio-thumb" alt="" title="" src="' . mk_thumbnail_image_gen($image_src, $img_dimension, $img_dimension) . '" />';
    $has_image = 'audio-has-img';
}
$output .= '<div id="jquery_jplayer_' . $audio_id . '" class="jp-jplayer mk-blog-audio" data-mp3="' . $mp3_file . '" data-ogg="' . $ogg_file . '"></div>
    <div id="jp_container_' . $audio_id . '" class="jp-audio ' . $has_image . '">
        <div class="jp-type-single">
            <div class="jp-gui jp-interface">
                <div class="jp-time-holder">
                    <div class="jp-current-time"></div>
                    <div class="jp-duration"></div>
                </div>

                <div class="jp-progress">
                    <div class="jp-seek-bar">
                        <div class="jp-play-bar"></div>
                    </div>
                </div>
                <div class="jp-volume-bar">
                    <i class="mk-moon-volume-mute"></i><div class="inner-value-adjust"><div class="jp-volume-bar-value"></div></div>
Example #5
0
    function mk_header_main_navigation($arg)
    {
        global $mk_options;
        extract($arg);
        $output = $main_nav = '';
        $post_id = global_get_post_id();
        $post_id = mk_is_woo_archive() ? mk_is_woo_archive() : $post_id;
        $single_menu_location = !empty($post_id) ? get_post_meta($post_id, '_menu_location', true) : false;
        if ($post_id && isset($single_menu_location) && !empty($single_menu_location)) {
            $menu_location = $single_menu_location;
        } else {
            if (is_user_logged_in() && !empty($mk_options['loggedin_menu'])) {
                $menu_location = $mk_options['loggedin_menu'];
            } else {
                $menu_location = 'primary-menu';
            }
        }
        $search_form = '<div class="main-nav-side-search">
						<a class="mk-search-trigger mk-toggle-trigger" href="#"><i class="mk-icon-search"></i></a>
							<div id="mk-nav-search-wrapper" class="mk-box-to-trigger">
							      <form method="get" id="mk-header-navside-searchform" action="' . home_url() . '">
							        <input type="text" value="" name="s" id="mk-ajax-search-input" />
							        <i class="mk-moon-search-3 nav-side-search-icon"><input value="" type="submit" /></i>
							    </form>
					  		</div>
					</div>';
        $search_form_fullscreen = '<div class="main-nav-side-search">
										<a class="mk-search-trigger mk-fullscreen-trigger" href="#"><i class="mk-icon-search"></i></a>
									</div>';
        if ($style == 1 && $nav_location == 'one_row') {
            echo '<div class="mk-header-nav-container one-row-style menu-hover-style-' . $mk_options['main_nav_hover'] . '" ' . get_schema_markup('nav') . '>';
            echo wp_nav_menu(array('theme_location' => $menu_location, 'container' => 'nav', 'container_id' => 'mk-main-navigation', 'container_class' => 'main_menu', 'menu_class' => 'main-navigation-ul', 'echo' => false, 'fallback_cb' => 'link_to_menu_editor', 'walker' => new mk_artbees_walker()));
            if ($search_location == 'beside_nav' || $search_location == 'beside_nav_no_ajax') {
                echo $search_form;
            } elseif ($search_location == 'fullscreen_search') {
                echo $search_form_fullscreen;
            }
            echo do_action('header_checkout');
            echo '</div>';
        } elseif ($style == 2 && $nav_location == 'two_row') {
            echo '<div class="mk-header-nav-container menu-hover-style-' . $mk_options['main_nav_hover'] . '" ' . get_schema_markup('nav') . '>
					  						<div class="mk-classic-nav-bg"></div>
					  						<div class="mk-classic-menu-wrapper">';
            echo wp_nav_menu(array('theme_location' => $menu_location, 'container' => 'nav', 'container_id' => 'mk-main-navigation', 'container_class' => 'main_menu', 'menu_class' => 'main-navigation-ul', 'echo' => false, 'fallback_cb' => 'link_to_menu_editor', 'walker' => new mk_artbees_walker()));
            if ($search_location == 'beside_nav') {
                echo $search_form;
            } elseif ($search_location == 'fullscreen_search') {
                echo $search_form_fullscreen;
            }
            echo do_action('header_checkout');
            echo '</div></div>';
        }
    }
Example #6
0
									<?php 
            the_tags();
            ?>
								<?php 
        }
        ?>
							</div>




				<?php 
        if ($mk_options['enable_blog_author'] == 'true' && get_post_meta($post->ID, '_disable_about_author', true) != 'false') {
            ?>
						<div class="mk-about-author-wrapper" <?php 
            echo get_schema_markup('author_box');
            ?>
>
								<div class="avatar-wrapper"><?php 
            global $user;
            echo get_avatar(get_the_author_meta('email'), '65', false, get_the_author_meta('display_name', $user['ID']));
            ?>
</div>
								<div class="mk-about-author-meta">
								<a class="about-author-name" href="<?php 
            echo get_author_posts_url(get_the_author_meta('ID'));
            ?>
"><?php 
            the_author_meta('display_name');
            ?>
</a>
        $style = get_post_meta($post->ID, '_employees_single_layout', true);
        $header_hero_skin = get_post_meta($post->ID, '_header_hero_skin', true);
        $header_hero_bg_color = get_post_meta($post->ID, '_header_hero_bg_color', true);
        $header_hero_bg_image = get_post_meta($post->ID, '_header_hero_bg_image', true);
        if ($style != 'style3') {
            $image_width = 270;
            $image_height = 270;
        } else {
            $image_width = 150;
            $image_height = 150;
        }
        ?>


<div id="theme-page" <?php 
        echo get_schema_markup('main');
        ?>
>
	<div class="mk-main-wrapper-holder">
		<div class="theme-page-wrapper mk-single-employee layout-<?php 
        echo $style;
        ?>
 ">
			<?php 
        if ($style == 'style1') {
            ?>
				<div class="mk-grid vc_row-fluid">
					<div class="theme-content">
						<div class="single-employee-sidebar">
							<?php 
            mk_post_type_featured_image('employees', $image_width, $image_height);
Example #8
0
<aside id="mk-sidebar" class="mk-builtin" <?php 
echo get_schema_markup('sidebar');
?>
>
    <div class="sidebar-wrapper">
    <?php 
global $post;
if (isset($post)) {
    mk_sidebar_generator('get_sidebar', $post->ID);
} else {
    mk_sidebar_generator('get_sidebar', false);
}
?>
    </div>
</aside>
    function widget($args, $instance)
    {
        extract($args);
        $title = apply_filters('widget_title', empty($instance['title']) ? '' : $instance['title'], $instance, $this->id_base);
        $company = $instance['company'];
        $person = $instance['person'];
        $phone = $instance['phone'];
        $fax = $instance['fax'];
        $email = $instance['email'];
        $address = $instance['address'];
        $website = $instance['website'];
        $skype = $instance['skype'];
        echo $before_widget;
        if ($title) {
            echo $before_title . $title . $after_title;
        }
        ?>
			<ul <?php 
        echo get_schema_markup('person');
        ?>
>
			<?php 
        if (!empty($person)) {
            ?>
<li><i class="mk-moon-user-7"></i><span itemprop="name"><?php 
            echo $person;
            ?>
</span></li><?php 
        }
        ?>
	
			<?php 
        if (!empty($company)) {
            ?>
<li><i class="mk-moon-office"></i><span itemprop="jobTitle"><?php 
            echo $company;
            ?>
</span></li><?php 
        }
        ?>
			<?php 
        if (!empty($address)) {
            ?>
<li><i class="mk-icon-home"></i><span itemprop="address" itemscope="" itemtype="http://schema.org/PostalAddress"><?php 
            echo $address;
            ?>
</span></li><?php 
        }
        ?>
			<?php 
        if (!empty($phone)) {
            ?>
<li><i class="mk-icon-phone"></i><span><?php 
            echo $phone;
            ?>
</span></li><?php 
        }
        ?>
			<?php 
        if (!empty($fax)) {
            ?>
<li><i class="mk-icon-print"></i><span><?php 
            echo $fax;
            ?>
</span></li><?php 
        }
        ?>
			<?php 
        if (!empty($email)) {
            ?>
<li><i class="mk-icon-envelope"></i><span><a itemprop="email" href="mailto:<?php 
            echo antispambot($email);
            ?>
"><?php 
            echo antispambot($email);
            ?>
</a></span></li><?php 
        }
        ?>
			<?php 
        if (!empty($website)) {
            ?>
<li><i class="mk-icon-globe"></i><span><a href="<?php 
            echo $website;
            ?>
" itemprop="url"><?php 
            echo str_replace('http://', '', $website);
            ?>
</a></span></li><?php 
        }
        ?>
			<?php 
        if (!empty($skype)) {
            ?>
<li><i class="mk-moon-skype"></i><span><a href="skype:<?php 
            echo $skype;
            ?>
?call"><?php 
            echo $skype;
            ?>
</a></span></li><?php 
        }
        ?>
			</ul>
		<?php 
        echo $after_widget;
    }
Example #10
0
    $mk_footer_class .= 'mk-background-stretch';
}
if ($mk_options['disable_footer'] == 'false' || ($show_footer_old == 'false' || $show_footer == 'no-footer' || $show_footer == 'no-header-footer' || $show_footer == 'no-header-title-footer' || $show_footer == 'no-footer-title')) {
    $mk_footer_class .= ' mk-footer-disable';
}
if ($mk_options['footer_type'] == '2') {
    $mk_footer_class .= ' mk-footer-unfold';
}
$boxed_footer = isset($mk_options['boxed_footer']) && !empty($mk_options['boxed_footer']) ? $mk_options['boxed_footer'] : 'true';
$boxed_footer_css = $boxed_footer == 'true' ? ' mk-grid' : ' fullwidth-footer';
?>
<section id="mk-footer" class="<?php 
echo $mk_footer_class;
?>
" <?php 
echo get_schema_markup('footer');
?>
>
<?php 
if ($mk_options['disable_footer'] == 'true' && ($show_footer_old != 'false' && $show_footer != 'no-footer' && $show_footer != 'no-header-footer' && $show_footer != 'no-header-title-footer' && $show_footer != 'no-footer-title')) {
    ?>
<div class="footer-wrapper<?php 
    echo $boxed_footer_css;
    ?>
">
<div class="mk-padding-wrapper">
<?php 
    $footer_column = $mk_options['footer_columns'];
    if (is_numeric($footer_column)) {
        switch ($footer_column) {
            case 1:
     $social_output .= '<li><a target="_blank" href="' . $linkedin . '" title="' . get_the_title() . ' ' . __('On', 'mk_framework') . ' Linked In"><i class="mk-jupiter-icon-simple-linkedin"></i></a></li>';
 }
 $social_output .= '</ul>';
 $output .= '<li class="mk-employee-item ' . $first_column . ' ' . $blur_item_css . '">';
 $output .= '<div class="team-thumbnail rounded-' . $rounded_image . ' ' . $animation_css . '">';
 $output .= !empty($link) ? '<a href="' . $link . '">' : '';
 $output .= $single_post == 'true' ? '<a href="' . get_permalink() . '">' : '';
 $output .= '<img alt="' . get_the_title() . '" title="' . get_the_title() . '" src="' . mk_thumbnail_image_gen($image_src, $image_dimension, $image_dimension) . '" />';
 $output .= !empty($link) ? '</a>' : '';
 $output .= $single_post == 'true' ? '</a>' : '';
 if ($style == 'classic') {
     $output .= $social_output;
     $output .= '<div class="employee-hover-overlay"></div>';
 }
 $output .= '</div>';
 $output .= '<div class="team-info-wrapper" ' . get_schema_markup('person') . '>';
 $output .= !empty($link) ? '<a href="' . $link . '">' : '';
 $output .= $single_post == 'true' ? '<a href="' . get_permalink() . '">' : '';
 $output .= '<span class="team-member-name">' . get_the_title() . '</span>';
 $output .= !empty($link) ? '</a>' : '';
 $output .= $single_post == 'true' ? '</a>' : '';
 $output .= '<span class="team-member-position">' . get_post_meta(get_the_ID(), '_position', true) . '</span>';
 if ($description == 'true') {
     $content = str_replace(']]>', ']]&gt;', apply_filters('the_content', get_post_meta(get_the_ID(), '_desc', true)));
     $output .= '<div class="team-member-desc">' . $content . '</div>';
 }
 $output .= '<div class="clearboth"></div>';
 if ($style != 'classic') {
     $output .= $social_output;
 }
 $output .= '</div>';
Example #12
0
<?php

extract(shortcode_atts(array('title' => '', 'phone' => '', 'fax' => '', 'email' => '', 'address' => '', 'website' => '', 'company' => '', 'person' => '', 'skype' => '', 'el_class' => ''), $atts));
$output = '';
$output .= '<div ' . get_schema_markup('person') . ' class="widget_contact_info mk-contactinfo-shortcode">';
if (!empty($title)) {
    $output .= '<h3 class="mk-shortcode mk-fancy-title pattern-style mk-shortcode-heading"><span>' . $title . '</span></h3>';
}
$output .= '<ul>';
$output .= !empty($person) ? '<li><i class="mk-moon-user-7"></i><span itemprop="name">' . $person . '</span></li>' : '';
$output .= !empty($company) ? '<li><i class="mk-moon-office"></i><span itemprop="jobTitle">' . $company . '</span></li>' : '';
$output .= !empty($address) ? '<li><i class="mk-icon-home"></i><span itemprop="address" itemscope="" itemtype="http://schema.org/PostalAddress">' . $address . '</span></li>' : '';
$output .= !empty($phone) ? '<li><i class="mk-icon-phone"></i><span>' . $phone . '</span></li>' : '';
$output .= !empty($fax) ? '<li><i class="mk-icon-print"></i><span>' . $fax . '</li></span>' : '';
$output .= !empty($email) ? '<li><i class="mk-icon-envelope"></i><span itemprop="email"><a itemprop="email" href="mailto:' . antispambot($email) . '">' . antispambot($email) . '</a></span></li>' : '';
$output .= !empty($website) ? '<li><i class="mk-icon-globe"></i><span><a href="' . $website . '" itemprop="url">' . str_replace('http://', '', $website) . '</a></span></li>' : '';
$output .= !empty($skype) ? '<li><i class="mk-moon-skype"></i><span><a href="skype:' . $skype . '?call">' . $skype . '</a></span></li>' : '';
$output .= '</ul>';
$output .= '</div>';
echo $output;
Example #13
0
}
switch ($magazine_strcutre) {
    case 1:
        $magazine_style_class = 'mag-one-column';
        break;
    case 2:
        $magazine_style_class = 'mag-two-column-left';
        break;
    case 3:
        $magazine_style_class = 'mag-two-column-right';
        break;
    default:
        $magazine_style_class = 'mag-one-column';
        break;
}
$output .= '<div class="' . $loop_wrapper . '"><section data-style="' . $style . '" data-uniqid="' . $item_id . '" class="mk-blog-container mk-theme-loop mk-' . $style . '-wrapper ' . $magazine_style_class . ' ' . $paginaton_style_class . ' ' . $el_class . ' ' . $noborder . '" ' . get_schema_markup('blog') . '>' . "\n";
$i = 0;
if (is_archive()) {
    if (have_posts()) {
        while (have_posts()) {
            the_post();
            $i++;
            switch ($style) {
                case 'classic':
                    $output .= blog_classic_style($atts, 1);
                    break;
                case 'newspaper':
                    $output .= blog_newspaper_style($atts, 1);
                    break;
                case 'grid':
                    $output .= blog_grid_style($atts, 1);
function theme_comments($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    ?>
	<li <?php 
    comment_class();
    ?>
 id="li-comment-<?php 
    comment_ID();
    ?>
">
		<div class="mk-single-comment" id="comment-<?php 
    comment_ID();
    ?>
" <?php 
    echo get_schema_markup('comment');
    ?>
>
			<div class="gravatar"><?php 
    echo get_avatar($comment, $size = '45', $default = '');
    ?>
</div>
			<div class="comment-meta">
					<?php 
    printf('<span class="comment-author" ' . get_schema_markup('comment_author_link') . '>%s</span>', get_comment_author_link());
    ?>
					
                    <?php 
    edit_comment_link('', '', '');
    ?>
                    <time class="comment-time" <?php 
    echo get_schema_markup('comment_time');
    ?>
><?php 
    echo get_comment_date();
    ?>
</time>
			</div>
			<span class="comment-reply">
					<?php 
    comment_reply_link(array_merge($args, array('depth' => $depth, 'max_depth' => $args['max_depth'])));
    ?>
			</span>
			<div class="clearboth"></div>
			<div class="comment-content" <?php 
    echo get_schema_markup('comment_text');
    ?>
>
					<?php 
    comment_text();
    ?>

<?php 
    if ($comment->comment_approved == '0') {
        ?>
					<span class="unapproved"><?php 
        _e('Your comment is awaiting moderation.', 'mk_framework');
        ?>
</span>
<?php 
    }
    ?>
				<div class="clearboth"></div>
			</div>

		       
		</div>		
<?php 
}