commit 942a4c151f2374a3ec02cac5b2bc47a2feabf0c2 Author: Frank419 Date: Tue Aug 20 07:44:34 2024 +0800 Initial commit. diff --git a/404.php b/404.php new file mode 100644 index 0000000..375f78a --- /dev/null +++ b/404.php @@ -0,0 +1,19 @@ + + + + +
+
+

+

+

+ +

+
+
+ + \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..9f541db --- /dev/null +++ b/README.md @@ -0,0 +1,51 @@ +=== MinimalistFlex === +Stable tag: 1.0.0 +Contributors: frank419 +Tags: two-columns ,left-sidebar, right-sidebar, custom-colors, custom-logo, custom-menu, editor-style, featured-images, flexible-header, footer-widgets, sticky-post, theme-options, translation-ready, blog +Tested up to: 6.6 +Requires at least: 4.9 +License: GNU General Public License v3.0 or later +License URI: https://www.gnu.org/licenses/gpl-3.0.html + +MinimalistFlex is an elegant, easy to use theme that aims to +provide a smooth user experience. + +== Description == +MinimalistFlex is a well designed theme that provides as +many options as possible while not being overwhelming. + +MinimalistFlex supports all the features you love: flexible header +images, multiple widget areas, custom layout & colors, and +some exclusive features like setting default featured images. + +MinimalistFlex is tested against many WordPress and PHP versions, +including the latest version as well as older versions +up to WordPress 4.9 and PHP 5.6. + +MinimalistFlex put all kinds of visitors in its heart. MinimalistFlex is +fully responsive, and looks good on very small screens. +We also tried our best to make the theme as accessible as +possible. + +== Frequently Asked Quesions == + += How do I set default featured images? = + +The theme provides a new section, called "Default Featured +Images", located in the customizer, just below "Colors". + +This new section provided some new controls, including some +images from us in case you don't have any good images right +now. + += To what extent can I customize the colors? = + +Almost everything you see on your site can have its color +changed. + +As a bonus, we have 4 pre-built color palettes for you. + +== Changelog == + += 1.0.0 = +* Initial release. \ No newline at end of file diff --git a/archive.php b/archive.php new file mode 100644 index 0000000..b9a3f6c --- /dev/null +++ b/archive.php @@ -0,0 +1,21 @@ + + + + + +
+ +

+ +

+ + +
+ + + + diff --git a/author.php b/author.php new file mode 100644 index 0000000..d476020 --- /dev/null +++ b/author.php @@ -0,0 +1,63 @@ + + + + + +
+ +

+ + + + +

+
+ + + + +
+

+ +
+ + + +
+

+ +

+ +
+ + + + diff --git a/comments.php b/comments.php new file mode 100644 index 0000000..7d293e9 --- /dev/null +++ b/comments.php @@ -0,0 +1,58 @@ + + + + +
+ +

+ ' . get_the_title() . '' + ); + ?> +

+ + + + 1 && get_option( 'page_comments' ) ) : ?> + + + + +

+ + + + + + +
diff --git a/css/autoh2label.css b/css/autoh2label.css new file mode 100644 index 0000000..ec0ee09 --- /dev/null +++ b/css/autoh2label.css @@ -0,0 +1,31 @@ +:root { + counter-reset: headings; +} + +.singular-main h2 { + position: relative; + counter-increment: headings; +} + +.singular-main h2::before { + content: counter(headings); + display: inline-flex; + justify-content: center; + align-items: center; + width: 2em; + height: 2em; + background-color: var(--minimalistflex-tint); + color: var(--minimalistflex-contrast); + margin-right: 12px; +} + +.singular-main h2::after { + content: ""; + display: block; + position: absolute; + bottom: 0; + right: 0; + width: calc(100% - 2em); + height: 4px; + background: linear-gradient(90deg, var(--minimalistflex-tint), var(--minimalistflex-tint-alt)); +} \ No newline at end of file diff --git a/css/color-palette.css b/css/color-palette.css new file mode 100644 index 0000000..fd70a97 --- /dev/null +++ b/css/color-palette.css @@ -0,0 +1,41 @@ +.palettes { + padding: 0; + margin: 0; + list-style-type: none; + display: flex; + flex-direction: column; + align-items: center; +} + +.palette { + width: 100%; + position: relative; + text-align: center; + cursor: default; + border: solid 1px #c3c4c7; + box-sizing: border-box; + background-size: cover; + background-position: center center; +} + +.palette > button { + display: block; + width: 100%; + box-sizing: content-box; + border: none; + border-radius: 0; + background-color: transparent; + color: inherit; + padding: 9px 0; + line-height: 1.6; +} + +.palette > button:hover { + background-color: #ffffff3f; +} + +#minimalistflex-palette-galatic, +#minimalistflex-palette-dark { + color: #fff; +} + diff --git a/css/editor.css b/css/editor.css new file mode 100644 index 0000000..b5d1bb2 --- /dev/null +++ b/css/editor.css @@ -0,0 +1,53 @@ +/* + * This file is used to style the editor. + */ + +:root :where(body) { + line-height: 2em; + margin: 0 10%; +} + +tt, +kbd, +code, +pre { + font-family: Hack, 'Courier New', Courier, monospace; + background-color: #111 !important; + color: #fff !important; + border-radius: 2px; + padding: 5px 10px; + overflow-x: auto; +} + +code:has(br) { + display: inline-block; +} + +blockquote, +address { + border-left: solid 3px #ffd900; + padding-left: 1em; +} + +dt { + font-weight: bold; +} + +table { + border: none; + border-collapse: collapse; +} + +table thead, +table tbody tr:not(:last-child) { + border-bottom: solid 1px #000; +} + +table thead, +table tbody tr:nth-child(2n) { + background-color: color-mix( + in srgb, + #f0f0f0, + transparent 25% + ) +} \ No newline at end of file diff --git a/css/mobile.css b/css/mobile.css new file mode 100644 index 0000000..670d672 --- /dev/null +++ b/css/mobile.css @@ -0,0 +1,20 @@ +@media screen and (max-width: 782px) { + .minimalistflex-content { + width: 67%; + } + + .minimalistflex-sidebar { + width: 33%; + } +} + +@media screen and (max-width: 600px) { + .minimalistflex-content, + .minimalistflex-sidebar { + width: 100%; + } + + .minimalistflex-master { + flex-wrap: wrap; + } +} \ No newline at end of file diff --git a/css/multi-image.css b/css/multi-image.css new file mode 100644 index 0000000..0c7ba94 --- /dev/null +++ b/css/multi-image.css @@ -0,0 +1,58 @@ +.placeholder { + width: 100%; + position: relative; + text-align: center; + cursor: default; + border: 1px dashed #c3c4c7; + box-sizing: border-box; + padding: 9px 0; + line-height: 1.6; +} + +.images:has(.image-item) + .placeholder { + display: none; +} + +.suggested-image-item, +.image-item { + width: 100%; + height: 150px; + background-position: center; + background-size: cover; + background-repeat: no-repeat; + -webkit-box-shadow: inset 0 0 15px rgba(0,0,0,.1), inset 0 0 0 1px rgba(0,0,0,.05); + box-shadow: inset 0 0 15px rgba(0,0,0,.1), inset 0 0 0 1px rgba(0,0,0,.05); + background: #eee; + cursor: pointer; + vertical-align: middle; + display: flex; + justify-content: center; + align-items: center; + overflow: hidden; + position: relative; +} + +.suggested-image-item::before, +.image-item::before { + content: ''; + position: absolute; + display: none; + top: 0px; + right: 0px; + left: 0px; + bottom: 0px; + box-shadow: 0 0 0 5px #2271b1 inset; +} + +.image-item::before { + box-shadow: 0 0 0 5px #b12222 inset; +} + +.suggested-image-item:hover::before, +.image-item:hover::before { + display: block; +} + +.actions { + padding: 1em 0; +} \ No newline at end of file diff --git a/defaults/1.png b/defaults/1.png new file mode 100644 index 0000000..6509c55 Binary files /dev/null and b/defaults/1.png differ diff --git a/defaults/2.png b/defaults/2.png new file mode 100644 index 0000000..a6cb59f Binary files /dev/null and b/defaults/2.png differ diff --git a/defaults/3.png b/defaults/3.png new file mode 100644 index 0000000..70a1ef9 Binary files /dev/null and b/defaults/3.png differ diff --git a/defaults/4.png b/defaults/4.png new file mode 100644 index 0000000..dc8c9da Binary files /dev/null and b/defaults/4.png differ diff --git a/defaults/5.png b/defaults/5.png new file mode 100644 index 0000000..9baccc5 Binary files /dev/null and b/defaults/5.png differ diff --git a/defaults/6.png b/defaults/6.png new file mode 100644 index 0000000..54210a1 Binary files /dev/null and b/defaults/6.png differ diff --git a/defaults/header.png b/defaults/header.png new file mode 100644 index 0000000..68200e7 Binary files /dev/null and b/defaults/header.png differ diff --git a/defaults/header2.png b/defaults/header2.png new file mode 100644 index 0000000..8b0986d Binary files /dev/null and b/defaults/header2.png differ diff --git a/defaults/palette.png b/defaults/palette.png new file mode 100644 index 0000000..f0c7736 Binary files /dev/null and b/defaults/palette.png differ diff --git a/defaults/palette2.png b/defaults/palette2.png new file mode 100644 index 0000000..10ea9e4 Binary files /dev/null and b/defaults/palette2.png differ diff --git a/defaults/palette3.png b/defaults/palette3.png new file mode 100644 index 0000000..5e603e8 Binary files /dev/null and b/defaults/palette3.png differ diff --git a/defaults/palette4.png b/defaults/palette4.png new file mode 100644 index 0000000..67ffd63 Binary files /dev/null and b/defaults/palette4.png differ diff --git a/footer.php b/footer.php new file mode 100644 index 0000000..e468c40 --- /dev/null +++ b/footer.php @@ -0,0 +1,90 @@ + + + + + + + 'no' ): ?> + + + + + + + + + + + + + \ No newline at end of file diff --git a/functions.php b/functions.php new file mode 100644 index 0000000..56686f9 --- /dev/null +++ b/functions.php @@ -0,0 +1,170 @@ + '80', + 'height' => '80' + ) ); + + add_theme_support( 'custom-header', Array( + 'default-text-color' => '#000000', + 'default-image' => get_template_directory_uri() . '/defaults/header.png', + 'flex-width' => true, + 'width' => '1920', + 'flex-height' => true, + 'height' => '300' + ) ); + register_default_headers( Array( + 'abstract' => Array( + 'url' => get_template_directory_uri() . '/defaults/header.png', + 'thumbnail_url' => get_template_directory_uri() . '/defaults/header.png', + 'description' => 'An abstract default header image.' + ), + 'lines' => Array( + 'url' => get_template_directory_uri() . '/defaults/header2.png', + 'thumbnail_url' => get_template_directory_uri() . '/defaults/header2.png', + 'description' => 'A default header image that contains three lines.' + ) + ) ); + + add_theme_support( 'editor-styles' ); + add_editor_style( 'css/editor.css' ); + + $content_width = '100%'; +} +add_action( 'after_setup_theme', 'minimalistflex_add_supports' ); + +function minimalistflex_enqueue_files() { + wp_enqueue_script( 'comment-reply' ); + wp_enqueue_style( 'style', get_stylesheet_uri() ); + wp_enqueue_script( 'minimalistflex-script', get_template_directory_uri() . '/js/menu.js', array('jquery'), null, true); + if ( get_theme_mod( 'minimalistflex_interface_autoh2label', 'no' ) == 'yes' ) { + wp_enqueue_style( 'minimalistflex-autoh2label-style', get_template_directory_uri() . '/css/autoh2label.css' ); + } +} + +add_action( 'wp_head', 'minimalistflex_enqueue_files' ); + +function minimalistflex_widgets_init() { + register_sidebar( array( + 'name' => _x( 'Menu', 'sidebar name' , 'minimalistflex' ), + 'id' => 'menu', + 'description' => __( 'Widgets in this area will be shown at the right in the main navigation menu dropdown.', 'minimalistflex' ), + 'before_widget' => '', + 'before_title' => '', + ) ); + register_sidebar( array( + 'name' => _x( 'Menu 2', 'sidebar name' , 'minimalistflex' ), + 'id' => 'menu-2', + 'description' => __( 'Widgets in this area will be shown at the middle in the main navigation menu dropdown. Will be hidden when submenu items were shown.', 'minimalistflex' ), + 'before_widget' => '', + 'before_title' => '', + ) ); + register_sidebar( array( + 'name' => _x( 'Main Sidebar', 'sidebar name' , 'minimalistflex' ), + 'id' => 'main-sidebar', + 'description' => __( 'Widgets in this area will be shown on all posts and pages.', 'minimalistflex' ), + 'before_widget' => '
  • ', + 'after_widget' => '
  • ', + 'before_title' => '

    ', + 'after_title' => '

    ', + ) ); + register_sidebar( array( + 'name' => _x( 'Above Content', 'sidebar name' , 'minimalistflex' ), + 'id' => 'above-content', + 'description' => __( 'Widgets in this area will be shown above the main content.', 'minimalistflex' ), + 'before_widget' => '
  • ', + 'after_widget' => '
  • ', + 'before_title' => '

    ', + 'after_title' => '

    ', + ) ); + register_sidebar( array( + 'name' => _x( 'Below Content', 'sidebar name' , 'minimalistflex' ), + 'id' => 'below-content', + 'description' => __( 'Widgets in this area will be shown below the main content.', 'minimalistflex' ), + 'before_widget' => '
  • ', + 'after_widget' => '
  • ', + 'before_title' => '

    ', + 'after_title' => '

    ', + ) ); + register_sidebar( array( + 'name' => _x( 'Footer', 'sidebar name' , 'minimalistflex' ), + 'id' => 'footer', + 'description' => __( 'Widgets in this area will be shown in the footer. Always shows.', 'minimalistflex' ), + 'before_widget' => '', + 'before_title' => '', + ) ); + register_sidebar( array( + 'name' => _x( 'Footer 2', 'sidebar name' , 'minimalistflex' ), + 'id' => 'footer-2', + 'description' => __( 'Widgets in this area will be shown in the footer to construct a multi column footer. Only shows when the footer is set to display it. Also twice as wide as other footer widget areas.', 'minimalistflex' ), + 'before_widget' => '', + 'before_title' => '', + ) ); + register_sidebar( array( + 'name' => _x( 'Footer 3', 'sidebar name' , 'minimalistflex' ), + 'id' => 'footer-3', + 'description' => __( 'Widgets in this area will be shown in the footer to construct a multi column footer. Only shows when the footer is set to display it.', 'minimalistflex' ), + 'before_widget' => '', + 'before_title' => '', + ) ); +} +add_action( 'widgets_init', 'minimalistflex_widgets_init' ); + +function minimalistflex_register_menus() { + register_nav_menus( + array( + 'main-menu' => __( 'Main Menu', 'minimalistflex' ), + ) + ); +} +add_action( 'init', 'minimalistflex_register_menus' ); + +function minimalistflex_dynamic_css() { + require_once 'includes/colors.php'; + require_once 'includes/languages.php'; +} + +add_action( 'wp_footer', 'minimalistflex_dynamic_css' ); + +load_theme_textdomain( 'minimalistflex', get_template_directory() . '/languages' ); + +require_once 'includes/customizer.php'; + +function minimalistflex_custom_excerpt_length() { + return intval( get_theme_mod( 'minimalistflex_interface_excerpt', '55' ) ); +} +add_filter( 'excerpt_length', 'minimalistflex_custom_excerpt_length', 999 ); + +function minimalistflex_get_seconds() { + return strtotime( get_the_date( 'Y-m-d H:i:s' ) ); +} + +function minimalistflex_get_first_image( $size = 'large' ) { + global $post; + $allimages = get_children( 'post_type=attachment&post_mime_type=image&post_parent=' . $post->ID ); + foreach ( $allimages as $img ) { + $img_src = wp_get_attachment_image_src( $img->ID, $size ); + return $img_src[0]; + } + return false; +} \ No newline at end of file diff --git a/header.php b/header.php new file mode 100644 index 0000000..147c485 --- /dev/null +++ b/header.php @@ -0,0 +1,123 @@ + + + +> + + + + + +> + + + + + + + + +
    + + + + "> + + + +
    + + + + +
    + +
    + + diff --git a/includes/class-color-palette-control.php b/includes/class-color-palette-control.php new file mode 100644 index 0000000..8751544 --- /dev/null +++ b/includes/class-color-palette-control.php @@ -0,0 +1,44 @@ + + + label ) ?> + + + description ) ?> + + +
    +
      +
    • +
    • +
    • +
    • +
    +
    + \ No newline at end of file diff --git a/includes/class-multi-image-control.php b/includes/class-multi-image-control.php new file mode 100644 index 0000000..35041e8 --- /dev/null +++ b/includes/class-multi-image-control.php @@ -0,0 +1,61 @@ + + + label ) ?> + + + description ) ?> + + +
    +
      +
      +
      +
      + + + +
      + + link(); ?>> + + + suggest_label ) ?> + + + suggest_description ) ?> + + +
      +
        + suggest_images as $suggest_image ): ?> +
      • + +
      +
      + \ No newline at end of file diff --git a/includes/color-definitions.php b/includes/color-definitions.php new file mode 100644 index 0000000..4fc3b31 --- /dev/null +++ b/includes/color-definitions.php @@ -0,0 +1,67 @@ + '#000000', + 'level3-dark' => '#666666', + 'link' => '#004774', + 'link-hover' => '#003663', + 'header-bg' => '#ffffff', + 'header-text' => '#000000', + 'header-menu' => '#f7f7f7', + 'header-sidebar' => '#f0f0f0', + 'level1' => '#ffffff', + 'level2' => '#f7f7f7', + 'tint' => '#ffd900', + 'tint-dark' => '#c1a400', + 'tint-alt' => '#0060c1', + 'tint-contrast' => '#00281d', + 'contrast' => '#000000', + 'contrast-dark' => '#ffffff', + 'footer-text' => '#ffffff', + 'footer-bg' => '#333333' +); + +$labels = Array( + 'level1' => __( 'Content Background', 'minimalistflex' ), + 'level2' => __( 'Sidebar Background', 'minimalistflex' ), + 'level3-dark' => __( 'Secondary Text', 'minimalistflex' ), + 'default' => __( 'Default', 'minimalistflex' ), + 'link' => __( 'Link', 'minimalistflex' ), + 'link-hover' => __( 'Link Hover', 'minimalistflex' ), + 'tint' => __( 'Tint A', 'minimalistflex' ), + 'tint-dark' => __( 'Tint A Dark', 'minimalistflex' ), + 'tint-alt' => __( 'Tint B', 'minimalistflex' ), + 'tint-contrast' => __( 'Tint C', 'minimalistflex' ), + 'contrast' => __( 'Contrast (Light)', 'minimalistflex' ), + 'contrast-dark' => __( 'Contrast (Dark)', 'minimalistflex' ), + 'footer-text' => __( 'Footer Text', 'minimalistflex' ), + 'footer-bg' => __( 'Footer Background', 'minimalistflex' ), + 'header-bg' => __( 'Header Background', 'minimalistflex' ), + 'header-menu' => __( 'Navigation Menu Background', 'minimalistflex' ), + 'header-sidebar' => __( 'Navigation Menu Sidebar Background', 'minimalistflex' ), + 'header-text' => __( 'Navigation Menu', 'minimalistflex' ) +); + +$desciprtions = Array( + 'level1' => __( 'The background color of the main content area.', 'minimalistflex' ), + 'level2' => __( 'The background color of the sidebar.', 'minimalistflex' ), + 'level3-dark' => __( 'The secondary text color. Should be lighter than the default color.', 'minimalistflex' ), + 'default' => __( 'The default text color.', 'minimalistflex' ), + 'link' => __( 'The link color.', 'minimalistflex' ), + 'link-hover' => __( 'The link color when hovered.', 'minimalistflex' ), + 'tint' => __( 'Tint color A. Should be a light color.', 'minimalistflex' ), + 'tint-dark' => __( 'A darker variant of the tint color A. Only used on the scroll bars.', 'minimalistflex' ), + 'tint-alt' => __( 'Tint color B. Should be a dark color.', 'minimalistflex' ), + 'tint-contrast' => __( 'Tint color C. Should be a *even darker* color.', 'minimalistflex' ), + 'contrast' => __( 'Text color on a light background. Better keep it as is.', 'minimalistflex' ), + 'contrast-dark' => __( 'Text color on a dark background. Better keep it as is.', 'minimalistflex' ), + 'footer-text' => __( 'The footer text color.', 'minimalistflex' ), + 'footer-bg' => __( 'The footer background color.', 'minimalistflex' ), + 'header-bg' => __( 'The background color of the header.', 'minimalistflex' ), + 'header-menu' => __( 'The background color of the navigation menu dropdown.', 'minimalistflex' ), + 'header-sidebar' => __( 'The background color of the sidebar of the navigation menu dropdown.', 'minimalistflex' ), + 'header-text' => __( 'The text color of the navigation menu dropdown.', 'minimalistflex' ) +); \ No newline at end of file diff --git a/includes/colors.php b/includes/colors.php new file mode 100644 index 0000000..e6aac83 --- /dev/null +++ b/includes/colors.php @@ -0,0 +1,43 @@ + + + + + \ No newline at end of file diff --git a/includes/customizer.php b/includes/customizer.php new file mode 100644 index 0000000..d90f542 --- /dev/null +++ b/includes/customizer.php @@ -0,0 +1,838 @@ + add_section( 'minimalistflex_default_featured_image', Array( + 'title' => __( 'Default Featured Images', 'minimalistflex' ), + 'description' => __( 'The theme can provide the following images as a fallback when there\'s no featured image set for a post. You can also select where to display those images.', 'minimalistflex' ), + 'priority' => 50, + 'capability' => 'edit_theme_options' + ) ); + $wp_customize -> add_setting( 'minimalistflex_default_featured_images', Array( + 'type' => 'theme_mod', + 'capability' => 'edit_theme_options', + 'transport' => 'refresh' + ) ); + $wp_customize -> add_setting( 'minimalistflex_default_featured_images_location', Array( + 'type' => 'theme_mod', + 'capability' => 'edit_theme_options', + 'transport' => 'refresh', + 'default' => 'archive', + 'sanitize_callback' => 'minimalistflex_sanitize_radio_cb' + ) ); + $wp_customize -> add_setting( 'minimalistflex_default_featured_images_first_image', Array( + 'type' => 'theme_mod', + 'capability' => 'edit_theme_options', + 'transport' => 'refresh', + 'default' => 'yes', + 'sanitize_callback' => 'minimalistflex_sanitize_radio_cb' + ) ); + $wp_customize -> add_control( new MinimalistFlex_Multi_Image_Custom_Control( $wp_customize, 'minimalistflex_default_featured_images', Array( + 'label' => __( 'Default Images', 'minimalistflex' ), + 'description' => __( 'Click on "Add Image" to add an image. Click on the image to remove it. There\'s no limit on how many images you can add.', 'minimalistflex' ), + 'priority' => 20, + 'section' => 'minimalistflex_default_featured_image', + 'suggest_label' => __( 'Suggested Images', 'minimalistflex' ), + 'suggest_description' => __( 'We have prepared some pre-built, generic purpose images for you to choose from. Click on an image will add it into the selection.', 'minimalistflex' ), + 'suggest_images' => Array( '/defaults/1.png', '/defaults/2.png', '/defaults/3.png', '/defaults/4.png', '/defaults/5.png', '/defaults/6.png' ) + ) ) ); + $wp_customize -> add_control( 'minimalistflex_default_featured_images_location', Array( + 'label' => __( 'Location', 'minimalistflex' ), + 'description' => __( 'You may decide if and where should the default image show.', 'minimalistflex' ), + 'type' => 'radio', + 'priority' => 10, + 'section' => 'minimalistflex_default_featured_image', + 'choices' => Array( + 'both' => __( 'Always', 'minimalistflex' ), + 'archive' => __( 'Archive Page Only', 'minimalistflex' ), + 'single' => __( 'Single Page Only', 'minimalistflex' ), + 'no' => __( 'Never', 'minimalistflex' ) + ) + ) ); + $wp_customize -> add_control( 'minimalistflex_default_featured_images_first_image', Array( + 'label' => __( 'Display First Image', 'minimalistflex' ), + 'description' => __( 'The theme can also retrieve the first image in a post if possible. When no image was found, the theme can fallback to the default images set below.', 'minimalistflex' ), + 'type' => 'radio', + 'priority' => 15, + 'section' => 'minimalistflex_default_featured_image', + 'choices' => Array( + 'yes' => __( 'Yes', 'minimalistflex' ), + 'no' => __( 'No', 'minimalistflex' ), + ) + ) ); +} +add_action( 'customize_register', 'minimalistflex_default_featured_image_register' ); + +function minimalistflex_customize_color_register( $wp_customize ) { + require_once 'class-color-palette-control.php'; + + $wp_customize -> add_setting( 'minimalistflex_color_placeholder', Array( + 'type' => 'theme_mod', + 'capability' => 'edit_theme_options' + ) ); + $wp_customize -> add_control( new MinimalistFlex_Color_Palette_Custom_Control( $wp_customize, 'minimalistflex_color_placeholder', Array( + 'priority' => 1, + 'label' => __( 'Color Palettes', 'minimalistflex' ), + 'description' => __( 'We had prepared some fine tuned color palettes for you. Select an option and it will automatically apply the palette to your site.', 'minimalistflex' ), + 'section' => 'colors' + ) ) ); + + global $colors; + global $labels; + global $desciprtions; + $color_keys = array_keys( $colors ); + foreach( $color_keys as $color_key ) { + $wp_customize -> add_setting( 'minimalistflex_color_' . $color_key, Array( + 'type' => 'theme_mod', + 'capability' => 'edit_theme_options', + 'transport' => 'refresh', + 'default' => $colors[$color_key], + 'sanitize_callback' => 'minimalistflex_sanitize_color_cb' + ) ); + $wp_customize -> add_control( new WP_Customize_Color_Control( $wp_customize, 'minimalistflex_color_' . $color_key, Array( + 'label' => $labels[$color_key], + 'description' => $desciprtions[$color_key], + 'section' => 'colors' + ) ) ); + }; + $wp_customize -> add_setting( 'minimalistflex_color_disable_shadow', Array( + 'type' => 'theme_mod', + 'capability' => 'edit_theme_options', + 'transport' => 'refresh', + 'default' => 'no', + 'sanitize_callback' => 'minimalistflex_sanitize_radio_cb' + ) ); + $wp_customize -> add_control( 'minimalistflex_color_disable_shadow', Array( + 'type' => 'radio', + 'label' => __( 'Disable Shadows', 'minimalistflex' ), + 'description' => __( 'This option lets you disable the shadow on the site. It should only affect the shadow created by the theme.', 'minimalistflex' ), + 'priority' => 2, + 'section' => 'colors', + 'choices' => Array( + 'yes' => __( 'Yes', 'minimalistflex' ), + 'no' => __( 'No', 'minimalistflex' ) + ) + ) ); + $wp_customize -> get_control( 'background_color' ) -> description = __( 'The default background setting from the WordPress core. If set, it will blend with the content & sidebar background colors set below.', 'minimalistflex' ); + $wp_customize -> get_control( 'header_textcolor' ) -> description = __( 'The default header text setting from the WordPress core. Used on the header and the toggle button.', 'minimalistflex' ); +} + +$metadatas = Array( + /* translators: This line is special. The part before
      is the description of the section, while the rest is the option name.*/ + 'description' => __( 'Below are some metadatas that you may configure whether to display or not.
      Description', 'minimalistflex' ), + 'user_registered' => __( 'Registration time', 'minimalistflex' ), + 'user_url' => __( 'Website', 'minimalistflex' ), + 'user_email' => __( 'Email address', 'minimalistflex' ) +); + +function minimalistflex_customize_author_elements_register( $wp_customize ) { + global $metadatas; + + $metadata_keys = array_keys( $metadatas ); + foreach( $metadata_keys as $metadata_key ) { + $wp_customize -> add_setting( 'minimalistflex_layout_author_elements_' . $metadata_key, Array( + 'type' => 'theme_mod', + 'capability' => 'edit_theme_options', + 'transport' => 'refresh', + 'default' => 'yes', + 'sanitize_callback' => 'minimalistflex_sanitize_radio_cb' + ) ); + if ( $metadata_key == 'description' ) { + $wp_customize -> add_control( 'minimalistflex_layout_author_elements_' . $metadata_key, Array( + 'type' => 'radio', + 'priority' => 45, + 'capability' => 'edit_theme_options', + 'label' => __( 'Metadatas', 'minimalistflex' ), + 'description' => $metadatas[$metadata_key], + 'section' => 'minimalistflex_layout_author', + 'choices' => Array( + 'yes' => __( 'Yes', 'minimalistflex' ), + 'no' => __( 'No', 'minimalistflex' ) + ) + ) ); + } else { + $wp_customize -> add_control( 'minimalistflex_layout_author_elements_' . $metadata_key, Array( + 'type' => 'radio', + 'priority' => 50, + 'capability' => 'edit_theme_options', + 'description' => $metadatas[$metadata_key], + 'section' => 'minimalistflex_layout_author', + 'choices' => Array( + 'yes' => __( 'Yes', 'minimalistflex' ), + 'no' => __( 'No', 'minimalistflex' ) + ) + ) ); + } + } +} + +function minimalistflex_customize_register( $wp_customize ) { + + // Start adding panels. + $wp_customize -> add_panel( 'minimalistflex_layout', Array( + 'title' => _x( 'Layout', 'customizer panel' , 'minimalistflex' ), + 'description' => __( 'Here you may configure how different pages on your site looks like.', 'minimalistflex' ), + 'priority' => 70, + 'capability' => 'edit_theme_options' + ) ); + + // Start adding sections. + $wp_customize -> add_section( 'minimalistflex_layout_home', Array( + 'title' => _x( 'Blog Page', 'customizer section' , 'minimalistflex' ), + 'description' => __( 'Here you may customize the layout of your blog page.', 'minimalistflex' ), + 'panel' => 'minimalistflex_layout', + 'priority' => 10, + 'capability' => 'edit_theme_options' + ) ); + $wp_customize -> add_section( 'minimalistflex_layout_front', Array( + 'title' => _x( 'Front Page', 'customizer section' , 'minimalistflex' ), + 'description' => __( 'Here you may customize the layout of your front page. Only takes effect when using a static front page.', 'minimalistflex' ), + 'panel' => 'minimalistflex_layout', + 'priority' => 12, + 'capability' => 'edit_theme_options' + ) ); + $wp_customize -> add_section( 'minimalistflex_layout_archive', Array( + 'title' => _x( 'Archives', 'customizer section' , 'minimalistflex' ), + 'description' => __( 'Here you may customize the layout of your archive pages.', 'minimalistflex' ), + 'panel' => 'minimalistflex_layout', + 'priority' => 15, + 'capability' => 'edit_theme_options' + ) ); + $wp_customize -> add_section( 'minimalistflex_layout_search', Array( + 'title' => _x( 'Search Results', 'customizer section' , 'minimalistflex' ), + 'description' => __( 'Here you may customize the layout of your search result pages.', 'minimalistflex' ), + 'panel' => 'minimalistflex_layout', + 'priority' => 17, + 'capability' => 'edit_theme_options' + ) ); + $wp_customize -> add_section( 'minimalistflex_layout_author', Array( + 'title' => _x( 'Author Pages', 'customizer section' , 'minimalistflex' ), + 'description' => __( 'Here you may customize the layout of your author pages.', 'minimalistflex' ), + 'panel' => 'minimalistflex_layout', + 'priority' => 20, + 'capability' => 'edit_theme_options' + ) ); + $wp_customize -> add_section( 'minimalistflex_layout_singular', Array( + 'title' => _x( 'Single Posts', 'customizer section' , 'minimalistflex' ), + 'description' => __( 'Here you may customize the layout of your posts.', 'minimalistflex' ), + 'panel' => 'minimalistflex_layout', + 'priority' => 25, + 'capability' => 'edit_theme_options' + ) ); + $wp_customize -> add_section( 'minimalistflex_layout_page', Array( + 'title' => _x( 'Pages', 'customizer section' , 'minimalistflex' ), + 'description' => __( 'Here you may customize the layout of your pages.', 'minimalistflex' ), + 'panel' => 'minimalistflex_layout', + 'priority' => 30, + 'capability' => 'edit_theme_options' + ) ); + $wp_customize -> add_section( 'minimalistflex_interface', Array( + 'title' => _x( 'Interface & Elements', 'customizer section' , 'minimalistflex' ), + 'description' => __( 'You may customize your site\'s interface and the elements displayed here.', 'minimalistflex' ), + 'priority' => 71, + 'capability' => 'edit_theme_options' + ) ); + $wp_customize -> add_section( 'minimalistflex_footer', Array( + 'title' => _x( 'Footer', 'customizer section', 'minimalistflex' ), + 'description' => __( 'You may customize how your footer looks like here.', 'minimalistflex' ), + 'priority' => 140, + 'capability' => 'edit_theme_options' + ) ); + + // Start adding settings. + $wp_customize -> add_setting( 'minimalistflex_header_link', Array( + 'type' => 'theme_mod', + 'capability' => 'edit_theme_options', + 'transport' => 'refresh', + 'sanitize_callback' => 'esc_url_raw' + ) ); + $wp_customize -> add_setting( 'minimalistflex_header_label', Array( + 'type' => 'theme_mod', + 'capability' => 'edit_theme_options', + 'transport' => 'refresh', + 'sanitize_callback' => 'esc_attr' + ) ); + $wp_customize -> add_setting( 'minimalistflex_layout_home_sidebar', Array( + 'type' => 'theme_mod', + 'capability' => 'edit_theme_options', + 'transport' => 'refresh', + 'default' => 'right', + 'sanitize_callback' => 'minimalistflex_sanitize_radio_cb' + ) ); + $wp_customize -> add_setting( 'minimalistflex_layout_home_header', Array( + 'type' => 'theme_mod', + 'capability' => 'edit_theme_options', + 'transport' => 'refresh', + 'default' => 'yes', + 'sanitize_callback' => 'minimalistflex_sanitize_radio_cb' + ) ); + $wp_customize -> add_setting( 'minimalistflex_layout_front_sidebar', Array( + 'type' => 'theme_mod', + 'capability' => 'edit_theme_options', + 'transport' => 'refresh', + 'default' => 'right', + 'sanitize_callback' => 'minimalistflex_sanitize_radio_cb' + ) ); + $wp_customize -> add_setting( 'minimalistflex_layout_front_header', Array( + 'type' => 'theme_mod', + 'capability' => 'edit_theme_options', + 'transport' => 'refresh', + 'default' => 'yes', + 'sanitize_callback' => 'minimalistflex_sanitize_radio_cb' + ) ); + $wp_customize -> add_setting( 'minimalistflex_layout_archive_sidebar', Array( + 'type' => 'theme_mod', + 'capability' => 'edit_theme_options', + 'transport' => 'refresh', + 'default' => 'right', + 'sanitize_callback' => 'minimalistflex_sanitize_radio_cb' + ) ); + $wp_customize -> add_setting( 'minimalistflex_layout_archive_header', Array( + 'type' => 'theme_mod', + 'capability' => 'edit_theme_options', + 'transport' => 'refresh', + 'default' => 'yes', + 'sanitize_callback' => 'minimalistflex_sanitize_radio_cb' + ) ); + $wp_customize -> add_setting( 'minimalistflex_layout_archive_title', Array( + 'type' => 'theme_mod', + 'capability' => 'edit_theme_options', + 'transport' => 'refresh', + 'default' => 'yes', + 'sanitize_callback' => 'minimalistflex_sanitize_radio_cb' + ) ); + $wp_customize -> add_setting( 'minimalistflex_layout_search_sidebar', Array( + 'type' => 'theme_mod', + 'capability' => 'edit_theme_options', + 'transport' => 'refresh', + 'default' => 'right', + 'sanitize_callback' => 'minimalistflex_sanitize_radio_cb' + ) ); + $wp_customize -> add_setting( 'minimalistflex_layout_search_header', Array( + 'type' => 'theme_mod', + 'capability' => 'edit_theme_options', + 'transport' => 'refresh', + 'default' => 'yes', + 'sanitize_callback' => 'minimalistflex_sanitize_radio_cb' + ) ); + $wp_customize -> add_setting( 'minimalistflex_layout_search_title', Array( + 'type' => 'theme_mod', + 'capability' => 'edit_theme_options', + 'transport' => 'refresh', + 'default' => 'yes', + 'sanitize_callback' => 'minimalistflex_sanitize_radio_cb' + ) ); + $wp_customize -> add_setting( 'minimalistflex_layout_search_form', Array( + 'type' => 'theme_mod', + 'capability' => 'edit_theme_options', + 'transport' => 'refresh', + 'default' => 'yes', + 'sanitize_callback' => 'minimalistflex_sanitize_radio_cb' + ) ); + $wp_customize -> add_setting( 'minimalistflex_layout_author_sidebar', Array( + 'type' => 'theme_mod', + 'capability' => 'edit_theme_options', + 'transport' => 'refresh', + 'default' => 'right', + 'sanitize_callback' => 'minimalistflex_sanitize_radio_cb' + ) ); + $wp_customize -> add_setting( 'minimalistflex_layout_author_header', Array( + 'type' => 'theme_mod', + 'capability' => 'edit_theme_options', + 'transport' => 'refresh', + 'default' => 'yes', + 'sanitize_callback' => 'minimalistflex_sanitize_radio_cb' + ) ); + $wp_customize -> add_setting( 'minimalistflex_layout_author_title', Array( + 'type' => 'theme_mod', + 'capability' => 'edit_theme_options', + 'transport' => 'refresh', + 'default' => 'yes', + 'sanitize_callback' => 'minimalistflex_sanitize_radio_cb' + ) ); + $wp_customize -> add_setting( 'minimalistflex_layout_author_admin', Array( + 'type' => 'theme_mod', + 'capability' => 'edit_theme_options', + 'transport' => 'refresh', + 'default' => 'yes', + 'sanitize_callback' => 'minimalistflex_sanitize_radio_cb' + ) ); + $wp_customize -> add_setting( 'minimalistflex_layout_singular_sidebar', Array( + 'type' => 'theme_mod', + 'capability' => 'edit_theme_options', + 'transport' => 'refresh', + 'default' => 'right', + 'sanitize_callback' => 'minimalistflex_sanitize_radio_cb' + ) ); + $wp_customize -> add_setting( 'minimalistflex_layout_singular_header', Array( + 'type' => 'theme_mod', + 'capability' => 'edit_theme_options', + 'transport' => 'refresh', + 'default' => 'yes', + 'sanitize_callback' => 'minimalistflex_sanitize_radio_cb' + ) ); + $wp_customize -> add_setting( 'minimalistflex_layout_page_sidebar', Array( + 'type' => 'theme_mod', + 'capability' => 'edit_theme_options', + 'transport' => 'refresh', + 'default' => 'right', + 'sanitize_callback' => 'minimalistflex_sanitize_radio_cb' + ) ); + $wp_customize -> add_setting( 'minimalistflex_layout_page_header', Array( + 'type' => 'theme_mod', + 'capability' => 'edit_theme_options', + 'transport' => 'refresh', + 'default' => 'yes', + 'sanitize_callback' => 'minimalistflex_sanitize_radio_cb' + ) ); + $wp_customize -> add_setting( 'minimalistflex_interface_scroll_top', Array( + 'type' => 'theme_mod', + 'capability' => 'edit_theme_options', + 'transport' => 'refresh', + 'default' => 'yes', + 'sanitize_callback' => 'minimalistflex_sanitize_radio_cb' + ) ); + $wp_customize -> add_setting( 'minimalistflex_interface_excerpt', Array( + 'type' => 'theme_mod', + 'capability' => 'edit_theme_options', + 'transport' => 'refresh', + 'default' => 55, + 'sanitize_callback' => 'minimalistflex_sanitize_int_cb' + ) ); + $wp_customize -> add_setting( 'minimalistflex_interface_autoh2label', Array( + 'type' => 'theme_mod', + 'capability' => 'edit_theme_options', + 'transport' => 'refresh', + 'default' => 'no', + 'sanitize_callback' => 'minimalistflex_sanitize_radio_cb' + ) ); + $wp_customize -> add_setting( 'minimalistflex_interface_comment_count', Array( + 'type' => 'theme_mod', + 'capability' => 'edit_theme_options', + 'transport' => 'refresh', + 'default' => 'yes', + 'sanitize_callback' => 'minimalistflex_sanitize_radio_cb' + ) ); + $wp_customize -> add_setting( 'minimalistflex_interface_publisher', Array( + 'type' => 'theme_mod', + 'capability' => 'edit_theme_options', + 'transport' => 'refresh', + 'default' => 'yes', + 'sanitize_callback' => 'minimalistflex_sanitize_radio_cb' + ) ); + $wp_customize -> add_setting( 'minimalistflex_interface_date', Array( + 'type' => 'theme_mod', + 'capability' => 'edit_theme_options', + 'transport' => 'refresh', + 'default' => 'modify', + 'sanitize_callback' => 'minimalistflex_sanitize_radio_cb' + ) ); + $wp_customize -> add_setting( 'minimalistflex_interface_readlink', Array( + 'type' => 'theme_mod', + 'capability' => 'edit_theme_options', + 'transport' => 'refresh', + 'default' => __( 'Read More', 'minimalistflex' ), + 'sanitize_callback' => 'esc_html' + ) ); + $wp_customize -> add_setting( 'minimalistflex_interface_thumbnail_height', Array( + 'type' => 'theme_mod', + 'capability' => 'edit_theme_options', + 'default' => 'auto', + 'sanitize_callback' => 'minimalistflex_sanitize_radio_cb' + ) ); + $wp_customize -> add_setting( 'minimalistflex_interface_thumbnail_height_px', Array( + 'type' => 'theme_mod', + 'capability' => 'edit_theme_options', + 'default' => 300, + 'sanitize_callback' => 'minimalistflex_sanitize_int_cb' + ) ); + $wp_customize -> add_setting( 'minimalistflex_footer_type', Array( + 'type' => 'theme_mod', + 'capability' => 'edit_theme_options', + 'transport' => 'refresh', + 'default' => 'both', + 'sanitize_callback' => 'minimalistflex_sanitize_radio_callback' + ) ); + $wp_customize -> add_setting( 'minimalistflex_footer_text', Array( + 'type' => 'theme_mod', + 'capability' => 'edit_theme_options', + 'transport' => 'refresh', + 'sanitize_callback' => 'wp_filter_post_kses' + ) ); + $wp_customize -> add_setting( 'minimalistflex_footer_widget_layout', Array( + 'type' => 'theme_mod', + 'capability' => 'edit_theme_options', + 'transport' => 'refresh', + 'default' => 'one', + 'sanitize_callback' => 'minimalistflex_sanitize_radio_callback' + ) ); + + // Start binding controls (UI). + $wp_customize -> add_control( 'minimalistflex_header_link', Array( + 'type' => 'url', + 'priority' => 50, + 'section' => 'header_image', + 'label' => __( 'Header Image Link', 'minimalistflex' ), + 'description' => __( 'You may link the header image to a URL. Leave blank if you do not want to do so.', 'minimalistflex' ) + ) ); + $wp_customize -> add_control( 'minimalistflex_header_label', Array( + 'type' => 'text', + 'priority' => 40, + 'section' => 'header_image', + 'label' => __( 'Header Image Label', 'minimalistflex' ), + 'description' => __( 'You may provide a description of your header image. Also will become the label of the link if set. Should be set for better accessibility.', 'minimalistflex' ) + ) ); + $wp_customize -> add_control( 'minimalistflex_layout_home_sidebar', Array( + 'type' => 'radio', + 'priority' => 10, + 'section' => 'minimalistflex_layout_home', + 'label' => _x( 'Sidebar', 'layout' , 'minimalistflex' ), + 'description' => __( 'Select whether to display the sidebar, and its location.', 'minimalistflex' ), + 'choices' => Array( + 'left' => __( 'Left sidebar', 'minimalistflex' ), + 'right' => __( 'Right sidebar', 'minimalistflex' ), + 'no' => __( 'No', 'minimalistflex' ) + ) + ) ); + $wp_customize -> add_control( 'minimalistflex_layout_home_header', Array( + 'type' => 'radio', + 'priority' => 15, + 'section' => 'minimalistflex_layout_home', + 'label' => _x( 'Header Image', 'layout' , 'minimalistflex' ), + 'description' => __( 'Select whether to display the header image.', 'minimalistflex' ), + 'choices' => Array( + 'yes' => __( 'Yes', 'minimalistflex' ), + 'no' => __( 'No', 'minimalistflex' ) + ) + ) ); + $wp_customize -> add_control( 'minimalistflex_layout_front_sidebar', Array( + 'type' => 'radio', + 'priority' => 10, + 'section' => 'minimalistflex_layout_front', + 'label' => _x( 'Sidebar', 'layout' , 'minimalistflex' ), + 'description' => __( 'Select whether to display the sidebar, and its location.', 'minimalistflex' ), + 'choices' => Array( + 'left' => __( 'Left sidebar', 'minimalistflex' ), + 'right' => __( 'Right sidebar', 'minimalistflex' ), + 'no' => __( 'No', 'minimalistflex' ) + ) + ) ); + $wp_customize -> add_control( 'minimalistflex_layout_front_header', Array( + 'type' => 'radio', + 'priority' => 15, + 'section' => 'minimalistflex_layout_front', + 'label' => _x( 'Header Image', 'layout' , 'minimalistflex' ), + 'description' => __( 'Select whether to display the header image.', 'minimalistflex' ), + 'choices' => Array( + 'yes' => __( 'Yes', 'minimalistflex' ), + 'no' => __( 'No', 'minimalistflex' ) + ) + ) ); + $wp_customize -> add_control( 'minimalistflex_layout_archive_sidebar', Array( + 'type' => 'radio', + 'priority' => 10, + 'section' => 'minimalistflex_layout_archive', + 'label' => _x( 'Sidebar', 'layout' , 'minimalistflex' ), + 'description' => __( 'Select whether to display the sidebar, and its location.', 'minimalistflex' ), + 'choices' => Array( + 'left' => __( 'Left sidebar', 'minimalistflex' ), + 'right' => __( 'Right sidebar', 'minimalistflex' ), + 'no' => __( 'No', 'minimalistflex' ) + ) + ) ); + $wp_customize -> add_control( 'minimalistflex_layout_archive_header', Array( + 'type' => 'radio', + 'priority' => 15, + 'section' => 'minimalistflex_layout_archive', + 'label' => _x( 'Header Image', 'layout' , 'minimalistflex' ), + 'description' => __( 'Select whether to display the header image.', 'minimalistflex' ), + 'choices' => Array( + 'yes' => __( 'Yes', 'minimalistflex' ), + 'no' => __( 'No', 'minimalistflex' ) + ) + ) ); + $wp_customize -> add_control( 'minimalistflex_layout_archive_title', Array( + 'type' => 'radio', + 'priority' => 20, + 'section' => 'minimalistflex_layout_archive', + 'label' => _x( 'Title', 'layout' , 'minimalistflex' ), + 'description' => __( 'Select whether to display the archive title.', 'minimalistflex' ), + 'choices' => Array( + 'yes' => __( 'Yes', 'minimalistflex' ), + 'no' => __( 'No', 'minimalistflex' ) + ) + ) ); + $wp_customize -> add_control( 'minimalistflex_layout_search_sidebar', Array( + 'type' => 'radio', + 'priority' => 10, + 'section' => 'minimalistflex_layout_search', + 'label' => _x( 'Sidebar', 'layout' , 'minimalistflex' ), + 'description' => __( 'Select whether to display the sidebar, and its location.', 'minimalistflex' ), + 'choices' => Array( + 'left' => __( 'Left sidebar', 'minimalistflex' ), + 'right' => __( 'Right sidebar', 'minimalistflex' ), + 'no' => __( 'No', 'minimalistflex' ) + ) + ) ); + $wp_customize -> add_control( 'minimalistflex_layout_search_header', Array( + 'type' => 'radio', + 'priority' => 15, + 'section' => 'minimalistflex_layout_search', + 'label' => _x( 'Header Image', 'layout' , 'minimalistflex' ), + 'description' => __( 'Select whether to display the header image.', 'minimalistflex' ), + 'choices' => Array( + 'yes' => __( 'Yes', 'minimalistflex' ), + 'no' => __( 'No', 'minimalistflex' ) + ) + ) ); + $wp_customize -> add_control( 'minimalistflex_layout_search_title', Array( + 'type' => 'radio', + 'priority' => 20, + 'section' => 'minimalistflex_layout_search', + 'label' => _x( 'Search Query', 'layout' , 'minimalistflex' ), + 'description' => __( 'Select whether to display the search query.', 'minimalistflex' ), + 'choices' => Array( + 'yes' => __( 'Yes', 'minimalistflex' ), + 'no' => __( 'No', 'minimalistflex' ) + ) + ) ); + $wp_customize -> add_control( 'minimalistflex_layout_search_form', Array( + 'type' => 'radio', + 'priority' => 20, + 'section' => 'minimalistflex_layout_search', + 'label' => _x( 'Search Form', 'layout' , 'minimalistflex' ), + 'description' => __( 'Select whether to also display the search form.', 'minimalistflex' ), + 'choices' => Array( + 'yes' => __( 'Yes', 'minimalistflex' ), + 'no' => __( 'No', 'minimalistflex' ) + ) + ) ); + $wp_customize -> add_control( 'minimalistflex_layout_author_sidebar', Array( + 'type' => 'radio', + 'priority' => 10, + 'section' => 'minimalistflex_layout_author', + 'label' => _x( 'Sidebar', 'layout' , 'minimalistflex' ), + 'description' => __( 'Select whether to display the sidebar, and its location.', 'minimalistflex' ), + 'choices' => Array( + 'left' => __( 'Left sidebar', 'minimalistflex' ), + 'right' => __( 'Right sidebar', 'minimalistflex' ), + 'no' => __( 'No', 'minimalistflex' ) + ) + ) ); + $wp_customize -> add_control( 'minimalistflex_layout_author_header', Array( + 'type' => 'radio', + 'priority' => 15, + 'section' => 'minimalistflex_layout_author', + 'label' => _x( 'Header Image', 'layout' , 'minimalistflex' ), + 'description' => __( 'Select whether to display the header image.', 'minimalistflex' ), + 'choices' => Array( + 'yes' => __( 'Yes', 'minimalistflex' ), + 'no' => __( 'No', 'minimalistflex' ) + ) + ) ); + $wp_customize -> add_control( 'minimalistflex_layout_author_title', Array( + 'type' => 'radio', + 'priority' => 20, + 'section' => 'minimalistflex_layout_author', + 'label' => _x( 'Author Name', 'layout' , 'minimalistflex' ), + 'description' => __( 'Select whether to display the author name.', 'minimalistflex' ), + 'choices' => Array( + 'yes' => __( 'Yes', 'minimalistflex' ), + 'no' => __( 'No', 'minimalistflex' ) + ) + ) ); + $wp_customize -> add_control( 'minimalistflex_layout_author_admin', Array( + 'type' => 'radio', + 'priority' => 40, + 'section' => 'minimalistflex_layout_author', + 'label' => _x( 'Admin Status', 'layout' , 'minimalistflex' ), + 'description' => __( 'Show an indicator in the bottom-right of the avatar if the author is an admin.', 'minimalistflex' ), + 'choices' => Array( + 'yes' => __( 'Yes', 'minimalistflex' ), + 'no' => __( 'No', 'minimalistflex' ) + ) + ) ); + $wp_customize -> add_control( 'minimalistflex_layout_singular_sidebar', Array( + 'type' => 'radio', + 'priority' => 10, + 'section' => 'minimalistflex_layout_singular', + 'label' => _x( 'Sidebar', 'layout' , 'minimalistflex' ), + 'description' => __( 'Select whether to display the sidebar, and its location.', 'minimalistflex' ), + 'choices' => Array( + 'left' => __( 'Left sidebar', 'minimalistflex' ), + 'right' => __( 'Right sidebar', 'minimalistflex' ), + 'no' => __( 'No', 'minimalistflex' ) + ) + ) ); + $wp_customize -> add_control( 'minimalistflex_layout_singular_header', Array( + 'type' => 'radio', + 'priority' => 15, + 'section' => 'minimalistflex_layout_singular', + 'label' => _x( 'Header Image', 'layout' , 'minimalistflex' ), + 'description' => __( 'Select whether to display the header image.', 'minimalistflex' ), + 'choices' => Array( + 'yes' => __( 'Yes', 'minimalistflex' ), + 'no' => __( 'No', 'minimalistflex' ) + ) + ) ); + $wp_customize -> add_control( 'minimalistflex_layout_page_sidebar', Array( + 'type' => 'radio', + 'priority' => 10, + 'section' => 'minimalistflex_layout_page', + 'label' => _x( 'Sidebar', 'layout' , 'minimalistflex' ), + 'description' => __( 'Select whether to display the sidebar, and its location.', 'minimalistflex' ), + 'choices' => Array( + 'left' => __( 'Left sidebar', 'minimalistflex' ), + 'right' => __( 'Right sidebar', 'minimalistflex' ), + 'no' => __( 'No', 'minimalistflex' ) + ) + ) ); + $wp_customize -> add_control( 'minimalistflex_layout_page_header', Array( + 'type' => 'radio', + 'priority' => 15, + 'section' => 'minimalistflex_layout_page', + 'label' => _x( 'Header Image', 'layout' , 'minimalistflex' ), + 'description' => __( 'Select whether to display the header image.', 'minimalistflex' ), + 'choices' => Array( + 'yes' => __( 'Yes', 'minimalistflex' ), + 'no' => __( 'No', 'minimalistflex' ) + ) + ) ); + $wp_customize -> add_control( 'minimalistflex_interface_scroll_top', Array( + 'type' => 'radio', + 'priority' => 10, + 'section' => 'minimalistflex_interface', + 'label' => __( 'Scroll to top button', 'minimalistflex' ), + 'description' => __( 'Whether to display a "Scroll to top" button in the bottom-right corner.', 'minimalistflex' ), + 'choices' => Array( + 'yes' => __( 'Yes', 'minimalistflex' ), + 'no' => __( 'No', 'minimalistflex' ) + ) + ) ); + $wp_customize -> add_control( 'minimalistflex_interface_excerpt', Array( + 'type' => 'number', + 'priority' => 20, + 'section' => 'minimalistflex_interface', + 'label' => __( 'Excerpt Word Count', 'minimalistflex' ), + 'description' => __( 'The word count of the excerpts on any archive page and the blog page.', 'minimalistflex' ) + ) ); + $wp_customize -> add_control( 'minimalistflex_interface_autoh2label', Array( + 'type' => 'radio', + 'priority' => 25, + 'section' => 'minimalistflex_interface', + 'label' => __( 'Auto h2 Label', 'minimalistflex' ), + 'description' => __( 'The theme can automatically theme and label the h2 elements in single posts and pages, providing a better visual. May not work well in all circumstances, use with caution.', 'minimalistflex' ), + 'choices' => Array( + 'yes' => __( 'Yes', 'minimalistflex' ), + 'no' => __( 'No', 'minimalistflex' ) + ) + ) ); + $wp_customize -> add_control( 'minimalistflex_interface_comment_count', Array( + 'type' => 'radio', + 'priority' => 30, + 'section' => 'minimalistflex_interface', + 'label' => __( 'Comment Count', 'minimalistflex' ), + 'description' => __( 'Whether to display the comment count of the posts listed in an archive page.', 'minimalistflex' ), + 'choices' => Array( + 'yes' => __( 'Yes', 'minimalistflex' ), + 'no' => __( 'No', 'minimalistflex' ) + ) + ) ); + $wp_customize -> add_control( 'minimalistflex_interface_publisher', Array( + 'type' => 'radio', + 'priority' => 35, + 'section' => 'minimalistflex_interface', + 'label' => __( 'Publisher', 'minimalistflex' ), + 'description' => __( 'Whether to display the publisher.', 'minimalistflex' ), + 'choices' => Array( + 'yes' => __( 'Yes', 'minimalistflex' ), + 'no' => __( 'No', 'minimalistflex' ) + ) + ) ); + $wp_customize -> add_control( 'minimalistflex_interface_date', Array( + 'type' => 'radio', + 'priority' => 40, + 'section' => 'minimalistflex_interface', + 'label' => __( 'Publish Date', 'minimalistflex' ), + 'description' => __( 'Whether to display the published date.', 'minimalistflex' ), + 'choices' => Array( + 'publish' => __( 'Yes, publish time only.', 'minimalistflex' ), + 'modify' => __( 'Yes, and display modified time if possible.', 'minimalistflex' ), + 'no' => __( 'No', 'minimalistflex' ) + ) + ) ); + $wp_customize -> add_control( 'minimalistflex_interface_readlink', Array( + 'type' => 'text', + 'priority' => 45, + 'section' => 'minimalistflex_interface', + 'label' => __( 'Read More Link', 'minimalistflex' ), + 'description' => __( 'The text for the "Read More" links.', 'minimalistflex' ) + ) ); + $wp_customize -> add_control( 'minimalistflex_interface_thumbnail_height', Array( + 'type' => 'radio', + 'priority' => 50, + 'section' => 'minimalistflex_interface', + 'label' => __( 'Thumbnail Images Size', 'minimalistflex' ), + 'description' => __( 'Select whether to enable flexible height for your thumbnail images, or use a fixed height.', 'minimalistflex' ), + 'choices' => Array( + 'fixed' => __( 'Fixed', 'minimalistflex' ), + 'auto' => __( 'Flexible', 'minimalistflex' ) + ) + ) ); + $wp_customize -> add_control( 'minimalistflex_interface_thumbnail_height_px', Array( + 'type' => 'number', + 'priority' => 51, + 'section' => 'minimalistflex_interface', + 'label' => __( 'Height', 'minimalistflex' ), + 'description' => __( 'Enter your desired height here. Should be in pixels.', 'minimalistflex' ), + ) ); + $wp_customize -> add_control( 'minimalistflex_footer_type', Array( + 'type' => 'radio', + 'priority' => 9, + 'section' => 'minimalistflex_footer', + 'label' => __( 'Footer Options', 'minimalistflex' ), + 'description' => __( 'Choose what to display in your footer credit section.', 'minimalistflex' ), + 'choices' => Array( + 'both' => __( 'Both minimalistflex credits and custom footer text.', 'minimalistflex' ), + 'minimalistflex' => __( 'minimalistflex credits only.', 'minimalistflex' ), + 'custom' => __( 'Custom footer text only.', 'minimalistflex' ), + 'none' => __( 'Neither.', 'minimalistflex' ) + ) + ) ); + $wp_customize -> add_control( new WP_Customize_Code_Editor_Control( $wp_customize, 'minimalistflex_footer_text', Array( + 'code_type' => 'htmlmixed', + 'priority' => 15, + 'section' => 'minimalistflex_footer', + 'label' => __( 'Custom Footer Text', 'minimalistflex' ), + 'description' => __( 'Here you may set a custom footer text to be displayed in the footer credits. HTML allowed.', 'minimalistflex' ) + ) ) ); + $wp_customize -> add_control( 'minimalistflex_footer_widget_layout', Array( + 'type' => 'radio', + 'priority' => 10, + 'section' => 'minimalistflex_footer', + 'label' => __( 'Footer Widget Layout', 'minimalistflex' ), + 'description' => __( 'Choose the layout of the footer widgets.', 'minimalistflex' ), + 'choices' => Array( + 'one' => __( 'One column. Only shows the "Footer" widget area.', 'minimalistflex' ), + 'two' => __( 'Two columns. Also shows the "Footer 2" widget area.', 'minimalistflex' ), + 'three' => __( 'Three columns. Also shows the "Footer 3" widget area (aka all areas).', 'minimalistflex' ) + ) + ) ); + +} +add_action( 'customize_register', 'minimalistflex_customize_register' ); +add_action( 'customize_register', 'minimalistflex_customize_color_register' ); +add_action( 'customize_register', 'minimalistflex_customize_author_elements_register' ); \ No newline at end of file diff --git a/includes/languages.php b/includes/languages.php new file mode 100644 index 0000000..4abf5b6 --- /dev/null +++ b/includes/languages.php @@ -0,0 +1,15 @@ + + + \ No newline at end of file diff --git a/includes/sanitize-callbacks.php b/includes/sanitize-callbacks.php new file mode 100644 index 0000000..1464da6 --- /dev/null +++ b/includes/sanitize-callbacks.php @@ -0,0 +1,29 @@ +manager->get_control( $setting->id )->choices; + if ( array_key_exists( $value, $choices ) ) { + return $value; + } else { + return $setting->default; + } +} + +function minimalistflex_sanitize_color_cb( $value, $setting ) { + $value = sanitize_hex_color( $value ); + if ( isset( $value ) ) { + return $value; + } else { + return $setting->default; + } +} + +function minimalistflex_sanitize_int_cb( $number, $setting ) { + $number = absint( $number ); + if ( $number ) { + return $number; + } else { + return $setting->default; + } +} diff --git a/index.php b/index.php new file mode 100644 index 0000000..e361547 --- /dev/null +++ b/index.php @@ -0,0 +1,16 @@ + + + + + +
      + +
      + + + + diff --git a/js/color-palette.js b/js/color-palette.js new file mode 100644 index 0000000..062d7a7 --- /dev/null +++ b/js/color-palette.js @@ -0,0 +1,90 @@ +jQuery(document).ready(function($){ + $("#minimalistflex-palette-light").click(function(e){ + e.preventDefault() + wp.customize("minimalistflex_color_default").set("#000000") + wp.customize("minimalistflex_color_level3-dark").set("#666666") + wp.customize("minimalistflex_color_link").set("#004774") + wp.customize("minimalistflex_color_link-hover").set("#003663") + wp.customize("minimalistflex_color_header-bg").set("#ffffff") + wp.customize("header_textcolor").set("#000000") + wp.customize("minimalistflex_color_header-text").set("#000000") + wp.customize("minimalistflex_color_header-menu").set("#f7f7f7") + wp.customize("minimalistflex_color_header-sidebar").set("#f0f0f0") + wp.customize("minimalistflex_color_level1").set("#ffffff") + wp.customize("minimalistflex_color_level2").set("#f7f7f7") + wp.customize("minimalistflex_color_tint").set("#ffd900") + wp.customize("minimalistflex_color_tint-dark").set("#c1a400") + wp.customize("minimalistflex_color_tint-alt").set("#0060c1") + wp.customize("minimalistflex_color_tint-contrast").set("#00281d") + wp.customize("minimalistflex_color_contrast").set("#000000") + wp.customize("minimalistflex_color_contrast-dark").set("#ffffff") + wp.customize("minimalistflex_color_footer-text").set("#ffffff") + wp.customize("minimalistflex_color_footer-bg").set("#333333") + }) + $("#minimalistflex-palette-dark").click(function(e){ + e.preventDefault() + wp.customize("minimalistflex_color_default").set("#ffffff") + wp.customize("minimalistflex_color_level3-dark").set("#c0c0c0") + wp.customize("minimalistflex_color_link").set("#00cbff") + wp.customize("minimalistflex_color_link-hover").set("#00deff") + wp.customize("minimalistflex_color_header-bg").set("#000000") + wp.customize("header_textcolor").set("#ffffff") + wp.customize("minimalistflex_color_header-text").set("#ffffff") + wp.customize("minimalistflex_color_header-menu").set("#222222") + wp.customize("minimalistflex_color_header-sidebar").set("#111111") + wp.customize("minimalistflex_color_level1").set("#222222") + wp.customize("minimalistflex_color_level2").set("#111111") + wp.customize("minimalistflex_color_tint").set("#ffd900") + wp.customize("minimalistflex_color_tint-dark").set("#c1a400") + wp.customize("minimalistflex_color_tint-alt").set("#0060c1") + wp.customize("minimalistflex_color_tint-contrast").set("#00281d") + wp.customize("minimalistflex_color_contrast").set("#000000") + wp.customize("minimalistflex_color_contrast-dark").set("#ffffff") + wp.customize("minimalistflex_color_footer-text").set("#ffffff") + wp.customize("minimalistflex_color_footer-bg").set("#333333") + }) + $("#minimalistflex-palette-galatic").click(function(e){ + e.preventDefault() + wp.customize("minimalistflex_color_default").set("#000000") + wp.customize("minimalistflex_color_level3-dark").set("#666666") + wp.customize("minimalistflex_color_link").set("#3e2555") + wp.customize("minimalistflex_color_link-hover").set("#20152a") + wp.customize("minimalistflex_color_header-bg").set("#20152a") + wp.customize("header_textcolor").set("#ffffff") + wp.customize("minimalistflex_color_header-text").set("#ffffff") + wp.customize("minimalistflex_color_header-menu").set("#3e2555") + wp.customize("minimalistflex_color_header-sidebar").set("#663196") + wp.customize("minimalistflex_color_level1").set("#e7d2fa") + wp.customize("minimalistflex_color_level2").set("#d9c4f2") + wp.customize("minimalistflex_color_tint").set("#e7d2fa") + wp.customize("minimalistflex_color_tint-dark").set("#3e2555") + wp.customize("minimalistflex_color_tint-alt").set("#20152a") + wp.customize("minimalistflex_color_tint-contrast").set("#20152a") + wp.customize("minimalistflex_color_contrast").set("#000000") + wp.customize("minimalistflex_color_contrast-dark").set("#ffffff") + wp.customize("minimalistflex_color_footer-text").set("#ffffff") + wp.customize("minimalistflex_color_footer-bg").set("#20152a") + }) + $("#minimalistflex-palette-spring").click(function(e){ + e.preventDefault() + wp.customize("minimalistflex_color_default").set("#000000") + wp.customize("minimalistflex_color_level3-dark").set("#666666") + wp.customize("minimalistflex_color_link").set("#355c33") + wp.customize("minimalistflex_color_link-hover").set("#004500") + wp.customize("minimalistflex_color_header-bg").set("#004500") + wp.customize("header_textcolor").set("#ffffff") + wp.customize("minimalistflex_color_header-text").set("#ffffff") + wp.customize("minimalistflex_color_header-menu").set("#355c33") + wp.customize("minimalistflex_color_header-sidebar").set("#487c47") + wp.customize("minimalistflex_color_level1").set("#fffdee") + wp.customize("minimalistflex_color_level2").set("#eae8b6") + wp.customize("minimalistflex_color_tint").set("#daa412") + wp.customize("minimalistflex_color_tint-dark").set("#daa412") + wp.customize("minimalistflex_color_tint-alt").set("#004500") + wp.customize("minimalistflex_color_tint-contrast").set("#004500") + wp.customize("minimalistflex_color_contrast").set("#000000") + wp.customize("minimalistflex_color_contrast-dark").set("#ffffff") + wp.customize("minimalistflex_color_footer-text").set("#ffffff") + wp.customize("minimalistflex_color_footer-bg").set("#004500") + }) +}) \ No newline at end of file diff --git a/js/menu.js b/js/menu.js new file mode 100644 index 0000000..057bd75 --- /dev/null +++ b/js/menu.js @@ -0,0 +1,10 @@ +jQuery(document).ready(function($){ + $("#menu-toggle").click(function(e){ + e.preventDefault() + $(this).parent().eq(0).toggleClass("active") + }) + $("#custom-menu-2-focus").click(function(e){ + e.preventDefault() + }) + $("body").removeClass("loading") +}) \ No newline at end of file diff --git a/js/multi-image.js b/js/multi-image.js new file mode 100644 index 0000000..26e1a06 --- /dev/null +++ b/js/multi-image.js @@ -0,0 +1,76 @@ +jQuery(document).ready(function($) { + /* + * Show images on load + */ + let attachment_string = $("#images-input").val(); + let attachment_array = attachment_string.split(","); + + for (var i = 0; i < attachment_array.length; i++) { + if (attachment_array[i] != "") { + $(".images").append( + '
    • ' + ) + } + } + + + /* + * Add images + */ + $(".button-secondary.upload").click(function () { + let custom_uploader = (wp.media.frames.file_frame = wp.media({ + multiple: true, + })); + + custom_uploader.on("select", function () { + let selection = custom_uploader.state().get("selection"); + let attachments = []; + selection.map(function (attachment) { + attachment = attachment.toJSON(); + $(".images").append( + "
    • " + ); + attachments.push(attachment.url); + }); + let previous = $("#images-input").val() ? "," + $("#images-input").val() : ""; // get rid of trailing commas + let attachment_string = attachments.join() + previous; + $("#images-input").val(attachment_string).trigger("change"); + }); + custom_uploader.open(); + }); + + + /* + * Remove images when you click on an image + */ + $(".images").click(function (e) { + let img_url = $(e.target).find("img").attr("src"); + $(e.target).closest("li").remove(); + let attachment_string = $("#images-input").val(); + attachment_string = attachment_string.replace(img_url, ""); + attachment_string = attachment_string.replaceAll(",,", ","); // get rid of duplicate commas + attachment_string = attachment_string.replace(/^,+|,+$/g, ""); // get rid of leading or trailing commans + $("#images-input").val(attachment_string).trigger("change"); + }); + + /* + * Add suggested images when clicked + */ + $(".suggested-images").click(function(e){ + let img_url = $(e.target).find("img").attr("src"); + let attachment_string = $("#images-input").val(); + attachment_string += ","; + attachment_string += img_url; + attachment_string = attachment_string.replace(/^,+|,+$/g, ""); // get rid of leading or trailing commans + $(".images").append( + "
    • " + ); + $("#images-input").val(attachment_string).trigger("change"); + }) +}) \ No newline at end of file diff --git a/languages/crystal.pot b/languages/crystal.pot new file mode 100644 index 0000000..f172328 --- /dev/null +++ b/languages/crystal.pot @@ -0,0 +1,1067 @@ +# Copyright (C) 2024 Frank419 +# This file is distributed under the GNU General Public License v3.0 or later. +msgid "" +msgstr "" +"Project-Id-Version: Crystal 1.0.0\n" +"Report-Msgid-Bugs-To: https://wordpress.org/support/theme/crystal\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"POT-Creation-Date: 2024-08-19T08:59:02+00:00\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"X-Generator: WP-CLI 2.11.0\n" +"X-Domain: crystal\n" + +#. Theme Name of the theme +#: style.css +msgid "Crystal" +msgstr "" + +#. Theme URI of the theme +#. Author URI of the theme +#: style.css +msgid "https://onmyodev.com/" +msgstr "" + +#. Description of the theme +#: style.css +msgid "Crystal is an elegant, easy to use theme that aims to provide a smooth user experience. As a classic theme, we try to provide as many options as possible, while not being overwhelming. With full support of flexible header images, custom colors and layout, multiple widget areas, you can still customize your site in a lot of ways. Compatibility is also an important affair: Crystal is tested on many versions with a minimum of WordPress 4.9 and PHP 5.6, ensuring that almost everyone can enjoy the theme without worrying to upgrade. Mobile users are also considered well: Crystal is fully responsive on its own, and works well even on very small screen sizes!" +msgstr "" + +#. Author of the theme +#: style.css +msgid "Frank419" +msgstr "" + +#: 404.php:11 +msgid "You've reached the edge of the world." +msgstr "" + +#: 404.php:12 +msgid "It looks like the page you are looking for doesn't exist." +msgstr "" + +#: 404.php:13 +msgid "What about a search?" +msgstr "" + +#: 404.php:15 +msgid "Go back" +msgstr "" + +#: author.php:25 +msgid "User description" +msgstr "" + +#: author.php:26 +#: includes/customizer.php:136 +msgid "Registration time" +msgstr "" + +#: author.php:27 +#: includes/customizer.php:137 +msgid "Website" +msgstr "" + +#: author.php:28 +msgid "Email" +msgstr "" + +#. translators: %s: The author display name. +#: author.php:53 +msgid "All posts by %s" +msgstr "" + +#. translators: %1$s: Number of comments. %2$s: Post title. +#: comments.php:19 +msgctxt "comments title" +msgid "One comment on \"%2$s\"" +msgid_plural "%1$s comments on \"%2$s\"" +msgstr[0] "" +msgstr[1] "" + +#: comments.php:44 +msgid "Comment navigation" +msgstr "" + +#: comments.php:45 +msgid "← Older Comments" +msgstr "" + +#: comments.php:46 +msgid "Newer Comments →" +msgstr "" + +#: comments.php:51 +#: singular.php:52 +msgid "Comments are closed." +msgstr "" + +#: footer.php:39 +msgid "Back to top" +msgstr "" + +#. translators: %s: Link to theme author website. +#: footer.php:78 +msgid "Theme Crystal." +msgstr "" + +#: functions.php:59 +msgctxt "sidebar name" +msgid "Menu" +msgstr "" + +#: functions.php:61 +msgid "Widgets in this area will be shown at the right in the main navigation menu dropdown." +msgstr "" + +#: functions.php:68 +msgctxt "sidebar name" +msgid "Menu 2" +msgstr "" + +#: functions.php:70 +msgid "Widgets in this area will be shown at the middle in the main navigation menu dropdown. Will be hidden when submenu items were shown." +msgstr "" + +#: functions.php:77 +msgctxt "sidebar name" +msgid "Main Sidebar" +msgstr "" + +#: functions.php:79 +msgid "Widgets in this area will be shown on all posts and pages." +msgstr "" + +#: functions.php:86 +msgctxt "sidebar name" +msgid "Above Content" +msgstr "" + +#: functions.php:88 +msgid "Widgets in this area will be shown above the main content." +msgstr "" + +#: functions.php:95 +msgctxt "sidebar name" +msgid "Below Content" +msgstr "" + +#: functions.php:97 +msgid "Widgets in this area will be shown below the main content." +msgstr "" + +#: functions.php:104 +msgctxt "sidebar name" +msgid "Footer" +msgstr "" + +#: functions.php:106 +msgid "Widgets in this area will be shown in the footer. Always shows." +msgstr "" + +#: functions.php:113 +msgctxt "sidebar name" +msgid "Footer 2" +msgstr "" + +#: functions.php:115 +msgid "Widgets in this area will be shown in the footer to construct a multi column footer. Only shows when the footer is set to display it. Also twice as wide as other footer widget areas." +msgstr "" + +#: functions.php:122 +msgctxt "sidebar name" +msgid "Footer 3" +msgstr "" + +#: functions.php:124 +msgid "Widgets in this area will be shown in the footer to construct a multi column footer. Only shows when the footer is set to display it." +msgstr "" + +#: functions.php:136 +msgid "Main Menu" +msgstr "" + +#: header.php:52 +msgid "Skip to main content" +msgstr "" + +#: header.php:61 +msgid "The header image link." +msgstr "" + +#. translators: %s: The label of the header image link. +#: header.php:69 +msgid "The image of the header image link to \"%s\"." +msgstr "" + +#: header.php:73 +msgid "The header image." +msgstr "" + +#: header.php:93 +msgid "Toggle navigation dropdown" +msgstr "" + +#: header.php:105 +msgid "Here goes the \"Menu 2\" widget area. This text does not trigger anything." +msgstr "" + +#: includes/class-color-palette-control.php:35 +msgctxt "color palette" +msgid "Light" +msgstr "" + +#: includes/class-color-palette-control.php:36 +msgctxt "color palette" +msgid "Dark" +msgstr "" + +#: includes/class-color-palette-control.php:37 +msgctxt "color palette" +msgid "Galatic" +msgstr "" + +#: includes/class-color-palette-control.php:38 +msgctxt "color palette" +msgid "Spring" +msgstr "" + +#: includes/class-multi-image-control.php:34 +msgid "No image set" +msgstr "" + +#: includes/class-multi-image-control.php:38 +msgid "Add Image" +msgstr "" + +#: includes/color-definitions.php:28 +msgid "Content Background" +msgstr "" + +#: includes/color-definitions.php:29 +msgid "Sidebar Background" +msgstr "" + +#: includes/color-definitions.php:30 +msgid "Secondary Text" +msgstr "" + +#: includes/color-definitions.php:31 +msgid "Default" +msgstr "" + +#: includes/color-definitions.php:32 +msgid "Link" +msgstr "" + +#: includes/color-definitions.php:33 +msgid "Link Hover" +msgstr "" + +#: includes/color-definitions.php:34 +msgid "Tint A" +msgstr "" + +#: includes/color-definitions.php:35 +msgid "Tint A Dark" +msgstr "" + +#: includes/color-definitions.php:36 +msgid "Tint B" +msgstr "" + +#: includes/color-definitions.php:37 +msgid "Tint C" +msgstr "" + +#: includes/color-definitions.php:38 +msgid "Contrast (Light)" +msgstr "" + +#: includes/color-definitions.php:39 +msgid "Contrast (Dark)" +msgstr "" + +#: includes/color-definitions.php:40 +msgid "Footer Text" +msgstr "" + +#: includes/color-definitions.php:41 +msgid "Footer Background" +msgstr "" + +#: includes/color-definitions.php:42 +msgid "Header Background" +msgstr "" + +#: includes/color-definitions.php:43 +msgid "Navigation Menu Background" +msgstr "" + +#: includes/color-definitions.php:44 +msgid "Navigation Menu Sidebar Background" +msgstr "" + +#: includes/color-definitions.php:45 +msgid "Navigation Menu" +msgstr "" + +#: includes/color-definitions.php:49 +msgid "The background color of the main content area." +msgstr "" + +#: includes/color-definitions.php:50 +msgid "The background color of the sidebar." +msgstr "" + +#: includes/color-definitions.php:51 +msgid "The secondary text color. Should be lighter than the default color." +msgstr "" + +#: includes/color-definitions.php:52 +msgid "The default text color." +msgstr "" + +#: includes/color-definitions.php:53 +msgid "The link color." +msgstr "" + +#: includes/color-definitions.php:54 +msgid "The link color when hovered." +msgstr "" + +#: includes/color-definitions.php:55 +msgid "Tint color A. Should be a light color." +msgstr "" + +#: includes/color-definitions.php:56 +msgid "A darker variant of the tint color A. Only used on the scroll bars." +msgstr "" + +#: includes/color-definitions.php:57 +msgid "Tint color B. Should be a dark color." +msgstr "" + +#: includes/color-definitions.php:58 +msgid "Tint color C. Should be a *even darker* color." +msgstr "" + +#: includes/color-definitions.php:59 +msgid "Text color on a light background. Better keep it as is." +msgstr "" + +#: includes/color-definitions.php:60 +msgid "Text color on a dark background. Better keep it as is." +msgstr "" + +#: includes/color-definitions.php:61 +msgid "The footer text color." +msgstr "" + +#: includes/color-definitions.php:62 +msgid "The footer background color." +msgstr "" + +#: includes/color-definitions.php:63 +msgid "The background color of the header." +msgstr "" + +#: includes/color-definitions.php:64 +msgid "The background color of the navigation menu dropdown." +msgstr "" + +#: includes/color-definitions.php:65 +msgid "The background color of the sidebar of the navigation menu dropdown." +msgstr "" + +#: includes/color-definitions.php:66 +msgid "The text color of the navigation menu dropdown." +msgstr "" + +#: includes/customizer.php:19 +msgid "Default Featured Images" +msgstr "" + +#: includes/customizer.php:20 +msgid "The theme can provide the following images as a fallback when there's no featured image set for a post. You can also select where to display those images." +msgstr "" + +#: includes/customizer.php:44 +msgid "Default Images" +msgstr "" + +#: includes/customizer.php:45 +msgid "Click on \"Add Image\" to add an image. Click on the image to remove it. There's no limit on how many images you can add." +msgstr "" + +#: includes/customizer.php:48 +msgid "Suggested Images" +msgstr "" + +#: includes/customizer.php:49 +msgid "We have prepared some pre-built, generic purpose images for you to choose from. Click on an image will add it into the selection." +msgstr "" + +#: includes/customizer.php:53 +msgid "Location" +msgstr "" + +#: includes/customizer.php:54 +msgid "You may decide if and where should the default image show." +msgstr "" + +#: includes/customizer.php:59 +msgid "Always" +msgstr "" + +#: includes/customizer.php:60 +msgid "Archive Page Only" +msgstr "" + +#: includes/customizer.php:61 +msgid "Single Page Only" +msgstr "" + +#: includes/customizer.php:62 +msgid "Never" +msgstr "" + +#: includes/customizer.php:66 +msgid "Display First Image" +msgstr "" + +#: includes/customizer.php:67 +msgid "The theme can also retrieve the first image in a post if possible. When no image was found, the theme can fallback to the default images set below." +msgstr "" + +#: includes/customizer.php:72 +#: includes/customizer.php:125 +#: includes/customizer.php:162 +#: includes/customizer.php:174 +#: includes/customizer.php:517 +#: includes/customizer.php:540 +#: includes/customizer.php:563 +#: includes/customizer.php:574 +#: includes/customizer.php:597 +#: includes/customizer.php:608 +#: includes/customizer.php:619 +#: includes/customizer.php:642 +#: includes/customizer.php:653 +#: includes/customizer.php:664 +#: includes/customizer.php:687 +#: includes/customizer.php:710 +#: includes/customizer.php:721 +#: includes/customizer.php:739 +#: includes/customizer.php:750 +#: includes/customizer.php:761 +msgid "Yes" +msgstr "" + +#: includes/customizer.php:73 +#: includes/customizer.php:126 +#: includes/customizer.php:163 +#: includes/customizer.php:175 +#: includes/customizer.php:507 +#: includes/customizer.php:518 +#: includes/customizer.php:530 +#: includes/customizer.php:541 +#: includes/customizer.php:553 +#: includes/customizer.php:564 +#: includes/customizer.php:575 +#: includes/customizer.php:587 +#: includes/customizer.php:598 +#: includes/customizer.php:609 +#: includes/customizer.php:620 +#: includes/customizer.php:632 +#: includes/customizer.php:643 +#: includes/customizer.php:654 +#: includes/customizer.php:665 +#: includes/customizer.php:677 +#: includes/customizer.php:688 +#: includes/customizer.php:700 +#: includes/customizer.php:711 +#: includes/customizer.php:722 +#: includes/customizer.php:740 +#: includes/customizer.php:751 +#: includes/customizer.php:762 +#: includes/customizer.php:774 +msgid "No" +msgstr "" + +#: includes/customizer.php:88 +msgid "Color Palettes" +msgstr "" + +#: includes/customizer.php:89 +msgid "We had prepared some fine tuned color palettes for you. Select an option and it will automatically apply the palette to your site." +msgstr "" + +#: includes/customizer.php:120 +msgid "Disable Shadows" +msgstr "" + +#: includes/customizer.php:121 +msgid "This option lets you disable the shadow on the site. It should only affect the shadow created by the theme." +msgstr "" + +#: includes/customizer.php:129 +msgid "The default background setting from the WordPress core. If set, it will blend with the content & sidebar background colors set below." +msgstr "" + +#: includes/customizer.php:130 +msgid "The default header text setting from the WordPress core. Used on the header and the toggle button." +msgstr "" + +#. translators: This line is special. The part before
      is the description of the section, while the rest is the option name. +#: includes/customizer.php:135 +msgid "Below are some metadatas that you may configure whether to display or not.
      Description" +msgstr "" + +#: includes/customizer.php:138 +msgid "Email address" +msgstr "" + +#: includes/customizer.php:158 +msgid "Metadatas" +msgstr "" + +#: includes/customizer.php:186 +msgctxt "customizer panel" +msgid "Layout" +msgstr "" + +#: includes/customizer.php:187 +msgid "Here you may configure how different pages on your site looks like." +msgstr "" + +#: includes/customizer.php:194 +msgctxt "customizer section" +msgid "Blog Page" +msgstr "" + +#: includes/customizer.php:195 +msgid "Here you may customize the layout of your blog page." +msgstr "" + +#: includes/customizer.php:201 +msgctxt "customizer section" +msgid "Front Page" +msgstr "" + +#: includes/customizer.php:202 +msgid "Here you may customize the layout of your front page. Only takes effect when using a static front page." +msgstr "" + +#: includes/customizer.php:208 +msgctxt "customizer section" +msgid "Archives" +msgstr "" + +#: includes/customizer.php:209 +msgid "Here you may customize the layout of your archive pages." +msgstr "" + +#: includes/customizer.php:215 +msgctxt "customizer section" +msgid "Search Results" +msgstr "" + +#: includes/customizer.php:216 +msgid "Here you may customize the layout of your search result pages." +msgstr "" + +#: includes/customizer.php:222 +msgctxt "customizer section" +msgid "Author Pages" +msgstr "" + +#: includes/customizer.php:223 +msgid "Here you may customize the layout of your author pages." +msgstr "" + +#: includes/customizer.php:229 +msgctxt "customizer section" +msgid "Single Posts" +msgstr "" + +#: includes/customizer.php:230 +msgid "Here you may customize the layout of your posts." +msgstr "" + +#: includes/customizer.php:236 +msgctxt "customizer section" +msgid "Pages" +msgstr "" + +#: includes/customizer.php:237 +msgid "Here you may customize the layout of your pages." +msgstr "" + +#: includes/customizer.php:243 +msgctxt "customizer section" +msgid "Interface & Elements" +msgstr "" + +#: includes/customizer.php:244 +msgid "You may customize your site's interface and the elements displayed here." +msgstr "" + +#: includes/customizer.php:249 +msgctxt "customizer section" +msgid "Footer" +msgstr "" + +#: includes/customizer.php:250 +msgid "You may customize how your footer looks like here." +msgstr "" + +#: includes/customizer.php:447 +#: templates/loop.php:96 +msgid "Read More" +msgstr "" + +#: includes/customizer.php:488 +msgid "Header Image Link" +msgstr "" + +#: includes/customizer.php:489 +msgid "You may link the header image to a URL. Leave blank if you do not want to do so." +msgstr "" + +#: includes/customizer.php:495 +msgid "Header Image Label" +msgstr "" + +#: includes/customizer.php:496 +msgid "You may provide a description of your header image. Also will become the label of the link if set. Should be set for better accessibility." +msgstr "" + +#: includes/customizer.php:502 +#: includes/customizer.php:525 +#: includes/customizer.php:548 +#: includes/customizer.php:582 +#: includes/customizer.php:627 +#: includes/customizer.php:672 +#: includes/customizer.php:695 +msgctxt "layout" +msgid "Sidebar" +msgstr "" + +#: includes/customizer.php:503 +#: includes/customizer.php:526 +#: includes/customizer.php:549 +#: includes/customizer.php:583 +#: includes/customizer.php:628 +#: includes/customizer.php:673 +#: includes/customizer.php:696 +msgid "Select whether to display the sidebar, and its location." +msgstr "" + +#: includes/customizer.php:505 +#: includes/customizer.php:528 +#: includes/customizer.php:551 +#: includes/customizer.php:585 +#: includes/customizer.php:630 +#: includes/customizer.php:675 +#: includes/customizer.php:698 +msgid "Left sidebar" +msgstr "" + +#: includes/customizer.php:506 +#: includes/customizer.php:529 +#: includes/customizer.php:552 +#: includes/customizer.php:586 +#: includes/customizer.php:631 +#: includes/customizer.php:676 +#: includes/customizer.php:699 +msgid "Right sidebar" +msgstr "" + +#: includes/customizer.php:514 +#: includes/customizer.php:537 +#: includes/customizer.php:560 +#: includes/customizer.php:594 +#: includes/customizer.php:639 +#: includes/customizer.php:684 +#: includes/customizer.php:707 +msgctxt "layout" +msgid "Header Image" +msgstr "" + +#: includes/customizer.php:515 +#: includes/customizer.php:538 +#: includes/customizer.php:561 +#: includes/customizer.php:595 +#: includes/customizer.php:640 +#: includes/customizer.php:685 +#: includes/customizer.php:708 +msgid "Select whether to display the header image." +msgstr "" + +#: includes/customizer.php:571 +msgctxt "layout" +msgid "Title" +msgstr "" + +#: includes/customizer.php:572 +msgid "Select whether to display the archive title." +msgstr "" + +#: includes/customizer.php:605 +msgctxt "layout" +msgid "Search Query" +msgstr "" + +#: includes/customizer.php:606 +msgid "Select whether to display the search query." +msgstr "" + +#: includes/customizer.php:616 +msgctxt "layout" +msgid "Search Form" +msgstr "" + +#: includes/customizer.php:617 +msgid "Select whether to also display the search form." +msgstr "" + +#: includes/customizer.php:650 +msgctxt "layout" +msgid "Author Name" +msgstr "" + +#: includes/customizer.php:651 +msgid "Select whether to display the author name." +msgstr "" + +#: includes/customizer.php:661 +msgctxt "layout" +msgid "Admin Status" +msgstr "" + +#: includes/customizer.php:662 +msgid "Show an indicator in the bottom-right of the avatar if the author is an admin." +msgstr "" + +#: includes/customizer.php:718 +msgid "Scroll to top button" +msgstr "" + +#: includes/customizer.php:719 +msgid "Whether to display a \"Scroll to top\" button in the bottom-right corner." +msgstr "" + +#: includes/customizer.php:729 +msgid "Excerpt Word Count" +msgstr "" + +#: includes/customizer.php:730 +msgid "The word count of the excerpts on any archive page and the blog page." +msgstr "" + +#: includes/customizer.php:736 +msgid "Auto h2 Label" +msgstr "" + +#: includes/customizer.php:737 +msgid "The theme can automatically theme and label the h2 elements in single posts and pages, providing a better visual. May not work well in all circumstances, use with caution." +msgstr "" + +#: includes/customizer.php:747 +msgid "Comment Count" +msgstr "" + +#: includes/customizer.php:748 +msgid "Whether to display the comment count of the posts listed in an archive page." +msgstr "" + +#: includes/customizer.php:758 +msgid "Publisher" +msgstr "" + +#: includes/customizer.php:759 +msgid "Whether to display the publisher." +msgstr "" + +#: includes/customizer.php:769 +msgid "Publish Date" +msgstr "" + +#: includes/customizer.php:770 +msgid "Whether to display the published date." +msgstr "" + +#: includes/customizer.php:772 +msgid "Yes, publish time only." +msgstr "" + +#: includes/customizer.php:773 +msgid "Yes, and display modified time if possible." +msgstr "" + +#: includes/customizer.php:781 +msgid "Read More Link" +msgstr "" + +#: includes/customizer.php:782 +msgid "The text for the \"Read More\" links." +msgstr "" + +#: includes/customizer.php:788 +msgid "Thumbnail Images Size" +msgstr "" + +#: includes/customizer.php:789 +msgid "Select whether to enable flexible height for your thumbnail images, or use a fixed height." +msgstr "" + +#: includes/customizer.php:791 +msgid "Fixed" +msgstr "" + +#: includes/customizer.php:792 +msgid "Flexible" +msgstr "" + +#: includes/customizer.php:799 +msgid "Height" +msgstr "" + +#: includes/customizer.php:800 +msgid "Enter your desired height here. Should be in pixels." +msgstr "" + +#: includes/customizer.php:806 +msgid "Footer Options" +msgstr "" + +#: includes/customizer.php:807 +msgid "Choose what to display in your footer credit section." +msgstr "" + +#: includes/customizer.php:809 +msgid "Both Crystal credits and custom footer text." +msgstr "" + +#: includes/customizer.php:810 +msgid "Crystal credits only." +msgstr "" + +#: includes/customizer.php:811 +msgid "Custom footer text only." +msgstr "" + +#: includes/customizer.php:812 +msgid "Neither." +msgstr "" + +#: includes/customizer.php:819 +msgid "Custom Footer Text" +msgstr "" + +#: includes/customizer.php:820 +msgid "Here you may set a custom footer text to be displayed in the footer credits. HTML allowed." +msgstr "" + +#: includes/customizer.php:826 +msgid "Footer Widget Layout" +msgstr "" + +#: includes/customizer.php:827 +msgid "Choose the layout of the footer widgets." +msgstr "" + +#: includes/customizer.php:829 +msgid "One column. Only shows the \"Footer\" widget area." +msgstr "" + +#: includes/customizer.php:830 +msgid "Two columns. Also shows the \"Footer 2\" widget area." +msgstr "" + +#: includes/customizer.php:831 +msgid "Three columns. Also shows the \"Footer 3\" widget area (aka all areas)." +msgstr "" + +#: includes/languages.php:10 +msgid "Featured" +msgstr "" + +#: includes/languages.php:11 +msgid "Post Author" +msgstr "" + +#: includes/languages.php:12 +msgid "Admin" +msgstr "" + +#: page.php:24 +#: singular.php:42 +#: templates/loop.php:66 +msgid "Pages: " +msgstr "" + +#. translators: %s: The search query. +#: search.php:16 +#: search.php:40 +msgid "You have searched for: \"%s\"" +msgstr "" + +#: search.php:25 +msgid "Not finding what you are looking at? You may refine your search below:" +msgstr "" + +#: search.php:49 +msgid "We are unable to find anything with this query. Try refine your search below:" +msgstr "" + +#: search.php:56 +msgid "We are unable to find anything with this query." +msgstr "" + +#: sidebar-above-content.php:14 +#: sidebar-below-content.php:14 +#: sidebar-footer-2.php:14 +#: sidebar-footer-3.php:14 +#: sidebar-footer.php:14 +#: sidebar-menu-2.php:14 +#: sidebar-menu.php:17 +msgid "Sorry, but no widgets were found in this area." +msgstr "" + +#: sidebar-above-content.php:15 +#: sidebar-below-content.php:15 +#: sidebar-footer-2.php:15 +#: sidebar-footer-3.php:15 +#: sidebar-footer.php:15 +#: sidebar-menu-2.php:15 +#: sidebar-menu.php:18 +#: sidebar.php:18 +msgid "This message is displayed to administrators only." +msgstr "" + +#: sidebar-menu.php:8 +#: sidebar-menu.php:14 +msgid "Go to the right of the navigation menu, which conntains an extra widget area." +msgstr "" + +#: sidebar-menu.php:12 +#: sidebar-menu.php:21 +msgid "Go to the left of the navigation menu, which is the menu and a menu widget area." +msgstr "" + +#: sidebar.php:15 +msgid "Sorry, but no widgets were found in this area. " +msgstr "" + +#: sidebar.php:16 +msgid "Some default widgets had been displayed instead." +msgstr "" + +#: sidebar.php:26 +msgid "Archives" +msgstr "" + +#: sidebar.php:33 +msgid "Meta" +msgstr "" + +#: singular.php:33 +#: templates/loop.php:42 +msgid "The thumbnail image. This is a default image so that it's purely decorative." +msgstr "" + +#: templates/empty.php:3 +msgid "Sorry, but nothing was found at this place." +msgstr "" + +#. translators: %s: Post title associated with the thumbnail image. +#: templates/loop.php:22 +#: templates/loop.php:39 +msgid "Thumbnail image of %s. Also a link that navigates to it." +msgstr "" + +#: templates/loop.php:50 +msgctxt "comment count" +msgid "1 Comment" +msgid_plural "%d Comments" +msgstr[0] "" +msgstr[1] "" + +#. translators: %s: Post publish time. +#: templates/loop.php:82 +#: templates/publisher.php:19 +msgid "Published on %s" +msgstr "" + +#. translators: %s: Post last modified time. +#: templates/loop.php:88 +#: templates/publisher.php:25 +msgid "Last modified on %s" +msgstr "" + +#. translators: %s: Post title. +#: templates/loop.php:102 +msgid "Read more of %s" +msgstr "" + +#: templates/metadata.php:12 +msgid "Categories:" +msgstr "" + +#: templates/metadata.php:27 +msgid "Tags:" +msgstr "" + +#: theme.json +msgctxt "Color name" +msgid "Crystal Primary" +msgstr "" + +#: theme.json +msgctxt "Color name" +msgid "Crystal Secondary" +msgstr "" + +#: theme.json +msgctxt "Color name" +msgid "Crystal Success" +msgstr "" + +#: theme.json +msgctxt "Color name" +msgid "Crystal Warning" +msgstr "" + +#: theme.json +msgctxt "Color name" +msgid "Crystal Danger" +msgstr "" + +#: theme.json +msgctxt "Color name" +msgid "Crystal Tint" +msgstr "" + +#: theme.json +msgctxt "Color name" +msgid "Crystal Tint Alt" +msgstr "" + +#: theme.json +msgctxt "Color name" +msgid "Crystal Default" +msgstr "" + +#: theme.json +msgctxt "Color name" +msgid "Crystal Dark Background" +msgstr "" + +#: theme.json +msgctxt "Color name" +msgid "Crystal White" +msgstr "" diff --git a/languages/zh_CN.mo b/languages/zh_CN.mo new file mode 100644 index 0000000..22247cb Binary files /dev/null and b/languages/zh_CN.mo differ diff --git a/languages/zh_CN.po b/languages/zh_CN.po new file mode 100644 index 0000000..c54531b --- /dev/null +++ b/languages/zh_CN.po @@ -0,0 +1,1156 @@ +# Copyright (C) 2024 Kaedehara Kazuha +# This file is distributed under the GNU General Public License v3.0 or later. +# SPDX-FileCopyrightText: 2024 SPDX-FileCopyrightText : +# SPDX-FileCopyrightText: 2024 SPDX-FileCopyrightText : +# SPDX-FileCopyrightText: 2024 SPDX-FileCopyrightText : +# SPDX-FileCopyrightText: 2024 SPDX-FileCopyrightText : +# SPDX-FileCopyrightText: 2024 SPDX-FileCopyrightText : +# SPDX-FileCopyrightText: 2024 SPDX-FileCopyrightText : +# SPDX-FileCopyrightText: 2024 SPDX-FileCopyrightText : +# SPDX-FileCopyrightText: 2024 SPDX-FileCopyrightText : +# SPDX-FileCopyrightText: 2024 SPDX-FileCopyrightText : +# SPDX-FileCopyrightText: 2024 SPDX-FileCopyrightText : +# SPDX-FileCopyrightText: 2024 SPDX-FileCopyrightText : +# SPDX-FileCopyrightText: 2024 SPDX-FileCopyrightText : +# SPDX-FileCopyrightText: 2024 SPDX-FileCopyrightText : +# SPDX-FileCopyrightText: 2024 SPDX-FileCopyrightText : +# SPDX-FileCopyrightText: 2024 SPDX-FileCopyrightText : +# SPDX-FileCopyrightText: 2024 SPDX-FileCopyrightText : +msgid "" +msgstr "" +"Project-Id-Version: Crystal 1.0.0\n" +"Report-Msgid-Bugs-To: https://wordpress.org/support/theme/crystal\n" +"POT-Creation-Date: 2024-08-19T08:59:02+00:00\n" +"PO-Revision-Date: 2024-08-19 17:43+0800\n" +"Last-Translator: 枫原万叶 \n" +"Language-Team: Chinese \n" +"Language: zh_CN\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Lokalize 24.05.2\n" +"X-Domain: crystal\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. Theme Name of the theme +#: style.css +msgid "Crystal" +msgstr "Crystal" + +#. Theme URI of the theme +#. Author URI of the theme +#: style.css +msgid "https://onmyodev.com/" +msgstr "https://onmyodev.com/" + +#. Description of the theme +#: style.css +msgid "" +"Crystal is an elegant, easy to use theme that aims to provide a smooth user " +"experience. As a classic theme, we try to provide as many options as " +"possible, while not being overwhelming. With full support of flexible header " +"images, custom colors and layout, multiple widget areas, you can still " +"customize your site in a lot of ways. Compatibility is also an important " +"affair: Crystal is tested on many versions with a minimum of WordPress 4.9 " +"and PHP 5.6, ensuring that almost everyone can enjoy the theme without " +"worrying to upgrade. Mobile users are also considered well: Crystal is fully " +"responsive on its own, and works well even on very small screen sizes!" +msgstr "" +"Crystal 是一款优雅的,便于使用的主题,其致力于为所有用户提供良好的用户体验。" +"作为一款经典主题,我们提供了尽可能多的选项,允许您控制您站点的方方面面,同时" +"也确保选项不会难以理解。主题支持可变大小的页眉图像、自定义颜色、布局、多个小" +"组件区域等功能。我们同样很重视兼容性:Crystal 在诸多的 WordPress 版本上进行测" +"试,其中的最低版本为 WordPress 4.9 和 PHP 5.6,确保大多数用户无需升级就可以顺" +"利地使用主题。移动用户也不会被遗忘:Crystal 从设计之初就确保响应式设计始终可" +"用,就算在很小的屏幕尺寸上也能良好工作!" + +#. Author of the theme +#: style.css +msgid "Frank419" +msgstr "Frank419" + +#: 404.php:11 +msgid "You've reached the edge of the world." +msgstr "您到达了世界的边界。" + +#: 404.php:12 +msgid "It looks like the page you are looking for doesn't exist." +msgstr "看上去您正试图查看的页面不存在。" + +#: 404.php:13 +msgid "What about a search?" +msgstr "要不要尝试搜索?" + +#: 404.php:15 +msgid "Go back" +msgstr "返回上一页" + +#: author.php:25 +msgid "User description" +msgstr "个性签名" + +#: author.php:26 includes/customizer.php:136 +msgid "Registration time" +msgstr "注册时间" + +#: author.php:27 includes/customizer.php:137 +msgid "Website" +msgstr "网站" + +#: author.php:28 +msgid "Email" +msgstr "电子邮件地址" + +#. translators: %s: The author display name. +#: author.php:53 +msgid "All posts by %s" +msgstr "%s 的所有文章" + +#. translators: %1$s: Number of comments. %2$s: Post title. +#: comments.php:19 +msgctxt "comments title" +msgid "One comment on \"%2$s\"" +msgid_plural "%1$s comments on \"%2$s\"" +msgstr[0] "「%2$s」上有 %1$s 条评论" + +#: comments.php:44 +msgid "Comment navigation" +msgstr "评论导航" + +#: comments.php:45 +msgid "← Older Comments" +msgstr "← 更早的评论" + +#: comments.php:46 +msgid "Newer Comments →" +msgstr "更新的评论 →" + +#: comments.php:51 singular.php:52 +msgid "Comments are closed." +msgstr "评论已关闭。" + +#: footer.php:39 +msgid "Back to top" +msgstr "返回页首" + +#. translators: %s: Link to theme author website. +#: footer.php:78 +msgid "Theme Crystal." +msgstr "Crystal 主题。" + +#: functions.php:59 +msgctxt "sidebar name" +msgid "Menu" +msgstr "菜单" + +#: functions.php:61 +msgid "" +"Widgets in this area will be shown at the right in the main navigation menu " +"dropdown." +msgstr "在此区域中的小工具将会显示在导航菜单下拉菜单的右侧。" + +#: functions.php:68 +msgctxt "sidebar name" +msgid "Menu 2" +msgstr "菜单 2" + +#: functions.php:70 +msgid "" +"Widgets in this area will be shown at the middle in the main navigation menu " +"dropdown. Will be hidden when submenu items were shown." +msgstr "" +"在此区域中的小工具将会显示在导航菜单下拉菜单的中间。当显示子菜单项时会自动隐" +"藏。" + +#: functions.php:77 +msgctxt "sidebar name" +msgid "Main Sidebar" +msgstr "主要侧栏" + +#: functions.php:79 +msgid "Widgets in this area will be shown on all posts and pages." +msgstr "在此区域中的小工具将会显示在所有的文章和页面中。" + +#: functions.php:86 +msgctxt "sidebar name" +msgid "Above Content" +msgstr "主要内容上方" + +#: functions.php:88 +msgid "Widgets in this area will be shown above the main content." +msgstr "在此区域中的小工具将会显示在主要内容的上方。" + +#: functions.php:95 +msgctxt "sidebar name" +msgid "Below Content" +msgstr "主要内容下方" + +#: functions.php:97 +msgid "Widgets in this area will be shown below the main content." +msgstr "在此区域中的小工具将会显示在主要内容的下方。" + +#: functions.php:104 +msgctxt "sidebar name" +msgid "Footer" +msgstr "页脚" + +#: functions.php:106 +msgid "Widgets in this area will be shown in the footer. Always shows." +msgstr "在此区域中的小工具将会显示在页脚中。此小工具区域始终显示。" + +#: functions.php:113 +msgctxt "sidebar name" +msgid "Footer 2" +msgstr "页脚 2" + +#: functions.php:115 +msgid "" +"Widgets in this area will be shown in the footer to construct a multi column " +"footer. Only shows when the footer is set to display it. Also twice as wide " +"as other footer widget areas." +msgstr "" +"在此区域中的小工具将会在页脚中显示,以形成多栏布局。仅当被设置为显示时才会显" +"示。宽度为其它页脚小工具区域的两倍。" + +#: functions.php:122 +msgctxt "sidebar name" +msgid "Footer 3" +msgstr "页脚 3" + +#: functions.php:124 +msgid "" +"Widgets in this area will be shown in the footer to construct a multi column " +"footer. Only shows when the footer is set to display it." +msgstr "" +"在此区域中的小工具将会在页脚中显示,以形成多栏布局。仅当被设置为显示时才会显" +"示。" + +#: functions.php:136 +msgid "Main Menu" +msgstr "主菜单" + +#: header.php:52 +msgid "Skip to main content" +msgstr "跳转至主要内容" + +#: header.php:61 +msgid "The header image link." +msgstr "页眉图片链接。" + +#. translators: %s: The label of the header image link. +#: header.php:69 +msgid "The image of the header image link to \"%s\"." +msgstr "页眉图片链接,此链接会转至「%s」。" + +#: header.php:73 +msgid "The header image." +msgstr "页眉图片。" + +#: header.php:93 +msgid "Toggle navigation dropdown" +msgstr "展开或收起导航菜单下拉菜单" + +#: header.php:105 +msgid "" +"Here goes the \"Menu 2\" widget area. This text does not trigger anything." +msgstr "以下是「菜单 2」小工具中的小工具。此文本并不会链接到任何内容。" + +#: includes/class-color-palette-control.php:35 +msgctxt "color palette" +msgid "Light" +msgstr "明亮" + +#: includes/class-color-palette-control.php:36 +msgctxt "color palette" +msgid "Dark" +msgstr "暗黑" + +#: includes/class-color-palette-control.php:37 +msgctxt "color palette" +msgid "Galatic" +msgstr "星系" + +#: includes/class-color-palette-control.php:38 +msgctxt "color palette" +msgid "Spring" +msgstr "春光" + +#: includes/class-multi-image-control.php:34 +msgid "No image set" +msgstr "未设置图像" + +#: includes/class-multi-image-control.php:38 +msgid "Add Image" +msgstr "添加图像" + +#: includes/color-definitions.php:28 +msgid "Content Background" +msgstr "内容区域背景色" + +#: includes/color-definitions.php:29 +msgid "Sidebar Background" +msgstr "侧边栏背景色" + +#: includes/color-definitions.php:30 +msgid "Secondary Text" +msgstr "次级文本" + +#: includes/color-definitions.php:31 +msgid "Default" +msgstr "默认颜色" + +#: includes/color-definitions.php:32 +msgid "Link" +msgstr "链接" + +#: includes/color-definitions.php:33 +msgid "Link Hover" +msgstr "悬停链接色" + +#: includes/color-definitions.php:34 +msgid "Tint A" +msgstr "强调色 A" + +#: includes/color-definitions.php:35 +msgid "Tint A Dark" +msgstr "强调色 A(暗)" + +#: includes/color-definitions.php:36 +msgid "Tint B" +msgstr "强调色 B" + +#: includes/color-definitions.php:37 +msgid "Tint C" +msgstr "强调色 A" + +#: includes/color-definitions.php:38 +msgid "Contrast (Light)" +msgstr "对比色(浅)" + +#: includes/color-definitions.php:39 +msgid "Contrast (Dark)" +msgstr "对比色(深)" + +#: includes/color-definitions.php:40 +msgid "Footer Text" +msgstr "页脚文本色" + +#: includes/color-definitions.php:41 +msgid "Footer Background" +msgstr "页脚背景色" + +#: includes/color-definitions.php:42 +msgid "Header Background" +msgstr "页脚背景色" + +#: includes/color-definitions.php:43 +msgid "Navigation Menu Background" +msgstr "导航菜单背景" + +#: includes/color-definitions.php:44 +msgid "Navigation Menu Sidebar Background" +msgstr "导航菜单侧边栏背景" + +#: includes/color-definitions.php:45 +msgid "Navigation Menu" +msgstr "主菜单" + +#: includes/color-definitions.php:49 +msgid "The background color of the main content area." +msgstr "内容区域的背景色(最浅的背景色)。" + +#: includes/color-definitions.php:50 +msgid "The background color of the sidebar." +msgstr "侧边栏的背景色。" + +#: includes/color-definitions.php:51 +msgid "The secondary text color. Should be lighter than the default color." +msgstr "次级文本色。通常情况下比默认文本色浅。" + +#: includes/color-definitions.php:52 +msgid "The default text color." +msgstr "默认文本色。" + +#: includes/color-definitions.php:53 +msgid "The link color." +msgstr "链接的颜色。" + +#: includes/color-definitions.php:54 +msgid "The link color when hovered." +msgstr "当悬停在链接上时,链接的颜色。" + +#: includes/color-definitions.php:55 +msgid "Tint color A. Should be a light color." +msgstr "强调色 A。应当为浅色。" + +#: includes/color-definitions.php:56 +msgid "A darker variant of the tint color A. Only used on the scroll bars." +msgstr "一个强调色 A 的较深版本。仅在滚动条上使用。" + +#: includes/color-definitions.php:57 +msgid "Tint color B. Should be a dark color." +msgstr "强调色 B。应当为深色。" + +#: includes/color-definitions.php:58 +msgid "Tint color C. Should be a *even darker* color." +msgstr "强调色 C。应当为*更深的*深色。" + +#: includes/color-definitions.php:59 +msgid "Text color on a light background. Better keep it as is." +msgstr "在浅色背景上的对比色。最好保留此设置。" + +#: includes/color-definitions.php:60 +msgid "Text color on a dark background. Better keep it as is." +msgstr "在深色背景上的对比色。最好保留此设置。" + +#: includes/color-definitions.php:61 +msgid "The footer text color." +msgstr "页脚文本色。" + +#: includes/color-definitions.php:62 +msgid "The footer background color." +msgstr "页脚背景色。" + +#: includes/color-definitions.php:63 +msgid "The background color of the header." +msgstr "页眉背景色。" + +#: includes/color-definitions.php:64 +msgid "The background color of the navigation menu dropdown." +msgstr "导航菜单下拉菜单的背景色。" + +#: includes/color-definitions.php:65 +msgid "The background color of the sidebar of the navigation menu dropdown." +msgstr "导航菜单下拉菜单的侧边栏的背景颜色。" + +#: includes/color-definitions.php:66 +msgid "The text color of the navigation menu dropdown." +msgstr "导航菜单下拉菜单的文本色。" + +#: includes/customizer.php:19 +msgid "Default Featured Images" +msgstr "默认特色图像" + +#: includes/customizer.php:20 +msgid "" +"The theme can provide the following images as a fallback when there's no " +"featured image set for a post. You can also select where to display those " +"images." +msgstr "" +"主题可以在文章没有特色图像时,根据下方设置显示一个默认图像。您也可以选择要在" +"哪里显示这些图像。" + +#: includes/customizer.php:44 +msgid "Default Images" +msgstr "默认图像" + +#: includes/customizer.php:45 +msgid "" +"Click on \"Add Image\" to add an image. Click on the image to remove it. " +"There's no limit on how many images you can add." +msgstr "" +"单击「新增图像」按钮来添加一个图像。单击图像可以将其移除。对于可以添加的图像" +"数量没有限制。" + +#: includes/customizer.php:48 +msgid "Suggested Images" +msgstr "建议的图像" + +#: includes/customizer.php:49 +msgid "" +"We have prepared some pre-built, generic purpose images for you to choose " +"from. Click on an image will add it into the selection." +msgstr "我们准备了一些通用的图像供您选择。您可以单击图像来将其添加至选择中。" + +#: includes/customizer.php:53 +msgid "Location" +msgstr "位置" + +#: includes/customizer.php:54 +msgid "You may decide if and where should the default image show." +msgstr "您可以选择要在哪些地方显示这些默认图像。" + +#: includes/customizer.php:59 +msgid "Always" +msgstr "总是" + +#: includes/customizer.php:60 +msgid "Archive Page Only" +msgstr "仅在归档页面上显示" + +#: includes/customizer.php:61 +msgid "Single Page Only" +msgstr "仅在文章页面上显示" + +#: includes/customizer.php:62 +msgid "Never" +msgstr "永不" + +#: includes/customizer.php:66 +msgid "Display First Image" +msgstr "显示首张图像" + +#: includes/customizer.php:67 +msgid "" +"The theme can also retrieve the first image in a post if possible. When no " +"image was found, the theme can fallback to the default images set below." +msgstr "" +"主题也可以在可用时,将文章的第一张图像作为特色图像显示。当不存在这样的图像" +"时,主题仍会显示下方设置的默认图像。" + +#: includes/customizer.php:72 includes/customizer.php:125 +#: includes/customizer.php:162 includes/customizer.php:174 +#: includes/customizer.php:517 includes/customizer.php:540 +#: includes/customizer.php:563 includes/customizer.php:574 +#: includes/customizer.php:597 includes/customizer.php:608 +#: includes/customizer.php:619 includes/customizer.php:642 +#: includes/customizer.php:653 includes/customizer.php:664 +#: includes/customizer.php:687 includes/customizer.php:710 +#: includes/customizer.php:721 includes/customizer.php:739 +#: includes/customizer.php:750 includes/customizer.php:761 +msgid "Yes" +msgstr "是" + +#: includes/customizer.php:73 includes/customizer.php:126 +#: includes/customizer.php:163 includes/customizer.php:175 +#: includes/customizer.php:507 includes/customizer.php:518 +#: includes/customizer.php:530 includes/customizer.php:541 +#: includes/customizer.php:553 includes/customizer.php:564 +#: includes/customizer.php:575 includes/customizer.php:587 +#: includes/customizer.php:598 includes/customizer.php:609 +#: includes/customizer.php:620 includes/customizer.php:632 +#: includes/customizer.php:643 includes/customizer.php:654 +#: includes/customizer.php:665 includes/customizer.php:677 +#: includes/customizer.php:688 includes/customizer.php:700 +#: includes/customizer.php:711 includes/customizer.php:722 +#: includes/customizer.php:740 includes/customizer.php:751 +#: includes/customizer.php:762 includes/customizer.php:774 +msgid "No" +msgstr "否" + +#: includes/customizer.php:88 +msgid "Color Palettes" +msgstr "调色板" + +#: includes/customizer.php:89 +msgid "" +"We had prepared some fine tuned color palettes for you. Select an option and " +"it will automatically apply the palette to your site." +msgstr "我们为您准备好了一些调色板。只需单击即可应用到整个站点。" + +#: includes/customizer.php:120 +msgid "Disable Shadows" +msgstr "关闭阴影" + +#: includes/customizer.php:121 +msgid "" +"This option lets you disable the shadow on the site. It should only affect " +"the shadow created by the theme." +msgstr "此选项允许您关闭您站点上的阴影。此选项应当仅影响由主题设置的阴影。" + +#: includes/customizer.php:129 +msgid "" +"The default background setting from the WordPress core. If set, it will " +"blend with the content & sidebar background colors set below." +msgstr "" +"由 WordPress 核心创建的默认背景颜色设置。当此选项被设置时,将会与下方的主要内" +"容和侧边栏背景颜色设置进行混合。" + +#: includes/customizer.php:130 +msgid "" +"The default header text setting from the WordPress core. Used on the header " +"and the toggle button." +msgstr "由 WordPress 核心创建的默认页眉颜色设置。在页眉和导航菜单切换按钮上使用。" + +#. translators: This line is special. The part before
      is the description of the section, while the rest is the option name. +#: includes/customizer.php:135 +msgid "" +"Below are some metadatas that you may configure whether to display or not." +"
      Description" +msgstr "下面是一些您可以选择显示或隐藏的元数据。
      描述" + +#: includes/customizer.php:138 +msgid "Email address" +msgstr "电子邮件地址" + +#: includes/customizer.php:158 +msgid "Metadatas" +msgstr "元数据" + +#: includes/customizer.php:186 +msgctxt "customizer panel" +msgid "Layout" +msgstr "布局" + +#: includes/customizer.php:187 +msgid "Here you may configure how different pages on your site looks like." +msgstr "在这里您可以配置您站点上的不同页面的显示方式。" + +#: includes/customizer.php:194 +msgctxt "customizer section" +msgid "Blog Page" +msgstr "博客页" + +#: includes/customizer.php:195 +msgid "Here you may customize the layout of your blog page." +msgstr "在这里您可以配置您站点上的博客页的显示方式。" + +#: includes/customizer.php:201 +msgctxt "customizer section" +msgid "Front Page" +msgstr "首页" + +#: includes/customizer.php:202 +msgid "" +"Here you may customize the layout of your front page. Only takes effect when " +"using a static front page." +msgstr "在这里您可以配置您站点上的首页的显示方式。仅当配置了静态首页时才会生效。" + +#: includes/customizer.php:208 +msgctxt "customizer section" +msgid "Archives" +msgstr "归档页" + +#: includes/customizer.php:209 +msgid "Here you may customize the layout of your archive pages." +msgstr "在这里您可以配置您站点上的归档页的显示方式。" + +#: includes/customizer.php:215 +msgctxt "customizer section" +msgid "Search Results" +msgstr "搜索结果页" + +#: includes/customizer.php:216 +msgid "Here you may customize the layout of your search result pages." +msgstr "在这里您可以配置您站点上的搜索结果页的显示方式。" + +#: includes/customizer.php:222 +msgctxt "customizer section" +msgid "Author Pages" +msgstr "作者页" + +#: includes/customizer.php:223 +msgid "Here you may customize the layout of your author pages." +msgstr "在这里您可以配置您站点上的作者页的显示方式。" + +#: includes/customizer.php:229 +msgctxt "customizer section" +msgid "Single Posts" +msgstr "文章" + +#: includes/customizer.php:230 +msgid "Here you may customize the layout of your posts." +msgstr "在这里您可以配置您站点上的文章的显示方式。" + +#: includes/customizer.php:236 +msgctxt "customizer section" +msgid "Pages" +msgstr "独立页面" + +#: includes/customizer.php:237 +msgid "Here you may customize the layout of your pages." +msgstr "在这里您可以配置您站点上的独立页面的显示方式。" + +#: includes/customizer.php:243 +msgctxt "customizer section" +msgid "Interface & Elements" +msgstr "界面与元素" + +#: includes/customizer.php:244 +msgid "" +"You may customize your site's interface and the elements displayed here." +msgstr "您可以在此配置您站点的界面和要显示的元素。" + +#: includes/customizer.php:249 +msgctxt "customizer section" +msgid "Footer" +msgstr "页脚" + +#: includes/customizer.php:250 +msgid "You may customize how your footer looks like here." +msgstr "您可以在此配置您站点的页脚。" + +#: includes/customizer.php:447 templates/loop.php:96 +msgid "Read More" +msgstr "阅读更多" + +#: includes/customizer.php:488 +msgid "Header Image Link" +msgstr "页眉图像链接" + +#: includes/customizer.php:489 +msgid "" +"You may link the header image to a URL. Leave blank if you do not want to do " +"so." +msgstr "您可以将页眉图像链接至一个 URL。如果您不希望这样做,请留空。" + +#: includes/customizer.php:495 +msgid "Header Image Label" +msgstr "页眉图像标签" + +#: includes/customizer.php:496 +msgid "" +"You may provide a description of your header image. Also will become the " +"label of the link if set. Should be set for better accessibility." +msgstr "" +"您可以在此为您的页眉图像提供一个标签。如果设置了页眉图像链接,则也会在链接中" +"使用。出于可访问性考虑,建议设置该项。" + +#: includes/customizer.php:502 includes/customizer.php:525 +#: includes/customizer.php:548 includes/customizer.php:582 +#: includes/customizer.php:627 includes/customizer.php:672 +#: includes/customizer.php:695 +msgctxt "layout" +msgid "Sidebar" +msgstr "侧栏" + +#: includes/customizer.php:503 includes/customizer.php:526 +#: includes/customizer.php:549 includes/customizer.php:583 +#: includes/customizer.php:628 includes/customizer.php:673 +#: includes/customizer.php:696 +msgid "Select whether to display the sidebar, and its location." +msgstr "选择是否要显示侧栏,以及其位置。" + +#: includes/customizer.php:505 includes/customizer.php:528 +#: includes/customizer.php:551 includes/customizer.php:585 +#: includes/customizer.php:630 includes/customizer.php:675 +#: includes/customizer.php:698 +msgid "Left sidebar" +msgstr "侧栏在左" + +#: includes/customizer.php:506 includes/customizer.php:529 +#: includes/customizer.php:552 includes/customizer.php:586 +#: includes/customizer.php:631 includes/customizer.php:676 +#: includes/customizer.php:699 +msgid "Right sidebar" +msgstr "侧栏在右" + +#: includes/customizer.php:514 includes/customizer.php:537 +#: includes/customizer.php:560 includes/customizer.php:594 +#: includes/customizer.php:639 includes/customizer.php:684 +#: includes/customizer.php:707 +msgctxt "layout" +msgid "Header Image" +msgstr "页眉图像" + +#: includes/customizer.php:515 includes/customizer.php:538 +#: includes/customizer.php:561 includes/customizer.php:595 +#: includes/customizer.php:640 includes/customizer.php:685 +#: includes/customizer.php:708 +msgid "Select whether to display the header image." +msgstr "选择是否要显示页眉图像。" + +#: includes/customizer.php:571 +msgctxt "layout" +msgid "Title" +msgstr "标题" + +#: includes/customizer.php:572 +msgid "Select whether to display the archive title." +msgstr "选择是否要显示归档页的标题。" + +#: includes/customizer.php:605 +msgctxt "layout" +msgid "Search Query" +msgstr "搜索词" + +#: includes/customizer.php:606 +msgid "Select whether to display the search query." +msgstr "选择是否要显示搜索关键词。" + +#: includes/customizer.php:616 +msgctxt "layout" +msgid "Search Form" +msgstr "搜索框" + +#: includes/customizer.php:617 +msgid "Select whether to also display the search form." +msgstr "选择是否要显示搜索框。" + +#: includes/customizer.php:650 +msgctxt "layout" +msgid "Author Name" +msgstr "作者名称" + +#: includes/customizer.php:651 +msgid "Select whether to display the author name." +msgstr "选择是否要显示作者名称。" + +#: includes/customizer.php:661 +msgctxt "layout" +msgid "Admin Status" +msgstr "管理员标记" + +#: includes/customizer.php:662 +msgid "" +"Show an indicator in the bottom-right of the avatar if the author is an " +"admin." +msgstr "当作者为管理员时,在其头像的右下角显示一个标记。" + +#: includes/customizer.php:718 +msgid "Scroll to top button" +msgstr "返回页首按钮" + +#: includes/customizer.php:719 +msgid "" +"Whether to display a \"Scroll to top\" button in the bottom-right corner." +msgstr "在页面的右下角显示一个「返回页首」按钮。" + +#: includes/customizer.php:729 +msgid "Excerpt Word Count" +msgstr "摘要字数" + +#: includes/customizer.php:730 +msgid "The word count of the excerpts on any archive page and the blog page." +msgstr "要使用的摘要字数。" + +#: includes/customizer.php:736 +msgid "Auto h2 Label" +msgstr "自动 h2 标记" + +#: includes/customizer.php:737 +msgid "" +"The theme can automatically theme and label the h2 elements in single posts " +"and pages, providing a better visual. May not work well in all " +"circumstances, use with caution." +msgstr "" +"此主题可以自动为 h2 元素进行标记,并提供更好的视觉效果。可能无法在所有情况下" +"正常工作,因此请小心使用。" + +#: includes/customizer.php:747 +msgid "Comment Count" +msgstr "评论数目" + +#: includes/customizer.php:748 +msgid "" +"Whether to display the comment count of the posts listed in an archive page." +msgstr "是否要显示评论数目。" + +#: includes/customizer.php:758 +msgid "Publisher" +msgstr "作者" + +#: includes/customizer.php:759 +msgid "Whether to display the publisher." +msgstr "是否要显示作者。" + +#: includes/customizer.php:769 +msgid "Publish Date" +msgstr "发表日期" + +#: includes/customizer.php:770 +msgid "Whether to display the published date." +msgstr "是否要显示发表日期。" + +#: includes/customizer.php:772 +msgid "Yes, publish time only." +msgstr "是,仅显示发表日期。" + +#: includes/customizer.php:773 +msgid "Yes, and display modified time if possible." +msgstr "是,且如果可能,显示修改日期。" + +#: includes/customizer.php:781 +msgid "Read More Link" +msgstr "阅读更多链接" + +#: includes/customizer.php:782 +msgid "The text for the \"Read More\" links." +msgstr "「阅读更多」链接文本。" + +#: includes/customizer.php:788 +msgid "Thumbnail Images Size" +msgstr "特色图像尺寸" + +#: includes/customizer.php:789 +msgid "" +"Select whether to enable flexible height for your thumbnail images, or use a " +"fixed height." +msgstr "选择是否要使用不定高度的特色图片。" + +#: includes/customizer.php:791 +msgid "Fixed" +msgstr "固定高度" + +#: includes/customizer.php:792 +msgid "Flexible" +msgstr "不定高度" + +#: includes/customizer.php:799 +msgid "Height" +msgstr "高度" + +#: includes/customizer.php:800 +msgid "Enter your desired height here. Should be in pixels." +msgstr "输入您希望使用的特色图片高度。单位为像素。" + +#: includes/customizer.php:806 +msgid "Footer Options" +msgstr "页脚设置" + +#: includes/customizer.php:807 +msgid "Choose what to display in your footer credit section." +msgstr "选择要在页脚的致谢部分中显示什么内容。" + +#: includes/customizer.php:809 +msgid "Both Crystal credits and custom footer text." +msgstr "同时显示 Crystal 致谢内容和自定义页脚文本。" + +#: includes/customizer.php:810 +msgid "Crystal credits only." +msgstr "仅显示 Crystal 致谢内容。" + +#: includes/customizer.php:811 +msgid "Custom footer text only." +msgstr "仅显示自定义页脚文本。" + +#: includes/customizer.php:812 +msgid "Neither." +msgstr "不显示" + +#: includes/customizer.php:819 +msgid "Custom Footer Text" +msgstr "自定义页脚文本" + +#: includes/customizer.php:820 +msgid "" +"Here you may set a custom footer text to be displayed in the footer credits. " +"HTML allowed." +msgstr "您可以在此设置一个要在页脚致谢部分中中显示的自定义文本。允许 HTML。" + +#: includes/customizer.php:826 +msgid "Footer Widget Layout" +msgstr "页脚小工具布局" + +#: includes/customizer.php:827 +msgid "Choose the layout of the footer widgets." +msgstr "选择页脚小工具的布局。" + +#: includes/customizer.php:829 +msgid "One column. Only shows the \"Footer\" widget area." +msgstr "单栏。仅显示「页脚」小工具区域。" + +#: includes/customizer.php:830 +msgid "Two columns. Also shows the \"Footer 2\" widget area." +msgstr "双栏。还会显示「页脚 2」小工具区域。" + +#: includes/customizer.php:831 +msgid "Three columns. Also shows the \"Footer 3\" widget area (aka all areas)." +msgstr "三栏。还会显示「页脚 3」(即显示所有)小工具区域。" + +#: includes/languages.php:10 +msgid "Featured" +msgstr "精选" + +#: includes/languages.php:11 +msgid "Post Author" +msgstr "文章作者" + +#: includes/languages.php:12 +msgid "Admin" +msgstr "管理员" + +#: page.php:24 singular.php:42 templates/loop.php:66 +msgid "Pages: " +msgstr "页面:" + +#. translators: %s: The search query. +#: search.php:16 search.php:40 +msgid "You have searched for: \"%s\"" +msgstr "您搜索了:「%s」" + +#: search.php:25 +msgid "Not finding what you are looking at? You may refine your search below:" +msgstr "找不到您希望查找的内容?您或许可以在下方细化您的搜索:" + +#: search.php:49 +msgid "" +"We are unable to find anything with this query. Try refine your search below:" +msgstr "我们找不到您希望查找的内容。您可以在下方细化您的搜索:" + +#: search.php:56 +msgid "We are unable to find anything with this query." +msgstr "我们找不到您希望查找的内容。" + +#: sidebar-above-content.php:14 sidebar-below-content.php:14 +#: sidebar-footer-2.php:14 sidebar-footer-3.php:14 sidebar-footer.php:14 +#: sidebar-menu-2.php:14 sidebar-menu.php:17 +msgid "Sorry, but no widgets were found in this area." +msgstr "抱歉,但是在此区域中没有找到任何小工具。" + +#: sidebar-above-content.php:15 sidebar-below-content.php:15 +#: sidebar-footer-2.php:15 sidebar-footer-3.php:15 sidebar-footer.php:15 +#: sidebar-menu-2.php:15 sidebar-menu.php:18 sidebar.php:18 +msgid "This message is displayed to administrators only." +msgstr "此消息仅向管理员展示。" + +#: sidebar-menu.php:8 sidebar-menu.php:14 +msgid "" +"Go to the right of the navigation menu, which conntains an extra widget area." +msgstr "将转至导航菜单的右侧,此区域包含额外的小工具区域。" + +#: sidebar-menu.php:12 sidebar-menu.php:21 +msgid "" +"Go to the left of the navigation menu, which is the menu and a menu widget " +"area." +msgstr "转到导航菜单的左侧,包含菜单和一个小工具区域。" + +#: sidebar.php:15 +msgid "Sorry, but no widgets were found in this area. " +msgstr "抱歉,但是在此区域中没有找到任何小工具。 " + +#: sidebar.php:16 +msgid "Some default widgets had been displayed instead." +msgstr "已显示一些默认的小工具。" + +#: sidebar.php:26 +msgid "Archives" +msgstr "归档页" + +#: sidebar.php:33 +msgid "Meta" +msgstr "快速链接" + +#: singular.php:33 templates/loop.php:42 +msgid "" +"The thumbnail image. This is a default image so that it's purely decorative." +msgstr "特色图像。此图像为默认图像,其仅为装饰性的。" + +#: templates/empty.php:3 +msgid "Sorry, but nothing was found at this place." +msgstr "抱歉,但是在此区域中没有找到任何小工具。" + +#. translators: %s: Post title associated with the thumbnail image. +#: templates/loop.php:22 templates/loop.php:39 +msgid "Thumbnail image of %s. Also a link that navigates to it." +msgstr "文章 %s 的特色图片。此图片也将链接到对应的文章。" + +#: templates/loop.php:50 +msgctxt "comment count" +msgid "1 Comment" +msgid_plural "%d Comments" +msgstr[0] "%d 条评论" + +#. translators: %s: Post publish time. +#: templates/loop.php:82 templates/publisher.php:19 +msgid "Published on %s" +msgstr "发表于 %s" + +#. translators: %s: Post last modified time. +#: templates/loop.php:88 templates/publisher.php:25 +msgid "Last modified on %s" +msgstr "最后编辑于 %s" + +#. translators: %s: Post title. +#: templates/loop.php:102 +msgid "Read more of %s" +msgstr "阅读 %s 的更多内容" + +#: templates/metadata.php:12 +msgid "Categories:" +msgstr "分类:" + +#: templates/metadata.php:27 +msgid "Tags:" +msgstr "标签:" + +#: theme.json +msgctxt "Color name" +msgid "Crystal Primary" +msgstr "Crystal 主要颜色" + +#: theme.json +msgctxt "Color name" +msgid "Crystal Secondary" +msgstr "Crystal 次要颜色" + +#: theme.json +msgctxt "Color name" +msgid "Crystal Success" +msgstr "Crystal 成功色" + +#: theme.json +msgctxt "Color name" +msgid "Crystal Warning" +msgstr "Crystal 警告色" + +#: theme.json +msgctxt "Color name" +msgid "Crystal Danger" +msgstr "Crystal 危险色" + +#: theme.json +msgctxt "Color name" +msgid "Crystal Tint" +msgstr "Crystal 强调色" + +#: theme.json +msgctxt "Color name" +msgid "Crystal Tint Alt" +msgstr "Crystal 替代强调色" + +#: theme.json +msgctxt "Color name" +msgid "Crystal Default" +msgstr "Crystal 默认颜色" + +#: theme.json +msgctxt "Color name" +msgid "Crystal Dark Background" +msgstr "Crystal 暗背景色" + +#: theme.json +msgctxt "Color name" +msgid "Crystal White" +msgstr "Crystal 白色" + +#~ msgid "L3 Background" +#~ msgstr "L3 背景色" + +#~ msgid "L1 Text" +#~ msgstr "L1 文本色" + +#~ msgid "L2 Text" +#~ msgstr "L2 文本色" + +#~ msgid "The L3 background color (darkest)." +#~ msgstr "L3 背景色(最深的背景色)。" + +#~ msgid "The L1 text color (darkest). Less used than the default color." +#~ msgstr "L1 文本色(最深的文本色)。并没有默认颜色那么常用。" + +#~ msgid "The L2 text color. Rarely used." +#~ msgstr "L2 文本色。极少使用。" + +#~ msgid "Kaedehara Kazuha" +#~ msgstr "枫原万叶" + +#~ msgid "L1 Background Color" +#~ msgstr "L1 背景色" + +#~ msgid "L2 Background Color" +#~ msgstr "L2 背景色" + +#~ msgid "L3 Text Color" +#~ msgstr "L3 文本色" + +#~ msgid "Link Color" +#~ msgstr "链接色" + +#~ msgid "Tint Color C" +#~ msgstr "强调色 C" + +#~ msgid "The L3 text color (lightest). Rarely used." +#~ msgstr "L3 文本色。极少使用。" + +#~ msgctxt "customizer section" +#~ msgid "Interface" +#~ msgstr "界面" + +#~ msgid "" +#~ "Enter the height you wish to use for the thumbnail images (in pixels). " +#~ "Alternatively, enter \"auto\" if you don't wish to crop the images." +#~ msgstr "" +#~ "输入一个您希望使用的特色图像高度(以像素为单位)。您也可以输入「auto」来禁" +#~ "用对特色图像的剪裁。" + diff --git a/languages/zh_CN.po~ b/languages/zh_CN.po~ new file mode 100644 index 0000000..2f37352 --- /dev/null +++ b/languages/zh_CN.po~ @@ -0,0 +1,1157 @@ +# Copyright (C) 2024 Kaedehara Kazuha +# This file is distributed under the GNU General Public License v3.0 or later. +# SPDX-FileCopyrightText: 2024 SPDX-FileCopyrightText : +# SPDX-FileCopyrightText: 2024 SPDX-FileCopyrightText : +# SPDX-FileCopyrightText: 2024 SPDX-FileCopyrightText : +# SPDX-FileCopyrightText: 2024 SPDX-FileCopyrightText : +# SPDX-FileCopyrightText: 2024 SPDX-FileCopyrightText : +# SPDX-FileCopyrightText: 2024 SPDX-FileCopyrightText : +# SPDX-FileCopyrightText: 2024 SPDX-FileCopyrightText : +# SPDX-FileCopyrightText: 2024 SPDX-FileCopyrightText : +# SPDX-FileCopyrightText: 2024 SPDX-FileCopyrightText : +# SPDX-FileCopyrightText: 2024 SPDX-FileCopyrightText : +# SPDX-FileCopyrightText: 2024 SPDX-FileCopyrightText : +# SPDX-FileCopyrightText: 2024 SPDX-FileCopyrightText : +# SPDX-FileCopyrightText: 2024 SPDX-FileCopyrightText : +# SPDX-FileCopyrightText: 2024 SPDX-FileCopyrightText : +# SPDX-FileCopyrightText: 2024 SPDX-FileCopyrightText : +msgid "" +msgstr "" +"Project-Id-Version: Crystal 1.0.0\n" +"Report-Msgid-Bugs-To: https://wordpress.org/support/theme/crystal\n" +"POT-Creation-Date: 2024-08-19T07:09:32+00:00\n" +"PO-Revision-Date: 2024-08-19 15:10+0800\n" +"Last-Translator: 枫原万叶 \n" +"Language-Team: Chinese \n" +"Language: zh_CN\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Lokalize 24.05.2\n" +"X-Domain: crystal\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. Theme Name of the theme +#: style.css +msgid "Crystal" +msgstr "Crystal" + +#. Theme URI of the theme +#. Author URI of the theme +#: style.css +msgid "https://onmyodev.com/" +msgstr "https://onmyodev.com/" + +#. Description of the theme +#: style.css +msgid "" +"Crystal is an elegant, easy to use theme that aims to provide a smooth user " +"experience. As a classic theme, we try to provide as many options as " +"possible, while not being overwhelming. With full support of flexible header " +"images, custom colors and layout, multiple widget areas, you can still " +"customize your site in a lot of ways. Compatibility is also an important " +"affair: Crystal is tested on many versions with a minimum of WordPress 4.9 " +"and PHP 5.6, ensuring that almost everyone can enjoy the theme without " +"worrying to upgrade. Mobile users are also considered well: Crystal is fully " +"responsive on its own, and works well even on very small screen sizes!" +msgstr "" +"Crystal 是一款优雅的,便于使用的主题,其致力于为所有用户提供良好的用户体验。" +"作为一款经典主题,我们提供了尽可能多的选项,允许您控制您站点的方方面面,同时" +"也确保选项不会难以理解。主题支持可变大小的页眉图像、自定义颜色、布局、多个小" +"组件区域等功能。我们同样很重视兼容性:Crystal 在诸多的 WordPress 版本上进行测" +"试,其中的最低版本为 WordPress 4.9 和 PHP 5.6,确保大多数用户无需升级就可以顺" +"利地使用主题。移动用户也不会被遗忘:Crystal 从设计之初就确保响应式设计始终可" +"用,就算在很小的屏幕尺寸上也能良好工作!" + +#. Author of the theme +#: style.css +msgid "Frank419" +msgstr "Frank419" + +#: 404.php:11 +msgid "You've reached the edge of the world." +msgstr "您到达了世界的边界。" + +#: 404.php:12 +msgid "It looks like the page you are looking for doesn't exist." +msgstr "看上去您正试图查看的页面不存在。" + +#: 404.php:13 +msgid "What about a search?" +msgstr "要不要尝试搜索?" + +#: 404.php:15 +msgid "Go back" +msgstr "返回上一页" + +#: author.php:25 +msgid "User description" +msgstr "个性签名" + +#: author.php:26 includes/customizer.php:137 +msgid "Registration time" +msgstr "注册时间" + +#: author.php:27 includes/customizer.php:138 +msgid "Website" +msgstr "网站" + +#: author.php:28 +msgid "Email" +msgstr "电子邮件地址" + +#. translators: %s: The author display name. +#: author.php:53 +msgid "All posts by %s" +msgstr "%s 的所有文章" + +#. translators: %1$s: Number of comments. %2$s: Post title. +#: comments.php:19 +msgctxt "comments title" +msgid "One comment on \"%2$s\"" +msgid_plural "%1$s comments on \"%2$s\"" +msgstr[0] "「%2$s」上有 %1$s 条评论" + +#: comments.php:44 +msgid "Comment navigation" +msgstr "评论导航" + +#: comments.php:45 +msgid "← Older Comments" +msgstr "← 更早的评论" + +#: comments.php:46 +msgid "Newer Comments →" +msgstr "更新的评论 →" + +#: comments.php:51 singular.php:52 +msgid "Comments are closed." +msgstr "评论已关闭。" + +#: footer.php:39 +msgid "Back to top" +msgstr "返回页首" + +#. translators: %s: Link to theme author website. +#: footer.php:78 +msgid "Theme Crystal." +msgstr "Crystal 主题。" + +#: functions.php:59 +msgctxt "sidebar name" +msgid "Menu" +msgstr "菜单" + +#: functions.php:61 +msgid "" +"Widgets in this area will be shown at the right in the main navigation menu " +"dropdown." +msgstr "在此区域中的小工具将会显示在导航菜单下拉菜单的右侧。" + +#: functions.php:68 +msgctxt "sidebar name" +msgid "Menu 2" +msgstr "菜单 2" + +#: functions.php:70 +msgid "" +"Widgets in this area will be shown at the middle in the main navigation menu " +"dropdown. Will be hidden when submenu items were shown." +msgstr "" +"在此区域中的小工具将会显示在导航菜单下拉菜单的中间。当显示子菜单项时会自动隐" +"藏。" + +#: functions.php:77 +msgctxt "sidebar name" +msgid "Main Sidebar" +msgstr "主要侧栏" + +#: functions.php:79 +msgid "Widgets in this area will be shown on all posts and pages." +msgstr "在此区域中的小工具将会显示在所有的文章和页面中。" + +#: functions.php:86 +msgctxt "sidebar name" +msgid "Above Content" +msgstr "主要内容上方" + +#: functions.php:88 +msgid "Widgets in this area will be shown above the main content." +msgstr "在此区域中的小工具将会显示在主要内容的上方。" + +#: functions.php:95 +msgctxt "sidebar name" +msgid "Below Content" +msgstr "主要内容下方" + +#: functions.php:97 +msgid "Widgets in this area will be shown below the main content." +msgstr "在此区域中的小工具将会显示在主要内容的下方。" + +#: functions.php:104 +msgctxt "sidebar name" +msgid "Footer" +msgstr "页脚" + +#: functions.php:106 +msgid "Widgets in this area will be shown in the footer. Always shows." +msgstr "在此区域中的小工具将会显示在页脚中。此小工具区域始终显示。" + +#: functions.php:113 +msgctxt "sidebar name" +msgid "Footer 2" +msgstr "页脚 2" + +#: functions.php:115 +msgid "" +"Widgets in this area will be shown in the footer to construct a multi column " +"footer. Only shows when the footer is set to display it. Also twice as wide " +"as other footer widget areas." +msgstr "" +"在此区域中的小工具将会在页脚中显示,以形成多栏布局。仅当被设置为显示时才会显" +"示。宽度为其它页脚小工具区域的两倍。" + +#: functions.php:122 +msgctxt "sidebar name" +msgid "Footer 3" +msgstr "页脚 3" + +#: functions.php:124 +msgid "" +"Widgets in this area will be shown in the footer to construct a multi column " +"footer. Only shows when the footer is set to display it." +msgstr "" +"在此区域中的小工具将会在页脚中显示,以形成多栏布局。仅当被设置为显示时才会显" +"示。" + +#: functions.php:136 +msgid "Main Menu" +msgstr "主菜单" + +#: header.php:52 +msgid "Skip to main content" +msgstr "跳转至主要内容" + +#: header.php:61 +msgid "The header image link." +msgstr "页眉图片链接。" + +#. translators: %s: The label of the header image link. +#: header.php:69 +msgid "The image of the header image link to \"%s\"." +msgstr "页眉图片链接,此链接会转至「%s」。" + +#: header.php:73 +msgid "The header image." +msgstr "页眉图片。" + +#: header.php:93 +msgid "Toggle navigation dropdown" +msgstr "展开或收起导航菜单下拉菜单" + +#: header.php:105 +msgid "" +"Here goes the \"Menu 2\" widget area. This text does not trigger anything." +msgstr "以下是「菜单 2」小工具中的小工具。此文本并不会链接到任何内容。" + +#: includes/class-color-palette-control.php:35 +msgctxt "color palette" +msgid "Light" +msgstr "明亮" + +#: includes/class-color-palette-control.php:36 +msgctxt "color palette" +msgid "Dark" +msgstr "暗黑" + +#: includes/class-color-palette-control.php:37 +msgctxt "color palette" +msgid "Galatic" +msgstr "星系" + +#: includes/class-color-palette-control.php:38 +msgctxt "color palette" +msgid "Spring" +msgstr "春光" + +#: includes/class-multi-image-control.php:34 +msgid "No image set" +msgstr "未设置图像" + +#: includes/class-multi-image-control.php:38 +msgid "Add Image" +msgstr "添加图像" + +#: includes/color-definitions.php:31 +msgid "Content Background" +msgstr "内容区域背景色" + +#: includes/color-definitions.php:32 +msgid "Sidebar Background" +msgstr "侧边栏背景色" + +#: includes/color-definitions.php:33 +msgid "L3 Background" +msgstr "L3 背景色" + +#: includes/color-definitions.php:34 +msgid "L1 Text" +msgstr "L1 文本色" + +#: includes/color-definitions.php:35 +msgid "L2 Text" +msgstr "L2 文本色" + +#: includes/color-definitions.php:36 +msgid "Secondary Text" +msgstr "次级文本" + +#: includes/color-definitions.php:37 +msgid "Default" +msgstr "默认颜色" + +#: includes/color-definitions.php:38 +msgid "Link" +msgstr "链接" + +#: includes/color-definitions.php:39 +msgid "Link Hover" +msgstr "悬停链接色" + +#: includes/color-definitions.php:40 +msgid "Tint A" +msgstr "强调色 A" + +#: includes/color-definitions.php:41 +msgid "Tint A Dark" +msgstr "强调色 A(暗)" + +#: includes/color-definitions.php:42 +msgid "Tint B" +msgstr "强调色 B" + +#: includes/color-definitions.php:43 +msgid "Tint C" +msgstr "强调色 A" + +#: includes/color-definitions.php:44 +msgid "Contrast (Light)" +msgstr "对比色(浅)" + +#: includes/color-definitions.php:45 +msgid "Contrast (Dark)" +msgstr "对比色(深)" + +#: includes/color-definitions.php:46 +msgid "Footer Text" +msgstr "页脚文本色" + +#: includes/color-definitions.php:47 +msgid "Footer Background" +msgstr "页脚背景色" + +#: includes/color-definitions.php:48 +msgid "Header Background" +msgstr "页脚背景色" + +#: includes/color-definitions.php:49 +msgid "Navigation Menu Background" +msgstr "导航菜单背景" + +#: includes/color-definitions.php:50 +msgid "Navigation Menu Sidebar Background" +msgstr "导航菜单侧边栏背景" + +#: includes/color-definitions.php:51 +msgid "Navigation Menu" +msgstr "主菜单" + +#: includes/color-definitions.php:55 +msgid "The background color of the main content area." +msgstr "内容区域的背景色(最浅的背景色)。" + +#: includes/color-definitions.php:56 +msgid "The background color of the sidebar." +msgstr "侧边栏的背景色。" + +#: includes/color-definitions.php:57 +msgid "The L3 background color (darkest)." +msgstr "L3 背景色(最深的背景色)。" + +#: includes/color-definitions.php:58 +msgid "The L1 text color (darkest). Less used than the default color." +msgstr "L1 文本色(最深的文本色)。并没有默认颜色那么常用。" + +#: includes/color-definitions.php:59 +msgid "The L2 text color. Rarely used." +msgstr "L2 文本色。极少使用。" + +#: includes/color-definitions.php:60 +msgid "The secondary text color. Should be lighter than the default color." +msgstr "次级文本色。通常情况下比默认文本色浅。" + +#: includes/color-definitions.php:61 +msgid "The default text color." +msgstr "默认文本色。" + +#: includes/color-definitions.php:62 +msgid "The link color." +msgstr "链接的颜色。" + +#: includes/color-definitions.php:63 +msgid "The link color when hovered." +msgstr "当悬停在链接上时,链接的颜色。" + +#: includes/color-definitions.php:64 +msgid "Tint color A. Should be a light color." +msgstr "强调色 A。应当为浅色。" + +#: includes/color-definitions.php:65 +msgid "A darker variant of the tint color A. Only used on the scroll bars." +msgstr "一个强调色 A 的较深版本。仅在滚动条上使用。" + +#: includes/color-definitions.php:66 +msgid "Tint color B. Should be a dark color." +msgstr "强调色 B。应当为深色。" + +#: includes/color-definitions.php:67 +msgid "Tint color C. Should be a *even darker* color." +msgstr "强调色 C。应当为*更深的*深色。" + +#: includes/color-definitions.php:68 +msgid "Text color on a light background. Better keep it as is." +msgstr "在浅色背景上的对比色。最好保留此设置。" + +#: includes/color-definitions.php:69 +msgid "Text color on a dark background. Better keep it as is." +msgstr "在深色背景上的对比色。最好保留此设置。" + +#: includes/color-definitions.php:70 +msgid "The footer text color." +msgstr "页脚文本色。" + +#: includes/color-definitions.php:71 +msgid "The footer background color." +msgstr "页脚背景色。" + +#: includes/color-definitions.php:72 +msgid "The background color of the header." +msgstr "页眉背景色。" + +#: includes/color-definitions.php:73 +msgid "The background color of the navigation menu dropdown." +msgstr "导航菜单下拉菜单的背景色。" + +#: includes/color-definitions.php:74 +msgid "The background color of the sidebar of the navigation menu dropdown." +msgstr "导航菜单下拉菜单的侧边栏的背景颜色。" + +#: includes/color-definitions.php:75 +msgid "The text color of the navigation menu dropdown." +msgstr "导航菜单下拉菜单的文本色。" + +#: includes/customizer.php:20 +msgid "Default Featured Images" +msgstr "默认特色图像" + +#: includes/customizer.php:21 +msgid "" +"The theme can provide the following images as a fallback when there's no " +"featured image set for a post. You can also select where to display those " +"images." +msgstr "" +"主题可以在文章没有特色图像时,根据下方设置显示一个默认图像。您也可以选择要在" +"哪里显示这些图像。" + +#: includes/customizer.php:45 +msgid "Default Images" +msgstr "默认图像" + +#: includes/customizer.php:46 +msgid "" +"Click on \"Add Image\" to add an image. Click on the image to remove it. " +"There's no limit on how many images you can add." +msgstr "" +"单击「新增图像」按钮来添加一个图像。单击图像可以将其移除。对于可以添加的图像" +"数量没有限制。" + +#: includes/customizer.php:49 +msgid "Suggested Images" +msgstr "建议的图像" + +#: includes/customizer.php:50 +msgid "" +"We have prepared some pre-built, generic purpose images for you to choose " +"from. Click on an image will add it into the selection." +msgstr "我们准备了一些通用的图像供您选择。您可以单击图像来将其添加至选择中。" + +#: includes/customizer.php:54 +msgid "Location" +msgstr "位置" + +#: includes/customizer.php:55 +msgid "You may decide if and where should the default image show." +msgstr "您可以选择要在哪些地方显示这些默认图像。" + +#: includes/customizer.php:60 +msgid "Always" +msgstr "总是" + +#: includes/customizer.php:61 +msgid "Archive Page Only" +msgstr "仅在归档页面上显示" + +#: includes/customizer.php:62 +msgid "Single Page Only" +msgstr "仅在文章页面上显示" + +#: includes/customizer.php:63 +msgid "Never" +msgstr "永不" + +#: includes/customizer.php:67 +msgid "Display First Image" +msgstr "显示首张图像" + +#: includes/customizer.php:68 +msgid "" +"The theme can also retrieve the first image in a post if possible. When no " +"image was found, the theme can fallback to the default images set below." +msgstr "" +"主题也可以在可用时,将文章的第一张图像作为特色图像显示。当不存在这样的图像" +"时,主题仍会显示下方设置的默认图像。" + +#: includes/customizer.php:73 includes/customizer.php:126 +#: includes/customizer.php:163 includes/customizer.php:175 +#: includes/customizer.php:518 includes/customizer.php:541 +#: includes/customizer.php:564 includes/customizer.php:575 +#: includes/customizer.php:598 includes/customizer.php:609 +#: includes/customizer.php:620 includes/customizer.php:643 +#: includes/customizer.php:654 includes/customizer.php:665 +#: includes/customizer.php:688 includes/customizer.php:711 +#: includes/customizer.php:722 includes/customizer.php:740 +#: includes/customizer.php:751 includes/customizer.php:762 +msgid "Yes" +msgstr "是" + +#: includes/customizer.php:74 includes/customizer.php:127 +#: includes/customizer.php:164 includes/customizer.php:176 +#: includes/customizer.php:508 includes/customizer.php:519 +#: includes/customizer.php:531 includes/customizer.php:542 +#: includes/customizer.php:554 includes/customizer.php:565 +#: includes/customizer.php:576 includes/customizer.php:588 +#: includes/customizer.php:599 includes/customizer.php:610 +#: includes/customizer.php:621 includes/customizer.php:633 +#: includes/customizer.php:644 includes/customizer.php:655 +#: includes/customizer.php:666 includes/customizer.php:678 +#: includes/customizer.php:689 includes/customizer.php:701 +#: includes/customizer.php:712 includes/customizer.php:723 +#: includes/customizer.php:741 includes/customizer.php:752 +#: includes/customizer.php:763 includes/customizer.php:775 +msgid "No" +msgstr "否" + +#: includes/customizer.php:89 +msgid "Color Palettes" +msgstr "调色板" + +#: includes/customizer.php:90 +msgid "" +"We had prepared some fine tuned color palettes for you. Select an option and " +"it will automatically apply the palette to your site." +msgstr "我们为您准备好了一些调色板。只需单击即可应用到整个站点。" + +#: includes/customizer.php:121 +msgid "Disable Shadows" +msgstr "关闭阴影" + +#: includes/customizer.php:122 +msgid "" +"This option lets you disable the shadow on the site. It should only affect " +"the shadow created by the theme." +msgstr "此选项允许您关闭您站点上的阴影。此选项应当仅影响由主题设置的阴影。" + +#: includes/customizer.php:130 +msgid "" +"The default background setting from the WordPress core. If set, it will " +"blend with the content & sidebar background colors set below." +msgstr "" +"由 WordPress 核心创建的默认背景颜色设置。当此选项被设置时,将会与下方的主要内" +"容和侧边栏背景颜色设置进行混合。" + +#: includes/customizer.php:131 +msgid "" +"The default header text setting from the WordPress core. Used on the header " +"and the toggle button." +msgstr "由 WordPress 核心创建的默认页眉颜色设置。在页眉和导航菜单切换按钮上使用。" + +#. translators: This line is special. The part before
      is the description of the section, while the rest is the option name. +#: includes/customizer.php:136 +msgid "" +"Below are some metadatas that you may configure whether to display or not." +"
      Description" +msgstr "下面是一些您可以选择显示或隐藏的元数据。
      描述" + +#: includes/customizer.php:139 +msgid "Email address" +msgstr "电子邮件地址" + +#: includes/customizer.php:187 +msgctxt "customizer panel" +msgid "Layout" +msgstr "布局" + +#: includes/customizer.php:188 +msgid "Here you may configure how different pages on your site looks like." +msgstr "在这里您可以配置您站点上的不同页面的显示方式。" + +#: includes/customizer.php:195 +msgctxt "customizer section" +msgid "Blog Page" +msgstr "博客页" + +#: includes/customizer.php:196 +msgid "Here you may customize the layout of your blog page." +msgstr "在这里您可以配置您站点上的博客页的显示方式。" + +#: includes/customizer.php:202 +msgctxt "customizer section" +msgid "Front Page" +msgstr "首页" + +#: includes/customizer.php:203 +msgid "" +"Here you may customize the layout of your front page. Only takes effect when " +"using a static front page." +msgstr "在这里您可以配置您站点上的首页的显示方式。仅当配置了静态首页时才会生效。" + +#: includes/customizer.php:209 +msgctxt "customizer section" +msgid "Archives" +msgstr "归档页" + +#: includes/customizer.php:210 +msgid "Here you may customize the layout of your archive pages." +msgstr "在这里您可以配置您站点上的归档页的显示方式。" + +#: includes/customizer.php:216 +msgctxt "customizer section" +msgid "Search Results" +msgstr "搜索结果页" + +#: includes/customizer.php:217 +msgid "Here you may customize the layout of your search result pages." +msgstr "在这里您可以配置您站点上的搜索结果页的显示方式。" + +#: includes/customizer.php:223 +msgctxt "customizer section" +msgid "Author Pages" +msgstr "作者页" + +#: includes/customizer.php:224 +msgid "Here you may customize the layout of your author pages." +msgstr "在这里您可以配置您站点上的作者页的显示方式。" + +#: includes/customizer.php:230 +msgctxt "customizer section" +msgid "Single Posts" +msgstr "文章" + +#: includes/customizer.php:231 +msgid "Here you may customize the layout of your posts." +msgstr "在这里您可以配置您站点上的文章的显示方式。" + +#: includes/customizer.php:237 +msgctxt "customizer section" +msgid "Pages" +msgstr "独立页面" + +#: includes/customizer.php:238 +msgid "Here you may customize the layout of your pages." +msgstr "在这里您可以配置您站点上的独立页面的显示方式。" + +#: includes/customizer.php:244 +msgctxt "customizer section" +msgid "Interface & Elements" +msgstr "界面与元素" + +#: includes/customizer.php:245 +msgid "" +"You may customize your site's interface and the elements displayed here." +msgstr "您可以在此配置您站点的界面和要显示的元素。" + +#: includes/customizer.php:250 +msgctxt "customizer section" +msgid "Footer" +msgstr "页脚" + +#: includes/customizer.php:251 +msgid "You may customize how your footer looks like here." +msgstr "您可以在此配置您站点的页脚。" + +#: includes/customizer.php:448 templates/loop.php:96 +msgid "Read More" +msgstr "阅读更多" + +#: includes/customizer.php:489 +msgid "Header Image Link" +msgstr "页眉图像链接" + +#: includes/customizer.php:490 +msgid "" +"You may link the header image to a URL. Leave blank if you do not want to do " +"so." +msgstr "您可以将页眉图像链接至一个 URL。如果您不希望这样做,请留空。" + +#: includes/customizer.php:496 +msgid "Header Image Label" +msgstr "页眉图像标签" + +#: includes/customizer.php:497 +msgid "" +"You may provide a description of your header image. Also will become the " +"label of the link if set. Should be set for better accessibility." +msgstr "" +"您可以在此为您的页眉图像提供一个标签。如果设置了页眉图像链接,则也会在链接中" +"使用。出于可访问性考虑,建议设置该项。" + +#: includes/customizer.php:503 includes/customizer.php:526 +#: includes/customizer.php:549 includes/customizer.php:583 +#: includes/customizer.php:628 includes/customizer.php:673 +#: includes/customizer.php:696 +msgctxt "layout" +msgid "Sidebar" +msgstr "侧栏" + +#: includes/customizer.php:504 includes/customizer.php:527 +#: includes/customizer.php:550 includes/customizer.php:584 +#: includes/customizer.php:629 includes/customizer.php:674 +#: includes/customizer.php:697 +msgid "Select whether to display the sidebar, and its location." +msgstr "选择是否要显示侧栏,以及其位置。" + +#: includes/customizer.php:506 includes/customizer.php:529 +#: includes/customizer.php:552 includes/customizer.php:586 +#: includes/customizer.php:631 includes/customizer.php:676 +#: includes/customizer.php:699 +msgid "Left sidebar" +msgstr "侧栏在左" + +#: includes/customizer.php:507 includes/customizer.php:530 +#: includes/customizer.php:553 includes/customizer.php:587 +#: includes/customizer.php:632 includes/customizer.php:677 +#: includes/customizer.php:700 +msgid "Right sidebar" +msgstr "侧栏在右" + +#: includes/customizer.php:515 includes/customizer.php:538 +#: includes/customizer.php:561 includes/customizer.php:595 +#: includes/customizer.php:640 includes/customizer.php:685 +#: includes/customizer.php:708 +msgctxt "layout" +msgid "Header Image" +msgstr "页眉图像" + +#: includes/customizer.php:516 includes/customizer.php:539 +#: includes/customizer.php:562 includes/customizer.php:596 +#: includes/customizer.php:641 includes/customizer.php:686 +#: includes/customizer.php:709 +msgid "Select whether to display the header image." +msgstr "选择是否要显示页眉图像。" + +#: includes/customizer.php:572 +msgctxt "layout" +msgid "Title" +msgstr "标题" + +#: includes/customizer.php:573 +msgid "Select whether to display the archive title." +msgstr "选择是否要显示归档页的标题。" + +#: includes/customizer.php:606 +msgctxt "layout" +msgid "Search Query" +msgstr "搜索词" + +#: includes/customizer.php:607 +msgid "Select whether to display the search query." +msgstr "选择是否要显示搜索关键词。" + +#: includes/customizer.php:617 +msgctxt "layout" +msgid "Search Form" +msgstr "搜索框" + +#: includes/customizer.php:618 +msgid "Select whether to also display the search form." +msgstr "选择是否要显示搜索框。" + +#: includes/customizer.php:651 +msgctxt "layout" +msgid "Author Name" +msgstr "作者名称" + +#: includes/customizer.php:652 +msgid "Select whether to display the author name." +msgstr "选择是否要显示作者名称。" + +#: includes/customizer.php:662 +msgctxt "layout" +msgid "Admin Status" +msgstr "管理员标记" + +#: includes/customizer.php:663 +msgid "" +"Show an indicator in the bottom-right of the avatar if the author is an " +"admin." +msgstr "当作者为管理员时,在其头像的右下角显示一个标记。" + +#: includes/customizer.php:719 +msgid "Scroll to top button" +msgstr "返回页首按钮" + +#: includes/customizer.php:720 +msgid "" +"Whether to display a \"Scroll to top\" button in the bottom-right corner." +msgstr "在页面的右下角显示一个「返回页首」按钮。" + +#: includes/customizer.php:730 +msgid "Excerpt Word Count" +msgstr "摘要字数" + +#: includes/customizer.php:731 +msgid "The word count of the excerpts on any archive page and the blog page." +msgstr "要使用的摘要字数。" + +#: includes/customizer.php:737 +msgid "Auto h2 Label" +msgstr "自动 h2 标记" + +#: includes/customizer.php:738 +msgid "" +"The theme can automatically theme and label the h2 elements in single posts " +"and pages, providing a better visual. May not work well in all " +"circumstances, use with caution." +msgstr "" +"此主题可以自动为 h2 元素进行标记,并提供更好的视觉效果。可能无法在所有情况下" +"正常工作,因此请小心使用。" + +#: includes/customizer.php:748 +msgid "Comment Count" +msgstr "评论数目" + +#: includes/customizer.php:749 +msgid "" +"Whether to display the comment count of the posts listed in an archive page." +msgstr "是否要显示评论数目。" + +#: includes/customizer.php:759 +msgid "Publisher" +msgstr "作者" + +#: includes/customizer.php:760 +msgid "Whether to display the publisher." +msgstr "是否要显示作者。" + +#: includes/customizer.php:770 +msgid "Publish Date" +msgstr "发表日期" + +#: includes/customizer.php:771 +msgid "Whether to display the published date." +msgstr "是否要显示发表日期。" + +#: includes/customizer.php:773 +msgid "Yes, publish time only." +msgstr "是,仅显示发表日期。" + +#: includes/customizer.php:774 +msgid "Yes, and display modified time if possible." +msgstr "是,且如果可能,显示修改日期。" + +#: includes/customizer.php:782 +msgid "Read More Link" +msgstr "阅读更多链接" + +#: includes/customizer.php:783 +msgid "The text for the \"Read More\" links." +msgstr "「阅读更多」链接文本。" + +#: includes/customizer.php:789 +msgid "Thumbnail Images Size" +msgstr "特色图像尺寸" + +#: includes/customizer.php:790 +msgid "" +"Select whether to enable flexible height for your thumbnail images, or use a " +"fixed height." +msgstr "选择是否要使用不定高度的特色图片。" + +#: includes/customizer.php:792 +msgid "Fixed" +msgstr "固定高度" + +#: includes/customizer.php:793 +msgid "Flexible" +msgstr "不定高度" + +#: includes/customizer.php:800 +msgid "Height" +msgstr "高度" + +#: includes/customizer.php:801 +msgid "Enter your desired height here. Should be in pixels." +msgstr "输入您希望使用的特色图片高度。单位为像素。" + +#: includes/customizer.php:807 +msgid "Footer Options" +msgstr "页脚设置" + +#: includes/customizer.php:808 +msgid "Choose what to display in your footer credit section." +msgstr "选择要在页脚的致谢部分中显示什么内容。" + +#: includes/customizer.php:810 +msgid "Both Crystal credits and custom footer text." +msgstr "同时显示 Crystal 致谢内容和自定义页脚文本。" + +#: includes/customizer.php:811 +msgid "Crystal credits only." +msgstr "仅显示 Crystal 致谢内容。" + +#: includes/customizer.php:812 +msgid "Custom footer text only." +msgstr "仅显示自定义页脚文本。" + +#: includes/customizer.php:813 +msgid "Neither." +msgstr "不显示" + +#: includes/customizer.php:820 +msgid "Custom Footer Text" +msgstr "自定义页脚文本" + +#: includes/customizer.php:821 +msgid "" +"Here you may set a custom footer text to be displayed in the footer credits. " +"HTML allowed." +msgstr "您可以在此设置一个要在页脚致谢部分中中显示的自定义文本。允许 HTML。" + +#: includes/customizer.php:827 +msgid "Footer Widget Layout" +msgstr "页脚小工具布局" + +#: includes/customizer.php:828 +msgid "Choose the layout of the footer widgets." +msgstr "选择页脚小工具的布局。" + +#: includes/customizer.php:830 +msgid "One column. Only shows the \"Footer\" widget area." +msgstr "单栏。仅显示「页脚」小工具区域。" + +#: includes/customizer.php:831 +msgid "Two columns. Also shows the \"Footer 2\" widget area." +msgstr "双栏。还会显示「页脚 2」小工具区域。" + +#: includes/customizer.php:832 +msgid "Three columns. Also shows the \"Footer 3\" widget area (aka all areas)." +msgstr "三栏。还会显示「页脚 3」(即显示所有)小工具区域。" + +#: includes/languages.php:10 +msgid "Featured" +msgstr "精选" + +#: includes/languages.php:11 +msgid "Post Author" +msgstr "文章作者" + +#: includes/languages.php:12 +msgid "Admin" +msgstr "管理员" + +#: page.php:24 singular.php:42 templates/loop.php:66 +msgid "Pages: " +msgstr "页面:" + +#. translators: %s: The search query. +#: search.php:16 search.php:40 +msgid "You have searched for: \"%s\"" +msgstr "您搜索了:「%s」" + +#: search.php:25 +msgid "Not finding what you are looking at? You may refine your search below:" +msgstr "找不到您希望查找的内容?您或许可以在下方细化您的搜索:" + +#: search.php:49 +msgid "" +"We are unable to find anything with this query. Try refine your search below:" +msgstr "我们找不到您希望查找的内容。您可以在下方细化您的搜索:" + +#: search.php:56 +msgid "We are unable to find anything with this query." +msgstr "我们找不到您希望查找的内容。" + +#: sidebar-above-content.php:14 sidebar-below-content.php:14 +#: sidebar-footer-2.php:14 sidebar-footer-3.php:14 sidebar-footer.php:14 +#: sidebar-menu-2.php:14 sidebar-menu.php:17 +msgid "Sorry, but no widgets were found in this area." +msgstr "抱歉,但是在此区域中没有找到任何小工具。" + +#: sidebar-above-content.php:15 sidebar-below-content.php:15 +#: sidebar-footer-2.php:15 sidebar-footer-3.php:15 sidebar-footer.php:15 +#: sidebar-menu-2.php:15 sidebar-menu.php:18 sidebar.php:18 +msgid "This message is displayed to administrators only." +msgstr "此消息仅向管理员展示。" + +#: sidebar-menu.php:8 sidebar-menu.php:14 +msgid "" +"Go to the right of the navigation menu, which conntains an extra widget area." +msgstr "将转至导航菜单的右侧,此区域包含额外的小工具区域。" + +#: sidebar-menu.php:12 sidebar-menu.php:21 +msgid "" +"Go to the left of the navigation menu, which is the menu and a menu widget " +"area." +msgstr "转到导航菜单的左侧,包含菜单和一个小工具区域。" + +#: sidebar.php:15 +msgid "Sorry, but no widgets were found in this area. " +msgstr "抱歉,但是在此区域中没有找到任何小工具。 " + +#: sidebar.php:16 +msgid "Some default widgets had been displayed instead." +msgstr "已显示一些默认的小工具。" + +#: sidebar.php:26 +msgid "Archives" +msgstr "归档页" + +#: sidebar.php:33 +msgid "Meta" +msgstr "快速链接" + +#: singular.php:33 templates/loop.php:42 +msgid "" +"The thumbnail image. This is a default image so that it's purely decorative." +msgstr "特色图像。此图像为默认图像,其仅为装饰性的。" + +#: templates/empty.php:3 +msgid "Sorry, but nothing was found at this place." +msgstr "抱歉,但是在此区域中没有找到任何小工具。" + +#. translators: %s: Post title associated with the thumbnail image. +#: templates/loop.php:22 templates/loop.php:39 +msgid "Thumbnail image of %s. Also a link that navigates to it." +msgstr "文章 %s 的特色图片。此图片也将链接到对应的文章。" + +#: templates/loop.php:50 +msgctxt "comment count" +msgid "1 Comment" +msgid_plural "%d Comments" +msgstr[0] "%d 条评论" + +#. translators: %s: Post publish time. +#: templates/loop.php:82 templates/publisher.php:19 +msgid "Published on %s" +msgstr "发表于 %s" + +#. translators: %s: Post last modified time. +#: templates/loop.php:88 templates/publisher.php:25 +msgid "Last modified on %s" +msgstr "最后编辑于 %s" + +#. translators: %s: Post title. +#: templates/loop.php:102 +msgid "Read more of %s" +msgstr "阅读 %s 的更多内容" + +#: templates/metadata.php:12 +msgid "Categories:" +msgstr "分类:" + +#: templates/metadata.php:27 +msgid "Tags:" +msgstr "标签:" + +#: theme.json +msgctxt "Color name" +msgid "Crystal Primary" +msgstr "Crystal 主要颜色" + +#: theme.json +msgctxt "Color name" +msgid "Crystal Secondary" +msgstr "Crystal 次要颜色" + +#: theme.json +msgctxt "Color name" +msgid "Crystal Success" +msgstr "Crystal 成功色" + +#: theme.json +msgctxt "Color name" +msgid "Crystal Warning" +msgstr "Crystal 警告色" + +#: theme.json +msgctxt "Color name" +msgid "Crystal Danger" +msgstr "Crystal 危险色" + +#: theme.json +msgctxt "Color name" +msgid "Crystal Tint" +msgstr "Crystal 强调色" + +#: theme.json +msgctxt "Color name" +msgid "Crystal Tint Alt" +msgstr "Crystal 替代强调色" + +#: theme.json +msgctxt "Color name" +msgid "Crystal Default" +msgstr "Crystal 默认颜色" + +#: theme.json +msgctxt "Color name" +msgid "Crystal Dark Background" +msgstr "Crystal 暗背景色" + +#: theme.json +msgctxt "Color name" +msgid "Crystal White" +msgstr "Crystal 白色" + +#~ msgid "Kaedehara Kazuha" +#~ msgstr "枫原万叶" + +#~ msgid "L1 Background Color" +#~ msgstr "L1 背景色" + +#~ msgid "L2 Background Color" +#~ msgstr "L2 背景色" + +#~ msgid "L3 Text Color" +#~ msgstr "L3 文本色" + +#~ msgid "Link Color" +#~ msgstr "链接色" + +#~ msgid "Tint Color C" +#~ msgstr "强调色 C" + +#~ msgid "The L3 text color (lightest). Rarely used." +#~ msgstr "L3 文本色。极少使用。" + +#~ msgctxt "customizer section" +#~ msgid "Interface" +#~ msgstr "界面" + +#~ msgid "" +#~ "Enter the height you wish to use for the thumbnail images (in pixels). " +#~ "Alternatively, enter \"auto\" if you don't wish to crop the images." +#~ msgstr "" +#~ "输入一个您希望使用的特色图像高度(以像素为单位)。您也可以输入「auto」来禁" +#~ "用对特色图像的剪裁。" + diff --git a/page.php b/page.php new file mode 100644 index 0000000..c5e26fc --- /dev/null +++ b/page.php @@ -0,0 +1,36 @@ + + + + + +
      > + +
      + +
      + +
      +

      +
      + + '

      ' . __('Pages: ', 'minimalistflex') . '' + ) ); ?> +

      +
      + +
      + + + + + \ No newline at end of file diff --git a/readme.txt b/readme.txt new file mode 100644 index 0000000..9f541db --- /dev/null +++ b/readme.txt @@ -0,0 +1,51 @@ +=== MinimalistFlex === +Stable tag: 1.0.0 +Contributors: frank419 +Tags: two-columns ,left-sidebar, right-sidebar, custom-colors, custom-logo, custom-menu, editor-style, featured-images, flexible-header, footer-widgets, sticky-post, theme-options, translation-ready, blog +Tested up to: 6.6 +Requires at least: 4.9 +License: GNU General Public License v3.0 or later +License URI: https://www.gnu.org/licenses/gpl-3.0.html + +MinimalistFlex is an elegant, easy to use theme that aims to +provide a smooth user experience. + +== Description == +MinimalistFlex is a well designed theme that provides as +many options as possible while not being overwhelming. + +MinimalistFlex supports all the features you love: flexible header +images, multiple widget areas, custom layout & colors, and +some exclusive features like setting default featured images. + +MinimalistFlex is tested against many WordPress and PHP versions, +including the latest version as well as older versions +up to WordPress 4.9 and PHP 5.6. + +MinimalistFlex put all kinds of visitors in its heart. MinimalistFlex is +fully responsive, and looks good on very small screens. +We also tried our best to make the theme as accessible as +possible. + +== Frequently Asked Quesions == + += How do I set default featured images? = + +The theme provides a new section, called "Default Featured +Images", located in the customizer, just below "Colors". + +This new section provided some new controls, including some +images from us in case you don't have any good images right +now. + += To what extent can I customize the colors? = + +Almost everything you see on your site can have its color +changed. + +As a bonus, we have 4 pre-built color palettes for you. + +== Changelog == + += 1.0.0 = +* Initial release. \ No newline at end of file diff --git a/screenshot.jpg b/screenshot.jpg new file mode 100644 index 0000000..1eae414 Binary files /dev/null and b/screenshot.jpg differ diff --git a/search.php b/search.php new file mode 100644 index 0000000..c0d62b0 --- /dev/null +++ b/search.php @@ -0,0 +1,63 @@ + + + + + + + + + + + + diff --git a/sidebar-above-content.php b/sidebar-above-content.php new file mode 100644 index 0000000..127349c --- /dev/null +++ b/sidebar-above-content.php @@ -0,0 +1,18 @@ + + + +
        + +
      + +
        +
      • + + +
      • +
      + \ No newline at end of file diff --git a/sidebar-below-content.php b/sidebar-below-content.php new file mode 100644 index 0000000..cc8f5e5 --- /dev/null +++ b/sidebar-below-content.php @@ -0,0 +1,18 @@ + + + +
        + +
      + +
        +
      • + + +
      • +
      + \ No newline at end of file diff --git a/sidebar-footer-2.php b/sidebar-footer-2.php new file mode 100644 index 0000000..e32be8f --- /dev/null +++ b/sidebar-footer-2.php @@ -0,0 +1,18 @@ + + + + + + + \ No newline at end of file diff --git a/sidebar-footer-3.php b/sidebar-footer-3.php new file mode 100644 index 0000000..266a73c --- /dev/null +++ b/sidebar-footer-3.php @@ -0,0 +1,18 @@ + + + + + + + \ No newline at end of file diff --git a/sidebar-footer.php b/sidebar-footer.php new file mode 100644 index 0000000..e5e0e95 --- /dev/null +++ b/sidebar-footer.php @@ -0,0 +1,18 @@ + + + + + + + \ No newline at end of file diff --git a/sidebar-menu-2.php b/sidebar-menu-2.php new file mode 100644 index 0000000..650aa11 --- /dev/null +++ b/sidebar-menu-2.php @@ -0,0 +1,18 @@ + + + + + + + \ No newline at end of file diff --git a/sidebar-menu.php b/sidebar-menu.php new file mode 100644 index 0000000..ebc1bbd --- /dev/null +++ b/sidebar-menu.php @@ -0,0 +1,22 @@ + + + + > + + < + + > + + < + \ No newline at end of file diff --git a/sidebar.php b/sidebar.php new file mode 100644 index 0000000..b8b4233 --- /dev/null +++ b/sidebar.php @@ -0,0 +1,41 @@ + + + + + + + \ No newline at end of file diff --git a/singular.php b/singular.php new file mode 100644 index 0000000..8fe6604 --- /dev/null +++ b/singular.php @@ -0,0 +1,59 @@ + + + + + + + +
      > + +
      + +
      + '' || minimalistflex_get_first_image() ) && $default_image_location <> 'no' && $default_image_location <> 'archive' ): ?> + + + + + +
      + +
      + +
      +

      + +
      + + '

      ' . __('Pages: ', 'minimalistflex') . '' + ) ); ?> +

      + + + +
      + +

      + +
      + + + + + \ No newline at end of file diff --git a/style.css b/style.css new file mode 100644 index 0000000..efd24c2 --- /dev/null +++ b/style.css @@ -0,0 +1,1667 @@ +/** + * Theme Name: MinimalistFlex + * Description: MinimalistFlex is an elegant, easy to use theme that aims to provide a smooth user experience. As a classic theme, we try to provide as many options as possible, while not being overwhelming. With full support of flexible header images, custom colors and layout, multiple widget areas, you can still customize your site in a lot of ways. Compatibility is also an important affair: MinimalistFlex is tested on many versions with a minimum of WordPress 4.9 and PHP 5.6, ensuring that almost everyone can enjoy the theme without worrying to upgrade. Mobile users are also considered well: MinimalistFlex is fully responsive on its own, and works well even on very small screen sizes! + * Version: 1.0.0 + * Author: Frank419 + * Author URI: https://onmyodev.com/ + * Tags: two-columns ,left-sidebar, right-sidebar, custom-colors, custom-logo, custom-menu, editor-style, featured-images, flexible-header, footer-widgets, sticky-post, theme-options, translation-ready, blog + * Text Domain: minimalistflex + * Tested up to: 6.6 + * Requires at least: 4.9 + * Requires PHP: 5.6 + * License: GNU General Public License v3.0 or later + * License URI: https://www.gnu.org/licenses/gpl-3.0.html + * Copyright: The MinimalistFlex theme, Copyright Frank419 2024. + */ + + /* + * Global styles + */ + +:root { + --minimalistflex-primary: #00aaff; + --minimalistflex-secondary: #666; + --minimalistflex-success: #00dc37; + --minimalistflex-warning: #ebb400; + --minimalistflex-danger: #ff5500; + + --minimalistflex-card-shadow: 0 4px 8px 0 var(--minimalistflex-shadow), 0 6px 20px 0 var(--minimalistflex-shadow); + --minimalistflex-card-shadow-light: 0 4px 8px 0 var(--minimalistflex-shadow-light), 0 6px 20px 0 var(--minimalistflex-shadow-light); + --minimalistflex-inset-shadow: 0 0 8px 8px var(--minimalistflex-shadow) inset; + --minimalistflex-inset-shadow-light: 0 0 8px 8px var(--minimalistflex-shadow-light) inset; + + --minimalistflex-admin: 0px; +} + +::-webkit-scrollbar, +::-webkit-scrollbar:hover { + width: 4px; +} + +::-webkit-scrollbar-track, +::-webkit-scrollbar-track:hover { + background-color: var(--minimalistflex-level1); +} + +::-webkit-scrollbar-thumb { + background-color: var(--minimalistflex-tint); +} + +::-webkit-scrollbar-thumb:hover { + background-color: var(--minimalistflex-tint-dark); +} + +.admin-bar { + --minimalistflex-admin: 32px; +} + +@media screen and (max-width: 782px) { + body.admin-bar { + --minimalistflex-admin: 46px; + } +} + +@media screen and (max-width: 600px) { + body.admin-bar { + --minimalistflex-admin: 0px; + } + + .panel-meta { + flex-wrap: wrap; + } +} + +* { + word-wrap: break-word; + font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; +} + +.minimalistflex-master h1, +.minimalistflex-master h2, +.minimalistflex-master h3, +.minimalistflex-master h4, +.minimalistflex-master h5, +.minimalistflex-master h6, +.minimalistflex-master p, +.minimalistflex-master span, +.minimalistflex-master td, +.minimalistflex-master th, +.minimalistflex-master li, +.minimalistflex-master dl, +.minimalistflex-master dt, +.minimalistflex-master dd, +.minimalistflex-master address, +.minimalistflex-master div { + color: var(--minimalistflex-default); +} + +html { + scroll-behavior: smooth; +} + +body { + padding: 0; + margin: 0; + width: 100vw; + overflow-x: hidden; +} + +body.loading * { + transition: none !important; +} + +body.custom-background .minimalistflex-content { + background-color: color-mix( + in srgb, + var(--minimalistflex-level1), + transparent 50% + ); +} + +body.custom-background .minimalistflex-sidebar { + background-color: color-mix( + in srgb, + var(--minimalistflex-level2), + transparent 25% + ); + box-shadow: none; +} + +textarea, +input { + color: var(--minimalistflex-default); + background-color: var(--minimalistflex-level1); + border: solid 1px var(--minimalistflex-default); + border-radius: none; +} + +.minimalistflex-master a, +.minimalistflex-master a * { + color: var(--minimalistflex-link); +} + +.minimalistflex-master a:hover, +.minimalistflex-master a:hover * { + color: var(--minimalistflex-link-hover); +} + +.warning { + border-top: solid 3px var(--minimalistflex-warning); + background-color: color-mix( + in srgb, + var(--minimalistflex-warning), + transparent 75% + ); + border-radius: 3px; + color: var(--minimalistflex-default); +} + +.warning::before { + content: '!'; + background-color: var(--minimalistflex-warning); + color: #000; + display: inline-flex; + justify-content: center; + align-items: center; + font-size: 0.8em; + width: 1em; + height: 1em; + padding: 0.5em; + border-radius: 1em; +} + +tt, +kbd, +code, +pre { + font-family: Hack, 'Courier New', Courier, monospace; + background-color: #111111; + color: #ffffff; + border-radius: 2px; + padding: 5px 10px; + overflow-x: auto; +} + +code:has(br) { + display: inline-block; +} + +blockquote, +address { + border-left: solid 3px var(--minimalistflex-tint); + padding-left: 1em; +} + +dt { + font-weight: bold; +} + +table { + border: none; + border-collapse: collapse; +} + +table thead, +table tbody tr:not(:last-child) { + border-bottom: solid 1px var(--minimalistflex-default); +} + +table thead, +table tbody tr:nth-child(2n) { + background-color: color-mix( + in srgb, + var(--minimalistflex-level3), + transparent 25% + ) +} + +/* + * Header styles. + */ + +.minimalistflex-header-image { + line-height: 0; +} + +.minimalistflex-header-image img { + width: 100%; + height: auto; + object-fit: cover; +} + +.minimalistflex-header { + position: sticky; + top: var(--minimalistflex-admin); + z-index: 200; + width: 100%; + padding: 0; + margin: 0; + background-color: var(--minimalistflex-header-bg); + display: flex; + align-items: center; + box-shadow: var(--minimalistflex-card-shadow); +} + +.minimalistflex-header * { + color: var(--minimalistflex-header-text); +} + +.custom-logo-link { + width: 2em; + height: 2em; + padding: 1em; +} + +.custom-logo-link img { + width: 100%; + height: 100%; + object-fit: contain; +} + +.blog-title { + font-size: 1em; + margin: 0; + padding: 1em; +} + +.blog-title-link { + color: var(--minimalistflex-header); + text-decoration: none; +} + +.blog-title-link:hover { + text-decoration: solid underline; +} + +.spacer { + flex-grow: 1; +} + +.active #menu-toggle-icon { + background: rgba(0, 0, 0, 0); +} +.active #menu-toggle-icon:before { + margin-top: 0; + transform: rotate(45deg); +} +.active #menu-toggle-icon:after { + margin-top: 0; + transform: rotate(-45deg); +} + +#menu-toggle { + box-sizing: content-box; + display: block; + width: 25px; + height: 25px; + padding: 25px; + margin: 0; + position: relative; + text-decoration: none; + background-color: transparent; + border: none; +} + +#menu-toggle-icon { + display: inline-block; + position: absolute; + top: 36.5px; + left: 25px; + width: 25px; + height: 2px; + background-color: var(--minimalistflex-header); + transition-property: transform; + transition-duration: 300ms; +} + +#menu-toggle-icon:before, +#menu-toggle-icon:after { + content: ''; + display: block; + width: 25px; + height: 2px; + position: absolute; + background: var(--minimalistflex-header); + transition-property: margin, transform; + transition-duration: 300ms; +} + +#menu-toggle-icon:before { + margin-top: -10px; +} + +#menu-toggle-icon:after { + margin-top: 10px; +} + +.minimalistflex-menu-container { + position: absolute; + top: 100%; + left: 0; + z-index: 0; + height: calc(100vh - 75px); + width: 100%; + background-color: var(--minimalistflex-header-menu); + color: var(--minimalistflex-default); + transform: translateX(100vw); + transition: transform .5s; +} + +.minimalistflex-menu { + display: flex; + flex-direction: row; + flex-wrap: nowrap; + justify-content: space-between; +} + +.minimalistflex-menu-container:focus, +.minimalistflex-menu-container:focus-within { + transition: none; +} + +.minimalistflex-menu-container:focus, +.minimalistflex-menu-container:focus-within, +.active > .minimalistflex-menu-container { + transform: translateX(0); +} + +.minimalistflex-menu { + width: 100%; +} + +.minimalistflex-menu > div:first-child { + width: 67%; + height: 100vh; +} + +.minimalistflex-menu > div:first-child > div { + height: 100%; +} + +a[id*=minimalistflex-menu-goto-] { + display: none; +} + +.menu { + padding: 0; + margin: 0; + list-style-type: none; + width: 100%; + height: 100%; + overflow: auto; +} + +.menu a { + display: block; + padding: 2em; + text-decoration: none; + transition: background-color 250ms; +} + +.menu-item > a:focus, +.sub-menu > .menu-item > a:hover, +.menu > .menu-item:hover > a { + background-color: var(--minimalistflex-shadow-light); +} + +.menu-item { + width: 50%; + position: relative; +} + +.sub-menu { + position: absolute; + top: 0; + left: 100%; + width: 100%; + padding: 0; + margin: 0; + height: 0; + list-style-type: none; + z-index: 75; +} + +.menu > .menu-item > .sub-menu { + overflow: auto; +} + +.menu > .menu-item > .sub-menu > .menu-item:last-child { + padding-bottom: 115px; +} + +.sub-menu .menu-item { + width: 100%; +} + +a:focus + .sub-menu, +.sub-menu:has(a:focus), +.menu-item:hover > .sub-menu { + height: auto; + display: flex; + flex-direction: column; + justify-content: space-between; +} + +.menu-item > .sub-menu .sub-menu { + position: relative; + top: 0; + left: 0; + width: 100%; + height: auto; + display: flex; + flex-direction: column; + filter: brightness(90%); +} + +.menu-custom { + width: 33%; + height: calc(100vh - 75px); + padding: 0; + margin: 0; + list-style-type: none; + background-color: var(--minimalistflex-header-sidebar); + box-shadow: var(--minimalistflex-inset-shadow-light); + overflow: auto; +} + +.menu-widgets { + margin: 0; + padding: 0; + list-style-type: none; +} + +.custom-menu-2 { + position: absolute; + width: 33%; + height: 100%; + top: 0; + left: calc(33% + 1em); + overflow: auto; +} + +.menu-2-widgets { + padding: 0; + margin: 0; + list-style-type: none; + padding-bottom: 4em; +} + +div + .menu-2-widgets { + width: 33%; +} + +.menu-2-widget { + padding: 1em; +} + +.minimalistflex-menu > div:has(.menu-item-has-children:focus-within) + .custom-menu-2 > .custom-menu-2-menu, +.minimalistflex-menu > div:has(.menu-item-has-children:hover) + .custom-menu-2 > .custom-menu-2-menu { + display: none; +} + +/* + * Main content styles. + */ + +.minimalistflex-master { + display: flex; + flex-wrap: nowrap; + align-items: stretch; +} + +.minimalistflex-master.minimalistflex-sidebar-layout-right { + flex-direction: row; +} + +.minimalistflex-master.minimalistflex-sidebar-layout-left { + flex-direction: row-reverse; +} + +.minimalistflex-content { + width: 67%; + background-color: var(--minimalistflex-level1); +} + +.minimalistflex-sidebar { + width: 33%; + background-color: var(--minimalistflex-level2); + box-shadow: var(--minimalistflex-inset-shadow-light); +} + +.page-numbers, +.panel { + position: relative; + margin: 10%; + display: flex; + flex-direction: column; +} + +.panel.sticky { + border-top: solid 3px var(--minimalistflex-tint); + padding-top: 2em; +} + +.panel.sticky:has(.panel-image) { + padding-top: 0; +} + +.panel.sticky::before { + content: var(--minimalistflex-featured); + position: absolute; + top: 0; + right: 1em; + padding: 0.5em 1em; + color: var(--minimalistflex-contrast); + background-color: var(--minimalistflex-tint); +} + +.panel-image { + display: block; + text-decoration: none; + width: 100%; + height: var(--minimalistflex-max-height); + box-shadow: var(--minimalistflex-card-shadow); + border-radius: 2px; + overflow: hidden; +} + +.panel.sticky .panel-image { + border-radius: 0 0 2px 2px; +} + +.panel-image > img { + width: 100%; + height: 100%; + object-fit: cover; +} + +.panel-content { + padding: 1em; + position: relative; +} + +.panel-comment-count { + position: absolute; + right: 1em; + top: 1em; + font-size: 12px; + color: var(--minimalistflex-level3-dark); +} + +.panel-title { + padding: 0; + margin: 0; + font-size: 32px; + font-weight: normal; +} + +.panel-main { + border-bottom: solid 1px var(--minimalistflex-shadow); +} + +.panel-meta { + display: flex; + flex-direction: row; + align-items: center; + justify-content: space-between; +} + +.panel-author { + display: flex; + flex-direction: row; + align-items: center; + color: var(--minimalistflex-default); + text-decoration: none; +} + +a.panel-author:hover, +a.panel-author:focus { + text-decoration: solid underline; +} + +.panel-meta .avatar { + width: 40px; + height: 40px; + border-radius: 20px; + margin: 1em; + box-shadow: var(--minimalistflex-card-shadow); +} + +.panel-link { + position: relative; + display: inline-block; + margin: 0; + color: var(--minimalistflex-default); + padding: 1em; + text-decoration: none; + text-align: center; +} + +.panel-link:hover, +.panel-link:focus { + text-decoration: solid underline; +} + +.panel-link::before, +.panel-link::after { + opacity: 0; + content: ''; + position: absolute; + display: block; + right: 0; + top: 50%; + width: 0.5em; + height: 1px; + background-color: var(--minimalistflex-link-hover); + transform-origin: 100%; +} + +.panel-link::before { + transform: rotate(45deg); +} + +.panel-link::after { + transform: rotate(-45deg); +} + +.panel-link:hover::before, +.panel-link:hover::after, +.panel-link:focus::before, +.panel-link:focus::after { + opacity: 1; +} + +.post-nav-links { + flex-direction: row; + margin: 0; + margin-bottom: 1em; + padding: 0; +} + +.post-nav-links-indicator, +.post-page-numbers { + display: inline-block; + padding: 1em; + text-decoration: none; +} + +/* + * Pagination styles. + */ + +.pagination { + padding: 0 4em; +} + +.nav-links { + display: flex; + flex-direction: row; + flex-wrap: nowrap; + justify-content: space-between; + align-items: center; + margin: 1em; +} + +.page-numbers { + padding: 1em; + margin: 0; + flex: 1; + text-align: center; + text-decoration: none; + transition: background-color 250ms; +} + +.page-numbers:not(.current) { + color: var(--minimalistflex-default); +} + +.page-numbers:not(.current):not(.dots):focus, +.page-numbers:not(.current):not(.dots):hover, +.page-numbers.current { + background-color: var(--minimalistflex-tint-alt); + color: var(--minimalistflex-contrast-dark); +} + +.page-numbers:not(.current):not(.dots):active { + filter: brightness(90%); +} + +/* + * Archive page styles. + */ + +/* General archives. */ + +.archive-title { + flex-direction: row; + align-items: center; + justify-content: space-between; +} + +.archive-title > span { + font-size: 0.6em; + display: block; + background-color: var(--minimalistflex-tint); + color: var(--minimalistflex-contrast); + padding: 0.5em 1em; +} + +/* Author archives. */ + +.author-title { + position: relative; + padding: 1em; +} + +.author-details { + margin: 10%; + display: flex; + flex-wrap: wrap; +} + +.author-detail { + padding: 5%; + width: 40%; + transition: box-shadow 250ms, + background-color 250ms; +} + +.author-detail:focus, +.author-detail:hover { + box-shadow: 12px 12px 12px rgba(0, 0, 0, 0.1) inset, + -10px -10px 10px #fff inset; + background-color: var(--minimalistflex-level2); +} + +.author-page-avatar { + position: absolute; + right: 1em; + top: calc(50% - 75px); + width: 150px; + height: 150px; + border-radius: 75px; +} + +.author-page-avatar img { + margin: 0; + border-radius: 75px; + box-shadow: var(--minimalistflex-card-shadow); +} + +.author-admin::after { + font-size: 16px; + content: var(--minimalistflex-author-admin); + background-color: var(--minimalistflex-tint-alt); + width: auto; + height: 32px; + color: var(--minimalistflex-contrast-dark); + position: absolute; + bottom: 0; + right: 0; + border-radius: 16px; + padding: 0 1em; + display: flex; + justify-content: center; + align-items: center; +} + +.author-page-all-posts-title { + margin: 10%; +} + +/* + * Single page styles. + */ + +.singular { + width: 100%; + position: relative; + display: flex; + flex-direction: column; + align-items: center; +} + +.singular-image { + display: block; + width: 70%; + height: var(--minimalistflex-max-height); + margin: 2em; + box-shadow: var(--minimalistflex-card-shadow); + border-radius: 2px; + overflow: hidden; +} + +.singular-image > img { + width: 100%; + height: 100%; + object-fit: cover; +} + +.singular-main { + width: 50%; + padding: 2em; + line-height: 2em; +} + +.publisher { + display: flex; + flex-direction: row; + justify-content: space-between; + align-items: center; + padding: 1em; +} + +.publisher-link { + display: flex; + flex-direction: row; + align-items: center; +} + +.publisher-link img { + height: 2em; + width: 2em; + border-radius: 50%; + box-shadow: var(--minimalistflex-card-shadow); + margin-right: 1em; +} + +.publisher-datetime { + color: var(--minimalistflex-level3-dark); +} + +.singular-author { + padding: 1em; +} + +.author-card { + display: flex; + flex-direction: row; + flex-wrap: nowrap; + justify-content: space-between; +} + +.author-avatar img { + border-radius: 50%; + box-shadow: var(--minimalistflex-card-shadow); +} + +.author-description { + display: flex; + flex-direction: column; + padding: 1em; +} + +a.author-link { + display: inline; + color: var(--minimalistflex-default); + text-decoration: none; + font-weight: bold; +} + +.author-link:focus, +.author-link:hover { + text-decoration: solid underline; +} + +.singular-meta { + padding: 1em; +} + +.singular-categories { + display: flex; + flex-direction: row; + flex-wrap: wrap; + align-items: center; +} + +.categories-indicator { + color: var(--minimalistflex-default); + margin-right: 1em; +} + +.singular-category a { + display: block; + background-color: var(--minimalistflex-tint-alt); + color: var(--minimalistflex-contrast-dark) !important; + text-decoration: none; + padding: 0.3em 1em; + margin: 5px; +} + +.singular-tag a { + background-color: transparent; + color: var(--minimalistflex-link) !important; + padding: 0; +} + +/* + * Comment styles. + */ + +.no-comments { + margin-bottom: 4em; +} + +.comments-area { + width: 70%; + margin-bottom: 4em; +} + +.comment-list { + padding: 0; + margin: 0; + list-style-type: none; +} + +.comment-list .children { + margin: 0; + list-style-type: none; + margin-left: 1em; +} + +.comment { + position: relative; +} + +.comment.bypostauthor { + border-top: solid 3px var(--minimalistflex-tint); +} + +.comment.bypostauthor::after { + content: var(--minimalistflex-author); + display: block; + background-color: var(--minimalistflex-tint); + color: var(--minimalistflex-contrast); + position: absolute; + top: 0; + right: 1em; + padding: 0.25em 0.5em; +} + +.fn > a { + color: var(--minimalistflex-default); +} + +.says { + display: none; +} + +.comment-meta { + margin: 1em 0; +} + +.comment-metadata * { + font-size: 12px; + color: var(--minimalistflex-level3-dark) !important; + text-decoration: none; +} + +.comment-body { + margin: 0; + padding: 2em; + position: relative; +} + +.comment-author > .avatar { + position: absolute; + top: -20px; + left: -20px; + border-radius: 20px; + box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); +} + +.comment-form { + display: flex; + flex-direction: column; +} + +.required { + color: var(--minimalistflex-danger); +} + +.comment-awaiting-moderation { + font-size: 12px; + color: var(--minimalistflex-danger); + margin: 1em 0; +} + +.logged-in-as, +.comment-notes { + font-size: 12px; + color: var(--minimalistflex-level3-dark); +} + +.comment-reply-title, +p[class*=comment-form-] { + display: flex; + justify-content: space-between; +} + +#comment { + max-width: 50%; +} + +.form-submit > input[type=submit] { + font-size: 16px; + padding: 1em; + border-radius: 0; + border: none; + background-color: var(--minimalistflex-tint); + color: var(--minimalistflex-contrast); +} + +/* + * Search styles. + */ + +.search-form { + display: flex; + flex-wrap: wrap; +} + +.search-form label { + display: flex; + flex-grow: 1; + max-width: 100%; +} + +.search-field { + flex-grow: 2; + padding: 1em; + max-width: 100%; + background-color: var(--minimalistflex-level1); + color: var(--minimalistflex-default); + border: solid 1px var(--minimalistflex-default); +} + +.search-submit { + flex-grow: 1; + border: none; + border-radius: 0; + background-color: var(--minimalistflex-tint); + color: var(--minimalistflex-contrast); + padding: 1em 2em; +} + +/* + * Sidebar & general widget styles. + */ + +.sidebar { + padding: 0; + margin: 0; + list-style-type: none; + overflow: auto; + position: relative; + display: flex; + flex-direction: column; + align-items: baseline; +} + +.sidebar > li { + margin: 1em; + padding: 1em; +} + +.above-content-widgets, +.below-content-widgets { + padding: 0; + margin: 0; +} + +.panel.widget { + padding: 1em; +} + +.widget > * { + width: 100%; +} + +.widget-title { + font-size: 28px; + font-weight: normal; + padding-bottom: 14px; +} + +.widget select { + color: var(--minimalistflex-default); + background-color: var(--minimalistflex-level1); + border: none; + padding: 0.5em; + width: 100%; +} + +.widget ul { + list-style-type: none; + padding: 0; +} + +.widget li { + font-size: 16px; + padding: 0.5em; +} + +.widget .menu-item { + display: block; + width: auto; +} + +.widget .menu-item a { + background-color: transparent !important; +} + +.widget .menu-item a:focus, +.widget .menu-item a:hover { + text-decoration: solid underline; +} + +.widget .sub-menu { + position: relative !important; + top: 0; + left: 0; + height: auto !important; + display: block !important; + width: auto !important; + padding: 0; + margin-left: 5px; +} + +.widget .sub-menu > .menu-item:last-child { + display: block !important; + padding-bottom: 0 !important; +} + +/* + * Specific (classic) widget styles. + */ + +/* The recent posts & comments. */ + +.widget li:not(.recentcomments) { + display: flex; + flex-direction: column; +} + +.widget li a { + padding: 1em 0; +} + +.widget .recentcomments { + color: var(--minimalistflex-default); +} + +.widget .comment-author-link { + display: block; + padding: 1em 0; +} + +/* The calendar. */ + +.widget table { + border-collapse: collapse; + table-layout: fixed; + width: 100%; +} + +.widget table > caption { + padding: 1em 0; +} + +.widget table th, +.widget table td { + padding: 0.5em; + text-align: center; +} + +.widget table td:has(a) { + box-shadow: var(--minimalistflex-card-shadow); + background-color: var(--minimalistflex-tint-alt); +} + +.widget table td#today { + font-weight: bold; + box-shadow: var(--minimalistflex-card-shadow); + background-color: var(--minimalistflex-tint); + color: var(--minimalistflex-contrast) !important; +} + +.widget table td a { + color: var(--minimalistflex-contrast-dark) !important; + font-weight: bold; +} + +.widget table td#today a { + color: var(--minimalistflex-contrast) !important; +} + +.wp-calendar-nav { + display: flex; + justify-content: space-between; + padding: 1em 0; +} + +/* + * The control bar styles. + */ + +.minimalistflex-controls { + position: fixed; + right: 1em; + bottom: 1em; + background-color: var(--minimalistflex-level1); + box-shadow: var(--minimalistflex-card-shadow); + width: 3em; + height: auto; + margin: 0; + padding: 0; + list-style-type: none; + transition: background-color 250ms, + color 250ms; +} + +.minimalistflex-controls:not(:has(li)) { + display: none; +} + +.minimalistflex-controls li + li { + border-top: solid 1px var(--minimalistflex-shadow-light); +} + +.minimalistflex-controls li a { + display: flex; + justify-content: center; + align-items: center; + width: 3em; + height: 3em; + text-decoration: none; + color: var(--minimalistflex-default); + font-weight: bold; + transition: all 250ms; +} + +.minimalistflex-controls li a:hover, +.minimalistflex-controls li a:focus { + background-color: var(--minimalistflex-tint-contrast); + color: var(--minimalistflex-contrast-dark); +} + +/* + * Footer styles. + */ + +.minimalistflex-footer { + padding: 1.5em; + background-color: var(--minimalistflex-footer-bg); + position: relative; +} + +.minimalistflex-footer * { + color: var(--minimalistflex-footer-text); +} + +.minimalistflex-footer-widgets-container { + display: flex; + flex-direction: row; +} + +.footer-widgets { + margin: 0; + padding: 1em; + list-style-type: none; + width: 100%; +} + +.footer-2-widget, +.footer-3-widget, +.footer-widget { + margin: 1em; + padding: 0; +} + +.footer-2-widgets { + margin: 0; + padding: 1em; + list-style-type: none; + width: 200%; +} + +.footer-3-widgets { + margin: 0; + padding: 1em; + list-style-type: none; + width: 100%; +} + +.minimalistflex-footer-credits { + display: flex; + justify-content: space-between; + align-items: center; + flex-wrap: wrap; +} + +.footer-blog-description { + display: flex; + flex-direction: column; +} + +.footer-blog-tagline { + font-size: 12px; +} + +.minimalistflex-footer a { + font-weight: bold; + color: var(--minimalistflex-footer-text) !important; + text-decoration: none; +} + +.minimalistflex-footer a:focus, +.minimalistflex-footer a:hover { + text-decoration: solid underline; +} + +/*------------------------------------------------------------------------------- + WordPress Accessibility +-------------------------------------------------------------------------------*/ + +.screen-reader-text { + border: 0; + clip: rect(1px, 1px, 1px, 1px); + clip-path: inset(50%); + height: 1px; + margin: -1px; + overflow: hidden; + padding: 0; + position: absolute; + width: 1px; + word-wrap: normal !important; +} + +.screen-reader-text:focus { + background-color: #eee; + clip: auto !important; + clip-path: none; + color: #444; + display: block; + font-size: 1em; + height: auto; + left: 5px; + line-height: normal; + padding: 15px 23px 14px; + text-decoration: none; + top: 5px; + width: auto; + z-index: 100000; /* Above WP toolbar. */ +} + +/*------------------------------------------------------------------------------- + WordPress WYSIWYG styles +-------------------------------------------------------------------------------*/ + +.alignnone { + margin: 5px 20px 20px 0; +} + +.aligncenter, div.aligncenter { + display: block; + margin: 5px auto 5px auto; +} + +.alignright { + float: right; + margin: 5px 0 20px 20px; +} + +.alignleft { + float: left; + margin: 5px 20px 20px 0; +} + +.aligncenter { + display: block; + margin: 5px auto 5px auto; +} + +.alignwide { + margin-left: -15%; + width: 130%; +} + +@media only screen and (max-width:480px){ + .single .alignright,.single .alignleft{ + float: none; + } +} + +a img.alignright { + float: right; + margin: 5px 0 20px 20px; +} + +a img.alignnone { + margin: 5px 20px 20px 0; +} + +a img.alignleft { + float: left; + margin: 5px 20px 20px 0; +} + +a img.aligncenter { + display: block; + margin-left: auto; + margin-right: auto; +} + +a img.alignwide { + margin-left: -15%; + width: 130%; +} + +.wp-caption { + max-width: 96%; + /* Image does not overflow the content area */ + padding: 5px 3px 10px; + text-align: center; +} + +.wp-caption.alignnone { + margin: 5px 20px 20px 0; +} + +.wp-caption.alignleft { + margin: 5px 20px 20px 0; +} + +.wp-caption.alignright { + margin: 5px 0 20px 20px; +} + +.wp-caption img { + border: 0 none; + height: auto; + margin: 0; + max-width: 98.5%; + padding: 0; + width: auto; +} + +.wp-caption p.wp-caption-text { + font-size: 11px; + line-height: 17px; + margin: 0; + padding: 0 4px 5px; + color: var(--minimalistflex-secondary); + font-size: 12px; +} + +/* + * Responsive styles handling. + */ + +@media screen and ( max-width: 992px ) { + .singular-main { + width: 70%; + } +} + +@media screen and (max-width: 782px) { + .minimalistflex-master { + flex-direction: column !important; + } + + .minimalistflex-content, + .minimalistflex-sidebar { + width: 100%; + } + + .menu-custom { + width: 100%; + top: var(--minimalistflex-admin); + } + + .minimalistflex-menu-container { + width: 100%; + overflow-x: hidden; + scroll-behavior: smooth; + } + + .minimalistflex-menu > div:first-child { + width: 100%; + height: calc(100vh - 75px); + } + + .minimalistflex-menu > div:first-child > div { + width: 50%; + } + + .minimalistflex-menu { + width: 200%; + } + + .publisher, + .author-details { + flex-wrap: wrap; + } + + .author-detail { + width: 90%; + } + + .custom-menu-2 { + left: calc(50% + 1em); + width: calc(50% - 1em); + } + + .custom-menu-2-menu { + width: 100%; + display: block !important; + } + + .menu-2-widgets > li { + margin: 0; + } + + .menu-2-widgets > *:last-child { + padding-bottom: 75px; + } + + .minimalistflex-menu ul { + list-style-type: none; + padding: 0; + width: 100%; + } + + .minimalistflex-menu li { + font-size: 16px; + padding: 0.5em; + } + + .minimalistflex-menu .menu-item { + display: block; + width: auto; + } + + .minimalistflex-menu > div:first-child > ul.menu > .menu-item:last-child { + padding-bottom: 75px !important; + } + + .minimalistflex-menu .menu-item a { + background-color: transparent !important; + } + + .minimalistflex-menu .menu-item a:focus, + .minimalistflex-menu .menu-item a:hover { + text-decoration: solid underline; + } + + .minimalistflex-menu .sub-menu { + position: relative !important; + top: 0; + left: 0; + height: auto !important; + display: block !important; + width: auto !important; + padding: 0; + margin-left: 5px; + } + + .minimalistflex-menu .sub-menu > .menu-item:last-child { + display: block !important; + padding-bottom: 0 !important; + } + + a[id*=minimalistflex-menu-goto-] { + font-size: 18px; + box-sizing: content-box; + border: none; + border-radius: 0; + background-color: var(--minimalistflex-level1); + color: var(--minimalistflex-default); + position: absolute; + width: 2em; + height: 2em; + display: flex; + justify-content: center; + align-items: center; + top: calc(50% - 1em); + box-shadow: var(--minimalistflex-card-shadow); + text-decoration: none; + font-weight: bold; + transition: background-color 250ms, color 250ms; + } + + a[id*=minimalistflex-menu-goto-]:hover { + background-color: var(--minimalistflex-tint-contrast); + color: var(--minimalistflex-contrast-dark); + } + + #minimalistflex-menu-goto-left { + right: -3em; + } + + #minimalistflex-menu-goto-right { + right: 1em; + } + + .minimalistflex-header:not(.active) a[id*=minimalistflex-menu-goto-] { + display: none !important; + } + + .singular-main { + width: 80%; + } + + .minimalistflex-footer-widgets-container { + flex-wrap: wrap; + } + + .minimalistflex-footer-widgets-container > * { + width: 100%; + } +} + +@media screen and ( max-width: 600px ) { + .singular-main { + width: calc(100% - 4em); + } +} \ No newline at end of file diff --git a/templates/author.php b/templates/author.php new file mode 100644 index 0000000..870d488 --- /dev/null +++ b/templates/author.php @@ -0,0 +1,18 @@ + + + +
      +
      +
      + +
      +
      + +

      +
      +
      +
      \ No newline at end of file diff --git a/templates/empty.php b/templates/empty.php new file mode 100644 index 0000000..4dab672 --- /dev/null +++ b/templates/empty.php @@ -0,0 +1,5 @@ +
      +

      + +

      +
      \ No newline at end of file diff --git a/templates/index.php b/templates/index.php new file mode 100644 index 0000000..b947a71 --- /dev/null +++ b/templates/index.php @@ -0,0 +1,4 @@ + + + + + +
      > + + + + + '' || minimalistflex_get_first_image() ) && $default_image_location <> 'no' && $default_image_location <> 'single' ): ?> + + + + + + + + + +
      + +
      + +
      + +

      +
      + + '

      ' . __('Pages: ', 'minimalistflex') . '' + ) ); ?> +

      +
      + + + + + + + + 'no' ): ?> +
      + get_the_date() ): ?> + + + + +
      + + + + + + + +
      +
      +
      + \ No newline at end of file diff --git a/templates/metadata.php b/templates/metadata.php new file mode 100644 index 0000000..1b921ff --- /dev/null +++ b/templates/metadata.php @@ -0,0 +1,38 @@ + + +
      + + +
      +
      + +
      + + + +
      + + + +
      +
      + +
      + + + +
      + +
      \ No newline at end of file diff --git a/templates/publisher.php b/templates/publisher.php new file mode 100644 index 0000000..41c9048 --- /dev/null +++ b/templates/publisher.php @@ -0,0 +1,32 @@ + + +
      + + + + + +
      + + 'no' ): ?> + get_the_date() ): ?> + + + + + +
      + +
      \ No newline at end of file diff --git a/theme.json b/theme.json new file mode 100644 index 0000000..c3553eb --- /dev/null +++ b/theme.json @@ -0,0 +1,60 @@ +{ + "$schema": "https://schemas.wp.org/trunk/theme.json", + "version": 2, + "settings": { + "color": { + "palette": [ + { + "color": "#00aaff", + "name": "Crystal Primary", + "slug": "crystal-primary" + }, + { + "color": "#666666", + "name": "Crystal Secondary", + "slug": "crystal-secondary" + }, + { + "color": "#00dc37", + "name": "Crystal Success", + "slug": "crystal-success" + }, + { + "color": "#ebb400", + "name": "Crystal Warning", + "slug": "crystal-warning" + }, + { + "color": "#ff5500", + "name": "Crystal Danger", + "slug": "crystal-danger" + }, + { + "color": "#ffd900", + "name": "Crystal Tint", + "slug": "crystal-tint" + }, + { + "color": "#5b9cff", + "name": "Crystal Tint Alt", + "slug": "crystal-tint-alt" + }, + { + "color": "#000000", + "name": "Crystal Default", + "slug": "crystal-default" + }, + { + "color": "#333333", + "name": "Crystal Dark Background", + "slug": "crystal-dark-bg" + }, + { + "color": "#ffffff", + "name": "Crystal White", + "slug": "crystal-white" + } + ] + } + } +} \ No newline at end of file