Exemplo n.º 1
0
<?php

global $tipopage, $revslider, $layerslider, $pageslider, $floki_custom_sidebar, $blogcategory, $spinfo, $sptitle, $spimage, $sporder, $spcontent, $sporde, $visiblezone, $bimage, $bimage2, $bimage3, $bimage4, $bcolor1, $bcolor2, $spcont, $backdot, $youtubeback;
global $parallaxani;
get_header();
?>

<?php 
// options page
$content_css = '';
$sidebar_css = '';
$mainclass = "fullwidth";
$spinfo = 1;
global $menu_design6;
//$tipopage=get_post_meta($post->ID, 'pagetype', true);
$tipopage = floki_get_option('default_sidebar_pos2');
$tipopagemain = $tipopage;
if ($tipopage == "" || $tipopage != 'left' && $tipopage != 'right') {
    $tipopage = "full";
}
if ($tipopage == 'left') {
    $content_css = 'thirteen columns';
    $mainclass = "";
}
if ($tipopage == 'right') {
    $content_css = 'thirteen columns';
    $mainclass = "";
}
?>
 
 <?php 
Exemplo n.º 2
0
    ?>
		<h2 class="comments-title">
			<?php 
    printf(_nx('One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'comments title', 'floki'), number_format_i18n(get_comments_number()), '<span>' . get_the_title() . '</span>');
    ?>
		</h2>

		<ol class="comment-list">
			<?php 
    wp_list_comments(array('style' => 'ol', 'short_ping' => true, 'avatar_size' => 74));
    ?>
		</ol><!-- .comment-list -->

		<?php 
    // Are there comments to navigate through?
    if (get_comment_pages_count() > 1 && floki_get_option('page_comments')) {
        ?>
		<nav class="navigation comment-navigation" role="navigation">
			<h1 class="screen-reader-text section-heading"><?php 
        _e('Comment navigation', 'floki');
        ?>
</h1>
			<div class="nav-previous"><?php 
        previous_comments_link(__('&larr; Older Comments', 'floki'));
        ?>
</div>
			<div class="nav-next"><?php 
        next_comments_link(__('Newer Comments &rarr;', 'floki'));
        ?>
</div>
		</nav><!-- .comment-navigation -->
Exemplo n.º 3
0
 function widget($args, $instance)
 {
     if (isset($instance['error']) && $instance['error']) {
         return;
     }
     extract($args, EXTR_SKIP);
     $url = !empty($instance['url']) ? esc_url($instance['url']) : '';
     while (stristr($url, 'http') != $url) {
         $url = substr($url, 1);
     }
     if (empty($url)) {
         return;
     }
     // self-url destruction sequence
     if (in_array(untrailingslashit($url), array(site_url(), home_url()))) {
         return;
     }
     $rss = fetch_feed($url);
     $title = esc_attr($instance['title']);
     $desc = '';
     $link = '';
     if (!is_wp_error($rss)) {
         $desc = esc_attr(strip_tags(@html_entity_decode($rss->get_description(), ENT_QUOTES, floki_get_option('blog_charset'))));
         if (empty($title)) {
             $title = esc_html(strip_tags($rss->get_title()));
         }
         $link = esc_url(strip_tags($rss->get_permalink()));
         while (stristr($link, 'http') != $link) {
             $link = substr($link, 1);
         }
     }
     if (empty($title)) {
         $title = empty($desc) ? __('Unknown Feed', 'floki') : $desc;
     }
     $title = apply_filters('widget_title', $title, $instance, $this->id_base);
     $url = esc_url(strip_tags($url));
     $icon = includes_url('images/rss.png');
     if ($title) {
         $title = "<a class='rsswidget' href='{$url}' title='" . esc_attr__('Syndicate this content', 'floki') . "'><img style='border:0' width='14' height='14' src='{$icon}' alt='RSS' /></a> <a class='rsswidget' href='{$link}' title='{$desc}'>{$title}</a>";
     }
     echo $before_widget;
     if ($title) {
         echo $before_title . $title . $after_title;
     }
     wp_floki_widget_rss_output($rss, $instance);
     echo $after_widget;
     if (!is_wp_error($rss)) {
         $rss->__destruct();
     }
     unset($rss);
 }
Exemplo n.º 4
0
				
                
                                             <?php 
        if ($tipopage == "" || $tipopage == 'full') {
            ?>

</div>

<?php 
        }
        ?>
	
                 
				 
				 <?php 
        if (floki_get_option('comments') == 1) {
            include "coments.php";
        }
        ?>
                 
			</article>
		
        
	<?php 
    }
} else {
    ?>

	
			<article>
				<p><?php 
Exemplo n.º 5
0
</h3>
<input class="color" type="text" name="palcolor3" id="palcolor3" value ="<?php 
echo esc_attr(floki_get_option('palcolor3'));
?>
" size="6" /> <br/>
<span><?php 
_e('Write or select color', 'floki');
?>
</span>

<h3><?php 
_e('Text color', 'floki');
?>
</h3>
<input class="color" type="text" name="palcolor4" id="palcolor4" value ="<?php 
echo esc_attr(floki_get_option('palcolor4'));
?>
" size="6" /> <br/>
<span><?php 
_e('Write or select color', 'floki');
?>
</span>

<br/><br/>
<button id="palette" name="palette" class="button-primary"><?php 
_e('LOAD COLORS', 'floki');
?>
</button>


Exemplo n.º 6
0
        ?>
             <div class="text">
			 <?php 
        if (floki_get_option('headertitle') != "") {
            ?>
				 
				 <h2><?php 
            echo esc_html(floki_get_option('headertitle'));
            ?>
</h2>
				 <?php 
        }
        if (floki_get_option('headerdescription') != "") {
            ?>
				  <br/><span><?php 
            echo esc_html(floki_get_option('headerdescription'));
            ?>
</span>
				 <?php 
        }
        ?>
			 </div>
             <?php 
    }
    ?>
                 
         </div>
 
         </center> 

        <div class="shadow-bottom"></div>
Exemplo n.º 7
0
function floki_add_header_scripts()
{
    global $menu_design6, $parallaxani, $options, $tipopage, $layerslider, $revslider, $anidiv, $aniimg, $anilink, $anip, $anih, $pageslider, $floki_custom_sidebar, $blogcategory, $spinfo, $sptitle, $spimage, $sporder, $spcontent, $sporde, $visiblezone, $bimage, $bimage2, $bimage3, $bimage4, $bcolor1, $bcolor2, $spcont, $backdot, $backtyp, $youtubeback, $youtubemute, $youtubesize;
    $isMobile = wp_is_mobile();
    $animate = 0;
    $animation = 1;
    $parallaxani = 1;
    if ($isMobile) {
        $animation = 0;
        $parallaxani = 0;
    }
    //$animation= floki_get_option( 'colorfonth1' );
    // options
    $demooptions = false;
    // demos design options
    $colorfonth1 = esc_attr(floki_get_option('colorfonth1'));
    $colorfonth2 = esc_attr(floki_get_option('colorfonth2'));
    $colorfont2 = esc_attr(floki_get_option('colorfont2'));
    $colorfont3 = esc_attr(floki_get_option('colorfont3'));
    $colorfont4 = esc_attr(floki_get_option('colorfont4'));
    $colorfont = esc_attr(floki_get_option('colorfont'));
    $colorstrong = esc_attr(floki_get_option('colorstrong'));
    $menusize = esc_attr(floki_get_option('menusize'));
    $colorzone1 = esc_attr(floki_get_option('colorzone1'));
    $colorzone3 = esc_attr(floki_get_option('colorzone3'));
    $colorzone6 = esc_attr(floki_get_option('colorzone6'));
    $colorzone5 = esc_attr(floki_get_option('colorzone5'));
    $menupading = esc_attr(floki_get_option('menupading'));
    $menu_design = esc_attr(floki_get_option('menu_design'));
    $colorstrong = esc_attr(floki_get_option('colorstrong'));
    $colorfonth3 = esc_attr(floki_get_option('colorfonth3'));
    $colorfonth4 = esc_attr(floki_get_option('colorfonth4'));
    $menu_design6 = esc_attr(floki_get_option('menu_design6'));
    $hfixed = esc_attr(floki_get_option('hfixed'));
    $anidiv = esc_attr(floki_get_option("anidiv"));
    $aniimg = esc_attr(floki_get_option("aniimg"));
    $anih = esc_attr(floki_get_option("anih"));
    $anilink = esc_attr(floki_get_option("anilink"));
    $anip = esc_attr(floki_get_option("anip"));
    $mainimage = esc_attr(floki_get_option("mainimage"));
    if ($isMobile) {
        $hfixed = 0;
    }
    $markup = "";
    $visiblezone = esc_attr(floki_get_option('visiblezone5'));
    $bodycolor1 = $colorzone5;
    $bodycolor2 = esc_attr(floki_get_option('color2zone5'));
    $style = "";
    /* if page options
    if($visiblezone=="sm-blue" && isset($post_id)) {
    					$colorzone5=esc_attr(get_post_meta($post_id, 'colorzone', true));
    				}
    */
    global $custom_syle;
    require get_template_directory() . '/custom-css.php';
    wp_enqueue_style('floki-stylesheet', get_bloginfo('stylesheet_url'));
    wp_add_inline_style('floki-stylesheet', $custom_syle);
    wp_enqueue_script('jquery');
    wp_enqueue_script('floki-script', get_template_directory_uri() . '/js/floki.js');
    wp_localize_script('floki-script', 'floki', array('animation' => $animation, 'parallaxani' => $parallaxani, 'logo' => esc_url(floki_get_option('logo')), 'isMobile' => $isMobile, 'auxiv1' => '0', 'anidiv' => $anidiv, 'aniimg' => $aniimg, 'anih' => $anih, 'anilink' => $anilink, 'anip' => $anip, 'mainimage' => $mainimage));
    if (is_singular()) {
        wp_enqueue_script("comment-reply");
    }
    if (floki_get_option('googlefont') != "not") {
        wp_enqueue_style('floki-googlefont', '//fonts.googleapis.com/css?family=' . esc_attr(floki_get_option('googlefont')) . ':400,800italic,800,700italic,600italic,600,400italic,300italic,300&subset=latin,latin-ext');
    }
    if (floki_get_option('headingfont') != "not") {
        wp_enqueue_style('floki-googlefonth', '//fonts.googleapis.com/css?family=' . esc_attr(floki_get_option('headingfont')) . ':400,800italic,800,700italic,600italic,600,400italic,300italic,300&subset=latin,latin-ext');
    }
}
Exemplo n.º 8
0
         </div>
         
         <div class="nine columns socialfooter">
         
         <?php 
    floki_printsocial(floki_get_option("footersocial"));
    ?>

         
         </div>
         <?php 
} else {
    ?>
			
            <p><?php 
    echo esc_textarea(floki_get_option('footertext'));
    ?>
</p>
            
            <?php 
}
?>
            
            
            
            
            
            </div>
		</footer>
		<?php 
wp_footer();
Exemplo n.º 9
0
if (floki_get_option('visiblezone2') == "sm-clean") {
    $custom_syle .= "\r\n\tbackground:-webkit-gradient(linear, 0 0, 0 100%, from(" . esc_attr(floki_get_option('colorzone2')) . "), to(" . esc_attr(floki_get_option('color2zone2')) . "));\r\n\t\r\n\tbackground:-moz-linear-gradient(" . esc_attr(floki_get_option('colorzone2')) . ", " . esc_attr(floki_get_option('color2zone2')) . ");\r\n\tbackground:-o-linear-gradient(" . esc_attr(floki_get_option('colorzone2')) . ", " . esc_attr(floki_get_option('color2zone2')) . ");\r\n\tbackground:linear-gradient(" . esc_attr(floki_get_option('colorzone2')) . ", " . esc_attr(floki_get_option('color2zone2')) . ");";
}
$custom_syle .= "}";
if ($hfixed != "1") {
    $custom_syle .= "\t\r\n\t.logo {\r\n\t\tposition:relative;\r\n\t}\r\n\t\r\n\t.firstdiv {\r\n\t\tdisplay: none;\r\n\t}";
}
$custom_syle .= "\r\n\tnav {\r\n\t\tbackground:none;\r\n\t\tbackground-color: " . $colorzone3 . ";\r\n\r\n\t/* css3 */\r\n\tbackground:-webkit-gradient(linear, 0 0, 0 100%, from(" . $colorzone3 . "), to(" . esc_attr(floki_get_option('color2zone3')) . "));\r\n\t\r\n\tbackground:-moz-linear-gradient(" . $colorzone3 . ", " . esc_attr(floki_get_option('color2zone3')) . ");\r\n\tbackground:-o-linear-gradient(" . $colorzone3 . ", " . esc_attr(floki_get_option('color2zone3')) . ");\r\n\tbackground:linear-gradient(" . $colorzone3 . ", " . esc_attr(floki_get_option('color2zone3')) . ");\r\n\t}\r\n\t\r\n\t.shadow-top {\r\n\t\tposition:absolute;\r\n\t\tbackground-image:url(" . get_template_directory_uri() . "/images/shadow-top.png);\r\n\t\tbackground-repeat:no-repeat;\r\n\t\tbackground-position:top center;\r\n\t}\r\n\t\t.shadow-top2 {\r\n\t\tbackground-image:url(" . get_template_directory_uri() . "/images/shadow2.png);\r\n\t\tbackground-repeat:no-repeat;\r\n\t\tbackground-position: top center;\r\n\t\tposition:absolute;\r\n\t\ttop:0;\r\n\t\t  \r\n\t\theight:57px;\r\n\t\twidth:100%;\r\n\t\toverflow:hidden;\r\n\t}\r\n\t.shadow-bottom {\r\n\t\tposition:absolute;\r\n\t\tbackground-image:url(" . get_template_directory_uri() . "/images/shadow-bottom.png);\r\n\t\tbackground-repeat:no-repeat;\r\n\t\tbackground-position:top center;\r\n\t}";
if (floki_get_option('menu_posi2') == "top") {
    $custom_syle .= "\r\n\t.sm-clean {\r\n\t\tfloat: right;\r\n\t}";
}
if ($animation > 0 && $anidiv != "") {
    $custom_syle .= "\r\n\t.flokipost > div {\r\n\t\topacity : 0;\r\n\t\tperspective: 500px;\r\n-webkit-perspective: 500px;\r\n\t\t\r\n\t}";
}
if ($animation > 0 && $aniimg != "") {
    $custom_syle .= "\t\r\n\t.flokipost img {\r\n\t\topacity : 0;\r\n\t\tperspective: 500px;\r\n-webkit-perspective: 500px;\r\n\t\t\r\n\t}";
}
if ($animation > 0 && $anilink != "") {
    $custom_syle .= "\r\n\t\r\n\t.flokipost a {\r\n\t\topacity : 0;\r\n\t\tperspective: 500px;\r\n-webkit-perspective: 500px;\r\n\t\t\r\n\t}";
}
if ($animation > 0 && $anip != "") {
    $custom_syle .= "\r\n\t.flokipost p {\r\n\t\topacity : 0;\r\n\t\tperspective: 500px;\r\n-webkit-perspective: 500px;\r\n\t\t\r\n\t}";
}
if ($animation > 0 && $anih != "") {
    $custom_syle .= "\r\n\t\r\n\t.flokipost h1,.flokipost h2,.flokipost h3,.flokipost h4,.flokipost h5 {\r\n\t\topacity : 0;\r\n\t\tperspective: 500px;\r\n-webkit-perspective: 500px;\r\n\t\t\r\n\t}";
}
// header titles and description.
if (floki_get_option('mainimage') != "") {
    $custom_syle .= "#mainheader {\r\n\t   background-repeat:no-repeat;\r\n    background-position: center center;\r\n  -webkit-background-size: cover;\r\n  -moz-background-size: cover;\r\n  -o-background-size: cover;\r\n  background-size: cover;\r\n\r\n}\r\n";
}
$custom_syle .= "\t\r\n\r\n .backmainheader {\r\n\t position: relative;\r\nbackground: url(" . get_template_directory_uri() . "/images/blackdot.png);\r\n\tbackground-position: fixed;\r\n\toverflow:hidden;\r\n\theight:500px;\r\n\t\r\n\r\n}\r\n\r\n\t@media screen and (max-width: 768px) {\r\n    \tbody {\r\nwidth:100%;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t.sl {\r\n\tpadding-left:0px;\r\n\tpadding-right:10px;\r\n\tmargin: 0 auto;\r\n}\r\n\r\n.sr {\r\n\tpadding-right:0px;\r\n\tpadding-left:10px;\r\n\tmargin: 0 auto;\r\n}\r\n\t\r\n\t\r\n}\r\n";