and element class. */ $req = ( ( get_option( 'require_name_email' ) ) ? ' ' . __( '*', 'ascetica' ) . ' ' : '' ); $input_class = ( ( get_option( 'require_name_email' ) ) ? ' req' : '' ); $fields = array( 'author' => '

', 'email' => '

', 'url' => '

' ); $args = array( 'fields' => apply_filters( 'comment_form_default_fields', $fields ), 'comment_field' => '

', 'must_log_in' => '

' . sprintf( __( 'You must be logged in to post a comment.', 'ascetica' ), wp_login_url( get_permalink() ) ) . '

', 'logged_in_as' => '

' . sprintf( __( 'Logged in as %2$s.', 'ascetica' ), admin_url( 'profile.php' ), esc_attr( $user_identity ) ) . ' ' . __( 'Log out »', 'ascetica' ) . '

', 'comment_notes_before' => '', 'comment_notes_after' => '', 'id_form' => 'commentform', 'id_submit' => 'submit', 'title_reply' => __( 'Leave a Reply', 'ascetica' ), 'title_reply_to' => __( 'Leave a Reply to %s', 'ascetica' ), 'cancel_reply_link' => __( 'Click here to cancel reply.', 'ascetica' ), 'label_submit' => __( 'Post Comment', 'ascetica' ), ); return $args; } /** * Default footer settings * */ function ascetica_default_footer_settings( $settings ) { $settings['footer_insert'] = '' . "\n\n" . '

' . __( 'Powered by [wp-link] and [theme-link]', 'ascetica' ) . '

'; return $settings; } /** * Google fonts * */ function ascetica_google_fonts() { if ( hybrid_get_setting( 'ascetica_font_family' ) ) { switch ( hybrid_get_setting( 'ascetica_font_family' ) ) { case 'PT Serif': wp_enqueue_style( 'font-pt-serif', 'http://fonts.googleapis.com/css?family=PT+Serif:400,400italic', false, 1.0, 'screen' ); break; case 'Droid Serif': wp_enqueue_style( 'font-droid-serif', 'http://fonts.googleapis.com/css?family=Droid+Serif:400,400italic', false, 1.0, 'screen' ); break; case 'Istok Web': wp_enqueue_style( 'font-istok-web', 'http://fonts.googleapis.com/css?family=Istok+Web', false, 1.0, 'screen' ); break; case 'Droid Sans': wp_enqueue_style( 'font-droid-sans', 'http://fonts.googleapis.com/css?family=Droid+Sans', false, 1.0, 'screen' ); break; case 'Bitter': wp_enqueue_style( 'font-bitter', 'http://fonts.googleapis.com/css?family=Bitter', false, 1.0, 'screen' ); break; } } } /** * Style settings * */ function ascetica_style_settings() { echo "\n\n"; echo "\n"; } /** * Widgets * */ function ascetica_register_widgets() { /* Include widget classes */ require_once( get_template_directory() . '/includes/widget-thumbnails.php' ); /* Register widgets */ register_widget( 'Ascetica_Thumbnails_Widget' ); } /** * Ascetica site title. * */ function ascetica_site_title() { if ( hybrid_get_setting( 'ascetica_logo_url' ) ) { $tag = ( is_front_page() ) ? 'h1' : 'div'; echo '<' . $tag . ' id="site-title">' . "\n"; echo '' . "\n"; echo '' . "\n"; echo '' . "\n"; echo '' . "\n"; } else { hybrid_site_title(); } } ?>