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

PHP getPostLink函数代码示例

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

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



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

示例1: while

        $_i = 0;
        while ($_R = db_fetch_array($_RCD)) {
            $_i++;
            ?>
		<?php 
            $_THUMB = getUploadImage($_R['upload'], $_R['d_regis'], $_R['content'], 'jpg|jpeg');
            ?>
		<div class="post<?php 
            if ($_NUM == $_i) {
                ?>
 noline<?php 
            }
            ?>
">
			<div class="xtitle"><a href="<?php 
            echo getPostLink($_R);
            ?>
"><?php 
            echo $_R['subject'];
            ?>
</a></div>
			<div class="date"><?php 
            echo getDateFormat($_R['d_regis'], 'Y년 m월 d일');
            ?>
</div>
			<div class="cont">
				<?php 
            if ($_THUMB) {
                ?>
<img src="<?php 
                echo $_THUMB;
开发者ID:kieregh,项目名称:rb1.2,代码行数:31,代码来源:_main.php


示例2: getDbArray

	<?php 
$_RCD = getDbArray($table['bbsdata'], ($wdgvar['bid'] ? 'bbs=' . $wdgvar['bid'] . ' and ' : '') . 'display=1 and site=' . $_HS['uid'], '*', 'gid', 'asc', $wdgvar['limit'], 1);
?>
	<?php 
$k = 0;
while ($_R = db_fetch_array($_RCD)) {
    $k++;
    ?>
	<?php 
    $_thumbimg = getUploadImage($_R['upload'], $_R['d_regis'], $_R['content'], 'jpg|jpeg');
    ?>
	<?php 
    $_thumbimg = $_thumbimg ? $_thumbimg : $g['img_core'] . '/blank.gif';
    ?>
	<?php 
    $_link = getPostLink($_R);
    ?>
	<li<?php 
    if (!($k % 2)) {
        ?>
 class="nogap"<?php 
    }
    ?>
>
		<a href="<?php 
    echo $_link;
    ?>
"><img src="<?php 
    echo $_thumbimg;
    ?>
" width="115" height="85" alt="" /></a>
开发者ID:kieregh,项目名称:rb1.2,代码行数:31,代码来源:main.php


示例3: getPostAudio

                 }
             }
             if ($recent['post_audio'] != '' && get_custom_option('substitute_audio') == 'yes') {
                 $src = getPostAudio($recent['post_audio']);
                 if ($src) {
                     $recent['post_audio'] = substituteAudio('<audio src="' . $src . '">');
                 }
             }
         } else {
             if ($recent['post_format'] == 'image' && !$recent['$post_thumb']) {
                 if (($src = getPostImage($recent['post_content_prepared'])) != '') {
                     $recent['post_thumb'] = getResizedImageTag($src, 310, 310);
                 }
             } else {
                 if ($recent['post_format'] == 'link') {
                     $post_url_data = getPostLink($recent['post_content_prepared'], false);
                     $recent['post_url'] = $post_url_data['url'];
                     $recent['post_url_target'] = $post_url_data['target'];
                 }
             }
         }
     }
 }
 $recent['categories'] = getCategoriesByPostId($recent['ID']);
 $recent['post_hover_bg'] = get_custom_option('puzzles_post_bg', null, $recent['ID']);
 $recent['post_hover_pos'] = get_custom_option('puzzles_post_position', null, $recent['ID']);
 $recent['post_accent_color'] = get_custom_option('theme_accent_color', null, $recent['ID']);
 $recent['post_accent_category'] = count($recent['categories']) > 0 ? $recent['categories'][0]['name'] : '';
 $show_content_block = !in_array($recent['post_format'], array('link', 'image')) || !$recent['post_thumb'];
 $puzzles_style = get_custom_option('puzzles_style');
 $no_thumb = in_array($recent['post_format'], array('quote', 'link', 'image')) || !$recent['post_thumb'] && (!$recent['post_gallery'] || $recent['post_protected']);
开发者ID:eq0rip,项目名称:Hamroreview.com,代码行数:31,代码来源:single.php


示例4: while

	<th scope="col" class="side1">번호</th>
	<th scope="col">제목</th>
	<th scope="col">조회</th>
	<th scope="col" class="side2">날짜</th>
	</tr>
	</thead>
	<tbody>

	<?php 
while ($R = db_fetch_array($RCD)) {
    ?>
	<?php 
    $R['mobile'] = isMobileConnect($R['agent']);
    ?>
	<?php 
    $R['sbjlink'] = getPostLink($R);
    ?>
	<tr>
	<td>
		<?php 
    if ($R['uid'] != $uid) {
        ?>
		<?php 
        echo $NUM - (($p - 1) * $recnum + $_rec++);
        ?>
		<?php 
    } else {
        $_rec++;
        ?>
		<span class="now">&gt;&gt;</span>
		<?php 
开发者ID:hoya0704,项目名称:trevia.co.kr,代码行数:31,代码来源:post.php


示例5: while

?>
개)</div>
		<div class="xright"><a href="<?php 
echo $g['url_reset'];
?>
">통합검색</a></div>
		<div class="clear"></div>
	</div>


	<div class="postbox">
<?php 
if ($NUM) {
    while ($R = db_fetch_array($RCD)) {
        $B = getUidData($table['bbslist'], $R['bbs']);
        $_link = getPostLink($R);
        ?>

	<div class="sbjbox">
		<a href="<?php 
        echo $_link;
        ?>
" class="subject"><?php 
        echo $R['subject'];
        ?>
</a>
		<a href="<?php 
        echo $_link;
        ?>
" target="_blank"><img src="<?php 
        echo $g['img_core'];
开发者ID:hoya0704,项目名称:trevia.co.kr,代码行数:31,代码来源:post.php


示例6: getPostLink

        echo $R['mobile'];
        ?>
)로 등록된 글입니다" /><?php 
    }
    ?>
			<?php 
    if ($R['category']) {
        ?>
<span class="cat">[<?php 
        echo $R['category'];
        ?>
]</span><?php 
    }
    ?>
			<a href="<?php 
    echo getPostLink($R);
    ?>
" target="_blank"><?php 
    echo $R['subject'];
    ?>
</a>
			<?php 
    if (strstr($R['content'], '.jpg')) {
        ?>
<img src="<?php 
        echo $g['img_core'];
        ?>
/_public/ico_pic.gif" class="imgpos" alt="사진" title="사진" /><?php 
    }
    ?>
			<?php 
开发者ID:hoya0704,项目名称:trevia.co.kr,代码行数:31,代码来源:movecopy.php


示例7: getPostAudio

                    $src = getPostAudio($post_audio);
                    if ($src) {
                        $post_audio = substituteAudio('<audio src="' . $src . '">');
                    }
                }
            }
        }
    }
}
if ($post_format == 'image' && !$post_thumb) {
    if (($src = getPostImage($post_content_prepared)) != '') {
        $post_thumb = getResizedImageTag($src, $thumb_size[$blog_style]['w'], $thumb_size[$blog_style]['h']);
    }
} else {
    if ($post_format == 'link') {
        $post_url_data = getPostLink($post_content_prepared, false);
        $post_link = $post_url = $post_url_data['url'];
        $post_url_target = $post_url_data['target'];
    }
}
// Get all post's categories
$post_categories = getCategoriesByPostId($post_id);
$post_categories_str = '';
$post_accent_color = $parent_cat_id > 0 ? !isset($post_accent_color) || $post_accent_color == '' ? getCategoryInheritedProperty($parent_cat_id, 'theme_accent_color') : $post_accent_color : '';
$post_accent_category = '';
$ex_cats = explode(',', get_theme_option('exclude_cats'));
for ($i = 0; $i < count($post_categories); $i++) {
    if (in_array($post_categories[$i]['term_id'], $ex_cats)) {
        continue;
    }
    if ($post_accent_category == '') {
开发者ID:eq0rip,项目名称:Hamroreview.com,代码行数:31,代码来源:template-blog-loop.php


示例8: sc_blogger


//.........这里部分代码省略.........
                        $src = getVideoPlayerURL(getPostVideo($post_content_full, true), $post_thumb != '');
                        if ($src) {
                            $post_video = substituteVideo('<video src="' . $src . '">', $post_thumb_w, $post_thumb_h);
                        }
                    }
                    if ($post_video != '' && get_custom_option('substitute_video') == 'yes') {
                        $src = getVideoPlayerURL(getPostVideo($post_video), $post_thumb != '');
                        if ($src) {
                            $post_video = substituteVideo('<video src="' . $src . '">', $post_thumb_w, $post_thumb_h);
                        }
                    }
                } else {
                    if ($post_format == 'audio') {
                        $post_audio = getPostAudio($post_content_full, false);
                        if ($post_audio == '') {
                            $src = getPostAudio($post_content_full, true);
                            if ($src) {
                                $post_audio = substituteAudio('<audio src="' . $src . '">');
                            }
                        }
                        if ($post_audio != '' && get_custom_option('substitute_audio') == 'yes') {
                            $src = getPostAudio($post_audio);
                            if ($src) {
                                $post_audio = substituteAudio('<audio src="' . $src . '">');
                            }
                        }
                    } else {
                        if ($post_format == 'image' && !$post_thumb) {
                            if (($src = getPostImage($post_content_full)) != '') {
                                $post_thumb = getResizedImageTag($src, $post_thumb_w, $post_thumb_h);
                            }
                        } else {
                            if ($post_format == 'link') {
                                $post_url_data = getPostLink($post_content_full, false);
                                $post_url = $post_url_data['url'];
                                $post_url_target = $post_url_data['target'];
                            }
                        }
                    }
                }
            }
        }
        // Get all post's categories
        $post_categories = getCategoriesByPostId($post_id);
        $post_categories_str = '';
        $post_accent_color = '';
        $post_accent_category = '';
        $ex_cats = explode(',', get_theme_option('exclude_cats'));
        for ($i = 0; $i < count($post_categories); $i++) {
            if (in_array($post_categories[$i]['term_id'], $ex_cats)) {
                continue;
            }
            if ($post_accent_category == '') {
                if (get_theme_option('close_category') == 'parental') {
                    $parent_cat_id = 0;
                    //(int) get_custom_option('category_id');
                    $parent_cat = getParentCategory($post_categories[$i]['term_id'], $parent_cat_id);
                    if ($parent_cat) {
                        $post_accent_category = $parent_cat['name'];
                        if ($post_accent_color == '') {
                            $post_accent_color = getCategoryInheritedProperty($parent_cat['term_id'], 'theme_accent_color');
                        }
                    }
                } else {
                    $post_accent_category = $post_categories[$i]['name'];
                    if ($post_accent_color == '') {
开发者ID:eq0rip,项目名称:Hamroreview.com,代码行数:67,代码来源:shortcodes.php


示例9: getPostData


//.........这里部分代码省略.........
                 }
                 //$thumb_sizes['h_crop']);
             }
             if ($post_video != '' && $opt['substitute_video']) {
                 $src = getVideoPlayerURL(getPostVideo($post_video), $post_thumb != '');
                 if ($src) {
                     $post_video = substituteVideo('<video src="' . $src . '">', $thumb_sizes['w'], round($thumb_sizes['w'] / 16 * 9), false);
                 }
                 //$thumb_sizes['h_crop']);
             }
         } else {
             if ($post_format == 'audio') {
                 $post_audio = getPostAudio($post_content_original, false);
                 if ($post_audio == '') {
                     $src = getPostAudio($post_content_original, true);
                     if ($src) {
                         $post_audio = substituteAudio('<audio src="' . $src . '"></audio>');
                     }
                 }
                 if ($post_audio != '' && $opt['substitute_audio'] == 'yes') {
                     $src = getPostAudio($post_audio);
                     $tag_t = getTagAttrib($post_audio, '[trx_audio]', 'title');
                     $tag_t = $tag_t == '' ? getTagAttrib($post_audio, '[audio]', 'title') : $tag_t;
                     $tag_at = getTagAttrib($post_audio, '[trx_audio]', 'author');
                     $tag_at = $tag_at == '' ? getTagAttrib($post_audio, '[audio]', 'author') : $tag_at;
                     if ($src) {
                         $post_audio = substituteAudio('<audio title="' . $tag_t . '" author="' . $tag_at . '" src="' . $src . '"></audio>');
                     }
                 }
             }
         }
     }
     if ($post_format == 'image' && !$post_thumb) {
         if (($src = getPostImage($post_content_original)) != '') {
             $post_thumb = getResizedImageTag($src, $thumb_sizes['w'], $thumb_sizes['h_crop']);
         }
     }
     if ($post_format == 'link') {
         $post_url_data = getPostLink($post_content_original, false);
         $post_link = $post_url = $post_url_data['url'];
         $post_url_target = $post_url_data['target'];
     }
     // Get all post's categories
     $post_categories_list = array();
     $post_categories_ids = array();
     $post_categories_slugs = array();
     $post_categories_links = '';
     $post_root_category = '';
     if ($opt['categories_list']) {
         $post_categories_list = getCategoriesByPostId($post_id);
         $ex_cats = explode(',', get_theme_option('exclude_cats'));
         for ($i = 0; $i < count($post_categories_list); $i++) {
             if (in_array($post_categories_list[$i]['term_id'], $ex_cats)) {
                 continue;
             }
             if ($post_root_category == '') {
                 if (get_theme_option('close_category') == 'parental') {
                     $parent_cat = getParentCategory($post_categories_list[$i]['term_id'], $opt['parent_cat_id']);
                     if ($parent_cat) {
                         $post_root_category = $parent_cat['name'];
                     }
                 } else {
                     $post_root_category = $post_categories_list[$i]['name'];
                 }
             }
             $post_categories_ids[] = $post_categories_list[$i]['term_id'];
             $post_categories_slugs[] = $post_categories_list[$i]['slug'];
             $post_categories_links .= '<a class="cat_link" href="' . $post_categories_list[$i]['link'] . '">' . $post_categories_list[$i]['name'] . ($i < count($post_categories_list) - 1 ? ',' : '') . '</a> ';
         }
         if ($post_root_category == '' && count($post_categories_list) > 0) {
             $post_root_category = $post_categories_list[0]['name'];
         }
     }
     // Get all post's tags
     $post_tags_list = array();
     $post_tags_ids = array();
     $post_tags_slugs = array();
     $post_tags_links = '';
     if ($opt['tags_list']) {
         if (($post_tags_list = get_the_tags()) != 0) {
             $tag_number = 0;
             foreach ($post_tags_list as $tag) {
                 $tag_number++;
                 $post_tags_links .= '<a class="tag_link" href="' . get_tag_link($tag->term_id) . '">' . $tag->name . ($tag_number == count($post_tags_list) ? '' : ',') . '</a> ';
                 $post_tags_ids[] = $tag->term_id;
                 $post_tags_slugs[] = $tag->slug;
             }
         } else {
             if (!is_array($post_tags_list)) {
                 $post_tags_list = array();
             }
         }
     }
     if ($old_post != null) {
         $post = $old_post;
         setup_postdata($post);
     }
     $post_data = compact('post_id', 'post_protected', 'post_type', 'post_format', 'post_flags', 'post_icon', 'post_link', 'post_comments_link', 'post_date_sql', 'post_date_stamp', 'post_date', 'post_date_part1', 'post_date_part2', 'post_comments', 'post_views', 'post_likes', 'post_reviews_author', 'post_reviews_users', 'post_author', 'post_author_id', 'post_author_url', 'post_title', 'post_title_plain', 'post_content_plain', 'post_content_original', 'post_content', 'post_excerpt_original', 'post_excerpt', 'post_thumb', 'post_attachment', 'post_gallery', 'post_video', 'post_audio', 'post_url', 'post_url_target', 'post_categories_list', 'post_categories_slugs', 'post_categories_ids', 'post_categories_links', 'post_root_category', 'post_tags_list', 'post_tags_ids', 'post_tags_slugs', 'post_tags_links', 'post_edit_enable', 'post_delete_enable');
     return apply_filters('themerex_get_post_data', $post_data, $opt, $post_obj);
 }
开发者ID:WestBayResidential,项目名称:wbrsorg,代码行数:101,代码来源:_wp_utils.php


示例10: checkIsValidMd5

include 'header.php';
include "custom_function.php";
//Post activation no register user
$code = checkIsValidMd5($_GET['code']);
$type = checkIsPostType($_GET['type']);
if ($code) {
    $result = mysql_query("UPDATE `{$type}` SET `status` = 1 WHERE `activation`='{$code}'");
    ?>

    <div class="container">
        <div class="post-activation">
            <div class="col-md-12 col-lg-12">
                <?php 
    if ($result) {
        $get_post = mysql_query("SELECT `id` FROM `{$type}` WHERE `activation`='{$code}'");
        $post_id = mysql_fetch_array($get_post);
        $link = getPostLink($post_id['id'], $type);
        print "<h2>Congratulations! you have successfully active your posting. Click <a href='{$link}'>here</a> to see your posting</h2>";
    } else {
        print "<h2>Activation is broken</h2>";
    }
    ?>
            </div>
        </div>
    </div>


    <?php 
}
include 'footer.php';
开发者ID:sashakozakov,项目名称:trademydeals,代码行数:30,代码来源:activation.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP getPostToForm函数代码示例发布时间:2022-05-15
下一篇:
PHP getPostLikeLink函数代码示例发布时间: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