예제 #1
0
}
$html = '' . "\n";
$html .= '<section id="about" class="gray-bg padding-top-bottom section-features" style="background: ' . $background_color . $background_image . $background_repeat . $background_attachment . $background_positon . ';' . "\n" . $background_size . '">' . "\n";
$html .= '            <div class="container features">' . "\n";
if ($feature_sec_title) {
    $html .= '<h1 class="section-title" style="color:' . $feature_title_color . '">' . translate($feature_sec_title, "SimThemes") . '</h1>' . "\n";
}
if ($feature_sec_text) {
    $html .= '<p class="section-description">' . translate($feature_sec_text, "SimThemes") . '</p>' . "\n";
}
$html .= '                <div class="row">' . "\n";
if ($add_features) {
    $i = 0;
    foreach ($add_features as $add_feature) {
        $i++;
        $html .= '				<div class="' . $ST_core->layout_setting_front_end($post->ID, 'select_column_feature') . ' scrollimation fade-up">' . "\n";
        $html .= '                        <div class="media">' . "\n";
        $html .= '                            <div class="icon pull-left">' . "\n";
        $html .= '                                <i class="media-object icon-1 fa ' . $add_feature['feature_icon'] . '"></i>' . "\n";
        $html .= '                                <i class="media-object icon-2 fa ' . $add_feature['feature_icon_hover'] . '"></i>' . "\n";
        $html .= '                            </div>' . "\n";
        $html .= '                            <div class="media-body">' . "\n";
        if ($show_feature_title == 'Yes') {
            $html .= '<h4 style="color:' . $feature_title_color . '">' . "\n";
            //if($add_feature['feature_url']){
            $html .= '	<a href="' . $add_feature['feature_url'] . '" style="color:' . $featured_link_color . '">' . "\n";
            //}
            $html .= translate($ST_core->limit_words($add_feature['title'], $ind_feature_title_ltd), "SimThemes");
            //if($add_feature['feature_url']){
            $html .= '	</a>' . "\n";
            //}
예제 #2
0
<?php

if (class_exists('ST_core')) {
    $ST_core = new ST_core();
}
$Portfolio_sec_title = get_post_meta($post->ID, 'Portfolio_sec_title', true);
$Portfolio_sec_text = get_post_meta($post->ID, 'Portfolio_sec_text', true);
$active_category_filter = get_post_meta($post->ID, 'active_category_filter', true);
$select_column_Portfolio = $ST_core->layout_setting_front_end(get_the_ID(), 'select_column_Portfolio');
$ind_Portfolio_number = get_post_meta($post->ID, 'ind_Portfolio_number', true);
$ind_Portfolio_number_load = get_post_meta($post->ID, 'ind_Portfolio_number_load', true);
$background = get_post_meta($post->ID, 'por_bg', true);
if (!empty($background)) {
    $background_color = $background['background-color'] != '' ? $background['background-color'] . ' ' : '';
    $background_image = $background['background-image'] != '' ? 'url(' . $background['background-image'] . ') ' : '';
    $background_repeat = $background['background-repeat'] != '' ? $background['background-repeat'] . ' ' : '';
    $background_positon = $background['background-position'] != '' ? $background['background-position'] . ' ' : '';
    $background_attachment = $background['background-attachment'] != '' ? $background['background-attachment'] . ' ' : '';
    $background_size = $background['background-size'] != '' ? 'background-size: ' . $background['background-size'] . ';' : '';
}
$html .= '<section id="portfolio" class="gray-bg padding-top-bottom" style="background: ' . $background_color . $background_image . $background_repeat . $background_attachment . $background_positon . ';' . "\n" . $background_size . '; ">' . "\n";
$html .= '		<div class="container">' . "\n";
if ($Portfolio_sec_title) {
    $html .= '<h1 class="section-title" id="move-title">' . $Portfolio_sec_title . '</h1>' . "\n";
}
if ($active_category_filter) {
    $html .= '<p class="section-description">' . $Portfolio_sec_text . '</p>' . "\n";
}
if ($active_category_filter) {
    $html .= '            <!--==== Portfolio Filters ====-->' . "\n";
    $html .= '			<div id="filter-works">' . "\n";