$cformClass = 'col-sm-12'; } ?> <?php if ($descriptionQuery->get('show')) { ?> <div class="row"> <div class="col-md-offset-2 col-md-8 col-sm-12"> <div class="row"> <?php foreach ($descriptionQuery->get('description-boxes') as $oneBox) { $bootstrapClass = ff_load_section_printer('bootstrap-columns', $oneBox->get('bootstrap-columns')); echo '<div class="' . $bootstrapClass . '">'; echo '<div class="widget widget_contact">'; echo '<ul>'; echo '<li>'; foreach ($oneBox->get('lines') as $oneLine) { $type = $oneLine->getVariationType(); if ($type == 'one-line') { echo ff_wp_kses($oneLine->get('text')) . '<br>'; } else { if ($type == 'one-heading') { echo '<span>' . ff_wp_kses($oneLine->get('text')) . '</span>'; } else { if ($type == 'one-email') { echo '<a href="mailto:' . esc_attr($oneLine->get('text')) . '">' . ff_wp_kses($oneLine->get('text')) . '</a><br>'; }
} ?> </div> </div> </div> <?php ff_print_after_section($query->get('section-settings-navigation section-settings')); ?> </div> <?php $sliderHeight = $query->get('slider-height'); ?> <div class="project-slider"> <ul> <?php foreach ($query->get('projects') as $oneProject) { $imageNonResized = $oneProject->getImage('project-image')->url; $imageUrlResized = fImg::resize($imageNonResized, 1868, $sliderHeight, true); echo '<li>'; echo '<img src="' . esc_url($imageUrlResized) . '" alt="">'; echo '<div class="slide-description">'; ff_load_section_printer('heading-content', $oneProject); echo '</div>'; echo '</li>'; } ?> </ul> </div>
<div class="row"> <?php $cnt = 0; foreach ($query->get('numbered-services') as $service) { $cnt++; $bootstrapClasses = ff_load_section_printer('bootstrap-columns', $service->get('bootstrap-columns')); ?> <div class="<?php echo esc_attr($bootstrapClasses); ?> "> <div class="services-boxes style-1 wow fadeInDown"> <div class="services-boxes-content"> <h5><?php echo '0' . absint($cnt); ?> </h5> <h2><a href="<?php echo esc_url($service->get('link')); ?> "><?php $service->printText('title'); ?> </a></h2> <p><?php $service->printText('description'); ?> </p>
<div class="row"> <?php $cnt = 0; foreach ($query->get('numbered-services') as $service) { $cnt++; $bootstrapClass = ff_load_section_printer('bootstrap-columns', $service->get('bootstrap-columns')); $animationClass = ff_load_section_printer('animation', $service); ?> <div class="<?php echo esc_attr($bootstrapClass); ?> "> <div class="services-boxes style-4 wow <?php echo esc_attr($animationClass); ?> "> <h1><?php echo absint($cnt); ?> .</h1> <h3> <?php if ($service->get('url')) { echo '<a href="'; $service->printText('url'); echo '"';
function ff_print_before_section(ffOptionsQuery $query) { /**********************************************************************************************************************/ /* FULLWIDTH SECTION SETTINGS /**********************************************************************************************************************/ $general = $query->get('general'); $boxed = $query->get('boxed'); $container = $query->get('container'); // html ID $id = ''; if ($general->get('id') != '') { $id = 'id="' . $general->get('id') . '"'; } $colorClass = ''; if ($general->get('color-type') == 'dark') { $colorClass = ' full-section'; } $fullscreenClass = ''; if ($container->get('is-fulscreen')) { $fullscreenClass = ' full-screen'; } $fullwidth = $query->get('fullwidth'); $style = array(); $styleString = ''; if ($fullwidth->get('apply')) { if ($fullwidth->get('padding-top') != 'default') { $style[] = 'padding-top:' . absint($fullwidth->get('padding-top')) . 'px;'; } if ($fullwidth->get('padding-bottom') != 'default') { $style[] = 'padding-bottom:' . absint($fullwidth->get('padding-bottom')) . 'px;'; } if ($fullwidth->get('margin-top') != 'default') { $style[] = 'margin-top:' . absint($fullwidth->get('margin-top')) . 'px;'; } if ($fullwidth->get('margin-bottom') != 'default') { $style[] = 'margin-bottom:' . absint($fullwidth->get('margin-bottom')) . 'px;'; } } if (!empty($style)) { $styleString = 'style="' . esc_attr(implode(' ', $style)) . '"'; } echo '<div class="ff-section-fullwidth' . esc_attr($colorClass . $fullscreenClass) . '" ' . $styleString . ' ' . $id . '>'; if ($fullwidth->get('apply')) { ff_load_section_printer('section-background', $fullwidth->get('background')); } /**********************************************************************************************************************/ /* BOXED /**********************************************************************************************************************/ $style = array(); $styleString = ''; if ($boxed->get('apply')) { if ($boxed->get('width-type') == 'from-input') { if ($boxed->get('maxwidth') != '') { $style[] = 'max-width:' . absint($boxed->get('maxwidth')) . 'px;'; } } else { $style[] = 'max-width:none;'; } if ($boxed->get('padding-top') != 'default') { $style[] = 'padding-top:' . absint($boxed->get('padding-top')) . 'px;'; } if ($boxed->get('padding-bottom') != 'default') { $style[] = 'padding-bottom:' . absint($boxed->get('padding-bottom')) . 'px;'; } } $fullscreenClass = ''; if ($container->get('is-fulscreen')) { $fullscreenClass = ' full-section-content'; } if (!empty($style)) { $styleString = 'style="' . esc_attr(implode(' ', $style)) . '"'; } echo '<div class="ff-section-boxed' . esc_attr($fullscreenClass) . '" ' . $styleString . '>'; if ($fullwidth->get('apply')) { ff_load_section_printer('section-background', $boxed->get('background')); } /**********************************************************************************************************************/ /* CONTAINER /**********************************************************************************************************************/ $class = 'container'; if ($container->get('apply')) { if ($container->get('type') == 'not') { $class = 'container'; } else { if ($container->get('type') == 'fluid') { $class = 'container-fluid'; } else { if ($container->get('type') == 'fullwidth') { $class = 'container-fullwidth'; } } } } if ($container->get('apply') && $container->get('type') == 'fluid') { $class = 'container-fluid'; } echo '<div class="' . esc_attr($class) . '">'; }
<div class="headline style-1"> <?php ff_load_section_printer('heading-content', $query); ?> </div><!-- headline --> <?php foreach ($query->get('content') as $oneParagraph) { echo '<p>'; $oneParagraph->printText('text'); echo '</p>'; } ?> <?php ff_load_section_printer('button', $query); ?> </div><!-- col --> <?php if ($imagePosition == 'right') { echo $imageHtml; } ?> </div><!-- row -->
<?php $align = $query->get('text-align'); if ($align) { echo '<div class="' . esc_attr($align) . '">'; } $buttons = $query->get('buttons'); foreach ($buttons as $oneButton) { ff_load_section_printer('button', $oneButton->get('button')); } if ($align) { echo '</div>'; }
<div class="row"> <?php $persons = $query->get('persons'); foreach ($query->get('persons') as $person) { $image = $person->getImage('image'); $imageUrlResized = fImg::resize($image->url, 360, 425, true); $position = $person->get('position'); $boostrapClass = ff_load_section_printer('bootstrap-columns', $person->get('bootstrap-columns')); ?> <div class="<?php echo esc_attr($boostrapClass); ?> "> <div class="about-me wow fadeInLeft"> <div class="about-me-thumbnail"> <img src="<?php echo esc_url($imageUrlResized); ?> " alt=""> <div class="social-media"> <?php $socialLinks = $person->get('social'); $linksTranslated = ffContainer::getInstance()->getThemeFrameworkFactory()->getSocialFeedCreator()->getFeedFromLinks($socialLinks); if (!empty($linksTranslated)) { foreach ($linksTranslated as $oneLink) { ?>
?> "> <i class="<?php echo esc_attr($query->getIcon('icon')); ?> "></i> </div> <div class="iconbox-content"> <?php $title_size = $query->get('title-size'); ?> <h<?php echo absint($title_size); ?> class="title"><?php $query->printText('title'); ?> </h<?php echo absint($title_size); ?> > <p><?php $query->printText('description'); ?> </p> <?php if ($query->get('show-button')) { ff_load_section_printer('button', $query->get('button')); } ?> </div>
<div class="container"> <div class="row"> <div id="post-<?php the_ID(); ?> " <?php post_class($contentClass); ?> > <div class="blog-article"> <?php ff_load_section_printer('blog-featured-area', $query->get('blog-meta featured-image'), array('section' => 'blog-classic')); ?> <?php ff_load_section_printer('blog-meta', $query, array('section' => 'blog-classic')); ?> <div class="post-content clearfix"> <?php the_content(''); wp_link_pages(); ?> </div> </div><!-- blog-article --> <?php if ($query->get('author-box show')) { $postMetaGetter = ffContainer()->getThemeFrameworkFactory()->getPostMetaGetter(); ?>
function ff_print_section_callback($section, $variation) { // ffContainer()->getThemeFrameworkFactory()->getThemeAssetsIncluder()->addPrintedSection(); ffContainer()->getThemeFrameworkFactory()->getThemeAssetsIncluder()->addPrintedSectionMiloAssets($variation); ff_load_section_printer($variation, $section, array(), true); }
<?php $backgroundImage = $query->getImage('image')->url; if (!empty($backgroundImage)) { $backgroundImageString = ' style="background-image: url(' . esc_url($backgroundImage) . ');"'; $extra_class = ' parallax'; } else { $backgroundImageString = ''; $extra_class = ''; } ?> <div class="row"> <div class="col-sm-12"> <div class="info-box<?php echo esc_attr($extra_class); ?> "<?php echo $backgroundImageString; ?> > <?php ff_load_section_printer('heading-content', $query->get('content')); ?> </div><!-- info-box --> </div><!-- col --> </div><!-- row -->
$table->printText('time-period'); ?> </small></h1> </div><!-- price-table-heading --> <ul> <?php foreach ($table->get('rows') as $row) { ?> <li><?php $row->printText('item'); ?> </li> <?php } ?> </ul> <?php ff_load_section_printer('button', $table); ?> </div><!-- price-table --> </div><!-- col --> <?php } ?> </div><!-- row -->
<?php $query = $query->get('heading-wrapped-block'); $styleClass = 'headline style-' . esc_attr($query->get('wrapper-type')); if (4 == $query->get('wrapper-type')) { $styleClass = 'text-center'; } ?> <div class="row"> <div class="col-sm-12"> <div class="<?php echo $styleClass; ?> "> <?php ff_load_section_printer('heading-content', $query); ?> </div><!-- headline --> </div> </div>
?> "><?php echo ff_wp_kses($buttonCaption); ?> </a> </div> <!-- portfolio-item-description --> </div> <!-- portfolio-item --> </div> <!-- isotope-item --> <?php } } ?> </div><!-- isotope --> </div><!-- col --> </div><!-- row --> <?php ff_load_section_printer('pagination', $query); ?> <?php ff_print_after_section($query->get('section-settings-portfolio section-settings')); ?>
<?php $leftBox = $query->get('box-left'); $rightBox = $query->get('box-right'); $leftAnimation = ff_load_section_printer('animation', $leftBox); $rightAnimation = ff_load_section_printer('animation', $rightBox); $leftIcon = $leftBox->getIcon('icon'); $rightIcon = $rightBox->getIcon('icon'); ?> <div class="row"> <div class="col-sm-6"> <div class="services-boxes style-3 icon-right wow <?php echo esc_attr($leftAnimation); ?> "> <i class="<?php echo esc_attr($leftIcon); ?> "></i> <div class="services-boxes-content"> <h3><a href="<?php echo esc_url($leftBox->get('url')); ?> "><?php $leftBox->printText('title'); ?>
if ('default' != $query->get('background margin-bottom')) { echo ' style="margin-bottom:' . absint($query->get('background margin-bottom')) . 'px"'; } ?> > <?php ff_load_section_printer('section-background', $query->get('background')); ?> <div class="container"> <div class="row"> <?php if ($query->get('show-title')) { ?> <div class="col-sm-6 pull-left"> <h4><?php ff_load_section_printer('page-title', $query->get('translation')); ?> </h4> </div> <?php } ?> <?php if ($query->get('breadcrumbs show')) { echo '<div class="col-sm-6 pull-right">'; $breadcrumbsCollection = ffContainer()->getLibManager()->createBreadcrumbs()->generateBreadcrumbs(); echo '<ol class="breadcrumb">'; $breadcrumbsArray = array(); $connector = ''; foreach ($breadcrumbsCollection as $oneItem) { $nextItem = '';
echo '<' . esc_attr($tagType); $animation = $oneContent->get('animation type'); if (!empty($animation)) { echo ' class="wow ' . esc_attr($animation) . ' animated"'; } echo '>' . ff_wp_kses($text) . '</' . esc_attr($tagType) . '>'; } } else { if ($type == 'one-button') { echo '<p'; $animation = $oneContent->get('animation type'); if (!empty($animation)) { echo ' class="wow ' . esc_attr($animation) . ' animated"'; } echo '>'; ff_load_section_printer('button', $oneContent); echo '</p>'; } else { if ($type == 'one-html') { echo do_shortcode($oneContent->get('html')); } else { if ($type == 'one-icon') { $icon = $oneContent->get('icon'); if (empty($icon)) { continue; } echo '<i class="' . esc_attr($icon) . '"></i>'; } } } }
<head> <meta charset="<?php bloginfo('charset'); ?> "> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, maximum-scale=1, initial-scale=1, user-scalable=0"> <?php wp_head(); ?> </head> <?php $body_extra_class = array(); if (ffThemeOptions::getQuery('layout boxed-layout')) { $body_extra_class[] = "boxed"; } ?> <body <?php body_class($body_extra_class); ?> > <?php $body_extra_class = array(); if (ffThemeOptions::getQuery('layout boxed-layout')) { ff_load_section_printer('section-background', ffThemeOptions::getQuery('layout background')); } ?> <div id="page-wrapper"> <?php ffContainer()->getThemeFrameworkFactory()->getLayoutsNamespaceFactory()->getLayoutPrinter()->printLayoutHeader()->printLayoutBeforeContent();
<?php ff_load_section_printer('heading-wrapped', $query->get('heading'));