本文整理汇总了PHP中seo::getFriendlyURL方法的典型用法代码示例。如果您正苦于以下问题:PHP seo::getFriendlyURL方法的具体用法?PHP seo::getFriendlyURL怎么用?PHP seo::getFriendlyURL使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类seo
的用法示例。
在下文中一共展示了seo::getFriendlyURL方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
<div class="b-menu b-menu_seo b-menu_padtop_20 b-menu_padbot_20 b-menu_bordtop_b2">
<div class="b-menu__inner">
<h3 class="b-menu__h4 b-menu__h4_padbot_10">О разделах каталога фрилансеров:</h3>
<table class="b-menu__table b-menu__table_width_full" cellpadding="0" cellspacing="0" border="0">
<tbody>
<?php
$n = 1;
foreach ($seo_catalog_data as $seo_direct) {
if ($n == 1) {
echo '<tr class="b-menu__tr">';
}
echo '<td class="b-menu__td b-menu__td_padright_20 b-menu__td_padbot_10"><a class="b-menu__link b-menu__link_fontsize_11" href="' . seo::getFriendlyURL('', $seo_direct['name_section_link'], '') . '">' . reformat($seo_direct['dir_name']) . '</a></td>';
if ($n == 8) {
echo '</tr>';
$n = 1;
} else {
$n++;
}
}
if ($n != 1) {
for ($i = $n; $i <= 8; $i++) {
echo '<td class="b-menu__td b-menu__td_padright_20 b-menu__td_padbot_10"> </td>';
}
echo '</tr>';
}
?>
</tbody>
</table>
</div>
</div>
示例2: isset
</ul>
</li>
<?php
$grnum++;
}
}
//foreach
?>
<?php
}
?>
<?php
if ($direct_id) {
?>
<li class="all-employers"><span class="wrap-item"><a href="<?php
echo seo::getFriendlyURL($subdomain, '', '');
?>
">Все направления</a></span></li>
<?php
}
?>
</ul>
<b class="b2"></b>
<b class="b1"></b>
</div>
<script type="text/javascript">asynccall('initCtg(<?php
echo isset($gr_show) ? $gr_show : -1;
?>
)');</script>
示例3: foreach
foreach ($sections as $section) {
if (!$section['subsection']) {
continue;
}
if ($n == 1) {
echo '<tr class="b-layout__tr">';
}
echo '<td class="b-layout__one ' . ($n == 4 ? '' : 'b-layout__one_padright_20') . ' b-layout__one_width_20ps">';
echo '<h3 class="b-layout__h3">' . $section['name_section'] . '</h3>';
$len = count($section['subsection']) > 5 ? 5 : count($section['subsection']);
for ($i = 0; $i < $len; ++$i) {
$item = $section['subsection'][$i];
echo '<div class="b-layout__txt b-layout__txt_padbot_5">— <a class="b-layout__link" href="' . seo::getFriendlyURL($subdomains[$item['subdomain_id']]['subdomain'], $directions[$item['direct_id']]['name_section_link'], $item['name_section_link'], $section['name_section_link']) . '">' . $item['name_section'] . '</a></div>';
}
if ($len == 5) {
echo '<div class="b-layout__txt b-layout__txt_padleft_15 b-layout__txt_padbot_40"><a class="b-layout__link b-layout__link_bordbot_dot_0f71c8" href="' . seo::getFriendlyURL($seo->subdomain['subdomain'], $directions[$section['direct_id']]['name_section_link'], '', $section['name_section_link']) . '">Остальные статьи</a></div>';
} else {
echo '<div class="b-layout__txt b-layout__txt_padleft_15 b-layout__txt_padbot_40"> </div>';
}
echo '</td>';
if ($n == 4) {
echo '</tr>';
$n = 1;
} else {
++$n;
}
}
if ($n != 1) {
for ($i = $n; $i <= 4; ++$i) {
echo '<td class="b-layout__one"> </td>';
}