public function createUser()
 {
     $this->_getClassloader()->loadClass('ffUser');
     $user = new ffUser();
     $user->setWPLayer(ffContainer()->getWPLayer());
     return $user;
 }
 public function getImageHttpManager()
 {
     $this->_getClassloader()->loadClass('ffImageHttpManager');
     $container = ffContainer();
     $imageHttpManager = new ffImageHttpManager($container->getWPLayer(), $container->getHttpAction(), $container->getGraphicFactory()->getImageServingObject(), $container->getFileSystem());
     return $imageHttpManager;
 }
 public function getUserModel()
 {
     $this->_getClassloader()->loadClass('ffUserModel');
     $userFactory = $this->getUserFactory();
     $userModel = new ffUserModel($userFactory, ffContainer()->getCiphers());
     return $userModel;
 }
 public function getShortcodeFactory()
 {
     $this->_getClassloader()->loadClass('ffShortcodeObjectBasic');
     $this->_getClassloader()->loadClass('ffShortcodeFactory');
     $scFactory = new ffShortcodeFactory($this->_getClassloader());
     $scFactory->setWPLayer(ffContainer()->getWPLayer());
     return $scFactory;
 }
 protected function _initMetaBox()
 {
     $themeLayoutManager = ffContainer()->getThemeFrameworkFactory()->getLayoutsNamespaceFactory()->getThemeLayoutManager();
     $this->_addPostType($themeLayoutManager->getLayoutPostTypeName());
     $this->_setTitle('Layout Placement');
     $this->_setContext(ffMetaBox::CONTEXT_SIDE);
     $this->_setParam(ffMetaBox::PARAM_NORMALIZE_OPTIONS, true);
 }
 protected function _initMetaBox()
 {
     $themeLayoutManager = ffContainer()->getThemeFrameworkFactory()->getLayoutsNamespaceFactory()->getThemeLayoutManager();
     $this->_addPostType($themeLayoutManager->getLayoutPostTypeName());
     $this->_setTitle('Layout');
     $this->_setContext(ffMetaBox::CONTEXT_NORMAL);
     $this->_setParam(ffMetaBox::PARAM_NORMALIZE_OPTIONS, true);
     //$this->_addVisibility( ffMetaBox::VISIBILITY_PAGE_TEMPLATE, 'page-onepage.php');
 }
Example #7
0
 function ff_load_section_printer($sectionName, ffOptionsQuery $query, $params = array(), $isFirstLevel = false)
 {
     //loop-influence-portfolio-block
     $fileSystem = ffContainer()->getFileSystem();
     $relativePath = ff_get_section_path($sectionName);
     $absolutePath = $fileSystem->locateFileInChildTheme($relativePath);
     if ($query->queryExists('section-settings') && $isFirstLevel) {
         ff_print_before_section($query->get('section-settings'));
     }
     if (($query->queryExists('loop-influence-portfolio-block') || $query->queryExists('loop-influence-post-block')) && !is_search() && !is_archive() && !(is_home() && is_front_page())) {
         if ($query->queryExists('loop-influence-portfolio-block')) {
             $taxonomyIds = $query->get('loop-influence-portfolio-block')->getMultipleSelect('categories');
             $taxType = 'ff-portfolio-category';
             $postType = 'portfolio';
         } else {
             $taxonomyIds = $query->get('loop-influence-post-block')->getMultipleSelect('categories');
             $postType = 'post';
             $taxType = 'category';
         }
         $args = array('post_type' => $postType);
         $taxonomies = $taxonomyIds;
         if (1 == count($taxonomies)) {
             if (isset($taxonomies[0]) and empty($taxonomies[0])) {
                 $taxonomies = null;
             }
         }
         if (!empty($taxonomies)) {
             $args['tax_query'] = array();
             if (1 < count($taxonomies)) {
                 $args['tax_query']['relation'] = 'OR';
             }
             foreach ($taxonomies as $tax_ID) {
                 $args['tax_query'][] = array('taxonomy' => $taxType, 'field' => 'id', 'terms' => absint($tax_ID));
             }
         }
         global $wp_query;
         $backuped_main_query = clone $wp_query;
         $wp_query = new WP_Query($args);
     }
     if ($fileSystem->fileExists($absolutePath)) {
         require $absolutePath;
     } else {
         throw new Exception('Failed to include section:' . $relativePath);
     }
     // if( ($query->queryExists('loop-influence-portfolio-block') || $query->queryExists('loop-influence-post-block')) && !is_archive() ) {
     if (!empty($backuped_main_query)) {
         global $wp_query;
         $wp_query = $backuped_main_query;
     }
     if ($query->queryExists('section-settings') && $isFirstLevel) {
         ff_print_after_section($query->get('section-settings'));
     }
     if (isset($dataToReturn)) {
         return $dataToReturn;
     }
     return null;
 }
 public function createBreadcrumbs()
 {
     $this->_getClassloader()->loadClass('ffBreadcrumbsCollectionFactory');
     $this->_getClassloader()->loadClass('ffOneBreadcrumbFactory');
     $breadcrumbsFactory = new ffBreadcrumbsCollectionFactory($this->_getClassloader());
     $oneBreadcrumbFactory = new ffOneBreadcrumbFactory($this->_getClassloader());
     $this->_getClassloader()->loadClass('ffBreadcrumbs');
     $breadcrumbs = new ffBreadcrumbs($breadcrumbsFactory->createBreadcrumbsCollection(), $oneBreadcrumbFactory, ffContainer()->getWPLayer(), ffContainer()->getFrontendQueryIdentificator(), ffContainer()->getCustomTaxonomyIdentificator());
     return $breadcrumbs;
 }
 /**
  * 
  * @param unknown $adminScreenClassName
  * @return ffIAdminScreen
  */
 public function createAdminScreen($adminScreenClassName)
 {
     $this->_getClassloader()->loadClass('ffIAdminScreen');
     if ($this->_getClassloader()->classRegistered($adminScreenClassName)) {
         $this->_getClassloader()->loadClass($adminScreenClassName);
         $request = ffContainer()->getRequest();
         $adminScreenClassInstance = new $adminScreenClassName($this->_getMenuFactory(), $this->_getAdminScreenViewFactory(), $request);
         return $adminScreenClassInstance;
     } else {
         throw new Exception('AdminScreenFactory -> Trying to create class ' . $adminScreenClassName . ', but it does not exists!');
     }
     return false;
 }
 protected function _save($postId)
 {
     return;
     $fwc = ffContainer::getInstance();
     $layoutsDataManager = ffContainer()->getThemeFrameworkFactory()->getLayoutsNamespaceFactory()->getLayoutsDataManager();
     $collection = $layoutsDataManager->getLayoutCollection();
     $item = $collection->getLayoutById($postId);
     $options = $fwc->getOptionsFactory()->createOptionsHolder('ffOptionsHolder_Layout_Conditions')->getOptions();
     $postReader = $fwc->getOptionsFactory()->createOptionsPostReader($options);
     $value = $postReader->getData('conditions');
     $item->setConditional($value);
     //        $layoutsDataManager->saveLayoutCollection();
 }
 public function getLayoutsDataManager()
 {
     if ($this->_ldm == null) {
         $this->_getClassloader()->loadClass('ffLayoutsDataManager');
         if (defined('ffThemeContainer::THEME_NAME_LOW')) {
             $themeName = ffThemeContainer::THEME_NAME_LOW;
         } else {
             $themeName = 'universal-layout';
         }
         $dataStorage = ffContainer()->getDataStorageFactory()->createDataStorageOptionsPostType_NamespaceFacade();
         $this->_ldm = new ffLayoutsDataManager($this->getLayoutsCollectionFactory(), $themeName, $dataStorage, ffContainer()->getDataStorageFactory());
     }
     return $this->_ldm;
 }
 protected function _render($post)
 {
     $layoutsDataManager = ffContainer()->getThemeFrameworkFactory()->getLayoutsNamespaceFactory()->getLayoutsDataManager();
     $collection = $layoutsDataManager->getLayoutCollection();
     $item = $collection->getLayoutById($post->ID);
     $fwc = ffContainer::getInstance();
     $fwc->getWPLayer()->add_action('admin_footer', array($this, 'requireModalWindows'), 1);
     $s = $fwc->getOptionsFactory()->createOptionsHolder('ffOptionsHolder_Layout_Placement')->getOptions();
     //createStructure('portfolio');
     $value = $item->getPlacement();
     //$fwc->getDataStorageFactory()->createDataStorageOptionsPostType_NamespaceFacade(ffThemeContainer::THEME_NAME_LOW.'-layouts', true)->getOptionCoded('placements');
     $printer = $fwc->getOptionsFactory()->createOptionsPrinterBoxed($value, $s);
     $printer->setNameprefix('placement');
     $printer->walk();
 }
 public function actResizeAndServeImage($parameters)
 {
     if (!isset($parameters['image_name'])) {
         return false;
     }
     $imageOptionName = $parameters['image_name'];
     $imageData = $this->_getWPLayer()->get_option($imageOptionName);
     if ($imageData == null) {
         die;
     }
     $this->_getWPLayer()->delete_option($imageOptionName);
     ffContainer()->getClassLoader()->loadClass('externFreshizer');
     $newUrl = fImg::resize($imageData['url'], $imageData['width'], $imageData['height'], $imageData['crop'], false, false);
     $path = $this->_getFileSystem()->findFileFromUrl($newUrl);
     $this->_getImageServingObject()->serveImage($path);
 }
 public function printComponent($args, ffOptionsQuery $query)
 {
     $categories = $query->getMultipleSelect('latest-news categories');
     $numberOfPosts = $query->get('latest-news number-of-posts');
     $postGetter = ffContainer()->getPostLayer()->getPostGetter();
     $posts = $postGetter->setFilterRelation_OR()->setNumberOfPosts($numberOfPosts)->filterByCategory($categories)->getAllPosts();
     echo $args['before_widget'];
     echo $args['before_title'];
     echo ff_wp_kses($query->get('latest-news title'));
     echo $args['after_title'];
     echo '<ul';
     if ('alt' == $query->get('latest-news style')) {
         echo ' class="alt"';
     }
     echo '>';
     if ('alt' == $query->get('latest-news style')) {
         foreach ($posts as $onePost) {
             $featuredImageUrl = $onePost->getFeaturedImage();
             if (empty($featuredImageUrl)) {
                 continue;
             }
             $featuredImageUrlResized = fImg::resize($featuredImageUrl, 65, 65, true);
             echo '<li>';
             echo '<img src="' . esc_url($featuredImageUrlResized) . '" alt="">';
             echo '<a href="' . get_permalink($onePost->getID()) . '" class="post-title">' . ff_wp_kses($onePost->getTitle()) . '</a>';
             echo '<p class="post-date">' . ff_wp_kses($onePost->getDateFormated('F d, Y')) . '</p>';
             echo '</li>';
         }
     } else {
         foreach ($posts as $onePost) {
             $featuredImageUrl = $onePost->getFeaturedImage();
             if (empty($featuredImageUrl)) {
                 continue;
             }
             $featuredImageUrlResized = fImg::resize($featuredImageUrl, 80, 80, true);
             echo '<li>';
             echo '<img src="' . esc_url($featuredImageUrlResized) . '" alt="">';
             echo '<p class="news-title">';
             echo '<a href="' . get_permalink($onePost->getID()) . '">' . ff_wp_kses($onePost->getTitle()) . '</a>';
             echo '</p>';
             echo '<p class="news-date">' . ff_wp_kses($onePost->getDateFormated('F d, Y')) . '</p>';
             echo '</li>';
         }
     }
     echo '</ul>';
     echo $args['after_widget'];
 }
Example #15
0
 private function _updateFramework()
 {
     $versionManager = ffFrameworkVersionManager::getInstance();
     $latestInstalledVersion = $versionManager->getLatestInstalledVersion();
     $newFrameworkVersion = $this->_getFrameworkVersion();
     $pluginInstaller = ffContainer()->getPluginInstaller();
     if (version_compare($newFrameworkVersion, $latestInstalledVersion, '>')) {
         if ($pluginInstaller->installPluginFromZipFile(get_template_directory() . '/install/fresh-framework.zip', false, true)) {
             header("Refresh:0");
             die;
         } else {
             return;
         }
     } else {
         return;
     }
 }
 protected function _translateLinkStringIntoInnerFormat($linkString)
 {
     $linkString = trim($linkString);
     $linkString = strip_tags($linkString);
     if (empty($linkString)) {
         return null;
     }
     if ('#' == substr($linkString, 0, 1)) {
         return null;
     }
     if (ffContainer()->getWPLayer()->is_email($linkString)) {
         return (object) array('type' => 'envelope', 'link' => 'mailto:' . $linkString, 'title' => 'E-mail');
     }
     if ('http' != substr($linkString, 0, 4)) {
         if (FALSE !== strpos($linkString, ":")) {
             $e = explode(":", $linkString, 2);
             $sType = trim($e[0]);
             $link = trim($e[1]);
             return (object) array('type' => $sType, 'link' => $link, 'title' => $this->_possible_social_links[$sType]['title']);
         }
     }
     $socType = null;
     $socLink = null;
     $socProtocol = null;
     if ('https://' == substr($linkString, 0, 8)) {
         $linkString = substr($linkString, 8);
         $socProtocol = 'https://';
     } else {
         if ('http://' == substr($linkString, 0, 7)) {
             $linkString = substr($linkString, 7);
             $socProtocol = 'http://';
         } else {
             $socProtocol = 'http://';
         }
     }
     $slashPosition = strpos($linkString, '/');
     $domain = substr($linkString, 0, $slashPosition);
     foreach ($this->_possible_social_links as $sType => $sDefinitions) {
         if (FALSE !== strpos($domain, $sDefinitions['url_substr'] . '.')) {
             return (object) array('type' => $sType, 'link' => $socProtocol . $linkString, 'title' => $this->_possible_social_links[$sType]['title']);
         }
     }
     return null;
 }
 /**
  * @param $className
  * @return ffOptionsHolder
  * @throws Exception
  */
 public function createOptionsHolder($className)
 {
     $this->_getClassloader()->loadClass('ffIOptionsHolder');
     $this->_getClassloader()->loadClass('ffOptionsHolder');
     $this->_getClassloader()->loadClass('ffOptionsHolder_CachingFacade');
     $this->_getClassloader()->loadClass($className);
     $this->_getClassloader()->loadClass('ffIOneDataNode');
     $this->_getClassloader()->loadClass('ffOneSection');
     $this->_getClassloader()->loadClass('ffOneOption');
     $this->_getClassloader()->loadClass('ffOneStructure');
     $this->_getClassloader()->loadClass('ffOneElement');
     $optionsHolder = new $className($this->_getOnestructurefactory(), $this);
     $container = ffContainer();
     if ($container->getWPLayer()->get_ff_debug()) {
         return $optionsHolder;
     }
     $classLoader = $container->getClassLoader();
     $fileSystem = $container->getFileSystem();
     $cache = $container->getDataStorageCache();
     $optionsHolderCachingFacade = new ffOptionsHolder_CachingFacade($optionsHolder, $classLoader, $fileSystem, $cache);
     return $optionsHolderCachingFacade;
 }
 public function printComponent($args, ffOptionsQuery $query)
 {
     $categories = $query->getMultipleSelect('latest-portfolio categories');
     $categoriesCheck = $query->get('latest-portfolio categories');
     if (empty($categoriesCheck) || $categoriesCheck == 'all') {
         $categories = null;
     }
     $numberOfPosts = $query->get('latest-portfolio number-of-posts');
     $postGetter = ffContainer()->getPostLayer()->getPostGetter();
     $posts = $postGetter->setFilterRelation_OR()->setNumberOfPosts($numberOfPosts)->filterByTaxonomy($categories, 'ff-portfolio-category')->getAll();
     //        var_dump( $posts, $categories, $numberOfPosts );
     //        var_Dump( $posts );
     echo $args['before_widget'];
     echo $args['before_title'];
     echo ff_wp_kses($query->get('latest-portfolio title'));
     echo $args['after_title'];
     if (!empty($posts)) {
         echo '<div class="portfolio-photos">';
         foreach ($posts as $onePost) {
             $featuredImage = $onePost->getFeaturedImage();
             if (empty($featuredImage)) {
                 continue;
             }
             echo '<div class="portfolio-badge-image">';
             echo '<a href="' . get_permalink($onePost->getID()) . '">';
             echo '<img width="75" height="75" title="" alt="" src="' . esc_url(fImg::resize($featuredImage, 75, 75, true)) . '">';
             echo '</a>';
             echo '</div>';
         }
         if ($query->get('latest-portfolio show-description')) {
             echo '<p>' . ff_wp_kses($query->get('latest-portfolio description')) . '</p>';
         }
         echo '</div>';
     }
     echo $args['after_widget'];
 }
 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);
 }
 protected function _getPostMetaGetter()
 {
     if ($this->_postMetaGetter == null) {
         $this->_postMetaGetter = ffContainer()->getThemeFrameworkFactory()->getPostMetaGetter();
     }
     return $this->_postMetaGetter;
 }
 public function __construct(ffUserFactory $userFactory, ffCiphers $ciphers)
 {
     $this->_setUserFactory($userFactory);
     $this->_setWPLayer(ffContainer()->getWPLayer());
     $this->_setCiphers($ciphers);
 }
Example #22
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 
}
 public function __construct()
 {
     $this->_fImg = new fImg();
     $this->_setFileSystem(ffContainer()->getFileSystem());
     $this->_setImageHttpManager(ffContainer()->getGraphicFactory()->getImageHttpManager());
 }
Example #24
0
<?php

$scriptEnqueuer = ffContainer()->getScriptEnqueuer();
$scriptEnqueuer->addScript('ff-google-maps-extern', 'http://maps.google.com/maps/api/js?sensor=false', null, null, true);
$scriptEnqueuer->addScriptTheme('ff-google-maps', '/assets/js/googlemaps/jquery.gmap.min.js', null, null, true);
$address = $query->get('address');
$description = $query->get('description');
$addressEscaped = htmlspecialchars($address);
$descriptionEscaped = htmlspecialchars($description);
$zoom = $query->get('zoom');
?>

<div class="map" data-zoom="<?php 
echo esc_attr($zoom);
?>
" data-address="<?php 
echo esc_attr($addressEscaped);
?>
" data-description="<?php 
echo esc_attr($descriptionEscaped);
?>
"></div>
 protected function _save($postId)
 {
     if (!isset($_POST['has-been-normalized'])) {
         return false;
     }
     $fwc = ffContainer::getInstance();
     $saver = $fwc->getDataStorageFactory()->createDataStorageWPPostMetas_NamespaceFacade($postId);
     $s = $fwc->getOptionsFactory()->createOptionsHolder('ffComponent_Theme_OnePageOptions')->getOptions();
     //createStructure('portfolio');
     $postReader = $fwc->getOptionsFactory()->createOptionsPostReader();
     $postReader->setOptionsStructure($s);
     $value = $fwc->getOptionsFactory()->createOptionsPostReader()->getData('onepage');
     $valueNew = base64_encode(serialize($value));
     $saver->setOption('onepage', $valueNew);
     $revisionManager = ffContainer()->getThemeFrameworkFactory()->getLayoutsNamespaceFactory()->getOnePageRevisionManager();
     $revisionManager->setPostId($postId);
     $revisionManager->addNewRevision($valueNew);
 }
Example #26
0
<?php

wp_enqueue_script('zero-responsive-image-1-js');
$imageDimensions = ffContainer()->getGraphicFactory()->getImageInformator($responsive_img)->getImageDimensions();
$W = $imageDimensions->width;
$H = $imageDimensions->height;
$transparentImageSettings = array('src' => $responsive_img, 'w' => $W, 'h' => $H, 'color' => array(236, 236, 236, 0));
$convertingArray = array('xs-1x' => absint(540 / $column_count_xs), 'xs-2x' => absint(768 / $column_count_xs), 'sm-1x' => absint(768 / $column_count_sm), 'sm-2x' => absint(1536 / $column_count_sm), 'md-1x' => absint(1199 / $column_count_md), 'md-2x' => absint(1920 / $column_count_md), 'lg-1x' => absint(1920 / $column_count_lg), 'lg-2x' => absint(1920 / $column_count_lg));
echo '<img class="portfolio-cat-1__featured-image responsive-image-1 ff-block" ';
foreach ($convertingArray as $viewport => $size) {
    if (320 > $size) {
        $size = 320;
    }
    if ($W < $size) {
        $size = $W;
    }
    if ($is_square) {
        $imageUrl = fImg::resize($responsive_img, $size, $size, true, false, true);
    } else {
        $imageUrl = fImg::resize($responsive_img, $size, null, true, false, true);
    }
    echo ' data-src-' . esc_attr($viewport) . '="' . esc_url($imageUrl) . '"' . "\n";
}
echo ' src="' . Zero__Transparent_Imager::get($transparentImageSettings) . '"';
echo ' alt=""';
echo ' />';
echo '<noscript><img src="' . esc_url($responsive_img) . '" alt="" /></noscript>';
			<?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 = '';
        if ($oneItem->queryType == ffConstQuery::HOME) {
            $oneItem->name = $query->get('breadcrumbs homepage');
        }
        if ($oneItem->isSelected) {
            $nextItem .= '<li class="active">';
            $nextItem .= ff_wp_kses($oneItem->name);
            $nextItem .= '</li>';
        } else {
            $nextItem .= '<li><a href="' . esc_url($oneItem->url) . '">';
            $nextItem .= ff_wp_kses($oneItem->name);
function ff_import_notice()
{
    if (ffContainer()->getRequest()->get('import') == 'wordpress') {
        $listOfActivePlugins = ffContainer()->getPluginLoader()->getActivePluginClasses();
        if (!isset($listOfActivePlugins['p-milo-core']) && !isset($listOfActivePlugins['milo-core'])) {
            ?>
            <script>
                jQuery(document).ready(function($){
                    var htmlToInsert = '';

                    htmlToInsert += '<div style="background-color:red; color:white; padding: 20px; margin: 20px 0;">';
                        htmlToInsert += 'Before you can start using the Milo theme, you need to activate the Milo Theme Core plugin first.';
                    htmlToInsert += '<div>';


                    $('.wrap h2').after( htmlToInsert );

                    $('#import-upload-form').hide();
                    $('.narrow').hide();
                });
            </script>
            <?php 
        }
    }
}
Example #29
0
    <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();
Example #30
0
    if ($width != null || $height != null) {
        $style = 'style="';
        if ($width != null) {
            $style .= 'width:' . absint($width) . 'px;';
        }
        if ($height != null) {
            $style .= 'height:' . absint($height) . 'px;';
        }
        $style .= '"';
        $style = '';
        $imageUrlResized = fImg::resize($imageUrlNonresized, $width, $height, true);
    } else {
        $imageUrlResized = $imageUrlNonresized;
    }
}
$postMetaGetter = ffContainer()->getThemeFrameworkFactory()->getPostMetaGetter();
if ('small' == $metaQuery->get('size')) {
    $line_1_tag = 'h6';
    $line_2_tag = 'h4';
} else {
    $line_1_tag = 'h4';
    $line_2_tag = 'h2';
}
?>
<div class="blog-article-details">
<?php 
if ($metaQuery->get('date show')) {
    echo '<' . $line_1_tag . '>';
    echo get_the_date($metaQuery->get('date format'));
    echo '</' . $line_1_tag . '>';
}