array( 'name' => __( 'Skins', 'themify' ), 'type' => 'layout', 'args' => array( 'std' => 'default', 'options' => themify_base_get_skins( array( 'black' => __( 'Black', 'themify' ), 'full-wrap' => __( 'Full Wrap', 'themify' ), 'full-wrap-black' => __( 'Full Wrap Black', 'themify' ), 'page' => __( 'Page', 'themify' ), 'page-black' => __( 'Page Black', 'themify' ), )), 'desc' => __( 'Select the skin for the site.', 'themify' ), 'class' => 'skin-preview' ), ), ); return array_merge( $settings, $theme_settings ); } /** * Get the skin list. * @param array $skins * @return array */ function themify_base_get_skins( $skins = array() ){ $skins_data = array( array( 'value' => 'default', 'img' => 'screenshot.png', 'selected' => true, 'title' => __( 'Default', 'themify' ), ) ); foreach ( $skins as $skin => $name ) { $skins_data[] = array( 'value' => $skin, 'img' => 'skins/' . $skin . '/screenshot.png', 'title' => $name, ); } return $skins_data; } /** * Enqueue Stylesheets and Scripts */ function themify_base_theme_enqueue_scripts() { // Google Web Fonts embedding wp_enqueue_style( 'themify-google-fonts', themify_base_https_esc('http://fonts.googleapis.com/css'). '?family=Montserrat:400,700|Open+Sans:400,300&subset=latin,latin-ext'); // Themify base styling wp_enqueue_style( 'themify-style', get_stylesheet_uri(), array(), wp_get_theme()->display( 'Version' ) ); // Themify Media Queries CSS wp_enqueue_style( 'themify-media-queries', THEME_URI . '/media-queries.css' ); // Skin stylesheet $skin = themify_base_get( 'skin' ); if ( $skin && 'default' != $skin ) { wp_enqueue_style( 'themify-skin', THEME_URI . '/skins/' . $skin . '/style.css', array( 'themify-style' ) ); } // Fontello Icon Fonts wp_enqueue_style( 'themify-fontello', THEME_URI . '/fontello/css/fontello.css' ); /////////////////// // Enqueue scripts /////////////////// // Themify internal scripts wp_enqueue_script( 'theme-script', THEME_URI . '/js/themify.script.js', array( 'jquery' ), false, true ); // Inject variable values in gallery script wp_localize_script( 'theme-script', 'themifyScript', apply_filters('themify_script_vars', array( 'lightbox' => themify_base_lightbox_vars_init(), 'lightboxContext' => apply_filters('themify_lightbox_context', '#pagewrap'), 'isTouch' => themify_is_touch() ? 'true' : 'false', 'html5placeholder' => 'yes' ) )); // WordPress internal script to move the comment box to the right place when replying to a user if ( is_single() || is_page() ) { wp_enqueue_script( 'comment-reply' ); } } ////////////////////////////////////////////////////////////////////////// // Theme templating functions ////////////////////////////////////////////////////////////////////////// /** * Register menu areas. */ function themify_base_register_custom_nav() { register_nav_menus( array( 'main-nav' => __( 'Main Navigation', 'themify' ), 'footer-nav' => __( 'Footer Navigation', 'themify' ), )); } /** * Default navigation callback. */ function themify_base_default_main_nav() { echo ''; } /** * Register sidebars. */ function themify_base_theme_register_sidebars() { register_sidebar( array( 'name' => __( 'Sidebar', 'themify' ), 'id' => 'sidebar-main', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); // Register footer widgets themify_base_register_grouped_widgets(); } if ( ! function_exists( 'themify_base_theme_comment' ) ) { /** * Custom Theme Comment * @param object $comment Current comment. * @param array $args Parameters for comment reply link. * @param int $depth Maximum comment nesting depth. * @since 1.0.0 */ function themify_base_theme_comment( $comment, $args, $depth ) { $GLOBALS['comment'] = $comment; ?>
  • >

    %s', get_comment_author_link() ) ?>
    @

    comment_approved == '0' ) : ?>

    'comment', 'depth' => $depth, 'reply_text' => __( 'Reply', 'themify' ), 'max_depth' => $args['max_depth'] ) ) ) ?>

    <?php wp_title( '|', true, 'right' ); ?>