php 社交按钮нативныекнопкибезкакоголибофункционалапростошарингпоурлу
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了php 社交按钮нативныекнопкибезкакоголибофункционалапростошарингпоурлу相关的知识,希望对你有一定的参考价值。
<li><fb:like href="<?php the_permalink() ?>" send="true" layout="button_count" width="140" show_faces="false"></fb:like></li>
——— нативные кнопки без какого либо функционала просто шаринг по урлу
http://petragregorova.com/articles/social-share-buttons-with-custom-icons/
<ul class="socials">
<li><a href="http://www.facebook.com/share.php?u=<?php the_permalink() ?>&title=<?php the_title(); ?>"><i class="icon-facebook"></i></a></li>
<li><a href="http://twitter.com/intent/tweet?status=<?php the_title(); ?>+<?php the_permalink() ?>"><i class="icon-twitter"></i></a></li>
<?php if( $social_email = get_field( 'social_email', 'option' ) ): ?><li><a href="mailto:<?php echo $social_email; ?>?subject=<?php the_title(); ?>"><i class="icon-email"></i></a></li><?php endif; ?>
</ul>
-----
<?php $embed_code=get_field('embed_code_video','option'); ?>
<?php $img_url=get_field('video_preview_image','option'); ?>
<?php $description_facebook=get_field('description_facebook','option'); ?>
<?php $title_facebook=get_field('title_facebook','option'); ?>
<meta property="og:type" content="website" />
<meta property="og:url" content="<?php bloginfo('url'); ?>/#video" />
<meta property="og:title" content="<?php echo $title_facebook; ?>" />
<meta property="og:description" content="<?php echo $description_facebook; ?>" />
<meta property="og:image" content="<?php echo $img_url; ?>" />
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js'type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-15401187-1");
pageTracker._trackPageview();
} catch(err) {}
</script>
<script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
<script type="text/javascript">
stLight.options({
publisher:'12345',
});
</script>
<ul class="social-networks">
<?php
$_email_link .= '?subject='.get_field('email_subject','option');
$_email_link .= '&body='.get_field('email__share_text','option');
?>
<li><a class="email" href="mailto:<?php echo $_email_link; ?>"><?php _e('Email', 'cyviz') ?></a></li>
<?php $twitter_text=get_field('twitter_share_text','option'); ?>
<?php
$title_linkedin = get_field('title_linkedin','option');
$description_linkedin = get_field('description_linkedin','option');
?>
<li><a class="linkedin" onClick="window.open(this.href,'_blank', 'width=600, height=300'); return false;" href="http://www.linkedin.com/shareArticle?mini=true&summary=<?php echo htmlentities(urlencode($description_linkedin)); ?>&title=<?php echo htmlentities(urlencode($title_linkedin)); ?>&url=<?php echo get_bloginfo('url') ?>/#video"><?php _e('Linkedin', 'cyviz') ?></a></li>
<li><a class="facebook st_facebook_custom" ><?php _e('Facebook', 'cyviz') ?></a></li>
<li><a class="twitter" onClick="window.open(this.href,'_blank', 'width=600, height=300'); return false;" href="https://twitter.com/share?text=<?php echo htmlentities(urlencode($twitter_text)); ?>"><?php _e('Twitter', 'cyviz') ?></a></li>
<?php /* ?>
<li><a class="email" href="mailto:<?php echo $_email_link; ?>"><?php _e('Email', 'cyviz') ?></a></li>
<li><a class="linkedin" onClick="window.open(this.href,'_blank', 'width=600, height=300'); return false;" href="http://www.linkedin.com/shareArticle?url=http://vimeo.com/95477826&title=<?php echo home_url() ?>"><?php _e('Linkedin', 'cyviz') ?></a></li>
<li><a class="facebook" onClick="window.open(this.href,'_blank', 'width=600, height=300'); return false;" href="https://www.facebook.com/dialog/feed?app_id=19884028963&display=popup&link=http%3A%2F%2Fvimeo.com%2F95477826&name=Collaboration%3A+Redefined&description=%2F+About+Us%3A+%0D%0A%0D%0ACyviz+%28www.cyviz.com%29+designs+and+manufactures+world-class%2C+premium+display+walls+and+systems+that+elevate+the+collaborative+experience.%0D%0A%0D%0AFor+the+better+part+of+two+decades%2C+through+a+dedicated%2C+singular+focus+on+perfecting+large+display+technologies%2C+we%26%23039%3Bve+honed+our+understanding+of+the+sophisticated+requirements+of+organizations+across+a+range+of+industries+-and+we+continue+to+invest+heavily+in+research+and+development+to+ensure+that+our+products+are+always+on+the+cutting+edge.%0D%0A%0D%0AOn%26hellip%3B&caption=from+Cyviz&picture=http%3A%2F%2Fi.vimeocdn.com%2Fvideo%2F475404833_640.jpg&source=http%3A%2F%2Fvimeo.com%2Fmoogaloop.swf%3Fclip_id%3D95477826%26autoplay%3D1&actions=%7B%22name%22%3A%22Watch+on+Vimeo%22%2C+%22link%22%3A%22http%3A%2F%2Fvimeo.com%2F95477826%22%7D&redirect_uri=http://vimeo.com/_facebook/log_share?clip_id=95477826"><?php _e('Facebook', 'cyviz') ?></a></li>
<li><a class="twitter" onClick="window.open(this.href,'_blank', 'width=600, height=300'); return false;" href="https://twitter.com/share?text=Check out "Collaboration: Redefined" on Vimeo&url=http%3A%2F%2Fvimeo.com%2F95477826&hashtags=Vimeo"><?php _e('Twitter', 'cyviz') ?></a></li>
<?php */?>
</ul>
以上是关于php 社交按钮нативныекнопкибезкакоголибофункционалапростошарингпоурлу的主要内容,如果未能解决你的问题,请参考以下文章
php _ext.phpПунктыменюизразделовинфоблокаБитрикс
php Выводполейинфоблока(название,описаниеитд)
php 自定义数据库查询кастомныйзапроскбазе,выбратьвсепостысразнымзначениемкастомфилда
php Возвращаетданныеометкахпостов,входящихвуказанную(ые)рубрику(и)
php Возвращаетданныеометкахпостов,входящихвуказанную(ые)рубрику(и)