本文整理汇总了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;
示例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>
示例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']);
示例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">>></span>
<?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'];
示例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
示例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 == '') {
示例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 == '') {
示例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);
}
示例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';