Esempio n. 1
0
" class="btn" title="<?php 
echo esc_attr(get_bloginfo('name'));
?>
"><i class="fa fa-home"><span><?php 
_e('Home', 'gmLang');
?>
</span></i></a>
			<?php 
if (!empty($_SERVER['HTTP_REFERER']) && $home_url != $_SERVER['HTTP_REFERER']) {
    echo "<a href='{$_SERVER['HTTP_REFERER']}' class='btn'><i class='fa fa-arrow-left'><span>" . __('Go Back', 'gmLang') . "</span></i></a>";
}
?>
		</div>
	</menu>
	<div class="gmedia-header-title"><?php 
the_gmedia_title();
?>
</div>
	<?php 
if ($gmedia->description) {
    ?>
		<div class="gmedia-header-description"><?php 
    echo $gmedia->description;
    ?>
</div>
		<span class="gmedia-header-description-button" onclick="jQuery('.gmedia-header-description').toggle()"></span>
	<?php 
}
?>
</header>
Esempio n. 2
0
function gmediacloud_social_sharing()
{
    if (apply_filters('gmediacloud_social_sharing', wp_is_mobile())) {
        return;
    }
    global $wp, $gmedia_share_img;
    $url = urlencode(home_url(add_query_arg(array(), $wp->request)));
    $text = urlencode(__('Shared with GmediaGallery', 'gmLang'));
    $title = urlencode(the_gmedia_title(true));
    $image = urlencode($gmedia_share_img[0]);
    ?>
	<style>
		@import url('//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css') all;
		.gmedia-socialsharebuttons { float:right; margin-right:30px; margin-top:2px; }
		.share-btn,
		.share-btn:visited {
			display: inline-block;
			color: #ffffff;
			border: none;
			padding: 2px 7px;
			min-width:2.1em;
			opacity: 0.9;
			box-shadow: 0 2px 0 0 rgba(0,0,0,0.2);
			outline: none;
			text-align: center;
			box-sizing: border-box;
		}
		.share-btn:hover {
			color: #eeeeee;
		}
		.share-btn:active {
			position: relative;
			top: 2px;
			box-shadow: none;
			color: #e2e2e2;
			outline: none;
		}
		.fa span { display:none; }
		.share-btn.facebook { background: #3B5998; }
		.share-btn.twitter { background: #55acee; }
		.share-btn.google-plus { background: #dd4b39; }
		.share-btn.pinterest-p { background: #cb2027; }
		.share-btn.vk { background:#2a6db4; }
		.share-btn.email { background: #444444; }
	</style>
	<div class="gmedia-socialsharebuttons">
		<!-- Facebook -->
		<a href="http://www.facebook.com/sharer/sharer.php?u=<?php 
    echo $url;
    ?>
&t=<?php 
    echo $title;
    ?>
" target="_blank" class="share-btn facebook">
			<i class="fa fa-facebook"><span>Facebook</span></i>
		</a>
		<!-- Twitter -->
		<a href="http://twitter.com/share?url=<?php 
    echo $url;
    ?>
&text=<?php 
    echo $text;
    ?>
" target="_blank" class="share-btn twitter">
			<i class="fa fa-twitter"><span>Twitter</span></i>
		</a>
		<!-- Google Plus -->
		<a href="https://plus.google.com/share?url=<?php 
    echo $url;
    ?>
" target="_blank" class="share-btn google-plus">
			<i class="fa fa-google-plus"><span>Google+</span></i>
		</a>
		<!-- Pinterest -->
		<a href="http://pinterest.com/pin/create/button/?url=<?php 
    echo $url;
    ?>
&description=<?php 
    echo $text;
    ?>
&media=<?php 
    echo $image;
    ?>
" target="_blank" class="share-btn pinterest-p">
			<i class="fa fa-pinterest-p"><span>Pinterest</span></i>
		</a>
		<!-- VK -->
		<a href="http://vk.com/share.php?url=<?php 
    echo $url;
    ?>
" target="_blank" class="share-btn vk">
			<i class="fa fa-vk"><span>VK</span></i>
		</a>
		<!-- Email -->
		<a href="mailto:?subject=<?php 
    echo $title;
    ?>
&body=<?php 
    echo $url;
    ?>
" target="_blank" class="share-btn email">
			<i class="fa fa-envelope"><span>Email</span></i>
		</a>
	</div>
<?php 
}