本文整理匯總了PHP中porto_header_socials函數的典型用法代碼示例。如果您正苦於以下問題:PHP porto_header_socials函數的具體用法?PHP porto_header_socials怎麽用?PHP porto_header_socials使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了porto_header_socials函數的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: force_balance_tags
echo $top_nav;
?>
</div>
<div class="header-right">
<div class="side-bottom">
<?php
// show contact info and mini cart
$contact_info = $porto_settings['header-contact-info'];
if ($contact_info) {
echo '<div class="header-contact">' . force_balance_tags($contact_info) . '</div>';
}
?>
<?php
// show social links
echo porto_header_socials();
?>
<?php
// show copyright
$copyright = $porto_settings['header-copyright'];
if ($copyright) {
echo '<div class="header-copyright">' . force_balance_tags($copyright) . '</div>';
}
?>
</div>
</div>
</div>
</div>
</header>
示例2: force_balance_tags
// show welcome message
if ($porto_settings['welcome-msg']) {
echo '<span class="welcome-msg">' . force_balance_tags($porto_settings['welcome-msg']) . '</span>';
}
?>
</div>
<div class="header-right">
<?php
// show top navigation
$top_nav = porto_top_navigation();
echo $top_nav;
?>
<?php
$minicart = porto_minicart();
$searchform = porto_search_form();
$header_social = porto_header_socials();
if ($minicart || $searchform || $header_social) {
echo '<div class="block-inline">';
}
// show search form
echo $searchform;
// show social links and welcome message
echo $header_social;
// show minicart
echo $minicart;
if ($minicart || $searchform || $header_social) {
echo '</div>';
}
?>
</div>
</div>