function ta_custom_css()
 {
     $custom_css = '';
     if (ta_option('custom_css') != '') {
         $custom_css .= ta_option('custom_css');
     }
     //Trim white space for faster page loading
     $custom_css_trimmed = preg_replace('/\\s+/', ' ', $custom_css);
     //Echo CSS
     $css_output = "<!-- Custom CSS -->\n<style type=\"text/css\">\n" . $custom_css_trimmed . "\n</style>";
     if (!empty($custom_css)) {
         echo $css_output;
     }
 }
Beispiel #2
0
 function ta_custom_css()
 {
     $custom_css = '';
     if (ta_option('slider_bg', false, 'url') != '') {
         $slider_bg_url = ta_option('slider_bg', false, 'url');
         $custom_css .= 'body:before, body:after { background: url(' . $slider_bg_url . ') repeat-x; }';
     }
     if (ta_option('custom_css') != '') {
         $custom_css .= ta_option('custom_css');
     }
     //Trim white space for faster page loading
     $custom_css_trimmed = preg_replace('/\\s+/', ' ', $custom_css);
     //Echo CSS
     $css_output = "<!-- Custom CSS -->\n<style type=\"text/css\">\n" . $custom_css_trimmed . "\n</style>";
     if (!empty($custom_css)) {
         echo $css_output;
     }
 }
				<?php 
if (have_posts()) {
    while (have_posts()) {
        the_post();
        $post_tags = get_the_tags();
        if ($post_tags) {
            foreach ($post_tags as $tag) {
                $all_tags_arr[] = $tag->name;
            }
        }
    }
}
$terms = array_unique($all_tags_arr);
$count = count($terms);
if ($count > 0 && ta_option('galleries_filter_switch') == '1') {
    echo '<ul class="isotope-filters gallery-filter">';
    echo '<li class="current"><a href="#" data-filter="*">' . __('All Galleries', 'ta-music') . '</a></li>';
    foreach ($terms as $term) {
        $term_name = strtolower($term);
        $term_name = str_replace(' ', '_', $term_name);
        echo '<li><i class="fa fa-ellipsis-v"></i><a href="#" data-filter=".' . $term_name . '">' . $term . '</a></li>';
    }
    echo '</ul>';
}
?>

				<div class="row galleries">
					<?php 
if (have_posts()) {
    ?>
Beispiel #4
0
				<div class="col-md-6 copyright">
					<?php 
if (ta_option('custom_copyright') != '') {
    echo ta_option('custom_copyright');
}
?>
				</div><!-- .copyright -->

				<?php 
if (!empty(ta_option('social_icons'))) {
    ?>
				<!-- social links -->
				<div class="col-md-6">
					<ul class="social">
						<?php 
    $social_options = ta_option('social_icons');
    foreach ($social_options as $key => $value) {
        ?>
							<?php 
        if ($value && $key == 'Google Plus') {
            ?>
								<li><a href="<?php 
            echo $value;
            ?>
" title="<?php 
            echo $key;
            ?>
" class="<?php 
            echo strtolower(strtr($key, " ", "-"));
            ?>
" target="_blank">
}
?>

								<?php 
if (ta_option('contact_email') != '' && ta_option('disable_contact_email') == "1") {
    ?>
								<div class="contact-details">
									<div class="icon">
										<i class="fa fa-4x fa-envelope"></i>
									</div>
									<p>
										<a href="mailto:<?php 
    echo ta_option('contact_email');
    ?>
"><?php 
    echo ta_option('contact_email');
    ?>
</a>
									</p>
								</div>
								<?php 
}
?>
							</div>
						</div><!-- .row -->


						<div class="entry-footer post-meta">
							<?php 
ta_music_entry_footer();
?>
Beispiel #6
0
}
?>
</h4>
		</div>
	</section><!-- #tagline -->

	<!-- main content area -->
	<main id="main" class="site-main" role="main">
		<section id="content">
			<div class="container">
				<div class="error-404">
					<h1>404</h1>
					<h2><?php 
if (ta_option('404_notice_title') != '') {
    echo ta_option('404_notice_title');
}
?>
</h2>
					<p><?php 
if (ta_option('404_notice_info') != '') {
    echo ta_option('404_notice_info');
}
?>
</p>
				</div><!-- .error-404 -->
			</div><!-- .container -->
		</section><!-- #content -->
	</main><!-- #main -->

<?php 
get_footer();
    function widget($args, $instance)
    {
        extract($args);
        $title = $instance['title'] ? $instance['title'] : __('Around The Web', 'ta-portfolio');
        echo $before_widget;
        echo $before_title;
        echo $title;
        echo $after_title;
        ?>

		<ul class="list-inline">
			<?php 
        $social_options = ta_option('social_icons');
        ?>
				<?php 
        foreach ($social_options as $key => $value) {
            if ($value && $key == 'Google Plus') {
                ?>
						<li>
							<a href="<?php 
                echo $value;
                ?>
" title="<?php 
                echo $key;
                ?>
" class="btn-social btn-outline" target="_blank">
								<i class="fa fa-fw fa-<?php 
                echo strtolower(strtr($key, " ", "-"));
                ?>
"></i>
							</a>
						</li>
					<?php 
            } elseif ($value && $key == 'Vimeo') {
                ?>
						<li>
							<a href="<?php 
                echo $value;
                ?>
" title="<?php 
                echo $key;
                ?>
" class="btn-social btn-outline" target="_blank">
								<i class="fa fa-<?php 
                echo strtolower($key) . "-square";
                ?>
"></i>
							</a>
						</li>
					<?php 
            } elseif ($value) {
                ?>
						<li>
							<a href="<?php 
                echo $value;
                ?>
" title="<?php 
                echo $key;
                ?>
" class="btn-social btn-outline" target="_blank">
								<i class="fa fa-fw fa-<?php 
                echo strtolower($key);
                ?>
"></i>
							</a>
						</li>
					<?php 
            }
        }
        ?>
		</ul><!-- .social-icons -->

		<?php 
        echo $after_widget;
    }
Beispiel #8
0
if (ta_option('default_blog_style') !== '1') {
    ?>
					<!-- sidebar -->
					<aside class="sidebar col-sm-4">
						<?php 
    get_sidebar();
    ?>
					</aside>
					<?php 
}
?>

				</div><!-- .row -->

				<?php 
if (ta_option('default_blog_style') == '1') {
    ?>
					<a href="#" id="load-more-enable" class="load-more"><?php 
    _e('Load More', 'ta-music');
    ?>
</a><a href="#" id="load-more-disable" class="load-more hide"><?php 
    _e('No More Posts', 'ta-music');
    ?>
</a>
				<?php 
}
?>

			</div><!-- .container -->
		</section><!-- #content -->
	</main><!-- #main -->
Beispiel #9
0
/**
 * Enqueue scripts and styles.
 */
function ta_music_scripts()
{
    wp_enqueue_style('ta-music-bootstrap-style', get_template_directory_uri() . '/layouts/bootstrap.min.css', array(), '3.3.4', 'all');
    wp_enqueue_style('ta-music-font-awesome-style', get_template_directory_uri() . '/layouts/font-awesome.min.css', array(), '4.3.0', 'all');
    wp_enqueue_style('ta-music-google-font', 'https://fonts.googleapis.com/css?family=Dosis:400,500,600,700', array(), '', 'all');
    wp_enqueue_style('ta-music-color-style', get_template_directory_uri() . '/layouts/' . ta_option('css_style', 'red.css'), array(), '', 'all');
    wp_enqueue_style('ta-music-isotope-style', get_template_directory_uri() . '/layouts/isotope.css', array(), '', 'all');
    wp_enqueue_style('ta-music-audio-player-style', get_template_directory_uri() . '/layouts/audio-player.css', array(), '', 'all');
    wp_enqueue_style('ta-music-style', get_stylesheet_uri());
    wp_enqueue_script('ta-music-bootstrap-js', get_template_directory_uri() . '/js/bootstrap.min.js', array('jquery'), '3.3.4', true);
    wp_enqueue_script('ta-music-flexslider-js', get_template_directory_uri() . '/js/jquery.flexslider.min.js', array('jquery'), '2.2.0', true);
    wp_enqueue_script('ta-music-isotope-js', get_template_directory_uri() . '/js/jquery.isotope.min.js', array('jquery'), '1.5.26', true);
    wp_enqueue_script('ta-music-imagesloaded-js', get_template_directory_uri() . '/js/imagesloaded.pkgd.min.js', array('jquery'), '3.1.8', true);
    wp_enqueue_script('ta-music-infinitescroll-js', get_template_directory_uri() . '/js/jquery.infinitescroll.min.js', array('jquery'), '2.1.0', true);
    wp_enqueue_script('ta-music-manual-trigger-js', get_template_directory_uri() . '/js/manual-trigger.js', array('jquery'), '2.0b2.110617', true);
    wp_enqueue_script('ta-music-audio-js', get_template_directory_uri() . '/js/audio.js', array(), '', true);
    wp_enqueue_script('ta-music-app-js', get_template_directory_uri() . '/js/app.js', array('jquery'), '', true);
    wp_localize_script('ta-music-app-js', 'cf', array('url' => admin_url('admin-ajax.php')));
    if (is_singular() && comments_open() && get_option('thread_comments')) {
        wp_enqueue_script('comment-reply');
    }
}
        }
        // no description, no author's meta
        ?>
			<?php 
    }
    ?>
				
			<?php 
    //end password protection check
}
?>
		</div><!-- .entry-content -->

		<footer class="entry-footer">
			<?php 
if (ta_option('enable_disable_tags') == '1') {
    ?>
				<?php 
    /* translators: used between list items, there is a space after the comma */
    $tags_list = get_the_tag_list();
    if ($tags_list) {
        ?>
					<p><span class="tags-links">
						<?php 
        printf('<i class="fa fa-tags"></i> %1$s', $tags_list);
        ?>
					</span></p>
				<?php 
    }
    // End if $tags_list
    ?>
    the_post_thumbnail('featured-image', array('class' => 'featured'));
    ?>
			</a>
		<?php 
}
?>
	</div>

	<div class="post-inner-content well">
		<header class="entry-header">
			<?php 
the_title(sprintf('<h1 class="entry-title"><a href="%s" rel="bookmark">', esc_url(get_permalink())), '</a></h1>');
?>

			<?php 
if (ta_option('disable_meta') == '1') {
    ?>
				<?php 
    if ('post' == get_post_type()) {
        ?>
					<div class="entry-meta">
						<?php 
        ta_portfolio_posted_on();
        ?>
						<?php 
        if ('post' == get_post_type()) {
            // Hide category and tag text for pages
            ?>
						<?php 
            /* translators: used between list items, there is a space after the comma */
            $categories_list = get_the_category_list(', ');
/**
 * Custom Read More Button
 */
function modify_read_more_link()
{
    $read_txt = ta_option('read_more_text', 'Read More');
    $btn_block = ta_option('read_more_block') == '1' ? 'btn-block' : '';
    $btn_size = 'btn-' . ta_option('read_more_size');
    $btn_color = 'btn-' . ta_option('read_more_color');
    return '<p class="more-link"><a class="btn ' . $btn_color . ' ' . $btn_size . ' ' . $btn_block . '" href="' . get_permalink() . '">' . $read_txt . '</a></p>';
}
Beispiel #13
0
/**
 * Add Breadcrumbs
 *
 * @package TA Music
 */
function ta_breadcrumbs()
{
    /* === OPTIONS === */
    $text['home'] = __('Home', 'ta-music');
    // text for the 'Home' link
    $text['category'] = __('Archive by Category "%s"', 'ta-music');
    // text for a category page
    $text['search'] = __('Search Results for "%s" Query', 'ta-music');
    // text for a search results page
    $text['tag'] = __('Posts Tagged "%s"', 'ta-music');
    // text for a tag page
    $text['author'] = __('%s Biography', 'ta-music');
    // text for an author page
    $text['404'] = __('Error 404', 'ta-music');
    // text for the 404 page
    $show_current = 1;
    // 1 - show current post/page/category title in breadcrumbs, 0 - don't show
    $show_on_home = 1;
    // 1 - show breadcrumbs on the homepage, 0 - don't show
    $show_home_link = 1;
    // 1 - show the 'Home' link, 0 - don't show
    $show_title = 1;
    // 1 - show the title for the links, 0 - don't show
    $delimiter = '<i class="fa fa-angle-double-right"></i>';
    // delimiter between crumbs
    $before = '<span class="active">';
    // tag before the current crumb
    $after = '</span>';
    // tag after the current crumb
    /* === END OF OPTIONS === */
    global $post;
    $home_link = home_url('/');
    $link_before = '<span typeof="v:Breadcrumb">';
    $link_after = '</span>';
    $link_attr = ' rel="v:url" property="v:title"';
    $link = $link_before . '<a' . $link_attr . ' href="%1$s">%2$s</a>' . $link_after;
    if (isset($post->post_parent)) {
        $parent_id = $parent_id_2 = $post->post_parent;
    }
    $frontpage_id = get_option('page_on_front');
    if (is_home() || is_front_page()) {
        if ($show_on_home == 1) {
            echo '<a href="' . $home_link . '">' . $text['home'] . '</a>';
        }
    } else {
        if ($show_home_link == 1) {
            echo '<a href="' . $home_link . '" rel="v:url" property="v:title">' . $text['home'] . '</a>';
            if ($frontpage_id == 0 || isset($parent_id) && $parent_id != $frontpage_id) {
                echo $delimiter;
            }
        }
        if (is_category()) {
            $this_cat = get_category(get_query_var('cat'), false);
            if ($this_cat->parent != 0) {
                $cats = get_category_parents($this_cat->parent, TRUE, $delimiter);
                if ($show_current == 0) {
                    $cats = preg_replace("#^(.+){$delimiter}\$#", "\$1", $cats);
                }
                $cats = str_replace('<a', $link_before . '<a' . $link_attr, $cats);
                $cats = str_replace('</a>', '</a>' . $link_after, $cats);
                if ($show_title == 0) {
                    $cats = preg_replace('/ title="(.*?)"/', '', $cats);
                }
                echo $cats;
            }
            if ($show_current == 1) {
                echo $before . sprintf($text['category'], single_cat_title('', false)) . $after;
            }
        } elseif (is_search()) {
            echo $before . sprintf($text['search'], get_search_query()) . $after;
        } elseif (is_day()) {
            echo sprintf($link, get_year_link(get_the_time('Y')), get_the_time('Y')) . $delimiter;
            echo sprintf($link, get_month_link(get_the_time('Y'), get_the_time('m')), get_the_time('F')) . $delimiter;
            echo $before . get_the_time('d') . $after;
        } elseif (is_month()) {
            echo sprintf($link, get_year_link(get_the_time('Y')), get_the_time('Y')) . $delimiter;
            echo $before . get_the_time('F') . $after;
        } elseif (is_year()) {
            echo $before . get_the_time('Y') . $after;
        } elseif (is_single() && !is_attachment()) {
            if (get_post_type() != 'post') {
                $post_type = get_post_type_object(get_post_type());
                $slug = $post_type->rewrite;
                printf($link, $home_link . $slug['slug'] . '/', $post_type->labels->singular_name);
                if ($show_current == 1) {
                    echo $delimiter . $before . get_the_title() . $after;
                }
            } elseif (get_post_format() != '') {
                $post_format = get_post_format();
                $slug = get_post_format_link($post_format);
                printf($link, $slug, $post_format);
                if ($show_current == 1) {
                    echo $delimiter . $before . get_the_title() . $after;
                }
            } else {
                $cat = get_the_category();
                $cat = $cat[0];
                $cats = get_category_parents($cat, TRUE, $delimiter);
                if ($show_current == 0) {
                    $cats = preg_replace("#^(.+){$delimiter}\$#", "\$1", $cats);
                }
                $cats = str_replace('<a', $link_before . '<a' . $link_attr, $cats);
                $cats = str_replace('</a>', '</a>' . $link_after, $cats);
                if ($show_title == 0) {
                    $cats = preg_replace('/ title="(.*?)"/', '', $cats);
                }
                echo $cats;
                if ($show_current == 1) {
                    echo $before . get_the_title() . $after;
                }
            }
        } elseif (!is_single() && !is_page() && get_post_type() != 'post' && !is_author() && !is_404()) {
            $post_type = get_post_type_object(get_post_type());
            echo $before . $post_type->labels->singular_name . $after;
        } elseif (is_attachment()) {
            $parent = get_post($parent_id);
            $cat = get_the_category($parent->ID);
            $cat = $cat[0];
            if ($cat) {
                $cats = get_category_parents($cat, TRUE, $delimiter);
                $cats = str_replace('<a', $link_before . '<a' . $link_attr, $cats);
                $cats = str_replace('</a>', '</a>' . $link_after, $cats);
                if ($show_title == 0) {
                    $cats = preg_replace('/ title="(.*?)"/', '', $cats);
                }
                echo $cats;
            }
            printf($link, get_permalink($parent), $parent->post_title);
            if ($show_current == 1) {
                echo $delimiter . $before . get_the_title() . $after;
            }
        } elseif (is_page() && !$parent_id) {
            if ($show_current == 1) {
                echo $before . get_the_title() . $after;
            }
        } elseif (is_page() && $parent_id) {
            if ($parent_id != $frontpage_id) {
                $breadcrumbs = array();
                while ($parent_id) {
                    $page = get_page($parent_id);
                    if ($parent_id != $frontpage_id) {
                        $breadcrumbs[] = sprintf($link, get_permalink($page->ID), get_the_title($page->ID));
                    }
                    $parent_id = $page->post_parent;
                }
                $breadcrumbs = array_reverse($breadcrumbs);
                for ($i = 0; $i < count($breadcrumbs); $i++) {
                    echo $breadcrumbs[$i];
                    if ($i != count($breadcrumbs) - 1) {
                        echo $delimiter;
                    }
                }
            }
            if ($show_current == 1) {
                if ($show_home_link == 1 || $parent_id_2 != 0 && $parent_id_2 != $frontpage_id) {
                    echo $delimiter;
                }
                echo $before . get_the_title() . $after;
            }
        } elseif (is_tag()) {
            echo $before . sprintf($text['tag'], single_tag_title('', false)) . $after;
        } elseif (is_author()) {
            global $author;
            $userdata = get_userdata($author);
            if (!empty(ta_option('artists_page'))) {
                $artists_link = get_permalink(ta_option('artists_page'));
            }
            echo $before . '<a href="' . $artists_link . '">' . __('Artist', 'ta-music') . '</a>' . $delimiter . sprintf($text['author'], $userdata->display_name) . $after;
        } elseif (is_404()) {
            echo $before . $delimiter . $text['404'] . $after;
        } elseif (has_post_format() && !is_singular()) {
            echo get_post_format_string(get_post_format());
        }
        if (get_query_var('paged')) {
            if (is_category() || is_day() || is_month() || is_year() || is_search() || is_tag() || is_author()) {
                echo ' ( ';
            }
            echo __('Page', 'ta-music') . ' ' . get_query_var('paged');
            if (is_category() || is_day() || is_month() || is_year() || is_search() || is_tag() || is_author()) {
                echo ' )';
            }
        }
    }
}
				<?php 
if (have_posts()) {
    while (have_posts()) {
        the_post();
        $post_tags = get_the_tags();
        if ($post_tags) {
            foreach ($post_tags as $tag) {
                $all_tags_arr[] = $tag->name;
            }
        }
    }
}
$terms = array_unique($all_tags_arr);
$count = count($terms);
if ($count > 0 && ta_option('albums_filter_switch') == '1') {
    echo '<ul class="isotope-filters album-filter">';
    echo '<li class="current"><a href="#" data-filter="*">' . __('All Albums', 'ta-music') . '</a></li>';
    foreach ($terms as $term) {
        $term_name = strtolower($term);
        $term_name = str_replace(' ', '_', $term_name);
        echo '<li><i class="fa fa-ellipsis-v"></i><a href="#" data-filter=".' . $term_name . '">' . $term . '</a></li>';
    }
    echo '</ul>';
}
?>

				<div class="row albums">
					<?php 
if (have_posts()) {
    ?>
        $terms = get_the_terms($post->ID, 'portfolio_tags');
        if ($terms && !is_wp_error($terms)) {
            $links = array();
            foreach ($terms as $term) {
                $links[] = $term->name;
            }
            $links = str_replace(' ', '-', $links);
            $tax = join(" ", $links);
        } else {
            $tax = '';
        }
        ?>

						<?php 
        // Portfolio columns variable from Theme Options
        $pcount = ta_option('portfolio_column', '3');
        ?>

						<div class="col-xs-12 col-sm-6 col-md-<?php 
        echo $pcount;
        ?>
 item <?php 
        echo strtolower($tax);
        ?>
">
							<div class="portfolio-item">
								<a href="#portfolio-<?php 
        echo get_the_ID();
        ?>
" class="portfolio-link" data-toggle="modal">
									<div class="caption">
Beispiel #16
0
					<span class="icon-bar"></span>
				</button>
				<!-- End responsive nav button -->
				<?php 
}
?>

				<!-- Logo -->
				<a class="navbar-brand" href="<?php 
echo esc_url(home_url('/'));
?>
">
					<h1 id="logo">
					<?php 
$logo = ta_option('custom_logo', false, 'url');
$logo_id = ta_option('custom_logo', false, 'id');
?>
					<?php 
if ($logo !== '') {
    ?>
						<img src="<?php 
    echo $logo;
    ?>
" alt="<?php 
    echo get_post_meta($logo_id, '_wp_attachment_image_alt', true);
    ?>
" />
					<?php 
} else {
    ?>
						<img src="<?php 
Beispiel #17
0
					<div class="col-md-9">
						<h2>
							<?php 
_e('Upcoming', 'ta-music');
?>
 <span><?php 
_e('Events', 'ta-music');
?>
</span>
							<span class="view">
								<span><?php 
_e('View', 'ta-music');
?>
</span> 
								<?php 
if (ta_option('default_events_style') == '1') {
    $event_list = 'current';
    $event_grid = 'inactive';
    $style = 'list';
} else {
    $event_list = 'inactive';
    $event_grid = 'current';
    $style = 'grid';
}
?>
								<a href="#grid" class="<?php 
echo $event_grid;
?>
"><i class="fa fa-lg fa-th"></i></a>
								<a href="#list" class="<?php 
echo $event_list;
Beispiel #18
0
/**
 * Send Mail.
 */
function ta_contact_send_message()
{
    if (isset($_POST['ta_cf_nonce']) && wp_verify_nonce($_POST['ta_cf_nonce'], 'ta_cf_html')) {
        $to = ta_option('contact_email');
        //the address to which the email will be sent
        $name = sanitize_text_field($_POST['username']);
        $email = sanitize_email($_POST['email']);
        $subject = sanitize_text_field($_POST['subject']);
        $message = sanitize_text_field($_POST['message']);
        /*the $header variable is for the additional headers in the mail function,
        	 we are assigning 2 values, first one is FROM and the second one is REPLY-TO.
        	 That way when we want to reply the email Gmail(or Yahoo or Hotmail...) will know
        	 who are we replying to. */
        $headers = 'From: ' . $name . ' <' . $email . '>' . "\r\n";
        $headers .= "Reply-To: {$email}\r\n";
        // send the email using wp_mail()
        if (wp_mail($to, $subject, $message, $headers)) {
            _e('Thank you. The Mailman is on his way!', 'ta-music');
            // we are sending this text to the Ajax request telling it that the mail is sent.
        } else {
            _e("Sorry, don't know what happened. Try later!", 'ta-music');
            // ... or this one to tell it that it wasn't sent.
        }
    }
    die;
    // Important
}
Beispiel #19
0
 public function getTweets($username, $count)
 {
     $config = array();
     $config['username'] = $username;
     $config['count'] = $count;
     $config['access_token'] = ta_option('twitter_access_token');
     $config['access_token_secret'] = ta_option('twitter_access_token_secret');
     $config['consumer_key'] = ta_option('twitter_consumer_key');
     $config['consumer_key_secret'] = ta_option('twitter_consumer_secret');
     $transname = 'ta_tw_' . $username . '_' . $count;
     $result = get_transient($transname);
     if (!$result) {
         $result = $this->oauthRetrieveTweets($config);
         if (isset($result['errors'])) {
             $result = NULL;
         } else {
             $result = $this->parseTweets($result);
             set_transient($transname, $result, 300);
         }
     } else {
         if (is_string($result)) {
             unserialize($result);
         }
     }
     return $result;
 }
				<?php 
if (have_posts()) {
    while (have_posts()) {
        the_post();
        $post_tags = get_the_tags();
        if ($post_tags) {
            foreach ($post_tags as $tag) {
                $all_tags_arr[] = $tag->name;
            }
        }
    }
}
$terms = array_unique($all_tags_arr);
$count = count($terms);
if ($count > 0 && ta_option('videos_filter_switch') == '1') {
    echo '<ul class="isotope-filters video-filter">';
    echo '<li class="current"><a href="#" data-filter="*">' . __('All Videos', 'ta-music') . '</a></li>';
    foreach ($terms as $term) {
        $term_name = strtolower($term);
        $term_name = str_replace(' ', '_', $term_name);
        echo '<li><i class="fa fa-ellipsis-v"></i><a href="#" data-filter=".' . $term_name . '">' . $term . '</a></li>';
    }
    echo '</ul>';
}
?>

				<div class="row videos">
					<?php 
if (have_posts()) {
    ?>
<?php

/**
 * Contact Me Form
 *
 * @package TA Portfolio
 */
define('WP_USE_THEMES', false);
require_once $_SERVER['DOCUMENT_ROOT'] . '/wp-load.php';
// Check for empty fields
if (empty($_POST['name']) || empty($_POST['email']) || empty($_POST['subject']) || empty($_POST['message']) || !filter_var($_POST['email'], FILTER_VALIDATE_EMAIL)) {
    echo "No arguments Provided!";
    return false;
}
$name = $_POST['name'];
$email_address = $_POST['email'];
$subject = $_POST['subject'];
$message = $_POST['message'];
// Create the email and send the message
$to = ta_option('contact_email');
$email_subject = "Website Contact Form: {$subject}";
$email_body = "You have received a new message.\n\n" . "Here are the details:\n\nName: {$name}\n\nEmail: {$email_address}\n\nSubject: {$subject}\n\nMessage:\n\n{$message}";
$headers .= "Reply-To: {$email_address}";
wp_mail($to, $email_subject, $email_body, $headers);
return true;
Beispiel #22
0
} else {
    ?>
							<img src="<?php 
    echo get_template_directory_uri();
    ?>
/images/logo-meghna.png" alt="<?php 
    esc_attr(bloginfo('name'));
    ?>
" />
						<?php 
}
?>
						</a>
						<p><?php 
if (ta_option('custom_copyright') != '') {
    echo ta_option('custom_copyright');
}
?>
</p>
					</div>
					<!-- End copyright -->

				</div> <!-- .col-lg-12 -->
			</div> <!-- .row -->
		</div> <!-- .container -->
	</footer>
</div><!-- #page -->

<!-- Back to top -->
<a href="javascript:;" id="scrollUp">
	<i class="fa fa-angle-up fa-2x"></i>
Beispiel #23
0
					<span class="sr-only"><?php 
    _e('Toggle navigation', 'ta-music');
    ?>
</span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
				</button>
				<!-- End responsive nav button -->
				<?php 
}
?>

				<!-- Logo -->
				<?php 
$logo = ta_option('custom_logo', false, 'url');
?>

				<?php 
if ($logo !== '') {
    ?>
					<a class="navbar-brand" href="<?php 
    echo esc_url(home_url('/'));
    ?>
" rel="homepage"><img src="<?php 
    echo $logo;
    ?>
" alt="<?php 
    bloginfo('name');
    ?>
" /></a>
Beispiel #24
0
				<?php 
$args = array('role' => 'author', 'orderby' => 'display_name');
// The Query
$artists_query = new WP_User_Query($args);
$artists = $artists_query->get_results();
?>

				<?php 
$artist_tags = array();
foreach ($artists as $artist) {
    $artist_tags_temp = explode(", ", get_user_meta($artist->ID, '_cmb_artist_skill', true));
    $artist_tags = array_merge($artist_tags, $artist_tags_temp);
}
$terms = array_unique($artist_tags);
$count = count($terms);
if ($count > 0 && ta_option('artists_filter_switch') == '1') {
    echo '<ul class="isotope-filters artist-filter">';
    echo '<li class="current"><a href="#" data-filter="*">' . __('All Albums', 'ta-music') . '</a></li>';
    foreach ($terms as $term) {
        $term_name = strtolower($term);
        $term_name = str_replace(' ', '_', $term_name);
        if ($term != '') {
            echo '<li><i class="fa fa-ellipsis-v"></i><a href="#" data-filter=".' . $term_name . '">' . $term . '</a></li>';
        }
    }
    echo '</ul>';
}
?>

				<div class="row artists">
				<!-- artists -->
							<div id="cf-submit">
								<input type="submit" id="contact-submit" class="btn btn-transparent" value="<?php 
    _e('Submit', 'ta-meghna');
    ?>
">
							</div>

						</form>
					</div>
					<!-- End contact form -->

				</div> <!-- .row -->
			</div> <!-- .container -->

			<?php 
    if (ta_option('disable_gogole_map_module') == '1') {
        ?>
			<!-- Google Map -->
			<div class="google-map wow fadeInDown" data-wow-duration="500ms">
				<div id="map-canvas"></div>
			</div>
			<!-- End Google Map -->
			<?php 
    }
    ?>

		</section>
		<!-- End contact us section -->
		<?php 
}
?>
			<!-- welcome message -->
			<div class="welcome-message">
				<h2><?php 
    if (ta_option('features_title') != '') {
        echo ta_option('features_title');
    }
    ?>
</h2>
				<p>We are a Flannelcore band originated from Bridgewater NJ. There is nothing more that we love to do than to play amazing music and drink draft beer.</p>
			</div><!-- end welcome message -->

			<!-- features -->
			<!-- <div class="features">
				<div class="row">
				<?php 
    if (ta_option('features_slider') != '') {
        foreach ($ta_option['features_slider'] as $features_slide) {
            ?>
					<div class="col-sm-4 feature">
						<div class="feature-icon">
							<a href="<?php 
            echo $features_slide['url'];
            ?>
"><i class="feature-icon fa <?php 
            echo $features_slide['facode'];
            ?>
"></i></a>
						</div>
						<a href="<?php 
            echo $features_slide['url'];
            ?>