/**
  * @return ffThemeOptions
  */
 public static function getInstance()
 {
     if (self::$_instance == null) {
         self::$_instance = new ffThemeOptions();
     }
     return self::$_instance;
 }
 function ff_filter_get_fonts($fonts)
 {
     $iconfont = ffThemeOptions::getQuery('iconfont');
     foreach ($fonts as $key => $value) {
         if ('awesome4' == $key) {
             continue;
         }
         if ('bootstrap_glyphicons' == $key) {
             continue;
         }
         if ('awesome4' == $key) {
             continue;
         }
         if ('miu' == $key) {
             continue;
         }
         if ('awesome' == $key) {
             unset($fonts[$key]);
             continue;
         }
         $_name_ = str_replace(' ', '_', $key);
         if (!$iconfont->queryExists($_name_)) {
             unset($fonts[$_name_]);
             continue;
         }
         if ($iconfont->get(str_replace(' ', '_', $key))) {
             continue;
         }
         unset($fonts[$key]);
     }
     return $fonts;
 }
Exemplo n.º 3
0
 public function registerCustomPostTypes()
 {
     $portfolioSlug = 'ff-portfolio';
     $portfolioTagSlug = 'ff-portfolio-tag';
     $portfolioCategorySlug = 'ff-portfolio-category';
     if (class_exists('ffThemeOptions')) {
         $portfolioSlug = ffThemeOptions::getQuery('portfolio portfolio_slug');
         $portfolioTagSlug = ffThemeOptions::getQuery('portfolio portfolio_tag_slug');
         $portfolioCategorySlug = ffThemeOptions::getQuery('portfolio portfolio_category_slug');
     }
     $fwc = $this->_getContainer()->getFrameworkContainer();
     // Portfolio - Custom Post Type
     $ptPortfolio = $fwc->getPostTypeRegistratorManager()->addPostTypeRegistrator('portfolio', 'Portfolio');
     $ptPortfolio->getSupports()->set('editor', false)->set('excerpt', false);
     // var_dump(ffThemeOptions::getQuery('portfolio portfolio_slug' ));exit;
     $ptPortfolio->getArgs()->set('rewrite', array('slug' => $portfolioSlug));
     // Portfolio Tag - Custom Taxonomy
     $taxPortfolioTag = $fwc->getCustomTaxonomyManager()->addCustomTaxonomy('ff-portfolio-tag', 'Portfolio Tag');
     $taxPortfolioTag->connectToPostType('portfolio');
     $taxPortfolioTag->getArgs()->set('rewrite', array('slug' => $portfolioTagSlug));
     // Portfolio Category - Custom Taxonomy
     $taxPortfolioCategory = $fwc->getCustomTaxonomyManager()->addCustomTaxonomy('ff-portfolio-category', 'Portfolio Category');
     $taxPortfolioCategory->setCategoryBehaviour();
     $taxPortfolioCategory->connectToPostType('portfolio');
     $taxPortfolioCategory->getArgs()->set('rewrite', array('slug' => $portfolioCategorySlug));
 }
Exemplo n.º 4
0
 function ff_print_empty_section_callback($placement)
 {
     $defaultDataFileName = null;
     switch ($placement) {
         case 'header':
             if (ffThemeOptions::getQuery('layout default header')) {
                 $defaultDataFileName = 'header';
             }
             break;
         case 'content':
             if (ffThemeOptions::getQuery('layout default content')) {
                 if (is_404()) {
                     $defaultDataFileName = 'content-404';
                 } else {
                     if (is_search() && !have_posts()) {
                         $defaultDataFileName = 'content-blog-classic';
                     } else {
                         if (is_category() || is_tag() || is_home() || is_date() || is_search() || is_author()) {
                             $defaultDataFileName = 'content-blog-classic';
                         } else {
                             if (is_single()) {
                                 $defaultDataFileName = 'content-blog-single';
                             } else {
                                 if (is_tax('ff-portfolio-category') || is_tax('ff-portfolio-tag')) {
                                     $defaultDataFileName = 'content-portfolio-classic';
                                 }
                             }
                         }
                     }
                 }
             }
             break;
         case 'footer':
             if (ffThemeOptions::getQuery('layout default footer')) {
                 $defaultDataFileName = 'footer';
             }
             break;
     }
     if ($defaultDataFileName != null) {
         require get_template_directory() . '/default_section_data/' . $defaultDataFileName . '.php';
         return $data;
     }
     return null;
 }
 function ff_generate_and_print_color_accent()
 {
     $defaultAccentColorString = '#bca480';
     $useAccent = ffThemeOptions::getQuery('layout use-picker');
     if (!$useAccent) {
         return false;
     }
     // new color in format #aabbcc
     $colorHEX = ffThemeOptions::getQuery('layout color');
     // caching for directory wp-content/uploads/freshframework/ NAMESPACE / VALUE . EXTENSION
     $dataStorageCache = ffContainer()->getInstance()->getDataStorageCache();
     // #aabbcc -> aabbcc
     $colorWithoutHex = str_replace('#', '', $colorHEX);
     $optionName = 'accent-' . esc_attr($colorWithoutHex);
     if (!$dataStorageCache->optionExists('milo_accents', $optionName, 'css')) {
         $dataStorageCache->deleteOldFilesInNamespace('milo_accents', 60 * 60 * 24 * 7, 60 * 60 * 24 * 3);
         // with #bca480
         $colorAccentFileContent = ff_get_color_accent_file_content();
         $newColorAccentFile = str_replace($defaultAccentColorString, $colorHEX, $colorAccentFileContent);
         $dataStorageCache->setOption('milo_accents', $optionName, $newColorAccentFile, 'css');
     }
     $accentUrl = $dataStorageCache->getOptionUrl('milo_accents', $optionName, 'css');
     wp_enqueue_style('ff-milo-color-accent', $accentUrl);
 }
 private function _includeCss()
 {
     $styleEnqueuer = $this->_getStyleEnqueuer();
     $styleEnqueuer->addStyle('ff-google-font', 'http://fonts.googleapis.com/css?family=Open+Sans:400,300,300italic,400italic,600,600italic,700,700italic,800,800italic');
     $styleEnqueuer->addStyleTheme('ff-bootstrap', '/assets/css/bootstrap.min.css');
     $styleEnqueuer->addStyleTheme('ff-fancybox', '/assets/js/fancybox/jquery.fancybox.css');
     $styleEnqueuer->addStyleTheme('ff-revolution-slider', '/assets/js/revolutionslider/css/settings.css');
     $styleEnqueuer->addStyleTheme('ff-bx-slider', '/assets/js/bxslider/jquery.bxslider.css');
     $styleEnqueuer->addStyleTheme('ff-youtube-player', '/assets/js/ytplayer/css/YTPlayer.css');
     $styleEnqueuer->addStyleTheme('ff-animations', '/assets/js/animations/animate.min.css');
     $styleEnqueuer->addStyleTheme('ff-custom', '/assets/css/custom.css');
     $styleEnqueuer->addStyleTheme('ff-custom-page', '/assets/css/pages-style.css');
     $accent = ffThemeOptions::getQuery('layout accent');
     if ('default' != $accent) {
         $styleEnqueuer->addStyleTheme('ff-accent', '/assets/css/alternative-styles/' . esc_attr($accent) . '.css');
     }
     // CUSTOM FONT STYLE
     $fontQuery = ffThemeOptions::getQuery('font');
     // Has to be same as in class.ffThemeOptionsHolder.php
     $this->_includeGoogleFont($fontQuery->get('body'));
     $this->_includeGoogleFont($fontQuery->get('headers'));
     $this->_includeGoogleFont($fontQuery->get('inputs'));
     $this->_includeGoogleFont($fontQuery->get('code'));
     ffContainer::getInstance()->getWPLayer()->wp_add_inline_style('ff-custom-page', ff_get_font_selectors('body') . '{font-family: ' . $fontQuery->get('body') . ', Helvetica, Arial, sans-serif; }' . "\n" . ff_get_font_selectors('headers') . '{font-family: ' . $fontQuery->get('headers') . ', Helvetica, Arial, sans-serif; }' . "\n" . ff_get_font_selectors('inputs') . '{font-family: ' . $fontQuery->get('inputs') . ', Helvetica, Arial, sans-serif; }' . "\n" . ff_get_font_selectors('code') . '{font-family: ' . $fontQuery->get('code') . ', monospace; }' . "\n");
     $styleEnqueuer->addStyleTheme('ff-font-awesome', '/assets/fontawesome/css/font-awesome.min.css');
     $styleEnqueuer->addStyleFramework('ff-font-awesome4', '/framework/extern/iconfonts/ff-font-awesome4/ff-font-awesome4.css');
     $styleEnqueuer->addStyleTheme('ff-miu-icon-font', '/assets/miuiconfont/miuiconfont.css');
     $styleEnqueuer->addStyleFramework('ff-font-miu', '/framework/extern/iconfonts/ff-font-miu/ff-font-miu.css');
     $iconfont_types = array('brandico' => '/framework/extern/iconfonts/ff-font-brandico/ff-font-brandico.css', 'elusive' => '/framework/extern/iconfonts/ff-font-elusive/ff-font-elusive.css', 'entypo' => '/framework/extern/iconfonts/ff-font-entypo/ff-font-entypo.css', 'fontelico' => '/framework/extern/iconfonts/ff-font-fontelico/ff-font-fontelico.css', 'iconic' => '/framework/extern/iconfonts/ff-font-iconic/ff-font-iconic.css', 'linecons' => '/framework/extern/iconfonts/ff-font-linecons/ff-font-linecons.css', 'maki' => '/framework/extern/iconfonts/ff-font-maki/ff-font-maki.css', 'meteocons' => '/framework/extern/iconfonts/ff-font-meteocons/ff-font-meteocons.css', 'mfglabs' => '/framework/extern/iconfonts/ff-font-mfglabs/ff-font-mfglabs.css', 'modernpics' => '/framework/extern/iconfonts/ff-font-modernpics/ff-font-modernpics.css', 'typicons' => '/framework/extern/iconfonts/ff-font-typicons/ff-font-typicons.css', 'simple line icons' => '/framework/extern/iconfonts/ff-font-simple-line-icons/ff-font-simple-line-icons.css', 'weathercons' => '/framework/extern/iconfonts/ff-font-weathercons/ff-font-weathercons.css', 'websymbols' => '/framework/extern/iconfonts/ff-font-websymbols/ff-font-websymbols.css', 'zocial' => '/framework/extern/iconfonts/ff-font-zocial/ff-font-zocial.css');
     $iconfontQuery = ffThemeOptions::getQuery('iconfont');
     foreach ($iconfont_types as $name => $path) {
         if ($iconfontQuery->get(str_replace(' ', '_', $name))) {
             $styleEnqueuer->addStyleFramework('icon-option-font-' . str_replace(' ', '_', $name), $path);
         }
     }
 }
Exemplo n.º 7
0
/**
 * Hi there!
 *
 * As opposite of other themes (where you usually find here footer code and other), in this theme, you'll
 * find only code for printing layouts of placement "Footer" and "After Content". These layouts could be
 * created in WP Admin -> Layouts.
 *
 * Typically here will be printed (but it depends at you of course)
 * - Footer with social icons
 * - footer with widgets
 * - bottom footer with message
 */
ffContainer()->getThemeFrameworkFactory()->getLayoutsNamespaceFactory()->getLayoutPrinter()->printLayoutAfterContent()->printLayoutFooter();
?>
    </div><!-- PAGE-WRAPPER -->

    <?php 
if (ffThemeOptions::getQuery('layout scroll-to-top')) {
    ?>
        <!-- GO TOP -->
        <a id="go-top"><i class="miu-icon-circle_arrow-up_glyph"></i></a>
    <?php 
}
?>

<?php 
wp_footer();
?>
</body>
</html>
Exemplo n.º 8
0
<?php

$query = ffThemeOptions::getQuery('footer')->get('primary');
if ($query->get('show')) {
    wp_enqueue_script('zero-footer-1-js');
    ?>
	<div class="footer-1 ff-section">

		<div class="container-fluid">
			<div class="row">
				<?php 
    $widgets = $query->get('widgets');
    $index = 0;
    foreach ($widgets as $oneWidget) {
        $index++;
        $classes = '';
        if ($oneWidget->get('xs')) {
            $classes .= 'col-xs-' . absint($oneWidget->get('xs')) . ' ';
        }
        if ($oneWidget->get('sm')) {
            $classes .= 'col-sm-' . absint($oneWidget->get('sm')) . ' ';
        }
        if ($oneWidget->get('md')) {
            $classes .= 'col-md-' . absint($oneWidget->get('md')) . ' ';
        }
        if ($oneWidget->get('lg')) {
            $classes .= 'col-lg-' . absint($oneWidget->get('lg')) . ' ';
        }
        echo '<div class="' . esc_attr($classes) . '">';
        dynamic_sidebar('footer-' . absint($index));
        echo '</div>';
Exemplo n.º 9
0
<?php

$query = ffThemeOptions::getQuery('search')->get('nothing-found');
?>

<div class="blog-post-1 ff-section">
	<div class="content-area__container container-fluid">
		<div class="row">
			<div class="content-area__column col-sm-8 col-sm-offset-2">
				<div class="post-block">
					<div class="post-header">
						<h3 class="post-title post-expand-toggle">
							<a href="">
								<?php 
printf($query->get('title'), get_search_query());
?>
							</a>
						</h3>
					</div>
					<div>
						<div class="post-content">
							<?php 
echo zero__wp_kses($query->get('description'));
?>
							<p>
								<?php 
get_search_form();
?>
							</p>
						</div>
					</div>
Exemplo n.º 10
0
                ?>
						<div class="grid-button">
							<a href="<?php 
                echo esc_url(get_permalink(get_option('page_for_posts')));
                ?>
"><i class="fa fa-th"></i></a>
						</div>
					<?php 
            }
        }
        ?>
				<?php 
    } else {
        ?>
					<div class="grid-button">
						<a href="<?php 
        echo esc_url(ffThemeOptions::getQuery('portfolio back_to_portfolio_url'));
        ?>
"><i class="fa fa-th"></i></a>
					</div>					
				<?php 
    }
    ?>
			</div>
		</div>
	</div>

</div>

<?php 
}
Exemplo n.º 11
0
function ff_comments_list_callback($comment, $args, $depth)
{
    global $ff_global_comment_depth;
    $ff_global_comment_depth++;
    $queryTranslation = ffThemeOptions::getQuery('comments');
    $query = $queryTranslation->get('comments-list');
    $postMetaGetter = ffContainer()->getThemeFrameworkFactory()->getPostMetaGetter();
    ?>
						<li id="<?php 
    echo esc_attr($postMetaGetter->getPostCommentsId());
    ?>
" class="comment even thread-even depth-1">
							<div class="comment-body clearfix">

								<div class="comment__right clearfix">

									<div class="comment-meta clearfix">
										<div class="comment-meta__author-name">
											<a href="<?php 
    echo $postMetaGetter->getCommentAuthorUrl();
    ?>
"><?php 
    echo zero__wp_kses($postMetaGetter->getCommentAuthorName());
    ?>
</a>
										</div>
										<?php 
    if ($query->get('one-comment show-date')) {
        ?>
											<div class="comment-meta__date">
												<?php 
        printf($query->get('one-comment how-much-ago'), human_time_diff(get_comment_time('U'), current_time('timestamp')));
        ?>
											</div>
										<?php 
    }
    ?>
									</div>

									<div class="comment-content">

										<?php 
    if ('0' == $comment->comment_approved) {
        echo '<em class="comment-awaiting-moderation">';
        echo zero__wp_kses($query->get('one-comment trans-moderation'));
        echo '</em>';
        echo '</br>';
        echo '</br>';
    }
    comment_text();
    ?>

									</div>

									<?php 
    echo $postMetaGetter->getCommentReplyLink($query->get('one-comment trans-reply'), $args, $depth);
    ?>

								</div>

								<div class="comment__left">
									<a class="avatar-link" href="<?php 
    echo $postMetaGetter->getCommentAuthorUrl();
    ?>
">
										<?php 
    echo zero__wp_kses($postMetaGetter->getCommentAuthorImage(90));
    ?>
									</a>
								</div>

							</div>
<?php 
}
Exemplo n.º 12
0
	<div class="row">
		<div class="col-sm-12">
			<div id="post-<?php 
the_ID();
?>
" <?php 
post_class("page-article page-content clearfix");
?>
>
				<?php 
the_post();
the_content();
wp_link_pages();
?>
			</div>

			<?php 
ffTemporaryQueryHolder::setQuery('comments-form', ffThemeOptions::getQuery('translation'));
//   $query->get('comments-form'));
ffTemporaryQueryHolder::setQuery('comments-list', ffThemeOptions::getQuery('translation'));
//$query->get('comments-list'));
comments_template();
ffTemporaryQueryHolder::deleteQuery('comments-form');
ffTemporaryQueryHolder::deleteQuery('comments-list');
?>
		</div>
	</div>
</div>

<?php 
get_footer();
Exemplo n.º 13
0
<?php

$query404 = ffThemeOptions::getQuery('404');
?>

<div class="blog-post-1 ff-section">
	<div class="content-area__container container-fluid">
		<div class="row">
			<div class="content-area__column col-sm-8 col-sm-offset-2">
				<div class="post-block">
					<div class="post-header">
						<h3 class="post-title post-expand-toggle">
							<a href="">
								<?php 
printf($query404->get('title'), get_search_query());
?>
							</a>
						</h3>
					</div>
					<div>
						<div class="post-content">
							<?php 
echo zero__wp_kses($query404->get('description'));
?>
							<p>
								<?php 
get_search_form();
?>
							</p>
						</div>
					</div>
Exemplo n.º 14
0
	<link rel="pingback" href="<?php 
bloginfo('pingback_url');
?>
">
	<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
	
	<?php 
wp_head();
?>
</head>

<body <?php 
$body_classes = array();
$body_classes[] = 'side-menu-closed';
$body_classes[] = 'no-js';
$body_classes[] = ffThemeOptions::getQuery('post posts-opening');
body_class($body_classes);
?>
>

<script>
	$(function() {
		//var v=document.getElementsByClassName("youtube-player");
		$( ".youtube-player" ).each(function() {
			var p = document.createElement("div");
			p.innerHTML = labnolThumb(this.dataset.id);
			p.onclick = labnolIframe;
			this.appendChild(p);
		});
	});
Exemplo n.º 15
0
 function zero__nicer_submit_comment_button()
 {
     echo '<p class="form-submit"><button name="submit" class="btn btn-default" type="submit">';
     echo ffThemeOptions::getQuery('comments comments-form submit-button');
     echo '</button></p>';
 }
Exemplo n.º 16
0
 function ff_theme_accent_color_hex()
 {
     $mainColor = '';
     if (ffThemeOptions::getQuery('layout use-picker')) {
         $mainColor = ffThemeOptions::getQuery('layout color');
     } else {
         $skin = ffThemeOptions::getQuery('layout accent');
         switch ($skin) {
             case 'default':
                 $mainColor = '#bca480';
                 break;
             case 'yellow':
                 $mainColor = '#e3ac4e';
                 break;
             case 'green':
                 $mainColor = '#a0ce4e';
                 break;
             case 'blue':
                 $mainColor = '#74b2ff';
                 break;
         }
     }
     return $mainColor;
 }
 public function printLayout($type)
 {
     $typeData = array();
     if (in_array($type, array('header', 'content', 'footer')) && !isset($this->_layouts[$type])) {
         $defaultData = $this->_getDefaultData($type);
         if ($defaultData !== null) {
             $this->_layouts[$type] = $defaultData;
         } else {
         }
     } else {
         if (isset($this->_layouts[$type])) {
         }
     }
     if (isset($this->_layouts[$type])) {
         ksort($this->_layouts[$type]);
         foreach ($this->_layouts[$type] as $priority => $content) {
             foreach ($content as $oneSection) {
                 $postQuery = ffContainer::getInstance()->getOptionsFactory()->createQuery($oneSection, 'ffComponent_Theme_LayoutOptions');
                 ffSectionTemplateManager::requireSectionsFromQuery($postQuery->get('sections'));
             }
         }
         if (ffThemeOptions::getQuery('layout enable-developer-mode')) {
             echo '<div style="background-color:red;">' . zero__wp_kses($type) . '</div>';
         }
     }
 }
Exemplo n.º 18
0
        }
        ?>
									<?php 
    }
    ?>

								</div>
							</div>
						<?php 
}
?>
					</div>
					<div class="post-expander">

						<?php 
if (is_singular() or 'posts-opening-closing-disabled no-post-content-in-archives' != ffThemeOptions::getQuery('post posts-opening')) {
    ?>
						<div class="post-content"><?php 
    the_content($query->get('read-more'));
    wp_link_pages();
    if (is_page() && 'page-template-contact.php' == get_page_template_slug(get_the_ID())) {
        get_template_part('templates/blocks/contact-form-1/contact-form-1');
    }
    ?>
</div>
						<?php 
}
?>

						<?php 
if ('portfolio' == get_post_type(get_the_ID()) and !$queryPortfolio->get('single_portfolio_post_footer')) {
Exemplo n.º 19
0
<?php

$query = ffThemeOptions::getQuery('layout');
$defaultLogo = '';
if ($query->get('default header-logo-use')) {
    $defaultLogo = $query->get('default header-logo');
}
$data = array('sections' => array('0-|-navigation' => array('navigation' => array('logo' => array('image' => $defaultLogo, 'image_is_retina' => '0'), 'navigation-menu-id' => '', 'color-type' => '', 'search' => array('show' => '1', 'placeholder' => 'Enter your keyword here and then press enter...')))));
Exemplo n.º 20
0
<?php

$query = ffThemeOptions::getQuery('side-menu');
?>
<div class="side-menu-1 ff-section <?php 
echo 'side-menu-1__style--' . esc_attr($query->get('side-menu-style'));
?>
 ">
	<div class="side-menu">
		<div class="side-menu-inner">

			<div class="logo-wrapper">
				<a href="<?php 
echo esc_url(home_url('/'));
?>
" class="logo background-check">

						<?php 
if ($query->getImage('logo-img-desktop')->url) {
    $logoImgUrlDesktop = $query->getImage('logo-img-desktop')->url;
}
if (empty($logoImgUrlDesktop)) {
    $logoImgUrlDesktop = get_template_directory_uri() . '/templates/sections/side-menu-1/images/logo-desktop@2x.png';
}
$imageDimensions = ffContainer()->getGraphicFactory()->getImageInformator($logoImgUrlDesktop)->getImageDimensions();
if ($query->get('logo-is-retina-desktop')) {
    $logoWidth = $imageDimensions->width / 2;
    $logoHeight = $imageDimensions->height / 2;
} else {
    $logoWidth = $imageDimensions->width;
    $logoHeight = $imageDimensions->height;
Exemplo n.º 21
0
<?php

$query = ffThemeOptions::getQuery('footer')->get('secondary');
if ($query->get('show')) {
    ?>
	<div class="footer-2 ff-section">
		<div class="container-fluid">
			<div class="row">
				<div class="col-md-12">
					<div class="footer-2__text pull-left"><?php 
    echo zero__wp_kses($query->get('description'));
    ?>
</div>
					<div class="footer-2__social pull-right">
						<ul class="social-icons">
							<?php 
    $socialLinks = $query->get('social-links');
    $linksTranslated = ffContainer::getInstance()->getThemeFrameworkFactory()->getSocialFeedCreator()->getFeedFromLinks($socialLinks);
    if (!empty($linksTranslated)) {
        foreach ($linksTranslated as $oneItem) {
            echo '<li class="social-icon">';
            echo '<a href="' . esc_url($oneItem->link) . '" target="_blank">';
            $icon = apply_filters('to_zocial', $oneItem->type);
            echo '<i class="ff-font-zocial icon-' . esc_attr($icon) . '"></i>';
            echo '</a>';
            echo '</li>';
        }
    }
    ?>
						</ul>
					</div>
Exemplo n.º 22
0
<?php

$query = ffThemeOptions::getQuery('header');
?>
<div class="header-1 ff-section">
	<div class="header-holder">

		<div class="logo-holder">
			<div class="vcenter-wrapper">
				<div class="vcenter">
					<div class="logo-wrapper">
						<h1>
							<a href="<?php 
echo esc_url(home_url('/'));
?>
" rel="home" class="logo">
								<span class="logo__inner background-check">
									<?php 
if ($query->getImage('logo-img-light-desktop')->url) {
    $logoImgUrlDesktopLight = $query->getImage('logo-img-light-desktop')->url;
}
if (empty($logoImgUrlDesktopLight)) {
    $logoImgUrlDesktopLight = get_template_directory_uri() . '/templates/sections/header-1/images/logo-desktop-light@2x.png';
}
$imageDimensions = ffContainer()->getGraphicFactory()->getImageInformator($logoImgUrlDesktopLight)->getImageDimensions();
if ($query->get('logo-is-retina-desktop')) {
    $logoWidth = $imageDimensions->width / 2;
    $logoHeight = $imageDimensions->height / 2;
} else {
    $logoWidth = $imageDimensions->width;
    $logoHeight = $imageDimensions->height;
Exemplo n.º 23
0
<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();
Exemplo n.º 24
0
<?php

///////////////////////////////////////////////////////////////////////////////////////////////////
// Add wrappers to comment input fields
///////////////////////////////////////////////////////////////////////////////////////////////////
$queryTranslation = ffThemeOptions::getQuery('comments');
$query = $queryTranslation->get('comments-form');
$commentFormPrinter = ffContainer()->getThemeFrameworkFactory()->getCommentsFormPrinter();
if ($commentFormPrinter->commentsOpen()) {
    $commentFormPrinter->addFieldAuthorLine('<p class="comment-form__p-name">');
    $commentFormPrinter->addFieldAuthorLine('<label for="name">' . zero__wp_kses($query->get('name')) . ' <span class="required">*</span></label>');
    $commentFormPrinter->addFieldAuthorLine('<input class="ff-field-author" id="name" name="author" type="text" placeholder="' . esc_attr($query->get('name')) . ' *">');
    $commentFormPrinter->addFieldAuthorLine('</p>');
    $commentFormPrinter->addFieldEmailLine('<p class="comment-form__p-email">');
    $commentFormPrinter->addFieldEmailLine('<label for="email">' . zero__wp_kses($query->get('email')) . ' <span class="required">*</span></label>');
    $commentFormPrinter->addFieldEmailLine('<input class="ff-field-email" id="email" name="email" type="text" placeholder="' . esc_attr($query->get('email')) . ' *">');
    $commentFormPrinter->addFieldEmailLine('</p>');
    $commentFormPrinter->addFieldWebsiteLine('<p class="comment-form__p-website">');
    $commentFormPrinter->addFieldWebsiteLine('<label for="url">' . zero__wp_kses($query->get('website')) . ' </label>');
    $commentFormPrinter->addFieldWebsiteLine('<input class="ff-field-url" id="url" name="url" type="text" placeholder="' . esc_attr($query->get('website')) . '">');
    $commentFormPrinter->addFieldWebsiteLine('</p>');
    $commentFormPrinter->addFieldCommentLine('<p class="comment-form__p-message">');
    $commentFormPrinter->addFieldCommentLine('<label for="message">' . zero__wp_kses($query->get('comment-form')) . ' </label>');
    $commentFormPrinter->addFieldCommentLine('<textarea class="ff-field-comment" id="comment" name="comment" rows="5" cols="25" placeholder="' . esc_attr($query->get('comment-form')) . '"></textarea>');
    $commentFormPrinter->addFieldCommentLine('</p>');
    $commentFormPrinter->setClassSubmitButton('btn btn-default');
    $commentFormPrinter->addFieldLoggedInLine('<p class="col-1 logged-in-as">');
    $commentFormPrinter->addFieldLoggedInLine(zero__wp_kses($query->get('logged-in')));
    $commentFormPrinter->addFieldLoggedInLine('</p>');
    $commentFormPrinter->setTextHeading(zero__wp_kses($query->get('heading')));
    $commentFormPrinter->setTextSubmit(zero__wp_kses($query->get('submit-button')));