mirror of
https://github.com/danpros/htmly.git
synced 2026-04-23 05:56:22 +05:30
Prepare release
This commit is contained in:
parent
1af0d9bdc1
commit
e1151923bd
1 changed files with 15 additions and 9 deletions
|
|
@ -252,16 +252,22 @@ function get_posts($posts, $page = 1, $perpage = 0)
|
||||||
$url = array();
|
$url = array();
|
||||||
$bc = array();
|
$bc = array();
|
||||||
|
|
||||||
$tLang = get_content_tag('tag', $content);
|
$tagt = get_content_tag('tag', $content);
|
||||||
$tl = explode(',', rtrim($tLang, ','));
|
|
||||||
$t = explode(',', rtrim($arr[1], ','));
|
$t = explode(',', rtrim($arr[1], ','));
|
||||||
$tCom = array_combine($t, $tl);
|
|
||||||
|
|
||||||
foreach ($tCom as $key => $val) {
|
if(!empty($tagt)) {
|
||||||
if(!empty($val)) {
|
$tl = explode(',', rtrim($tagt, ','));
|
||||||
$tag[] = array($val, site_url() . 'tag/' . $key);
|
$tCom = array_combine($t, $tl);
|
||||||
} else {
|
foreach ($tCom as $key => $val) {
|
||||||
$tag[] = array($key, site_url() . 'tag/' . $key);
|
if(!empty($val)) {
|
||||||
|
$tag[] = array($val, site_url() . 'tag/' . $key);
|
||||||
|
} else {
|
||||||
|
$tag[] = array($key, site_url() . 'tag/' . $key);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
foreach ($t as $tt) {
|
||||||
|
$tag[] = array($tt, site_url() . 'tag/' . $tt);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue