Exemplo n.º 1
0
	   <?php 
        if (!osc_get_preference('cat_icon_' . osc_category_id(), 'flatter_theme')) {
            osc_set_preference('cat_icon_' . osc_category_id(), __('fa fa-star', 'flatter'), 'flatter_theme');
        }
        $i++;
    }
}
// used for date/dateinterval custom fields
//osc_remove_script('jquery');
//osc_register_script('jquery', osc_current_web_theme_url('js/jquery/1.11.1/jquery.min.js'));
osc_enqueue_script('php-date');
if (!OC_ADMIN) {
    osc_enqueue_style('fine-uploader-css', osc_assets_url('js/fineuploader/fineuploader.css'));
    osc_enqueue_style('flatter-fine-uploader-css', osc_current_web_theme_url('css/ajax-uploader.css'));
}
if (osc_is_publish_page() || osc_is_edit_page()) {
    osc_enqueue_script('jquery-fineuploader');
}
/**
FUNCTIONS
*/
// install options
if (!function_exists('flatter_theme_install')) {
    function flatter_theme_install()
    {
        osc_set_preference('keyword_placeholder', Params::getParam('keyword_placeholder'), 'flatter_theme');
        osc_set_preference('version', FLATTER_THEME_VERSION, 'flatter_theme');
        osc_set_preference('footer_link', '1', 'flatter_theme');
        osc_set_preference('google_analytics', '1', 'flatter_theme');
        osc_set_preference('google_webmaster', '1', 'flatter_theme');
        osc_set_preference('facebook_likebox', '1', 'flatter_theme');
Exemplo n.º 2
0
	  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
	
	  ga('create', '<?php 
    echo osc_get_preference("g_analytics", "flatter_theme");
    ?>
', 'auto');
	  ga('send', 'pageview');
	</script>
    <?php 
}
?>
    <script type="text/javascript">
		$(".flashmessage .ico-close").click(function(){$(this).parent().hide();});
    </script>
    <?php 
if (!osc_is_publish_page() || !osc_is_edit_page()) {
    ?>
    <?php 
    if (osc_get_preference('anim', 'flatter_theme') != '0') {
        ?>
    <script src="<?php 
        echo osc_current_web_theme_url('js/wow.min.js');
        ?>
"></script>
	<script type="text/javascript">
	/**
	Wow.js
	**/
    new WOW().init();
    </script>
    <?php