本文整理汇总了PHP中tie_get_option函数的典型用法代码示例。如果您正苦于以下问题:PHP tie_get_option函数的具体用法?PHP tie_get_option怎么用?PHP tie_get_option使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了tie_get_option函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: tie_widgets_init
function tie_widgets_init()
{
$before_widget = '<div id="%1$s" class="widget %2$s">';
$after_widget = '</div><!-- .widget /-->';
$before_title = '<h4 class="widget-top">';
$after_title = '</h4>
';
register_sidebar(array('name' => __('Primary Widget Area', 'tie'), 'id' => 'primary-widget-area', 'description' => __('The Primary widget area', 'tie'), 'before_widget' => $before_widget, 'after_widget' => $after_widget, 'before_title' => $before_title, 'after_title' => $after_title));
//Custom Sidebars
$sidebars = tie_get_option('sidebars');
if ($sidebars) {
foreach ($sidebars as $sidebar) {
register_sidebar(array('name' => $sidebar, 'id' => sanitize_title($sidebar), 'before_widget' => $before_widget, 'after_widget' => $after_widget, 'before_title' => $before_title, 'after_title' => $after_title));
}
}
## Footer Widgets ------------------------------------------------------------
$footer_before_widget = '<div id="%1$s" class="footer-widget %2$s">';
$footer_after_widget = '</div></div><!-- .widget /-->';
$footer_before_title = '<div class="footer-widget-top"><h4>';
$footer_after_title = '</h4></div>
<div class="footer-widget-container">';
$footer_widgets = tie_get_option('footer_widgets');
if ($footer_widgets != 'disable') {
register_sidebar(array('name' => __('First Footer Widget Area', 'tie'), 'id' => 'first-footer-widget-area', 'description' => __('The first footer widget area', 'tie'), 'before_widget' => $footer_before_widget, 'after_widget' => $footer_after_widget, 'before_title' => $footer_before_title, 'after_title' => $footer_after_title));
if ($footer_widgets == 'footer-2c' || $footer_widgets == 'narrow-wide-2c' || $footer_widgets == 'wide-narrow-2c' || $footer_widgets == 'footer-3c' || $footer_widgets == 'wide-left-3c' || $footer_widgets == 'wide-right-3c' || $footer_widgets == 'footer-4c') {
register_sidebar(array('name' => __('Second Footer Widget Area', 'tie'), 'id' => 'second-footer-widget-area', 'description' => __('The Second footer widget area', 'tie'), 'before_widget' => $footer_before_widget, 'after_widget' => $footer_after_widget, 'before_title' => $footer_before_title, 'after_title' => $footer_after_title));
}
if ($footer_widgets == 'footer-3c' || $footer_widgets == 'wide-left-3c' || $footer_widgets == 'wide-right-3c' || $footer_widgets == 'footer-4c') {
register_sidebar(array('name' => __('Third Footer Widget Area', 'tie'), 'id' => 'third-footer-widget-area', 'description' => __('The Third footer widget area', 'tie'), 'before_widget' => $footer_before_widget, 'after_widget' => $footer_after_widget, 'before_title' => $footer_before_title, 'after_title' => $footer_after_title));
}
if ($footer_widgets == 'footer-4c') {
register_sidebar(array('name' => __('Fourth Footer Widget Area', 'tie'), 'id' => 'fourth-footer-widget-area', 'description' => __('The Fourth footer widget area', 'tie'), 'before_widget' => $footer_before_widget, 'after_widget' => $footer_after_widget, 'before_title' => $footer_before_title, 'after_title' => $footer_after_title));
}
}
}
示例2: my_theme_wrapper_start
function my_theme_wrapper_start()
{
if (tie_get_option('columns_num') != '2c') {
echo '<div class="content-wrap content-wrap-wide">';
} else {
echo '<div class="content-wrap">';
}
}
示例3: __ti
function __ti($text)
{
$sanitize_text = tie_sanitize_title(htmlspecialchars($text));
if (tie_get_option($sanitize_text)) {
return htmlspecialchars_decode(tie_get_option($sanitize_text));
} else {
return __($text, 'tie');
}
}
示例4: tie_increment_views
function tie_increment_views()
{
global $wpdb;
if (!empty($_GET['postviews_id']) && tie_get_option('post_views')) {
$post_id = intval($_GET['postviews_id']);
if ($post_id > 0 && defined('WP_CACHE') && WP_CACHE) {
$count = 0;
$count_key = 'tie_views';
$count = (int) get_post_meta($post_id, $count_key, true);
$count++;
update_post_meta($post_id, $count_key, (int) $count);
echo $count;
}
}
exit;
}
示例5: tie_widgets_init
function tie_widgets_init()
{
$before_widget = '<div id="%1$s" class="widget %2$s">';
$after_widget = '</div></div><!-- .widget /-->';
$before_title = '<div class="widget-top"><h4>';
$after_title = '</h4><div class="stripe-line"></div></div>
<div class="widget-container">';
register_sidebar(array('name' => __('Primary Normal Widget Area', 'tie'), 'id' => 'primary-widget-area', 'description' => __('The Primary Normal widget area appears in all pages / archives', 'tie'), 'before_widget' => $before_widget, 'after_widget' => $after_widget, 'before_title' => $before_title, 'after_title' => $after_title));
if (tie_get_option('columns_num') != '2c') {
register_sidebar(array('name' => __('Primary Narrow Widget Area', 'tie'), 'id' => 'narrow-primary-widget-area', 'description' => __('The Primary Narrow widget area appears in all pages / archives', 'tie'), 'before_widget' => $before_widget, 'after_widget' => $after_widget, 'before_title' => $before_title, 'after_title' => $after_title));
}
register_sidebar(array('name' => __('Homepage - First Normal Widget Area', 'tie'), 'id' => 'homepage-normal-widget-area1', 'description' => __('The Primary Normal widget area appears in all pages / archives', 'tie'), 'before_widget' => $before_widget, 'after_widget' => $after_widget, 'before_title' => $before_title, 'after_title' => $after_title));
register_sidebar(array('name' => __('Homepage - Second Normal Widget Area', 'tie'), 'id' => 'homepage-normal-widget-area2', 'description' => __('The Primary Normal widget area appears in all pages / archives', 'tie'), 'before_widget' => $before_widget, 'after_widget' => $after_widget, 'before_title' => $before_title, 'after_title' => $after_title));
if (tie_get_option('columns_num') != '2c') {
register_sidebar(array('name' => __('Homepage - First Narrow Widget Area', 'tie'), 'id' => 'homepage-narrow-widget-area1', 'description' => __('The Primary Narrow widget area appears in all pages / archives', 'tie'), 'before_widget' => $before_widget, 'after_widget' => $after_widget, 'before_title' => $before_title, 'after_title' => $after_title));
register_sidebar(array('name' => __('Homepage - Second Narrow Widget Area', 'tie'), 'id' => 'homepage-narrow-widget-area2', 'description' => __('The Primary Narrow widget area appears in all pages / archives', 'tie'), 'before_widget' => $before_widget, 'after_widget' => $after_widget, 'before_title' => $before_title, 'after_title' => $after_title));
}
if (class_exists('Woocommerce')) {
register_sidebar(array('name' => __('Shop - For WooCommerce Pages', 'tie'), 'id' => 'shop-widget-area', 'description' => __('This widget area uses in the WooCommerce pages .', 'tie'), 'before_widget' => $before_widget, 'after_widget' => $after_widget, 'before_title' => $before_title, 'after_title' => $after_title));
}
//Custom Sidebars
$sidebars = tie_get_option('sidebars');
if ($sidebars) {
foreach ($sidebars as $sidebar) {
register_sidebar(array('name' => $sidebar, 'id' => sanitize_title($sidebar), 'before_widget' => $before_widget, 'after_widget' => $after_widget, 'before_title' => $before_title, 'after_title' => $after_title));
}
}
## Footer Widgets ------------------------------------------------------------
$footer_before_widget = '<div id="%1$s" class="footer-widget %2$s">';
$footer_after_widget = '</div></div><!-- .widget /-->';
$footer_before_title = '<div class="footer-widget-top"><h4>';
$footer_after_title = '</h4></div>
<div class="footer-widget-container">';
$footer_widgets = tie_get_option('footer_widgets');
if ($footer_widgets != 'disable') {
register_sidebar(array('name' => __('First Footer Widget Area', 'tie'), 'id' => 'first-footer-widget-area', 'description' => __('The first footer widget area', 'tie'), 'before_widget' => $footer_before_widget, 'after_widget' => $footer_after_widget, 'before_title' => $footer_before_title, 'after_title' => $footer_after_title));
if ($footer_widgets == 'footer-2c' || $footer_widgets == 'narrow-wide-2c' || $footer_widgets == 'wide-narrow-2c' || $footer_widgets == 'footer-3c' || $footer_widgets == 'wide-left-3c' || $footer_widgets == 'wide-right-3c' || $footer_widgets == 'footer-4c') {
register_sidebar(array('name' => __('Second Footer Widget Area', 'tie'), 'id' => 'second-footer-widget-area', 'description' => __('The Second footer widget area', 'tie'), 'before_widget' => $footer_before_widget, 'after_widget' => $footer_after_widget, 'before_title' => $footer_before_title, 'after_title' => $footer_after_title));
}
if ($footer_widgets == 'footer-3c' || $footer_widgets == 'wide-left-3c' || $footer_widgets == 'wide-right-3c' || $footer_widgets == 'footer-4c') {
register_sidebar(array('name' => __('Third Footer Widget Area', 'tie'), 'id' => 'third-footer-widget-area', 'description' => __('The Third footer widget area', 'tie'), 'before_widget' => $footer_before_widget, 'after_widget' => $footer_after_widget, 'before_title' => $footer_before_title, 'after_title' => $footer_after_title));
}
if ($footer_widgets == 'footer-4c') {
register_sidebar(array('name' => __('Fourth Footer Widget Area', 'tie'), 'id' => 'fourth-footer-widget-area', 'description' => __('The Fourth footer widget area', 'tie'), 'before_widget' => $footer_before_widget, 'after_widget' => $footer_after_widget, 'before_title' => $footer_before_title, 'after_title' => $footer_after_title));
}
}
}
示例6: tie_banner
function tie_banner($banner, $before = false, $after = false)
{
if (tie_get_option($banner)) {
echo $before;
?>
<?php
if (tie_get_option($banner . '_img')) {
$target = "";
if (tie_get_option($banner . '_tab')) {
$target = 'target="_blank"';
}
?>
<a href="<?php
echo tie_get_option($banner . '_url');
?>
" title="<?php
echo tie_get_option($banner . '_alt');
?>
" <?php
echo $target;
?>
>
<img src="<?php
echo tie_get_option($banner . '_img');
?>
" alt="<?php
echo tie_get_option($banner . '_alt');
?>
" />
</a>
<?php
} elseif (tie_get_option($banner . '_adsense')) {
?>
<?php
echo do_shortcode(htmlspecialchars_decode(tie_get_option($banner . '_adsense')));
?>
<?php
}
?>
<?php
echo $after;
}
}
示例7: tie_increment_views
function tie_increment_views()
{
global $wpdb;
if (!empty($_GET['postviews_id']) && tie_get_option('post_views')) {
$post_id = intval($_GET['postviews_id']);
if ($post_id > 0 && defined('WP_CACHE') && WP_CACHE) {
$count_key = 'tie_views';
$count = get_post_meta($post_id, $count_key, true);
if ($count == '') {
$count = 0;
delete_post_meta($post_id, $count_key);
add_post_meta($post_id, $count_key, '0');
} else {
$count++;
update_post_meta($post_id, $count_key, $count);
}
echo $count + 1;
}
}
exit;
}
示例8: tie_get_time
if (tie_get_option('box_meta_date')) {
?>
<?php
tie_get_time();
}
?>
<?php
if (tie_get_option('box_meta_cats')) {
?>
<span><?php
printf('%1$s', get_the_category_list(', '));
?>
</span>
<?php
}
?>
<?php
if (tie_get_option('box_meta_comments')) {
?>
<span><?php
comments_popup_link(__('Leave a comment', 'tie'), __('1 Comment', 'tie'), __('% Comments', 'tie'));
?>
</span>
<?php
}
?>
</p>
示例9: get_home_recent
function get_home_recent($cat_data)
{
$exclude = $Posts = $Box_Title = $pagination = $offset = '';
if (!empty($cat_data['exclude'])) {
$exclude = $cat_data['exclude'];
}
if (!empty($cat_data['number'])) {
$Posts = $cat_data['number'];
}
if (!empty($cat_data['title'])) {
$Box_Title = $cat_data['title'];
}
if (!empty($cat_data['display'])) {
$display = $cat_data['display'];
}
if (!empty($cat_data['pagi'])) {
$pagination = $cat_data['pagi'];
}
if (!empty($cat_data['offset'])) {
$offset = $cat_data['offset'];
}
$args = array('posts_per_page' => $Posts, 'category__not_in' => $exclude, 'offset' => $offset, 'ignore_sticky_posts' => 1);
if (!empty($pagination) && $pagination == 'y') {
$args['paged'] = get_query_var('paged');
} else {
$args['no_found_rows'] = 1;
}
$cat_query = new WP_Query($args);
?>
<section class="cat-box recent-box">
<div class="cat-box-title">
<h2><?php
if (function_exists('icl_t')) {
echo icl_t(theme_name, $cat_data['boxid'], $Box_Title);
} else {
echo $Box_Title;
}
?>
</h2>
<div class="stripe-line"></div>
</div><!-- post-thumbnail /-->
<div class="cat-box-content">
<?php
if ($cat_query->have_posts()) {
?>
<?php
while ($cat_query->have_posts()) {
$cat_query->the_post();
?>
<?php
if ($display == 'blog') {
?>
<article <?php
tie_post_class('item-list');
?>
>
<h2 class="post-box-title"><a href="<?php
the_permalink();
?>
" title="<?php
printf(esc_attr__('Permalink to %s', 'tie'), the_title_attribute('echo=0'));
?>
" rel="bookmark"><?php
the_title();
?>
</a></h2>
<?php
get_template_part('includes/boxes-meta');
?>
<?php
if (tie_get_option('blog_display') == 'content') {
?>
<div class="entry">
<?php
the_content(__('Read More »', 'tie'));
?>
</div>
<?php
} else {
?>
<?php
if (function_exists("has_post_thumbnail") && has_post_thumbnail()) {
?>
<div class="post-thumbnail">
<a href="<?php
the_permalink();
?>
" title="<?php
printf(esc_attr__('Permalink to %s', 'tie'), the_title_attribute('echo=0'));
?>
" rel="bookmark">
<?php
the_post_thumbnail('thumbnail');
//.........这里部分代码省略.........
示例10: tie_page_options_module
//.........这里部分代码省略.........
?>
</ul>
<script>var nextReview = <?php
echo $i + 1;
?>
;</script>
</div>
</div>
<div class="tiepanel-item">
<h3>Sidebar Options</h3>
<div class="option-item">
<?php
$checked = 'checked="checked"';
?>
<ul id="sidebar-position-options" class="tie-options">
<li>
<input id="tie_sidebar_pos" name="tie_sidebar_pos" type="radio" value="default" <?php
if ($tie_sidebar_pos == 'default' || !$tie_sidebar_pos) {
echo $checked;
}
?>
/>
<a class="checkbox-select" href="#"><img src="<?php
echo get_template_directory_uri();
?>
/panel/images/sidebar-default.png" /></a>
</li> <li>
<input id="tie_sidebar_pos" name="tie_sidebar_pos" type="radio" value="right" <?php
if ($tie_sidebar_pos == 'right') {
echo $checked;
}
?>
/>
<a class="checkbox-select" href="#"><img src="<?php
echo get_template_directory_uri();
?>
/panel/images/sidebar-right.png" /></a>
</li>
<li>
<input id="tie_sidebar_pos" name="tie_sidebar_pos" type="radio" value="left" <?php
if ($tie_sidebar_pos == 'left') {
echo $checked;
}
?>
/>
<a class="checkbox-select" href="#"><img src="<?php
echo get_template_directory_uri();
?>
/panel/images/sidebar-left.png" /></a>
</li>
<li>
<input id="tie_sidebar_pos" name="tie_sidebar_pos" type="radio" value="full" <?php
if ($tie_sidebar_pos == 'full') {
echo $checked;
}
?>
/>
<a class="checkbox-select" href="#"><img src="<?php
echo get_template_directory_uri();
?>
/panel/images/sidebar-no.png" /></a>
</li>
</ul>
</div>
<?php
$sidebars = tie_get_option('sidebars');
$new_sidebars = array('' => 'Default');
if (class_exists('Woocommerce')) {
$new_sidebars['shop-widget-area'] = __('Shop - For WooCommerce Pages', 'tie');
}
if ($sidebars) {
foreach ($sidebars as $sidebar) {
$new_sidebars[$sidebar] = $sidebar;
}
}
tie_post_options(array("name" => "Choose Sidebar", "id" => "tie_sidebar_post", "type" => "select", "options" => $new_sidebars));
?>
</div>
<div class="tiepanel-item">
<h3>Page Style </h3>
<?php
tie_post_options(array("name" => "Custom color", "id" => "post_color", "type" => "color"));
tie_post_options(array("name" => "Background", "id" => "post_background", "type" => "background"));
tie_post_options(array("name" => "Full Screen Background", "id" => "post_background_full", "type" => "checkbox"));
?>
</div>
<div class="tiepanel-item">
<h3>Banners Options</h3>
<?php
tie_post_options(array("name" => "Hide Above Banner", "id" => "tie_hide_above", "type" => "checkbox"));
tie_post_options(array("name" => "Custom Above Banner", "id" => "tie_banner_above", "type" => "textarea"));
tie_post_options(array("name" => "Hide Below Banner", "id" => "tie_hide_below", "type" => "checkbox"));
tie_post_options(array("name" => "Custom Below Banner", "id" => "tie_banner_below", "type" => "textarea"));
?>
</div>
<?php
}
示例11: woocommerce_get_page_id
<?php
$sidebar = '';
if (tie_get_option('sidebar_pos') == 'left') {
$sidebar = ' sidebar-left';
}
if (is_singular() || function_exists('is_woocommerce') && is_woocommerce()) {
$current_ID = $post->ID;
if (function_exists('is_woocommerce') && is_woocommerce()) {
$current_ID = woocommerce_get_page_id('shop');
}
$get_meta = get_post_custom($current_ID);
if (!empty($get_meta["tie_sidebar_pos"][0])) {
$sidebar_pos = $get_meta["tie_sidebar_pos"][0];
if ($sidebar_pos == 'left') {
$sidebar = ' sidebar-left';
} elseif ($sidebar_pos == 'full') {
$sidebar = ' full-width';
} elseif ($sidebar_pos == 'right') {
$sidebar = ' sidebar-right';
}
}
}
if (function_exists('is_bbpress') && is_bbpress() && tie_get_option('bbpress_full')) {
$sidebar = ' full-width';
}
?>
<div id="main-content" class="container<?php
echo $sidebar;
?>
">
示例12: panel_options
function panel_options()
{
$categories_obj = get_categories('hide_empty=0');
$categories = array();
foreach ($categories_obj as $pn_cat) {
$categories[$pn_cat->cat_ID] = $pn_cat->cat_name;
}
$sliders = array();
$custom_slider = new WP_Query(array('post_type' => 'tie_slider', 'posts_per_page' => -1, 'no_found_rows' => 1));
while ($custom_slider->have_posts()) {
$custom_slider->the_post();
$sliders[get_the_ID()] = get_the_title();
}
if (get_option('tie_theme_save') == 'n') {
$save = '
<div class="mpanel-submit">
<input type="hidden" name="action" value="save" />
<input type="hidden" name="security" value="' . wp_create_nonce("test-theme-data") . '" />
<input name="save" class="mpanel-save" type="submit" value="Save Changes" />
</div>';
} else {
$save = '
<div class="mpanel-submit">
<input type="hidden" name="action" value="test_theme_data_save" />
<input type="hidden" name="security" value="' . wp_create_nonce("test-theme-data") . '" />
<input name="save" class="mpanel-save" type="submit" value="Save Changes" />
</div>';
}
?>
<div id="save-alert"></div>
<div class="mo-panel">
<div class="mo-panel-tabs">
<div class="logo"></div>
<ul>
<li class="tie-tabs general"><a href="#tab1"><span></span>General Settings</a></li>
<li class="tie-tabs homepage"><a href="#tab2"><span></span>Homepage</a></li>
<li class="tie-tabs header"><a href="#tab9"><span></span>Header Settings</a></li>
<li class="tie-tabs archives"><a href="#tab12"><span></span>Archives Settings</a></li>
<li class="tie-tabs article"><a href="#tab6"><span></span>Article Settings</a></li>
<li class="tie-tabs sidebars"><a href="#tab11"><span></span>Sidebars</a></li>
<li class="tie-tabs footer"><a href="#tab7"><span></span>Footer Settings</a></li>
<li class="tie-tabs slideshow"><a href="#tab5"><span></span>Slider Settings</a></li>
<li class="tie-tabs banners"><a href="#tab8"><span></span>Ads Settings</a></li>
<li class="tie-tabs styling"><a href="#tab13"><span></span>Styling</a></li>
<li class="tie-tabs typography"><a href="#tab14"><span></span>Typography</a></li>
<li class="tie-tabs Social"><a href="#tab4"><span></span>Social Networking</a></li>
<li class="tie-tabs advanced"><a href="#tab10"><span></span>Advanced</a></li>
<li class="tie-tabs tie-rate tie-not-tab"><a target="_blank" href="http://themeforest.net/downloads?ref=TieLabs"><span></span>Rate <?php
echo theme_name;
?>
</a></li>
<li class="tie-tabs tie-more tie-not-tab"><a target="_blank" href="http://themeforest.net/user/TieLabs/portfolio?ref=TieLabs"><span></span>More Themes</a></li>
</ul>
<div class="clear"></div>
</div> <!-- .mo-panel-tabs -->
<div class="mo-panel-content">
<?php
if (get_option('tie_theme_save') == 'n') {
?>
<form method="post">
<?php
} else {
?>
<form action="/" name="tie_form" id="tie_form">
<?php
}
?>
<div id="tab1" class="tabs-wrap">
<h2>General Settings</h2> <?php
echo $save;
?>
<?php
if (class_exists('bbPress')) {
?>
<div class="tiepanel-item">
<h3>bbPress Settings</h3>
<?php
tie_options(array("name" => "bbPress Full width", "id" => "bbpress_full", "type" => "checkbox"));
?>
</div>
<?php
}
?>
<div class="tiepanel-item">
<h3>Theme Layout</h3>
<div class="option-item">
<?php
$checked = 'checked="checked"';
$tie_theme_layout = tie_get_option('theme_layout');
?>
<ul id="tie_theme_layout" class="tie-options">
//.........这里部分代码省略.........
示例13: the_title
the_title();
?>
</a>
</h2>
<?php
get_template_part('framework/parts/meta-archives');
?>
<div class="entry">
<?php
the_content(__ti('Read More »'));
?>
</div>
<?php
if (tie_get_option('archives_socail')) {
get_template_part('framework/parts/share');
}
// Get Share Button template
?>
<div class="clear"></div>
</article><!-- .item-list -->
<?php
}
?>
</div>
示例14: printf
?>
<?php
if (tie_get_option('post_cats')) {
?>
<span class="post-cats"><i class="fa fa-folder"></i><?php
printf('%1$s', get_the_category_list(', '));
?>
</span>
<?php
}
?>
<?php
if (tie_get_option('post_comments')) {
?>
<span class="post-comments"><i class="fa fa-comments"></i><?php
comments_popup_link(__ti('Leave a comment'), __ti('1 Comment'), __ti('% Comments'));
?>
</span>
<?php
}
if (tie_get_option('post_views')) {
$text = __ti('Views');
echo tie_views($text);
}
?>
</p>
<div class="clear"></div>
<?php
}
示例15: get_the_category
$categories = get_the_category($post->ID);
$category_ids = array();
foreach ($categories as $individual_category) {
$category_ids[] = $individual_category->term_id;
}
$args = array('post__not_in' => array($post->ID), 'posts_per_page' => $related_no, 'category__in' => $category_ids, 'no_found_rows' => 1);
}
$related_query = new wp_query($args);
if ($related_query->have_posts()) {
$count = 0;
?>
<section id="related_posts">
<div class="block-head">
<h3><?php
if (tie_get_option('related_title')) {
echo tie_get_option('related_title');
} else {
_e('Related Articles', 'tie');
}
?>
</h3><div class="stripe-line"></div>
</div>
<div class="post-listing">
<?php
while ($related_query->have_posts()) {
$related_query->the_post();
?>
<div <?php
tie_post_class('related-item');
?>
>