* @since Sweetdate 1.0 */ global $kleo_config; $kleo_config['image_sizes'] = array( 'blog_carousel' => array( 'width' => 310, 'height' => 177 ) ); // Profile fields to show on members loop, below the name $kleo_config['bp_members_loop_meta'] = array( 'I am a', 'Marital status', 'City' ); //From which profile field to show member details on members directory page $kleo_config['bp_members_details_field'] = 'About me'; /* * Arrays with compatibility match fields. Customize these fields to change the match score */ $kleo_config['matching_fields']['starting_score'] = 1; //If we want to match by members sex. values: 0|1 $kleo_config['matching_fields']['sex_match'] = 1; $kleo_config['matching_fields']['sex'] = 'I am a'; $kleo_config['matching_fields']['looking_for'] = 'Looking for a'; $kleo_config['matching_fields']['sex_percentage'] = 49; $kleo_config['matching_fields']['sex_mandatory'] = 1; //single value fields like select, textbox,radio $kleo_config['matching_fields']['single_value'] = array( 'Marital status' => 20, 'Country' => 10 ); //multiple values fields like multiple select or checkbox $kleo_config['matching_fields']['multiple_values'] = array( 'Interests' => 10, 'Looking for' => 10, ); /* Include theme constants */ require_once( get_template_directory() . '/framework/constants.php' ); /* Include our Framework logic */ require_once( FRAMEWORK_PATH . '/load.php' ); if ( ! isset( $content_width ) ) { $content_width = 980; } /** * Sets up theme defaults and registers the various WordPress features * * @uses load_theme_textdomain() For translation/localization support. * @uses add_editor_style() To add a Visual Editor stylesheet. * @uses add_theme_support() To add support for post thumbnails, automatic feed links, * custom background, and post formats. * @uses register_nav_menu() To add support for navigation menus. * @uses set_post_thumbnail_size() To set a custom post thumbnail size. * * @since Sweetdate 1.0 */ function sweetdate_setup() { global $kleo_config; /* * Makes Sweetdate available for translation. * Translations can be added to the /languages/ directory. */ load_theme_textdomain( 'kleo_framework', get_template_directory() . '/languages' ); // This theme styles the visual editor with editor-style.css to match the theme style. add_editor_style(); // Adds RSS feed links to
for posts and comments. add_theme_support( 'automatic-feed-links' ); // This theme supports a variety of post formats. add_theme_support( 'structured-post-formats', array( 'link', 'video' ) ); add_theme_support( 'post-formats', array( 'aside', 'audio', 'gallery', 'image', 'quote', 'status', 'link', 'video' ) ); add_theme_support( 'bbpress' ); add_theme_support( 'woocommerce' ); add_theme_support( 'title-tag' ); // This theme uses wp_nav_menu() in one location. register_nav_menu( 'primary', __( 'Primary Menu', 'kleo_framework' ) ); // This theme uses a custom image size for featured images, displayed on "standard" posts. add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size( 938, 9999 ); // Unlimited height, soft crop add_image_size( 'blog_carousel', $kleo_config['image_sizes']['blog_carousel']['width'], $kleo_config['image_sizes']['blog_carousel']['height'], true ); // hard crop for articles carousel } add_action( 'after_setup_theme', 'sweetdate_setup', 8 ); if ( ! function_exists( '_wp_render_title_tag' ) ) { function kleo_slug_render_title() { ?>', '' ); ?>
' . '
', 'url' => '' . '
', ); $required_text = sprintf( ' ' . __( 'Required fields are marked %s', 'kleo_framework' ), '*' ); $defaults = array( 'fields' => apply_filters( 'comment_form_default_fields', $fields ), 'comment_field' => '', 'must_log_in' => '' . sprintf( __( 'You must be logged in to post a comment.', 'kleo_framework' ), wp_login_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '
', 'logged_in_as' => '' . sprintf( __( 'Logged in as %2$s. Log out?', 'kleo_framework' ), get_edit_user_link(), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '
', 'comment_notes_before' => '' . __( 'Your email address will not be published.', 'kleo_framework' ) . ( $req ? $required_text : '' ) . '
', 'comment_notes_after' => ' ', 'id_form' => 'commentform', 'id_submit' => 'submit', 'title_reply' => __( 'Leave a Reply', 'kleo_framework' ), 'title_reply_to' => __( 'Leave a Reply to %s', 'kleo_framework' ), 'cancel_reply_link' => __( 'Cancel reply', 'kleo_framework' ), 'label_submit' => __( 'Post Comment', 'kleo_framework' ), ); $args = wp_parse_args( $args, apply_filters( 'comment_form_defaults', $defaults ) ); ?>
' . get_comment_author_link() . '
'; echo '' . sprintf( __( '%1$s at %2$s', 'kleo_framework' ), get_comment_date(), get_comment_time() ) . '