コード例 #1
0
ファイル: functions.php プロジェクト: syedfiraat4/bikade.com
		},
		errorLabelContainer: "#error_list",
		wrapper: "li",
		invalidHandler: function(form, validator) {
			$('html,body').animate({ scrollTop: $('h1').offset().top }, { duration: 250, easing: 'swing'});
		},
		submitHandler: function(form){
			$('button[type=submit], input[type=submit]').attr('disabled', 'disabled');
			setTimeout("$('button[type=submit], input[type=submit]').removeAttr('disabled')", 5000);
			form.submit();
		}
	});
</script>
<?php 
}
if (osc_is_publish_page()) {
    osc_add_hook('footer', 'osclasswizards_item_post_form_validate');
}
class osclasswizardsBodyClass
{
    /**
     * Custom Class for add, remove or get body classes.
     *
     * @param string $instance used for singleton.
     * @param array $class.
     */
    private static $instance;
    private $class;
    private function __construct()
    {
        $this->class = array();
コード例 #2
0
ファイル: functions.php プロジェクト: abhi143u11/ads
	   <?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');
コード例 #3
0
 function add_default_bodyclasses()
 {
     if (osc_is_ad_page()) {
         echo 'ad-page';
     }
     if (osc_is_search_page()) {
         echo 'search-page';
     }
     if (osc_is_static_page()) {
         echo 'static-page';
     }
     if (osc_is_home_page()) {
         echo 'home-page';
     }
     if (osc_is_user_dashboard()) {
         echo 'user-dashboard';
     }
     if (osc_is_publish_page()) {
         echo 'publish-page';
     }
     if (osc_is_login_form()) {
         echo 'login-form';
     }
     if (osc_is_contact_page()) {
         echo 'contact-form';
     }
     if (Params::getParam('action') == 'send_friend') {
         echo 'send-friend';
     }
     if (Params::getParam('action') == 'contact') {
         echo 'item-contact';
     }
 }
コード例 #4
0
ファイル: footer.php プロジェクト: abhi143u11/ads
	  })(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