• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP email_link函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中email_link函数的典型用法代码示例。如果您正苦于以下问题:PHP email_link函数的具体用法?PHP email_link怎么用?PHP email_link使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了email_link函数的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: cp_blog_post_meta_footer

/**
 * add the blog post meta footer content 
 * @since 3.1.3
 */
function cp_blog_post_meta_footer()
{
    global $post, $cp_options;
    if (!is_singular(array('post', APP_POST_TYPE))) {
        return;
    }
    ?>
	<div class="prdetails">
		<?php 
    if (is_singular('post')) {
        ?>
			<p class="tags"><?php 
        if (get_the_tags()) {
            echo the_tags('', '&nbsp;', '');
        } else {
            _e('No Tags', APP_TD);
        }
        ?>
</p>
		<?php 
    } else {
        ?>
			<p class="tags"><?php 
        if (get_the_term_list($post->ID, APP_TAX_TAG)) {
            echo get_the_term_list($post->ID, APP_TAX_TAG, '', '&nbsp;', '');
        } else {
            _e('No Tags', APP_TD);
        }
        ?>
</p>
		<?php 
    }
    ?>
		<?php 
    if ($cp_options->ad_stats_all && current_theme_supports('app-stats')) {
        ?>
<p class="stats"><?php 
        appthemes_stats_counter($post->ID);
        ?>
</p> <?php 
    }
    ?>
		<p class="print"><?php 
    if (function_exists('wp_email')) {
        email_link();
    }
    ?>
&nbsp;&nbsp;<?php 
    if (function_exists('wp_print')) {
        print_link();
    }
    ?>
</p>
		<?php 
    cp_edit_ad_link();
    ?>
	</div>

<?php 
}
开发者ID:TopLineMediaTeam,项目名称:horseshow,代码行数:64,代码来源:actions_16_07_2015_rj_bak.php


示例2: the_title

        the_title();
        ?>
</a></h3>
            	
            	<div class="post_meta">
            		By <?php 
        the_author_posts_link();
        ?>
 <span class="dot">&sdot;</span> <?php 
        the_time('F j, Y');
        ?>
 <span class="dot">&sdot;</span> <?php 
        if (function_exists('wp_email')) {
            ?>
 <?php 
            email_link();
            ?>
 <span class="dot">&sdot;</span> <?php 
        }
        ?>
 <?php 
        if (function_exists('wp_print')) {
            ?>
 <?php 
            print_link();
            ?>
 <span class="dot">&sdot;</span> <?php 
        }
        ?>
 <a href="#comments">Post a comment</a>
            	</div>
开发者ID:emoksha,项目名称:VoteReport-Lebanon,代码行数:31,代码来源:singlebkp.php


示例3: cp_blog_post_meta_footer

/**
 * add the blog post meta footer content 
 * @since 3.1.3
 */
function cp_blog_post_meta_footer()
{
    if (!is_singular(array('post', APP_POST_TYPE))) {
        return;
    }
    global $post;
    ?>
		
	<div class="prdetails">
	    <?php 
    if (is_singular('post')) {
        ?>
        <p class="tags"><?php 
        if (get_the_tags()) {
            echo the_tags('', '&nbsp;', '');
        } else {
            _e('No Tags', APP_TD);
        }
        ?>
</p>
        <?php 
    } else {
        ?>
        <p class="tags"><?php 
        if (get_the_term_list($post->ID, APP_TAX_TAG)) {
            echo get_the_term_list($post->ID, APP_TAX_TAG, '', '&nbsp;', '');
        } else {
            _e('No Tags', APP_TD);
        }
        ?>
</p>
        <?php 
    }
    ?>
        <?php 
    if (get_option('cp_ad_stats_all') == 'yes') {
        ?>
<p class="stats"><?php 
        appthemes_stats_counter($post->ID);
        ?>
</p> <?php 
    }
    ?>
        <p class="print"><?php 
    if (function_exists('wp_email')) {
        email_link();
    }
    ?>
&nbsp;&nbsp;<?php 
    if (function_exists('wp_print')) {
        print_link();
    }
    ?>
</p>
        <?php 
    cp_edit_ad_link();
    ?>
    </div>
    
    <?php 
    if (function_exists('selfserv_sexy')) {
        selfserv_sexy();
    }
}
开发者ID:kalushta,项目名称:darom,代码行数:68,代码来源:theme-actions.php


示例4: email_link_shortcode

function email_link_shortcode($atts)
{
    if (!is_feed()) {
        return email_link('', '', false);
    } else {
        return __('Note: There is an email link embedded within this post, please visit this post to email it.', 'wp-email');
    }
}
开发者ID:Savantos,项目名称:cow-theme,代码行数:8,代码来源:wp-email.php


示例5: setesm_postdisplay

function setesm_postdisplay($postid = 0, $ast = 0, $astc = 0, $useragent = '0')
{
    global $page;
    $noreg = get_post_meta($postid, 'No Registration', $single = true);
    if ($noreg != null) {
        $bypassreg = 1;
    }
    // if (preg_match("/Googlebot|Yahoo|msnbot|bingbot/i", $useragent) > 0){ $bypassreg = 1;}
    if (isset($_COOKIE['esmpass'])) {
        $bypassreg = 1;
    }
    /* Check if the user is on page gt 1 and not logged in */
    global $page;
    //wp ecn 3591 6336 4361
    //wp esn 7084 6274
    //sr 139 127
    //webinar 163 166 167
    if ($bypassreg == 1 or is_user_logged_in()) {
        $showpagecontent = 1;
    } else {
        if (in_category(array(139, 127)) and !$bypassreg == 1 or in_category(array(139, 127)) and !is_user_logged_in()) {
            $showpagecontent = 0;
        } else {
            if (in_category(array(163, 166, 167)) and $page > 1) {
                $showpagecontent = 0;
            } else {
                if ($astused > 1) {
                    $showpagecontent = 0;
                } else {
                    //let them in
                    $showpagecontent = 1;
                }
            }
        }
    }
    ?>


<div style="clear:both; padding-bottom:5px;"></div>
<?php 
    if (function_exists('wp_socializer')) {
        echo '<div class="wp-socializer-buttons" style="height:20px; margin-top:5px;">';
        echo '<span class="wpsr-btn">' . wp_socializer(facebook, 'style=button_count&type=send') . '</span>';
        $blog_id = get_current_blog_id();
        if ($blog_id == '2') {
            echo '<span class="wpsr-btn">' . wp_socializer(retweet, 'type=compact&username=eschoolnews') . '</span>';
        } elseif ($blog_id == '3') {
            echo '<span class="wpsr-btn">' . wp_socializer(retweet, 'type=compact&username=ecampusnews') . '</span>';
        } elseif ($blog_id == '4') {
            echo '<span class="wpsr-btn">' . wp_socializer(retweet, 'type=compact&username=eclassroomnews') . '</span>';
        } else {
            echo '<span class="wpsr-btn">' . wp_socializer(retweet, 'type=compact') . '</span>';
        }
        echo '<span class="wpsr-btn">' . wp_socializer(plusone, 'type=medium') . '</span>';
        if (function_exists('wp_email')) {
            echo '<span class="wpsr-btn">';
            email_link();
            echo '</span>';
        }
        if (function_exists('wp_print')) {
            echo '<span class="wpsr-btn">';
            print_link();
            echo '</span>';
        }
        echo '</div>';
    }
    ?>
					<div id="post-<?php 
    the_ID();
    ?>
" <?php 
    post_class('entry');
    ?>
>
						<div class="entry_title">


<div style="float:left; width:475px;"> 
	<h2 style="color:#000 !important; font-size:24px;"><?php 
    if (in_category(array(19, 20, 21))) {
        echo 'Press Release: ';
    }
    the_title();
    ?>
</h2>

<?php 
    $SubTitle = get_post_meta($postid, 'Sub Title', $single = true);
    if ($SubTitle != null) {
        echo '<h3>' . $SubTitle . '</h3>';
    }
    if (get_the_author_meta('user_level') > 3) {
        if (function_exists('gkl_postavatar')) {
            echo '<style type="text/css">img.postavatar {height: 45px; width: auto;}</style>';
            gkl_postavatar(postavatar);
        }
    }
    ?>

<?php 
//.........这里部分代码省略.........
开发者ID:esm-erika,项目名称:eschoolnews,代码行数:101,代码来源:esm-function.php


示例6: bfa_postinfo


//.........这里部分代码省略.........
        $postinfo = str_replace("%permalink%", $permalink, $postinfo);
    }
    // Post ID
    if (strpos($postinfo_string, '%post-id%') !== FALSE) {
        ob_start();
        the_ID();
        $post_id = ob_get_contents();
        ob_end_clean();
        $postinfo = str_replace("%post-id%", $post_id, $postinfo);
    }
    // Post Title
    if (strpos($postinfo_string, '%post-title%') !== FALSE) {
        ob_start();
        the_title();
        $post_title = ob_get_contents();
        ob_end_clean();
        $postinfo = str_replace("%post-title%", $post_title, $postinfo);
    }
    // Edit post
    if (strpos($postinfo_string, '%edit(') !== FALSE) {
        while (strpos($postinfo, '%edit(') !== FALSE) {
            $edit_options = preg_match("/(.*)%edit\\('(.*?)'(.*?)'(.*?)'(.*?)'(.*?)'(.*)/i", $postinfo_string, $edit_matches);
            ob_start();
            edit_post_link($edit_matches[4], $edit_matches[2], $edit_matches[6]);
            $edit_link = ob_get_contents();
            ob_end_clean();
            $postinfo = preg_replace("/(.*)%edit\\((.*?)\\)%(.*)/i", "\${1}" . $edit_link . "\${3}", $postinfo);
        }
    }
    // Print
    if (strpos($postinfo_string, '%print(') !== FALSE) {
        while (strpos($postinfo, '%print(') !== FALSE) {
            $print_text = preg_match("/(.*)%print\\('(.*?)'(.*)/i", $postinfo_string, $print_text_matches);
            $print_link = '<a href="javascript:window.print()">' . $print_text_matches[2] . '</a>';
            $postinfo = preg_replace("/(.*)%print\\((.*?)\\)%(.*)/i", "\${1}" . $print_link . "\${3}", $postinfo);
        }
    }
    // For the "WP-Email" plugin
    if (strpos($postinfo_string, '%wp-email%') !== FALSE) {
        $wp_email = function_exists('wp_email') ? email_link($email_post_text = '', $email_page_text = '', $echo = FALSE) : "";
        $postinfo = str_replace("%wp-email%", $wp_email, $postinfo);
    }
    // For the "WP-Print" plugin
    if (strpos($postinfo_string, '%wp-print%') !== FALSE) {
        $wp_print = function_exists('wp_print') ? print_link($print_post_text = '', $print_page_text = '', $echo = FALSE) : "";
        $postinfo = str_replace("%wp-print%", $wp_print, $postinfo);
    }
    // For the "WP-PostViews" plugin
    if (strpos($postinfo_string, '%wp-postviews%') !== FALSE) {
        $wp_postviews = function_exists('the_views') ? the_views($display = FALSE) : "";
        $postinfo = str_replace("%wp-postviews%", $wp_postviews, $postinfo);
    }
    // For the "WP-PostRatings" plugin
    if (strpos($postinfo_string, '%wp-postratings%') !== FALSE) {
        $wp_postratings = function_exists('the_ratings') ? the_ratings($start_tag = 'span', $custom_id = 0, $display = FALSE) : "";
        $postinfo = str_replace("%wp-postratings%", $wp_postratings, $postinfo);
    }
    // For the "Sociable" plugin
    if (strpos($postinfo_string, '%sociable%') !== FALSE) {
        ob_start();
        $sociable = (function_exists('sociable_html2') and function_exists(do_sociable())) ? do_sociable() : "";
        $sociable = ob_get_contents();
        ob_end_clean();
        $postinfo = str_replace("%sociable%", $sociable, $postinfo);
    }
    // For the "Share This" plugin
    if (strpos($postinfo_string, '%share-this%') !== FALSE) {
        ob_start();
        if (function_exists('sharethis_button')) {
            sharethis_button();
            $share_this = ob_get_contents();
        } else {
            $share_this = "";
        }
        ob_end_clean();
        $postinfo = str_replace("%share-this%", $share_this, $postinfo);
    }
    // Images
    if (strpos($postinfo_string, '<image(') !== FALSE) {
        $postinfo = preg_replace_callback("|<image\\((.*?)\\)>|", "bfa_image_files", $postinfo);
    }
    /* The meta = ALL custom fields:values, formatted by Wordpress as
    	unordered list <ul><li>..</li><li>..</li></ul> */
    if (strpos($postinfo_string, '%meta%') !== FALSE) {
        ob_start();
        the_meta();
        $the_meta = ob_get_contents();
        ob_end_clean();
        // 3.4.3.: remove bfa_ata metas */
        $the_meta = preg_replace("/<li>(.*)bfa_ata(.*)<\\/li>/i", "", $the_meta);
        $postinfo = str_replace("%meta%", $the_meta, $postinfo);
    }
    // Single post meta values, not formatted
    if (strpos($postinfo_string, '%meta(') !== FALSE) {
        $postinfo = preg_replace_callback("|%meta\\('(.*?)'\\)%|", "bfa_meta_value", $postinfo);
    }
    // Since 3.6.7, parse widget areas
    $postinfo = bfa_parse_widget_areas($postinfo);
    return $postinfo;
}
开发者ID:aagivecamp,项目名称:FlintRiver,代码行数:101,代码来源:bfa_postinfo.php


示例7: place_emaillink

function place_emaillink($content)
{
    if (!is_feed()) {
        $content = str_replace("[email_link]", email_link('', '', false), $content);
    } else {
        $content = str_replace("[email_link]", __('Note: There is an email link embedded within this post, please visit this post to email it.', 'wp-email'), $content);
    }
    return $content;
}
开发者ID:jkreska,项目名称:test1,代码行数:9,代码来源:email.php


示例8: the_permalink

        the_permalink();
        ?>
" rel="bookmark" title="<?php 
        _e('Permalink a');
        ?>
 <?php 
        the_title();
        ?>
" class="permalink"><?php 
        _e('Permalink');
        ?>
</a>
			<?php 
        // add support for wp-email
        if (function_exists('wp_email')) {
            email_link('E-Mail to a friend', 'E-Mail to a friend', ' class="permalink"');
        }
        ?>
			</p>
			
		</div>
		
		<?php 
        comments_template();
        ?>
				
	<?php 
    }
} else {
    ?>
		<h2><?php 
开发者ID:nino65,项目名称:pasw2015beta,代码行数:31,代码来源:single.php


示例9: arras_postbar

/**
 * Called to display important links for single posts
 * @since 1.3.3
 */
function arras_postbar($echo = false)
{
    global $post;
    $postbar .= '<ul class="postbar clearfix">';
    $postbar .= '<li><a href="' . get_comments_link() . '">' . __('Comments', 'arras') . ' [' . get_comments_number() . ']</a></li>';
    if (function_exists('wp_print')) {
        $postbar .= '<li>' . print_link('', '', false) . '</li>';
    }
    if (function_exists('wp_email')) {
        $postbar .= '<li>' . email_link('', '', false) . '</li>';
    }
    // Add social bookmarking buttons
    $postbar .= '<li><a href="http://digg.com/submit?phase=2&amp;url=' . get_permalink() . '&amp;title=' . get_the_title() . '">' . __('Digg it!', 'arras') . '</a></li>';
    $postbar .= '<li><a href="http://www.facebook.com/share.php?u=' . get_permalink() . '&amp;t=' . get_the_title() . '">' . __('Facebook', 'arras') . '</a></li>';
    if (current_user_can('edit_post')) {
        $postbar .= '<li><a href="' . get_bloginfo('wpurl') . '/wp-admin/post.php?action=edit&post=' . $post->ID . '">' . __('Edit Post', 'arras') . '</a></li>';
    }
    $postbar .= '</ul>';
    if ($echo) {
        echo apply_filters('arras_postbar', $postbar);
    } else {
        return apply_filters('arras_postbar', $postbar);
    }
}
开发者ID:rmccue,项目名称:wordpress-unit-tests,代码行数:28,代码来源:filters.php


示例10: essays_post_metadata

function essays_post_metadata()
{
    ?>

<!-- START POST METADATA AND SHARING -->

<div style="text-align: center;">
	<span class="entry-meta">
<br>
<em>If you enjoyed this, please share it with others:<br>
Share on <a href="https://twitter.com/share?url=<?php 
    the_permalink();
    ?>
&text=RT%20@RaamDev%20<?php 
    the_title();
    ?>
" target="_new">Twitter</a>, <a href="https://www.facebook.com/sharer.php?u=<?php 
    the_permalink();
    ?>
&t=<?php 
    the_title();
    ?>
" target="_new">Facebook</a>, <a href="https://plusone.google.com/_/+1/confirm?hl=en&url=<?php 
    the_permalink();
    ?>
" target="_new">Google+</a><?php 
    if (function_exists('wp_email') && 'post' == get_post_type()) {
        echo ', or ';
        email_link();
    }
    ?>
 <!-- <a href="#" target="_new">Send via Email</a>--></em>

<!-- <?php 
    if (get_post_type() == 'post') {
        ?>
<br />Filed in <?php 
        the_category(', ');
    }
    if (has_tag()) {
        ?>
, and tagged <?php 
        the_tags('', ', ', '');
        ?>
 <?php 
    }
    ?>
 -->

</span>
</div>


<!-- END POST METADATA AND SHARING -->

<?php 
}
开发者ID:raamdev,项目名称:twentyeleven-raam,代码行数:57,代码来源:functions.php



注:本文中的email_link函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP email_relationship_added函数代码示例发布时间:2022-05-15
下一篇:
PHP email_is_valid函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap