Compare commits
35 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dc62038c6d | ||
|
|
856198591a | ||
|
|
4420bc4948 | ||
|
|
13738d3b5f | ||
|
|
139ffa83b6 | ||
|
|
ff3cf5e516 | ||
|
|
6876dc26a0 | ||
|
|
11d7ec19ed | ||
|
|
3a1520d3c1 | ||
|
|
26fa5a72af | ||
|
|
8ab131e720 | ||
|
|
8ae25523dc | ||
|
|
6b21d517c6 | ||
|
|
049b130c14 | ||
|
|
402e1b099c | ||
|
|
95b297e08a | ||
|
|
b4b7d7d98f | ||
|
|
374a17039d | ||
|
|
e8449d269d | ||
|
|
b0f624af0d | ||
|
|
d434f7e360 | ||
|
|
0192f1f2f2 | ||
|
|
3cf6389db6 | ||
|
|
45e080cfba | ||
|
|
82b47c9804 | ||
|
|
c42a057571 | ||
|
|
7f3d6330eb | ||
|
|
7a913f5e83 | ||
|
|
e5f36f4c58 | ||
|
|
6db67ae28b | ||
|
|
57f9d6abea | ||
|
|
3ee6a377f3 | ||
|
|
28007ec356 | ||
|
|
f56c0cccd6 | ||
|
|
6d03abd733 |
30
.github/workflows/add-zip-to-release.yml
vendored
Normal file
30
.github/workflows/add-zip-to-release.yml
vendored
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
name: Generate Installable Plugin or Theme, and Upload as Release Asset
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types: [published]
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Upload Release Asset
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: setup git config
|
||||||
|
run: |
|
||||||
|
git config user.name "GitHub Actions Bot"
|
||||||
|
git config user.email "<>"
|
||||||
|
- name: Create artifact
|
||||||
|
run : |
|
||||||
|
git archive -o minimalistflex-${{ github.ref_name }}.zip --prefix minimalistflex/ HEAD
|
||||||
|
ls
|
||||||
|
- name: Upload artifact
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: minimalistflex-${{ github.ref_name }}
|
||||||
|
path: minimalistflex-${{ github.ref_name }}.zip
|
||||||
|
- name: Upload to release
|
||||||
|
uses: JasonEtco/upload-to-release@master
|
||||||
|
with:
|
||||||
|
args: minimalistflex-${{ github.ref_name }}.zip application/zip
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
34
.github/workflows/cpcs.yml
vendored
Normal file
34
.github/workflows/cpcs.yml
vendored
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
name: ClassicPress Directory Coding Standard checks.
|
||||||
|
|
||||||
|
on: [pull_request, push]
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
phpcs:
|
||||||
|
name: CPCS
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: CPCS get rules
|
||||||
|
run: |
|
||||||
|
wget -O phpcs.xml https://raw.githubusercontent.com/ClassicPress/ClassicPress-Coding-Standards/main/phpcs.xml
|
||||||
|
sed -i '/^\t<!-- start config -->.*/a\
|
||||||
|
<file>.</file>
|
||||||
|
' phpcs.xml
|
||||||
|
sed -i '/MY_DOMAIN/ s//minimalistflex/' phpcs.xml
|
||||||
|
mv phpcs.xml phpcs.xml.dist
|
||||||
|
- name: CPCS checks
|
||||||
|
uses: 10up/wpcs-action@stable
|
||||||
|
with:
|
||||||
|
use_local_config: 'true'
|
||||||
|
enable_warnings: 'true'
|
||||||
|
extra_args: '--report-json=./phpcs.json'
|
||||||
|
- name: Update summary
|
||||||
|
run: |
|
||||||
|
npm i -g github:10up/phpcs-json-to-md
|
||||||
|
phpcs-json-to-md --path ./phpcs.json --output ./phpcs.md
|
||||||
|
cat phpcs.md >> $GITHUB_STEP_SUMMARY
|
||||||
|
if: always()
|
||||||
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
.git export-ignore
|
||||||
|
.gitignore export-ignore
|
||||||
|
.github export-ignore
|
||||||
|
readme.txt export-ignore
|
||||||
8
404.php
8
404.php
@ -8,11 +8,11 @@ if ( !defined( 'WPINC' ) ) {
|
|||||||
|
|
||||||
<div class="singular">
|
<div class="singular">
|
||||||
<div class="singular-main">
|
<div class="singular-main">
|
||||||
<h1 class="404-title"><?php _e( 'You've reached the edge of the world.', 'minimalistflex' ) ?></h1>
|
<h1 class="404-title"><?php esc_html_e( 'You've reached the edge of the world.', 'minimalistflex' ) ?></h1>
|
||||||
<p><?php _e( 'It looks like the page you are looking for doesn't exist.', 'minimalistflex' ) ?></p>
|
<p><?php esc_html_e( 'It looks like the page you are looking for doesn't exist.', 'minimalistflex' ) ?></p>
|
||||||
<p><?php _e( 'What about a search?', 'minimalistflex' ) ?></p>
|
<p><?php esc_html_e( 'What about a search?', 'minimalistflex' ) ?></p>
|
||||||
<?php get_search_form() ?>
|
<?php get_search_form() ?>
|
||||||
<p><a href="javascript:history.go(-1)"><?php _e( 'Go back', 'minimalistflex' ) ?></a></p>
|
<p><a href="javascript:history.go(-1)"><?php esc_html_e( 'Go back', 'minimalistflex' ) ?></a></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
19
README.md
19
README.md
@ -19,6 +19,9 @@ fully responsive, and looks good on very small screens.
|
|||||||
We also tried our best to make the theme as accessible as
|
We also tried our best to make the theme as accessible as
|
||||||
possible.
|
possible.
|
||||||
|
|
||||||
|
The MinimalistFlex WordPress theme, Copyright Frank419 2024.
|
||||||
|
MinimalistFlex is licensed under the terms of GNU General Public License, Version 3.0.
|
||||||
|
|
||||||
## Frequently Asked Quesions
|
## Frequently Asked Quesions
|
||||||
|
|
||||||
### How do I set default featured images?
|
### How do I set default featured images?
|
||||||
@ -39,6 +42,22 @@ As a bonus, we have 4 pre-built color palettes for you.
|
|||||||
|
|
||||||
## Changelog
|
## Changelog
|
||||||
|
|
||||||
|
### 1.1.1
|
||||||
|
* How would I forget the CodeSniffer checks? Anyways, fixed a security issue.
|
||||||
|
|
||||||
|
### 1.1
|
||||||
|
* A little bit new design, as well as fixed some visual issues.
|
||||||
|
* Fixed a bug where the "Below Content" widget area don't display properly.
|
||||||
|
|
||||||
|
### 1.0.5
|
||||||
|
* Addressed a menu styling issue.
|
||||||
|
* Fixed footer credit not being properly displayed.
|
||||||
|
|
||||||
|
### 1.0.4
|
||||||
|
* Addressed a security issue where many places have not used proper escaping / no escaping at all.
|
||||||
|
* Added correct styling for the main content without a sidebar.
|
||||||
|
* Added correct singular placeholders.
|
||||||
|
|
||||||
### 1.0.3
|
### 1.0.3
|
||||||
* Addressed an important issue where the menu items cannot be opened due to an improper usage of e.preventDefault().
|
* Addressed an important issue where the menu items cannot be opened due to an improper usage of e.preventDefault().
|
||||||
|
|
||||||
|
|||||||
26
author.php
26
author.php
@ -8,42 +8,42 @@ if ( !defined( 'WPINC' ) ) {
|
|||||||
|
|
||||||
<?php if ( have_posts() ) : ?>
|
<?php if ( have_posts() ) : ?>
|
||||||
<div class="minimalistflex-author">
|
<div class="minimalistflex-author">
|
||||||
<?php $id = get_the_author_meta( 'ID' ); ?>
|
<?php $mf_id = get_the_author_meta( 'ID' ); ?>
|
||||||
<h1 class="author-title panel">
|
<h1 class="author-title panel">
|
||||||
<?php if ( get_theme_mod( 'minimalistflex_layout_author_title', 'yes' ) === 'yes' ): ?>
|
<?php if ( get_theme_mod( 'minimalistflex_layout_author_title', 'yes' ) === 'yes' ): ?>
|
||||||
<?php the_archive_title() ?>
|
<?php the_archive_title() ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<div class="author-page-avatar<?php if ( user_can( $id, 'administrator' ) && get_theme_mod( 'minimalistflex_layout_author_admin', 'yes' ) === 'yes' ) {
|
<div class="author-page-avatar<?php if ( user_can( $mf_id, 'administrator' ) && get_theme_mod( 'minimalistflex_layout_author_admin', 'yes' ) === 'yes' ) {
|
||||||
echo ' author-admin';
|
echo ' author-admin';
|
||||||
} ?>" aria-hidden="true">
|
} ?>" aria-hidden="true">
|
||||||
<?php echo get_avatar( $id, 150 ); ?>
|
<?php echo get_avatar( $mf_id, 150 ); ?>
|
||||||
</div>
|
</div>
|
||||||
</h1>
|
</h1>
|
||||||
<div class="author-details">
|
<div class="author-details">
|
||||||
<?php
|
<?php
|
||||||
$titles = Array(
|
$mf_titles = Array(
|
||||||
esc_html__( 'User description', 'minimalistflex' ),
|
esc_html__( 'User description', 'minimalistflex' ),
|
||||||
esc_html__( 'Registration time', 'minimalistflex' ),
|
esc_html__( 'Registration time', 'minimalistflex' ),
|
||||||
esc_html__( 'Website', 'minimalistflex' ),
|
esc_html__( 'Website', 'minimalistflex' ),
|
||||||
esc_html__( 'Email', 'minimalistflex' )
|
esc_html__( 'Email', 'minimalistflex' )
|
||||||
);
|
);
|
||||||
$metas = Array(
|
$mf_metas = Array(
|
||||||
'description',
|
'description',
|
||||||
'user_registered',
|
'user_registered',
|
||||||
'user_url',
|
'user_url',
|
||||||
'user_email'
|
'user_email'
|
||||||
);
|
);
|
||||||
$i = 0;
|
$mf_i = 0;
|
||||||
?>
|
?>
|
||||||
<?php while ( $i < count( $metas ) ): ?>
|
<?php while ( $mf_i < 4 ): ?>
|
||||||
<?php $meta = get_the_author_meta( $metas[$i] ); ?>
|
<?php $mf_meta = get_the_author_meta( $mf_metas[$mf_i] ); ?>
|
||||||
<?php if ( strlen( $meta ) && get_theme_mod( 'minimalistflex_layout_author_elements_' . $metas[$i], 'yes' ) === 'yes' ): ?>
|
<?php if ( strlen( $mf_meta ) && get_theme_mod( 'minimalistflex_layout_author_elements_' . $mf_metas[$mf_i], 'yes' ) === 'yes' ): ?>
|
||||||
<div class="author-detail">
|
<div class="author-detail">
|
||||||
<h2><?php echo $titles[$i] ?></h2>
|
<h2><?php echo $mf_titles[$mf_i] // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></h2>
|
||||||
<?php echo esc_html( $meta ) ?>
|
<?php echo esc_html( $mf_meta ) ?>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php $i++; ?>
|
<?php $mf_i++; ?>
|
||||||
<?php endwhile; ?>
|
<?php endwhile; ?>
|
||||||
</div>
|
</div>
|
||||||
<h2 class="author-page-all-posts-title">
|
<h2 class="author-page-all-posts-title">
|
||||||
@ -51,7 +51,7 @@ if ( !defined( 'WPINC' ) ) {
|
|||||||
printf(
|
printf(
|
||||||
/* translators: %s: The author display name. */
|
/* translators: %s: The author display name. */
|
||||||
esc_html__( 'All posts by %s', 'minimalistflex' ),
|
esc_html__( 'All posts by %s', 'minimalistflex' ),
|
||||||
get_the_author_meta( 'display_name' )
|
esc_html( get_the_author_meta( 'display_name' ) )
|
||||||
)
|
)
|
||||||
?>
|
?>
|
||||||
</h2>
|
</h2>
|
||||||
|
|||||||
18
comments.php
18
comments.php
@ -16,15 +16,15 @@ if ( post_password_required() ) {
|
|||||||
<?php
|
<?php
|
||||||
printf(
|
printf(
|
||||||
/* translators: %1$s: Number of comments. %2$s: Post title. */
|
/* translators: %1$s: Number of comments. %2$s: Post title. */
|
||||||
_nx(
|
esc_html( _nx(
|
||||||
'One comment on "%2$s"',
|
'%1$s comment on "%2$s"',
|
||||||
'%1$s comments on "%2$s"',
|
'%1$s comments on "%2$s"',
|
||||||
get_comments_number(),
|
get_comments_number(),
|
||||||
'comments title',
|
'comments title',
|
||||||
'minimalistflex'
|
'minimalistflex'
|
||||||
),
|
) ),
|
||||||
number_format_i18n( get_comments_number() ),
|
esc_html( number_format_i18n( get_comments_number() ) ),
|
||||||
'<span>' . get_the_title() . '</span>'
|
'<span>' . esc_html( get_the_title() ) . '</span>'
|
||||||
);
|
);
|
||||||
?>
|
?>
|
||||||
</h2>
|
</h2>
|
||||||
@ -41,14 +41,14 @@ if ( post_password_required() ) {
|
|||||||
|
|
||||||
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?>
|
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?>
|
||||||
<nav class="nav-links navigation comment-navigation" role="navigation">
|
<nav class="nav-links navigation comment-navigation" role="navigation">
|
||||||
<h1 class="screen-reader-text section-heading"><?php _e( 'Comment navigation', 'minimalistflex' ); ?></h1>
|
<h1 class="screen-reader-text section-heading"><?php esc_html_e( 'Comment navigation', 'minimalistflex' ); ?></h1>
|
||||||
<div class="previous"><?php previous_comments_link( __( '← Older Comments', 'minimalistflex' ) ); ?></div>
|
<div class="previous"><?php previous_comments_link( esc_html__( '← Older Comments', 'minimalistflex' ) ); ?></div>
|
||||||
<div class="next"><?php next_comments_link( __( 'Newer Comments →', 'minimalistflex' ) ); ?></div>
|
<div class="next"><?php next_comments_link( esc_html__( 'Newer Comments →', 'minimalistflex' ) ); ?></div>
|
||||||
</nav>
|
</nav>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<?php if ( ! comments_open() && get_comments_number() ) : ?>
|
<?php if ( ! comments_open() && get_comments_number() ) : ?>
|
||||||
<p class="no-comments"><?php _e( 'Comments are closed.', 'minimalistflex' ); ?></p>
|
<p class="no-comments"><?php esc_html_e( 'Comments are closed.', 'minimalistflex' ); ?></p>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|||||||
36
footer.php
36
footer.php
@ -9,24 +9,24 @@ if ( !defined( 'WPINC' ) ) {
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
if( is_home() ) {
|
if( is_home() ) {
|
||||||
$sidebar = get_theme_mod( 'minimalistflex_layout_home_sidebar', 'right' );
|
$mf_sidebar = get_theme_mod( 'minimalistflex_layout_home_sidebar', 'right' );
|
||||||
} elseif ( is_front_page() ) {
|
} elseif ( is_front_page() ) {
|
||||||
$sidebar = get_theme_mod( 'minimalistflex_layout_front_sidebar', 'right' );
|
$mf_sidebar = get_theme_mod( 'minimalistflex_layout_front_sidebar', 'right' );
|
||||||
} elseif ( is_search() ) {
|
} elseif ( is_search() ) {
|
||||||
$sidebar = get_theme_mod( 'minimalistflex_layout_search_sidebar', 'right' );
|
$mf_sidebar = get_theme_mod( 'minimalistflex_layout_search_sidebar', 'right' );
|
||||||
} elseif ( is_archive() ) {
|
} elseif ( is_archive() ) {
|
||||||
$sidebar = get_theme_mod( 'minimalistflex_layout_archive_sidebar', 'right' );
|
$mf_sidebar = get_theme_mod( 'minimalistflex_layout_archive_sidebar', 'right' );
|
||||||
} elseif( is_author() ) {
|
} elseif( is_author() ) {
|
||||||
$sidebar = get_theme_mod( 'minimalistflex_layout_author_sidebar', 'right' );
|
$mf_sidebar = get_theme_mod( 'minimalistflex_layout_author_sidebar', 'right' );
|
||||||
} elseif( is_single() ) {
|
} elseif( is_single() ) {
|
||||||
$sidebar = get_theme_mod( 'minimalistflex_layout_singular_sidebar', 'right' );
|
$mf_sidebar = get_theme_mod( 'minimalistflex_layout_singular_sidebar', 'right' );
|
||||||
} elseif( is_page() ) {
|
} elseif( is_page() ) {
|
||||||
$sidebar = get_theme_mod( 'minimalistflex_layout_page_sidebar', 'right' );
|
$mf_sidebar = get_theme_mod( 'minimalistflex_layout_page_sidebar', 'right' );
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php if ( $sidebar <> 'no' ): ?>
|
<?php if ( $mf_sidebar <> 'no' ): ?>
|
||||||
<aside class="minimalistflex-sidebar">
|
<aside class="minimalistflex-sidebar">
|
||||||
<?php get_sidebar(); ?>
|
<?php get_sidebar(); ?>
|
||||||
</aside>
|
</aside>
|
||||||
@ -36,19 +36,19 @@ if( is_home() ) {
|
|||||||
|
|
||||||
<ul class="minimalistflex-controls">
|
<ul class="minimalistflex-controls">
|
||||||
<?php if ( get_theme_mod( 'minimalistflex_interface_scroll_top', 'yes' ) === 'yes' ): ?>
|
<?php if ( get_theme_mod( 'minimalistflex_interface_scroll_top', 'yes' ) === 'yes' ): ?>
|
||||||
<li><a href="#" aria-label="<?php esc_attr_e( 'Back to top', 'minimalistflex' ) ?>">:D</a></li>
|
<li><a href="#" aria-label="<?php esc_attr_e( 'Back to top', 'minimalistflex' ) ?>"><i class="dashicons dashicons-arrow-up-alt"></i></a></li>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<footer class="minimalistflex-footer">
|
<footer class="minimalistflex-footer">
|
||||||
<div class="minimalistflex-footer-widgets-container">
|
<div class="minimalistflex-footer-widgets-container">
|
||||||
<?php $sidebars = get_theme_mod( 'minimalistflex_footer_widget_layout', 'one' ); ?>
|
<?php $mf_sidebars = get_theme_mod( 'minimalistflex_footer_widget_layout', 'one' ); ?>
|
||||||
<?php
|
<?php
|
||||||
get_sidebar( 'footer' );
|
get_sidebar( 'footer' );
|
||||||
if ( $sidebars === 'two' || $sidebars === 'three' ) {
|
if ( $mf_sidebars === 'two' || $mf_sidebars === 'three' ) {
|
||||||
get_sidebar( 'footer-2' );
|
get_sidebar( 'footer-2' );
|
||||||
}
|
}
|
||||||
if ( $sidebars === 'three' ) {
|
if ( $mf_sidebars === 'three' ) {
|
||||||
get_sidebar( 'footer-3' );
|
get_sidebar( 'footer-3' );
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
@ -57,25 +57,25 @@ if( is_home() ) {
|
|||||||
<?php if ( display_header_text() ): ?>
|
<?php if ( display_header_text() ): ?>
|
||||||
<div class="footer-blog-description">
|
<div class="footer-blog-description">
|
||||||
<div class="footer-blog-title">
|
<div class="footer-blog-title">
|
||||||
<a href="<?php echo esc_url( home_url() ); ?>" class="blog-title-link"><?php echo get_bloginfo( 'name' ) ?></a>
|
<a href="<?php echo esc_url( home_url() ); ?>" class="blog-title-link"><?php echo wp_kses_data( get_bloginfo( 'name' ) ) ?></a>
|
||||||
</div>
|
</div>
|
||||||
<?php if( get_bloginfo( 'description' ) ): ?>
|
<?php if( get_bloginfo( 'description' ) ): ?>
|
||||||
<div class="footer-blog-tagline">
|
<div class="footer-blog-tagline">
|
||||||
<?php echo get_bloginfo( 'description' ); ?>
|
<?php echo wp_kses_data( get_bloginfo( 'description' ) ) ?>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<div class="footer-credits">
|
<div class="footer-credits">
|
||||||
<?php $footer_type = get_theme_mod( 'minimalistflex_footer_type', 'both' ); ?>
|
<?php $mf_footer_type = get_theme_mod( 'minimalistflex_footer_type', 'both' ); ?>
|
||||||
<?php if ( $footer_type === 'both' || $footer_type === 'custom' ): ?>
|
<?php if ( $mf_footer_type === 'both' || $mf_footer_type === 'custom' ): ?>
|
||||||
<?php echo wp_kses_data( get_theme_mod( 'minimalistflex_footer_text' ) ) ?>
|
<?php echo wp_kses_data( get_theme_mod( 'minimalistflex_footer_text' ) ) ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php if ( $footer_type === 'both' || $footer_type === 'minimalistflex' ): ?>
|
<?php if ( $mf_footer_type === 'both' || $mf_footer_type === 'minimalistflex' ): ?>
|
||||||
<?php
|
<?php
|
||||||
printf(
|
printf(
|
||||||
/* translators: %s: Link to theme author website. */
|
/* translators: %s: Link to theme author website. */
|
||||||
__( 'Theme <a href="%s">MinimalistFlex</a>.', 'minimalistflex' ),
|
wp_kses_data( __( 'Theme <a href="%s">MinimalistFlex</a>.', 'minimalistflex' ) ),
|
||||||
esc_url( 'https://onmyodev.com/' )
|
esc_url( 'https://onmyodev.com/' )
|
||||||
)
|
)
|
||||||
?>
|
?>
|
||||||
|
|||||||
@ -3,9 +3,16 @@ if ( !defined( 'WPINC' ) ) {
|
|||||||
die;
|
die;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function minimalistflex_load_textdomain() {
|
||||||
|
load_theme_textdomain( 'minimalistflex', get_template_directory() . '/languages' );
|
||||||
|
}
|
||||||
|
|
||||||
|
add_action( 'init', 'minimalistflex_load_textdomain' );
|
||||||
|
|
||||||
|
require_once 'includes/customizer.php';
|
||||||
|
|
||||||
function minimalistflex_add_supports() {
|
function minimalistflex_add_supports() {
|
||||||
add_theme_support( 'custom-background', Array(
|
add_theme_support( 'custom-background', Array(
|
||||||
'default-image' => get_template_directory_uri() . '/defaults/bg.png',
|
|
||||||
'default-position-x' => 'center',
|
'default-position-x' => 'center',
|
||||||
'default-position-y' => 'center',
|
'default-position-y' => 'center',
|
||||||
'default-size' => 'cover',
|
'default-size' => 'cover',
|
||||||
@ -16,7 +23,9 @@ function minimalistflex_add_supports() {
|
|||||||
add_theme_support( 'automatic-feed-links' );
|
add_theme_support( 'automatic-feed-links' );
|
||||||
add_theme_support( "align-wide" );
|
add_theme_support( "align-wide" );
|
||||||
add_theme_support( "post-thumbnails" );
|
add_theme_support( "post-thumbnails" );
|
||||||
add_theme_support( 'html5', Array( 'comment-list', 'comment-form', 'search-form', 'gallery', 'caption', 'style', 'script', 'navigation-widgets' ) );
|
if ( !(function_exists( 'classicpress_version' ) && version_compare( classicpress_version(), '2.0.0', '>=' )) ) {
|
||||||
|
add_theme_support( 'html5', Array( 'comment-list', 'comment-form', 'search-form', 'gallery', 'caption', 'style', 'script', 'navigation-widgets' ) );
|
||||||
|
}
|
||||||
add_theme_support( 'custom-logo', Array(
|
add_theme_support( 'custom-logo', Array(
|
||||||
'width' => '80',
|
'width' => '80',
|
||||||
'height' => '80'
|
'height' => '80'
|
||||||
@ -34,12 +43,12 @@ function minimalistflex_add_supports() {
|
|||||||
'abstract' => Array(
|
'abstract' => Array(
|
||||||
'url' => get_template_directory_uri() . '/defaults/header.png',
|
'url' => get_template_directory_uri() . '/defaults/header.png',
|
||||||
'thumbnail_url' => get_template_directory_uri() . '/defaults/header.png',
|
'thumbnail_url' => get_template_directory_uri() . '/defaults/header.png',
|
||||||
'description' => 'An abstract default header image.'
|
'description' => esc_html__( 'An abstract default header image.', 'minimalistflex' )
|
||||||
),
|
),
|
||||||
'lines' => Array(
|
'lines' => Array(
|
||||||
'url' => get_template_directory_uri() . '/defaults/header2.png',
|
'url' => get_template_directory_uri() . '/defaults/header2.png',
|
||||||
'thumbnail_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.'
|
'description' => esc_html__( 'A default header image that contains three lines.', 'minimalistflex' )
|
||||||
)
|
)
|
||||||
) );
|
) );
|
||||||
|
|
||||||
@ -53,6 +62,7 @@ add_action( 'after_setup_theme', 'minimalistflex_add_supports' );
|
|||||||
function minimalistflex_enqueue_files() {
|
function minimalistflex_enqueue_files() {
|
||||||
wp_enqueue_script( 'comment-reply' );
|
wp_enqueue_script( 'comment-reply' );
|
||||||
wp_enqueue_style( 'style', get_stylesheet_uri() );
|
wp_enqueue_style( 'style', get_stylesheet_uri() );
|
||||||
|
wp_enqueue_style( 'dashicons' );
|
||||||
wp_enqueue_script( 'minimalistflex-script', get_template_directory_uri() . '/js/menu.js', array('jquery'), null, true);
|
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' ) {
|
if ( get_theme_mod( 'minimalistflex_interface_autoh2label', 'no' ) == 'yes' ) {
|
||||||
wp_enqueue_style( 'minimalistflex-autoh2label-style', get_template_directory_uri() . '/css/autoh2label.css' );
|
wp_enqueue_style( 'minimalistflex-autoh2label-style', get_template_directory_uri() . '/css/autoh2label.css' );
|
||||||
@ -129,16 +139,13 @@ function minimalistflex_register_menus() {
|
|||||||
add_action( 'init', 'minimalistflex_register_menus' );
|
add_action( 'init', 'minimalistflex_register_menus' );
|
||||||
|
|
||||||
function minimalistflex_dynamic_css() {
|
function minimalistflex_dynamic_css() {
|
||||||
|
require_once 'includes/color-definitions.php';
|
||||||
require_once 'includes/colors.php';
|
require_once 'includes/colors.php';
|
||||||
require_once 'includes/languages.php';
|
require_once 'includes/languages.php';
|
||||||
}
|
}
|
||||||
|
|
||||||
add_action( 'wp_footer', 'minimalistflex_dynamic_css' );
|
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() {
|
function minimalistflex_custom_excerpt_length() {
|
||||||
return intval( get_theme_mod( 'minimalistflex_interface_excerpt', '55' ) );
|
return intval( get_theme_mod( 'minimalistflex_interface_excerpt', '55' ) );
|
||||||
}
|
}
|
||||||
|
|||||||
54
header.php
54
header.php
@ -22,58 +22,58 @@ if ( function_exists( 'wp_body_open' ) ) {
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
if( is_home() ) {
|
if( is_home() ) {
|
||||||
$sidebar = get_theme_mod( 'minimalistflex_layout_home_sidebar', 'right' );
|
$mf_sidebar = get_theme_mod( 'minimalistflex_layout_home_sidebar', 'right' );
|
||||||
$header = get_theme_mod( 'minimalistflex_layout_home_header', 'yes' );
|
$mf_header = get_theme_mod( 'minimalistflex_layout_home_header', 'yes' );
|
||||||
} elseif ( is_front_page() ) {
|
} elseif ( is_front_page() ) {
|
||||||
$sidebar = get_theme_mod( 'minimalistflex_layout_front_sidebar', 'right' );
|
$mf_sidebar = get_theme_mod( 'minimalistflex_layout_front_sidebar', 'right' );
|
||||||
$header = get_theme_mod( 'minimalistflex_layout_front_header', 'yes' );
|
$mf_header = get_theme_mod( 'minimalistflex_layout_front_header', 'yes' );
|
||||||
} elseif ( is_search() ) {
|
} elseif ( is_search() ) {
|
||||||
$sidebar = get_theme_mod( 'minimalistflex_layout_search_sidebar', 'right' );
|
$mf_sidebar = get_theme_mod( 'minimalistflex_layout_search_sidebar', 'right' );
|
||||||
$header = get_theme_mod( 'minimalistflex_layout_search_header', 'yes' );
|
$mf_header = get_theme_mod( 'minimalistflex_layout_search_header', 'yes' );
|
||||||
} elseif ( is_author() ) {
|
} elseif ( is_author() ) {
|
||||||
$sidebar = get_theme_mod( 'minimalistflex_layout_author_sidebar', 'right' );
|
$mf_sidebar = get_theme_mod( 'minimalistflex_layout_author_sidebar', 'right' );
|
||||||
$header = get_theme_mod( 'minimalistflex_layout_author_header', 'yes' );
|
$mf_header = get_theme_mod( 'minimalistflex_layout_author_header', 'yes' );
|
||||||
} elseif ( is_archive() ) {
|
} elseif ( is_archive() ) {
|
||||||
$sidebar = get_theme_mod( 'minimalistflex_layout_archive_sidebar', 'right' );
|
$mf_sidebar = get_theme_mod( 'minimalistflex_layout_archive_sidebar', 'right' );
|
||||||
$header = get_theme_mod( 'minimalistflex_layout_archive_header', 'yes' );
|
$mf_header = get_theme_mod( 'minimalistflex_layout_archive_header', 'yes' );
|
||||||
} elseif ( is_single() ) {
|
} elseif ( is_single() ) {
|
||||||
$sidebar = get_theme_mod( 'minimalistflex_layout_singular_sidebar', 'right' );
|
$mf_sidebar = get_theme_mod( 'minimalistflex_layout_singular_sidebar', 'right' );
|
||||||
$header = get_theme_mod( 'minimalistflex_layout_singular_header', 'yes' );
|
$mf_header = get_theme_mod( 'minimalistflex_layout_singular_header', 'yes' );
|
||||||
} elseif ( is_page() ) {
|
} elseif ( is_page() ) {
|
||||||
$sidebar = get_theme_mod( 'minimalistflex_layout_page_sidebar', 'right' );
|
$mf_sidebar = get_theme_mod( 'minimalistflex_layout_page_sidebar', 'right' );
|
||||||
$header = get_theme_mod( 'minimalistflex_layout_page_header', 'yes' );
|
$mf_header = get_theme_mod( 'minimalistflex_layout_page_header', 'yes' );
|
||||||
}
|
}
|
||||||
|
|
||||||
$link = get_theme_mod( 'minimalistflex_header_link' );
|
$mf_link = get_theme_mod( 'minimalistflex_header_link' );
|
||||||
$label = get_theme_mod( 'minimalistflex_header_label' );
|
$mf_label = get_theme_mod( 'minimalistflex_header_label' );
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<a class="screen-reader-text" href="#main-content"><?php esc_html_e( 'Skip to main content', 'minimalistflex' ) ?></a>
|
<a class="screen-reader-text" href="#main-content"><?php esc_html_e( 'Skip to main content', 'minimalistflex' ) ?></a>
|
||||||
|
|
||||||
<?php if( get_header_image() && $header === 'yes' ): ?>
|
<?php if( get_header_image() && $mf_header === 'yes' ): ?>
|
||||||
<header class="minimalistflex-header-image">
|
<header class="minimalistflex-header-image">
|
||||||
<?php if ( strlen( $link ) ): ?>
|
<?php if ( strlen( $mf_link ) ): ?>
|
||||||
<a href="<?php echo esc_url( $link ) ?>" aria-label="<?php
|
<a href="<?php echo esc_url( $mf_link ) ?>" aria-label="<?php
|
||||||
if ( strlen( $label ) ) {
|
if ( strlen( $mf_label ) ) {
|
||||||
echo esc_attr( $label );
|
echo esc_attr( $mf_label );
|
||||||
} else {
|
} else {
|
||||||
esc_attr_e( 'The header image link.', 'minimalistflex' );
|
esc_attr_e( 'The header image link.', 'minimalistflex' );
|
||||||
}
|
}
|
||||||
?>">
|
?>">
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<img src="<?php header_image(); ?>" aria-label="<?php
|
<img src="<?php header_image(); ?>" aria-label="<?php
|
||||||
if ( strlen( $label ) ) {
|
if ( strlen( $mf_label ) ) {
|
||||||
printf(
|
printf(
|
||||||
/* translators: %s: The label of the header image link. */
|
/* translators: %s: The label of the header image link. */
|
||||||
esc_attr__( 'The image of the header image link to "%s".', 'minimalistflex' ),
|
esc_attr__( 'The image of the header image link to "%s".', 'minimalistflex' ),
|
||||||
esc_attr( $label )
|
esc_attr( $mf_label )
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
esc_attr_e( 'The header image.', 'minimalistflex' );
|
esc_attr_e( 'The header image.', 'minimalistflex' );
|
||||||
}
|
}
|
||||||
?>">
|
?>">
|
||||||
<?php if ( strlen( $link ) ): ?>
|
<?php if ( strlen( $mf_link ) ): ?>
|
||||||
</a>
|
</a>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</header>
|
</header>
|
||||||
@ -81,11 +81,11 @@ $label = get_theme_mod( 'minimalistflex_header_label' );
|
|||||||
|
|
||||||
<header class="minimalistflex-header">
|
<header class="minimalistflex-header">
|
||||||
<?php if ( has_custom_logo() ): ?>
|
<?php if ( has_custom_logo() ): ?>
|
||||||
<?php echo get_custom_logo(); ?>
|
<?php echo get_custom_logo() // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php if ( display_header_text() ): ?>
|
<?php if ( display_header_text() ): ?>
|
||||||
<h1 class="blog-title">
|
<h1 class="blog-title">
|
||||||
<a href="<?php echo esc_url( home_url() ); ?>" class="blog-title-link"><?php echo get_bloginfo( 'name' ) ?></a>
|
<a href="<?php echo esc_url( home_url() ); ?>" class="blog-title-link"><?php echo wp_kses_data( get_bloginfo( 'name' ) ) ?></a>
|
||||||
</h1>
|
</h1>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<div class="spacer"></div>
|
<div class="spacer"></div>
|
||||||
@ -105,7 +105,7 @@ $label = get_theme_mod( 'minimalistflex_header_label' );
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<main class="minimalistflex-master <?php echo 'minimalistflex-sidebar-layout-' . $sidebar ?>">
|
<main class="minimalistflex-master <?php echo 'minimalistflex-sidebar-layout-' . esc_attr( $mf_sidebar ) ?>">
|
||||||
|
|
||||||
<article class="minimalistflex-content" id="main-content">
|
<article class="minimalistflex-content" id="main-content">
|
||||||
|
|
||||||
|
|||||||
@ -16,7 +16,7 @@ class MinimalistFlex_Color_Palette_Custom_Control extends WP_Customize_Control
|
|||||||
public function enqueue()
|
public function enqueue()
|
||||||
{
|
{
|
||||||
wp_enqueue_style('color-palette-style', get_template_directory_uri().'/css/color-palette.css');
|
wp_enqueue_style('color-palette-style', get_template_directory_uri().'/css/color-palette.css');
|
||||||
wp_enqueue_script('color-palette-script', get_template_directory_uri().'/js/color-palette.js', array( 'jquery' ), rand(), true);
|
wp_enqueue_script('color-palette-script', get_template_directory_uri().'/js/color-palette.js', array( 'jquery' ), null, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function render_content()
|
public function render_content()
|
||||||
|
|||||||
@ -17,7 +17,7 @@ class MinimalistFlex_Multi_Image_Custom_Control extends WP_Customize_Control
|
|||||||
{
|
{
|
||||||
wp_enqueue_media();
|
wp_enqueue_media();
|
||||||
wp_enqueue_style('multi-image-style', get_template_directory_uri().'/css/multi-image.css');
|
wp_enqueue_style('multi-image-style', get_template_directory_uri().'/css/multi-image.css');
|
||||||
wp_enqueue_script('multi-image-script', get_template_directory_uri().'/js/multi-image.js', array( 'jquery' ), rand(), true);
|
wp_enqueue_script('multi-image-script', get_template_directory_uri().'/js/multi-image.js', array( 'jquery' ), null, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function render_content()
|
public function render_content()
|
||||||
|
|||||||
@ -20,48 +20,48 @@ $colors = Array(
|
|||||||
'tint-contrast' => '#00281d',
|
'tint-contrast' => '#00281d',
|
||||||
'contrast' => '#000000',
|
'contrast' => '#000000',
|
||||||
'contrast-dark' => '#ffffff',
|
'contrast-dark' => '#ffffff',
|
||||||
'footer-text' => '#ffffff',
|
'footer-text' => '#000000',
|
||||||
'footer-bg' => '#333333'
|
'footer-bg' => '#ffffff'
|
||||||
);
|
);
|
||||||
|
|
||||||
$labels = Array(
|
$labels = Array(
|
||||||
'level1' => __( 'Content Background', 'minimalistflex' ),
|
'level1' => esc_html__( 'Content Background', 'minimalistflex' ),
|
||||||
'level2' => __( 'Sidebar Background', 'minimalistflex' ),
|
'level2' => esc_html__( 'Sidebar Background', 'minimalistflex' ),
|
||||||
'level3-dark' => __( 'Secondary Text', 'minimalistflex' ),
|
'level3-dark' => esc_html__( 'Secondary Text', 'minimalistflex' ),
|
||||||
'default' => __( 'Default', 'minimalistflex' ),
|
'default' => esc_html__( 'Default', 'minimalistflex' ),
|
||||||
'link' => __( 'Link', 'minimalistflex' ),
|
'link' => esc_html__( 'Link', 'minimalistflex' ),
|
||||||
'link-hover' => __( 'Link Hover', 'minimalistflex' ),
|
'link-hover' => esc_html__( 'Link Hover', 'minimalistflex' ),
|
||||||
'tint' => __( 'Tint A', 'minimalistflex' ),
|
'tint' => esc_html__( 'Tint A', 'minimalistflex' ),
|
||||||
'tint-dark' => __( 'Tint A Dark', 'minimalistflex' ),
|
'tint-dark' => esc_html__( 'Tint A Dark', 'minimalistflex' ),
|
||||||
'tint-alt' => __( 'Tint B', 'minimalistflex' ),
|
'tint-alt' => esc_html__( 'Tint B', 'minimalistflex' ),
|
||||||
'tint-contrast' => __( 'Tint C', 'minimalistflex' ),
|
'tint-contrast' => esc_html__( 'Tint C', 'minimalistflex' ),
|
||||||
'contrast' => __( 'Contrast (Light)', 'minimalistflex' ),
|
'contrast' => esc_html__( 'Contrast (Light)', 'minimalistflex' ),
|
||||||
'contrast-dark' => __( 'Contrast (Dark)', 'minimalistflex' ),
|
'contrast-dark' => esc_html__( 'Contrast (Dark)', 'minimalistflex' ),
|
||||||
'footer-text' => __( 'Footer Text', 'minimalistflex' ),
|
'footer-text' => esc_html__( 'Footer Text', 'minimalistflex' ),
|
||||||
'footer-bg' => __( 'Footer Background', 'minimalistflex' ),
|
'footer-bg' => esc_html__( 'Footer Background', 'minimalistflex' ),
|
||||||
'header-bg' => __( 'Header Background', 'minimalistflex' ),
|
'header-bg' => esc_html__( 'Header Background', 'minimalistflex' ),
|
||||||
'header-menu' => __( 'Navigation Menu Background', 'minimalistflex' ),
|
'header-menu' => esc_html__( 'Navigation Menu Background', 'minimalistflex' ),
|
||||||
'header-sidebar' => __( 'Navigation Menu Submenu Background', 'minimalistflex' ),
|
'header-sidebar' => esc_html__( 'Navigation Menu Submenu Background', 'minimalistflex' ),
|
||||||
'header-text' => __( 'Navigation Menu', 'minimalistflex' )
|
'header-text' => esc_html__( 'Navigation Menu', 'minimalistflex' )
|
||||||
);
|
);
|
||||||
|
|
||||||
$desciprtions = Array(
|
$desciprtions = Array(
|
||||||
'level1' => __( 'The background color of the main content area.', 'minimalistflex' ),
|
'level1' => esc_html__( 'The background color of the main content area.', 'minimalistflex' ),
|
||||||
'level2' => __( 'The background color of the sidebar.', 'minimalistflex' ),
|
'level2' => esc_html__( 'The background color of the sidebar.', 'minimalistflex' ),
|
||||||
'level3-dark' => __( 'The secondary text color. Should be lighter than the default color.', 'minimalistflex' ),
|
'level3-dark' => esc_html__( 'The secondary text color. Should be lighter than the default color.', 'minimalistflex' ),
|
||||||
'default' => __( 'The default text color.', 'minimalistflex' ),
|
'default' => esc_html__( 'The default text color.', 'minimalistflex' ),
|
||||||
'link' => __( 'The link color.', 'minimalistflex' ),
|
'link' => esc_html__( 'The link color.', 'minimalistflex' ),
|
||||||
'link-hover' => __( 'The link color when hovered.', 'minimalistflex' ),
|
'link-hover' => esc_html__( 'The link color when hovered.', 'minimalistflex' ),
|
||||||
'tint' => __( 'Tint color A. Should be a light color.', 'minimalistflex' ),
|
'tint' => esc_html__( '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-dark' => esc_html__( '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-alt' => esc_html__( 'Tint color B. Should be a dark color.', 'minimalistflex' ),
|
||||||
'tint-contrast' => __( 'Tint color C. Should be a *even darker* color.', 'minimalistflex' ),
|
'tint-contrast' => esc_html__( 'Tint color C. Should be a *even darker* color.', 'minimalistflex' ),
|
||||||
'contrast' => __( 'Text color on a light background. Better keep it as is.', 'minimalistflex' ),
|
'contrast' => esc_html__( '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' ),
|
'contrast-dark' => esc_html__( 'Text color on a dark background. Better keep it as is.', 'minimalistflex' ),
|
||||||
'footer-text' => __( 'The footer text color.', 'minimalistflex' ),
|
'footer-text' => esc_html__( 'The footer text color.', 'minimalistflex' ),
|
||||||
'footer-bg' => __( 'The footer background color.', 'minimalistflex' ),
|
'footer-bg' => esc_html__( 'The footer background color.', 'minimalistflex' ),
|
||||||
'header-bg' => __( 'The background color of the header.', 'minimalistflex' ),
|
'header-bg' => esc_html__( 'The background color of the header.', 'minimalistflex' ),
|
||||||
'header-menu' => __( 'The background color of the navigation menu dropdown.', 'minimalistflex' ),
|
'header-menu' => esc_html__( 'The background color of the navigation menu dropdown.', 'minimalistflex' ),
|
||||||
'header-sidebar' => __( 'The background color of the submenus of the navigation menu dropdown.', 'minimalistflex' ),
|
'header-sidebar' => esc_html__( 'The background color of the submenus of the navigation menu dropdown.', 'minimalistflex' ),
|
||||||
'header-text' => __( 'The text color of the navigation menu dropdown.', 'minimalistflex' )
|
'header-text' => esc_html__( 'The text color of the navigation menu dropdown.', 'minimalistflex' )
|
||||||
);
|
);
|
||||||
@ -5,24 +5,23 @@ if ( !defined( 'WPINC' ) ) {
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
require_once 'color-definitions.php';
|
require 'color-definitions.php';
|
||||||
global $colors;
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<style>
|
<style id="minimalistflex-color-css">
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
--minimalistflex-header: <?php
|
--minimalistflex-header: <?php
|
||||||
$header_textcolor = get_header_textcolor();
|
$header_textcolor = get_header_textcolor();
|
||||||
if ( preg_match( '/#/', $header_textcolor ) ) {
|
if ( preg_match( '/#/', $header_textcolor ) ) {
|
||||||
echo $header_textcolor;
|
echo esc_html( $header_textcolor );
|
||||||
} else {
|
} else {
|
||||||
echo '#' . $header_textcolor;
|
echo esc_html( '#' . $header_textcolor );
|
||||||
}
|
}
|
||||||
?>;
|
?>;
|
||||||
<?php $color_keys = array_keys( $colors ); ?>
|
<?php $color_keys = array_keys( $colors ); ?>
|
||||||
<?php foreach( $color_keys as $color_key ): ?>
|
<?php foreach( $color_keys as $color_key ): ?>
|
||||||
--minimalistflex-<?php echo $color_key; ?>: <?php echo esc_html( get_theme_mod( 'minimalistflex_color_' . $color_key, $colors[$color_key] ) ); ?>;
|
--minimalistflex-<?php echo esc_html( $color_key ) ?>: <?php echo esc_html( get_theme_mod( 'minimalistflex_color_' . $color_key, $colors[$color_key] ) ); ?>;
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
--minimalistflex-max-height: <?php
|
--minimalistflex-max-height: <?php
|
||||||
if ( get_theme_mod( 'minimalistflex_interface_thumbnail_height', 'flexible' ) === 'fixed' ) {
|
if ( get_theme_mod( 'minimalistflex_interface_thumbnail_height', 'flexible' ) === 'fixed' ) {
|
||||||
|
|||||||
@ -3,21 +3,21 @@ if ( !defined( 'WPINC' ) ) {
|
|||||||
die;
|
die;
|
||||||
}
|
}
|
||||||
|
|
||||||
require_once 'color-definitions.php';
|
|
||||||
require_once 'sanitize-callbacks.php';
|
|
||||||
|
|
||||||
function minimalistflex_customizer_enqueue_scripts() {
|
function minimalistflex_customizer_enqueue_scripts() {
|
||||||
|
require_once 'color-definitions.php';
|
||||||
wp_enqueue_script( 'minimalistflex_color_palette', get_template_directory_uri() . '/js/color-palette.js', Array( 'jquery' ), null, true );
|
wp_enqueue_script( 'minimalistflex_color_palette', get_template_directory_uri() . '/js/color-palette.js', Array( 'jquery' ), null, true );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
require_once 'sanitize-callbacks.php';
|
||||||
|
|
||||||
add_action( 'customize_controls_enqueue_scripts', 'minimalistflex_customizer_enqueue_scripts' );
|
add_action( 'customize_controls_enqueue_scripts', 'minimalistflex_customizer_enqueue_scripts' );
|
||||||
|
|
||||||
function minimalistflex_default_featured_image_register( $wp_customize ) {
|
function minimalistflex_default_featured_image_register( $wp_customize ) {
|
||||||
require_once 'class-multi-image-control.php';
|
require_once 'class-multi-image-control.php';
|
||||||
|
|
||||||
$wp_customize -> add_section( 'minimalistflex_default_featured_image', Array(
|
$wp_customize -> add_section( 'minimalistflex_default_featured_image', Array(
|
||||||
'title' => __( 'Default Featured Images', 'minimalistflex' ),
|
'title' => esc_html__( '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' ),
|
'description' => esc_html__( '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,
|
'priority' => 50,
|
||||||
'capability' => 'edit_theme_options'
|
'capability' => 'edit_theme_options'
|
||||||
) );
|
) );
|
||||||
@ -41,42 +41,43 @@ function minimalistflex_default_featured_image_register( $wp_customize ) {
|
|||||||
'sanitize_callback' => 'minimalistflex_sanitize_radio_cb'
|
'sanitize_callback' => 'minimalistflex_sanitize_radio_cb'
|
||||||
) );
|
) );
|
||||||
$wp_customize -> add_control( new MinimalistFlex_Multi_Image_Custom_Control( $wp_customize, 'minimalistflex_default_featured_images', Array(
|
$wp_customize -> add_control( new MinimalistFlex_Multi_Image_Custom_Control( $wp_customize, 'minimalistflex_default_featured_images', Array(
|
||||||
'label' => __( 'Default Images', 'minimalistflex' ),
|
'label' => esc_html__( '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' ),
|
'description' => esc_html__( '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,
|
'priority' => 20,
|
||||||
'section' => 'minimalistflex_default_featured_image',
|
'section' => 'minimalistflex_default_featured_image',
|
||||||
'suggest_label' => __( 'Suggested Images', 'minimalistflex' ),
|
'suggest_label' => esc_html__( '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_description' => esc_html__( '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' )
|
'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(
|
$wp_customize -> add_control( 'minimalistflex_default_featured_images_location', Array(
|
||||||
'label' => __( 'Location', 'minimalistflex' ),
|
'label' => esc_html__( 'Location', 'minimalistflex' ),
|
||||||
'description' => __( 'You may decide if and where should the default image show.', 'minimalistflex' ),
|
'description' => esc_html__( 'You may decide if and where should the default image show.', 'minimalistflex' ),
|
||||||
'type' => 'radio',
|
'type' => 'radio',
|
||||||
'priority' => 10,
|
'priority' => 10,
|
||||||
'section' => 'minimalistflex_default_featured_image',
|
'section' => 'minimalistflex_default_featured_image',
|
||||||
'choices' => Array(
|
'choices' => Array(
|
||||||
'both' => __( 'Always', 'minimalistflex' ),
|
'both' => esc_html__( 'Always', 'minimalistflex' ),
|
||||||
'archive' => __( 'Archive Page Only', 'minimalistflex' ),
|
'archive' => esc_html__( 'Archive Page Only', 'minimalistflex' ),
|
||||||
'single' => __( 'Single Page Only', 'minimalistflex' ),
|
'single' => esc_html__( 'Single Page Only', 'minimalistflex' ),
|
||||||
'no' => __( 'Never', 'minimalistflex' )
|
'no' => esc_html__( 'Never', 'minimalistflex' )
|
||||||
)
|
)
|
||||||
) );
|
) );
|
||||||
$wp_customize -> add_control( 'minimalistflex_default_featured_images_first_image', Array(
|
$wp_customize -> add_control( 'minimalistflex_default_featured_images_first_image', Array(
|
||||||
'label' => __( 'Display First Image', 'minimalistflex' ),
|
'label' => esc_html__( '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' ),
|
'description' => esc_html__( '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',
|
'type' => 'radio',
|
||||||
'priority' => 15,
|
'priority' => 15,
|
||||||
'section' => 'minimalistflex_default_featured_image',
|
'section' => 'minimalistflex_default_featured_image',
|
||||||
'choices' => Array(
|
'choices' => Array(
|
||||||
'yes' => __( 'Yes', 'minimalistflex' ),
|
'yes' => esc_html__( 'Yes', 'minimalistflex' ),
|
||||||
'no' => __( 'No', 'minimalistflex' ),
|
'no' => esc_html__( 'No', 'minimalistflex' ),
|
||||||
)
|
)
|
||||||
) );
|
) );
|
||||||
}
|
}
|
||||||
add_action( 'customize_register', 'minimalistflex_default_featured_image_register' );
|
add_action( 'customize_register', 'minimalistflex_default_featured_image_register' );
|
||||||
|
|
||||||
function minimalistflex_customize_color_register( $wp_customize ) {
|
function minimalistflex_customize_color_register( $wp_customize ) {
|
||||||
|
require_once 'color-definitions.php';
|
||||||
require_once 'class-color-palette-control.php';
|
require_once 'class-color-palette-control.php';
|
||||||
|
|
||||||
$wp_customize -> add_setting( 'minimalistflex_color_placeholder', Array(
|
$wp_customize -> add_setting( 'minimalistflex_color_placeholder', Array(
|
||||||
@ -85,14 +86,11 @@ function minimalistflex_customize_color_register( $wp_customize ) {
|
|||||||
) );
|
) );
|
||||||
$wp_customize -> add_control( new MinimalistFlex_Color_Palette_Custom_Control( $wp_customize, 'minimalistflex_color_placeholder', Array(
|
$wp_customize -> add_control( new MinimalistFlex_Color_Palette_Custom_Control( $wp_customize, 'minimalistflex_color_placeholder', Array(
|
||||||
'priority' => 1,
|
'priority' => 1,
|
||||||
'label' => __( 'Color Palettes', 'minimalistflex' ),
|
'label' => esc_html__( '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' ),
|
'description' => esc_html__( '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'
|
'section' => 'colors'
|
||||||
) ) );
|
) ) );
|
||||||
|
|
||||||
global $colors;
|
|
||||||
global $labels;
|
|
||||||
global $desciprtions;
|
|
||||||
$color_keys = array_keys( $colors );
|
$color_keys = array_keys( $colors );
|
||||||
foreach( $color_keys as $color_key ) {
|
foreach( $color_keys as $color_key ) {
|
||||||
$wp_customize -> add_setting( 'minimalistflex_color_' . $color_key, Array(
|
$wp_customize -> add_setting( 'minimalistflex_color_' . $color_key, Array(
|
||||||
@ -117,29 +115,27 @@ function minimalistflex_customize_color_register( $wp_customize ) {
|
|||||||
) );
|
) );
|
||||||
$wp_customize -> add_control( 'minimalistflex_color_disable_shadow', Array(
|
$wp_customize -> add_control( 'minimalistflex_color_disable_shadow', Array(
|
||||||
'type' => 'radio',
|
'type' => 'radio',
|
||||||
'label' => __( 'Disable Shadows', 'minimalistflex' ),
|
'label' => esc_html__( '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' ),
|
'description' => esc_html__( 'This option lets you disable the shadow on the site. It should only affect the shadow created by the theme.', 'minimalistflex' ),
|
||||||
'priority' => 2,
|
'priority' => 2,
|
||||||
'section' => 'colors',
|
'section' => 'colors',
|
||||||
'choices' => Array(
|
'choices' => Array(
|
||||||
'yes' => __( 'Yes', 'minimalistflex' ),
|
'yes' => esc_html__( 'Yes', 'minimalistflex' ),
|
||||||
'no' => __( 'No', 'minimalistflex' )
|
'no' => esc_html__( '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( 'background_color' ) -> description = esc_html__( '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' );
|
$wp_customize -> get_control( 'header_textcolor' ) -> description = esc_html__( '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 <br> 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.<br>Description', 'minimalistflex' ),
|
|
||||||
'user_registered' => __( 'Registration time', 'minimalistflex' ),
|
|
||||||
'user_url' => __( 'Website', 'minimalistflex' ),
|
|
||||||
'user_email' => __( 'Email address', 'minimalistflex' )
|
|
||||||
);
|
|
||||||
|
|
||||||
function minimalistflex_customize_author_elements_register( $wp_customize ) {
|
function minimalistflex_customize_author_elements_register( $wp_customize ) {
|
||||||
global $metadatas;
|
$metadatas = Array(
|
||||||
|
/* translators: This line is special. The part before <br> is the description of the section, while the rest is the option name.*/
|
||||||
|
'description' => esc_html__( 'Below are some metadatas that you may configure whether to display or not.<br>Description', 'minimalistflex' ),
|
||||||
|
'user_registered' => esc_html__( 'Registration time', 'minimalistflex' ),
|
||||||
|
'user_url' => esc_html__( 'Website', 'minimalistflex' ),
|
||||||
|
'user_email' => esc_html__( 'Email address', 'minimalistflex' )
|
||||||
|
);
|
||||||
|
|
||||||
$metadata_keys = array_keys( $metadatas );
|
$metadata_keys = array_keys( $metadatas );
|
||||||
foreach( $metadata_keys as $metadata_key ) {
|
foreach( $metadata_keys as $metadata_key ) {
|
||||||
@ -155,12 +151,12 @@ function minimalistflex_customize_author_elements_register( $wp_customize ) {
|
|||||||
'type' => 'radio',
|
'type' => 'radio',
|
||||||
'priority' => 45,
|
'priority' => 45,
|
||||||
'capability' => 'edit_theme_options',
|
'capability' => 'edit_theme_options',
|
||||||
'label' => __( 'Metadatas', 'minimalistflex' ),
|
'label' => esc_html__( 'Metadatas', 'minimalistflex' ),
|
||||||
'description' => $metadatas[$metadata_key],
|
'description' => $metadatas[$metadata_key],
|
||||||
'section' => 'minimalistflex_layout_author',
|
'section' => 'minimalistflex_layout_author',
|
||||||
'choices' => Array(
|
'choices' => Array(
|
||||||
'yes' => __( 'Yes', 'minimalistflex' ),
|
'yes' => esc_html__( 'Yes', 'minimalistflex' ),
|
||||||
'no' => __( 'No', 'minimalistflex' )
|
'no' => esc_html__( 'No', 'minimalistflex' )
|
||||||
)
|
)
|
||||||
) );
|
) );
|
||||||
} else {
|
} else {
|
||||||
@ -171,8 +167,8 @@ function minimalistflex_customize_author_elements_register( $wp_customize ) {
|
|||||||
'description' => $metadatas[$metadata_key],
|
'description' => $metadatas[$metadata_key],
|
||||||
'section' => 'minimalistflex_layout_author',
|
'section' => 'minimalistflex_layout_author',
|
||||||
'choices' => Array(
|
'choices' => Array(
|
||||||
'yes' => __( 'Yes', 'minimalistflex' ),
|
'yes' => esc_html__( 'Yes', 'minimalistflex' ),
|
||||||
'no' => __( 'No', 'minimalistflex' )
|
'no' => esc_html__( 'No', 'minimalistflex' )
|
||||||
)
|
)
|
||||||
) );
|
) );
|
||||||
}
|
}
|
||||||
@ -180,11 +176,10 @@ function minimalistflex_customize_author_elements_register( $wp_customize ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function minimalistflex_customize_register( $wp_customize ) {
|
function minimalistflex_customize_register( $wp_customize ) {
|
||||||
|
|
||||||
// Start adding panels.
|
// Start adding panels.
|
||||||
$wp_customize -> add_panel( 'minimalistflex_layout', Array(
|
$wp_customize -> add_panel( 'minimalistflex_layout', Array(
|
||||||
'title' => _x( 'Layout', 'customizer panel' , 'minimalistflex' ),
|
'title' => _x( 'Layout', 'customizer panel' , 'minimalistflex' ),
|
||||||
'description' => __( 'Here you may configure how different pages on your site looks like.', 'minimalistflex' ),
|
'description' => esc_html__( 'Here you may configure how different pages on your site looks like.', 'minimalistflex' ),
|
||||||
'priority' => 70,
|
'priority' => 70,
|
||||||
'capability' => 'edit_theme_options'
|
'capability' => 'edit_theme_options'
|
||||||
) );
|
) );
|
||||||
@ -192,62 +187,62 @@ function minimalistflex_customize_register( $wp_customize ) {
|
|||||||
// Start adding sections.
|
// Start adding sections.
|
||||||
$wp_customize -> add_section( 'minimalistflex_layout_home', Array(
|
$wp_customize -> add_section( 'minimalistflex_layout_home', Array(
|
||||||
'title' => _x( 'Blog Page', 'customizer section' , 'minimalistflex' ),
|
'title' => _x( 'Blog Page', 'customizer section' , 'minimalistflex' ),
|
||||||
'description' => __( 'Here you may customize the layout of your blog page.', 'minimalistflex' ),
|
'description' => esc_html__( 'Here you may customize the layout of your blog page.', 'minimalistflex' ),
|
||||||
'panel' => 'minimalistflex_layout',
|
'panel' => 'minimalistflex_layout',
|
||||||
'priority' => 10,
|
'priority' => 10,
|
||||||
'capability' => 'edit_theme_options'
|
'capability' => 'edit_theme_options'
|
||||||
) );
|
) );
|
||||||
$wp_customize -> add_section( 'minimalistflex_layout_front', Array(
|
$wp_customize -> add_section( 'minimalistflex_layout_front', Array(
|
||||||
'title' => _x( 'Front Page', 'customizer section' , 'minimalistflex' ),
|
'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' ),
|
'description' => esc_html__( 'Here you may customize the layout of your front page. Only takes effect when using a static front page.', 'minimalistflex' ),
|
||||||
'panel' => 'minimalistflex_layout',
|
'panel' => 'minimalistflex_layout',
|
||||||
'priority' => 12,
|
'priority' => 12,
|
||||||
'capability' => 'edit_theme_options'
|
'capability' => 'edit_theme_options'
|
||||||
) );
|
) );
|
||||||
$wp_customize -> add_section( 'minimalistflex_layout_archive', Array(
|
$wp_customize -> add_section( 'minimalistflex_layout_archive', Array(
|
||||||
'title' => _x( 'Archives', 'customizer section' , 'minimalistflex' ),
|
'title' => _x( 'Archives', 'customizer section' , 'minimalistflex' ),
|
||||||
'description' => __( 'Here you may customize the layout of your archive pages.', 'minimalistflex' ),
|
'description' => esc_html__( 'Here you may customize the layout of your archive pages.', 'minimalistflex' ),
|
||||||
'panel' => 'minimalistflex_layout',
|
'panel' => 'minimalistflex_layout',
|
||||||
'priority' => 15,
|
'priority' => 15,
|
||||||
'capability' => 'edit_theme_options'
|
'capability' => 'edit_theme_options'
|
||||||
) );
|
) );
|
||||||
$wp_customize -> add_section( 'minimalistflex_layout_search', Array(
|
$wp_customize -> add_section( 'minimalistflex_layout_search', Array(
|
||||||
'title' => _x( 'Search Results', 'customizer section' , 'minimalistflex' ),
|
'title' => _x( 'Search Results', 'customizer section' , 'minimalistflex' ),
|
||||||
'description' => __( 'Here you may customize the layout of your search result pages.', 'minimalistflex' ),
|
'description' => esc_html__( 'Here you may customize the layout of your search result pages.', 'minimalistflex' ),
|
||||||
'panel' => 'minimalistflex_layout',
|
'panel' => 'minimalistflex_layout',
|
||||||
'priority' => 17,
|
'priority' => 17,
|
||||||
'capability' => 'edit_theme_options'
|
'capability' => 'edit_theme_options'
|
||||||
) );
|
) );
|
||||||
$wp_customize -> add_section( 'minimalistflex_layout_author', Array(
|
$wp_customize -> add_section( 'minimalistflex_layout_author', Array(
|
||||||
'title' => _x( 'Author Pages', 'customizer section' , 'minimalistflex' ),
|
'title' => _x( 'Author Pages', 'customizer section' , 'minimalistflex' ),
|
||||||
'description' => __( 'Here you may customize the layout of your author pages.', 'minimalistflex' ),
|
'description' => esc_html__( 'Here you may customize the layout of your author pages.', 'minimalistflex' ),
|
||||||
'panel' => 'minimalistflex_layout',
|
'panel' => 'minimalistflex_layout',
|
||||||
'priority' => 20,
|
'priority' => 20,
|
||||||
'capability' => 'edit_theme_options'
|
'capability' => 'edit_theme_options'
|
||||||
) );
|
) );
|
||||||
$wp_customize -> add_section( 'minimalistflex_layout_singular', Array(
|
$wp_customize -> add_section( 'minimalistflex_layout_singular', Array(
|
||||||
'title' => _x( 'Single Posts', 'customizer section' , 'minimalistflex' ),
|
'title' => _x( 'Single Posts', 'customizer section' , 'minimalistflex' ),
|
||||||
'description' => __( 'Here you may customize the layout of your posts.', 'minimalistflex' ),
|
'description' => esc_html__( 'Here you may customize the layout of your posts.', 'minimalistflex' ),
|
||||||
'panel' => 'minimalistflex_layout',
|
'panel' => 'minimalistflex_layout',
|
||||||
'priority' => 25,
|
'priority' => 25,
|
||||||
'capability' => 'edit_theme_options'
|
'capability' => 'edit_theme_options'
|
||||||
) );
|
) );
|
||||||
$wp_customize -> add_section( 'minimalistflex_layout_page', Array(
|
$wp_customize -> add_section( 'minimalistflex_layout_page', Array(
|
||||||
'title' => _x( 'Pages', 'customizer section' , 'minimalistflex' ),
|
'title' => _x( 'Pages', 'customizer section' , 'minimalistflex' ),
|
||||||
'description' => __( 'Here you may customize the layout of your pages.', 'minimalistflex' ),
|
'description' => esc_html__( 'Here you may customize the layout of your pages.', 'minimalistflex' ),
|
||||||
'panel' => 'minimalistflex_layout',
|
'panel' => 'minimalistflex_layout',
|
||||||
'priority' => 30,
|
'priority' => 30,
|
||||||
'capability' => 'edit_theme_options'
|
'capability' => 'edit_theme_options'
|
||||||
) );
|
) );
|
||||||
$wp_customize -> add_section( 'minimalistflex_interface', Array(
|
$wp_customize -> add_section( 'minimalistflex_interface', Array(
|
||||||
'title' => _x( 'Interface & Elements', 'customizer section' , 'minimalistflex' ),
|
'title' => _x( 'Interface & Elements', 'customizer section' , 'minimalistflex' ),
|
||||||
'description' => __( 'You may customize your site\'s interface and the elements displayed here.', 'minimalistflex' ),
|
'description' => esc_html__( 'You may customize your site\'s interface and the elements displayed here.', 'minimalistflex' ),
|
||||||
'priority' => 71,
|
'priority' => 71,
|
||||||
'capability' => 'edit_theme_options'
|
'capability' => 'edit_theme_options'
|
||||||
) );
|
) );
|
||||||
$wp_customize -> add_section( 'minimalistflex_footer', Array(
|
$wp_customize -> add_section( 'minimalistflex_footer', Array(
|
||||||
'title' => _x( 'Footer', 'customizer section', 'minimalistflex' ),
|
'title' => _x( 'Footer', 'customizer section', 'minimalistflex' ),
|
||||||
'description' => __( 'You may customize how your footer looks like here.', 'minimalistflex' ),
|
'description' => esc_html__( 'You may customize how your footer looks like here.', 'minimalistflex' ),
|
||||||
'priority' => 140,
|
'priority' => 140,
|
||||||
'capability' => 'edit_theme_options'
|
'capability' => 'edit_theme_options'
|
||||||
) );
|
) );
|
||||||
@ -444,7 +439,7 @@ function minimalistflex_customize_register( $wp_customize ) {
|
|||||||
'type' => 'theme_mod',
|
'type' => 'theme_mod',
|
||||||
'capability' => 'edit_theme_options',
|
'capability' => 'edit_theme_options',
|
||||||
'transport' => 'refresh',
|
'transport' => 'refresh',
|
||||||
'default' => __( 'Read More', 'minimalistflex' ),
|
'default' => esc_html__( 'Read More', 'minimalistflex' ),
|
||||||
'sanitize_callback' => 'esc_html'
|
'sanitize_callback' => 'esc_html'
|
||||||
) );
|
) );
|
||||||
$wp_customize -> add_setting( 'minimalistflex_interface_thumbnail_height', Array(
|
$wp_customize -> add_setting( 'minimalistflex_interface_thumbnail_height', Array(
|
||||||
@ -464,7 +459,7 @@ function minimalistflex_customize_register( $wp_customize ) {
|
|||||||
'capability' => 'edit_theme_options',
|
'capability' => 'edit_theme_options',
|
||||||
'transport' => 'refresh',
|
'transport' => 'refresh',
|
||||||
'default' => 'both',
|
'default' => 'both',
|
||||||
'sanitize_callback' => 'minimalistflex_sanitize_radio_callback'
|
'sanitize_callback' => 'minimalistflex_sanitize_radio_cb'
|
||||||
) );
|
) );
|
||||||
$wp_customize -> add_setting( 'minimalistflex_footer_text', Array(
|
$wp_customize -> add_setting( 'minimalistflex_footer_text', Array(
|
||||||
'type' => 'theme_mod',
|
'type' => 'theme_mod',
|
||||||
@ -477,7 +472,7 @@ function minimalistflex_customize_register( $wp_customize ) {
|
|||||||
'capability' => 'edit_theme_options',
|
'capability' => 'edit_theme_options',
|
||||||
'transport' => 'refresh',
|
'transport' => 'refresh',
|
||||||
'default' => 'one',
|
'default' => 'one',
|
||||||
'sanitize_callback' => 'minimalistflex_sanitize_radio_callback'
|
'sanitize_callback' => 'minimalistflex_sanitize_radio_cb'
|
||||||
) );
|
) );
|
||||||
|
|
||||||
// Start binding controls (UI).
|
// Start binding controls (UI).
|
||||||
@ -485,26 +480,26 @@ function minimalistflex_customize_register( $wp_customize ) {
|
|||||||
'type' => 'url',
|
'type' => 'url',
|
||||||
'priority' => 50,
|
'priority' => 50,
|
||||||
'section' => 'header_image',
|
'section' => 'header_image',
|
||||||
'label' => __( 'Header Image Link', 'minimalistflex' ),
|
'label' => esc_html__( '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' )
|
'description' => esc_html__( '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(
|
$wp_customize -> add_control( 'minimalistflex_header_label', Array(
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'priority' => 40,
|
'priority' => 40,
|
||||||
'section' => 'header_image',
|
'section' => 'header_image',
|
||||||
'label' => __( 'Header Image Label', 'minimalistflex' ),
|
'label' => esc_html__( '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' )
|
'description' => esc_html__( '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(
|
$wp_customize -> add_control( 'minimalistflex_layout_home_sidebar', Array(
|
||||||
'type' => 'radio',
|
'type' => 'radio',
|
||||||
'priority' => 10,
|
'priority' => 10,
|
||||||
'section' => 'minimalistflex_layout_home',
|
'section' => 'minimalistflex_layout_home',
|
||||||
'label' => _x( 'Sidebar', 'layout' , 'minimalistflex' ),
|
'label' => _x( 'Sidebar', 'layout' , 'minimalistflex' ),
|
||||||
'description' => __( 'Select whether to display the sidebar, and its location.', 'minimalistflex' ),
|
'description' => esc_html__( 'Select whether to display the sidebar, and its location.', 'minimalistflex' ),
|
||||||
'choices' => Array(
|
'choices' => Array(
|
||||||
'left' => __( 'Left sidebar', 'minimalistflex' ),
|
'left' => esc_html__( 'Left sidebar', 'minimalistflex' ),
|
||||||
'right' => __( 'Right sidebar', 'minimalistflex' ),
|
'right' => esc_html__( 'Right sidebar', 'minimalistflex' ),
|
||||||
'no' => __( 'No', 'minimalistflex' )
|
'no' => esc_html__( 'No', 'minimalistflex' )
|
||||||
)
|
)
|
||||||
) );
|
) );
|
||||||
$wp_customize -> add_control( 'minimalistflex_layout_home_header', Array(
|
$wp_customize -> add_control( 'minimalistflex_layout_home_header', Array(
|
||||||
@ -512,10 +507,10 @@ function minimalistflex_customize_register( $wp_customize ) {
|
|||||||
'priority' => 15,
|
'priority' => 15,
|
||||||
'section' => 'minimalistflex_layout_home',
|
'section' => 'minimalistflex_layout_home',
|
||||||
'label' => _x( 'Header Image', 'layout' , 'minimalistflex' ),
|
'label' => _x( 'Header Image', 'layout' , 'minimalistflex' ),
|
||||||
'description' => __( 'Select whether to display the header image.', 'minimalistflex' ),
|
'description' => esc_html__( 'Select whether to display the header image.', 'minimalistflex' ),
|
||||||
'choices' => Array(
|
'choices' => Array(
|
||||||
'yes' => __( 'Yes', 'minimalistflex' ),
|
'yes' => esc_html__( 'Yes', 'minimalistflex' ),
|
||||||
'no' => __( 'No', 'minimalistflex' )
|
'no' => esc_html__( 'No', 'minimalistflex' )
|
||||||
)
|
)
|
||||||
) );
|
) );
|
||||||
$wp_customize -> add_control( 'minimalistflex_layout_front_sidebar', Array(
|
$wp_customize -> add_control( 'minimalistflex_layout_front_sidebar', Array(
|
||||||
@ -523,11 +518,11 @@ function minimalistflex_customize_register( $wp_customize ) {
|
|||||||
'priority' => 10,
|
'priority' => 10,
|
||||||
'section' => 'minimalistflex_layout_front',
|
'section' => 'minimalistflex_layout_front',
|
||||||
'label' => _x( 'Sidebar', 'layout' , 'minimalistflex' ),
|
'label' => _x( 'Sidebar', 'layout' , 'minimalistflex' ),
|
||||||
'description' => __( 'Select whether to display the sidebar, and its location.', 'minimalistflex' ),
|
'description' => esc_html__( 'Select whether to display the sidebar, and its location.', 'minimalistflex' ),
|
||||||
'choices' => Array(
|
'choices' => Array(
|
||||||
'left' => __( 'Left sidebar', 'minimalistflex' ),
|
'left' => esc_html__( 'Left sidebar', 'minimalistflex' ),
|
||||||
'right' => __( 'Right sidebar', 'minimalistflex' ),
|
'right' => esc_html__( 'Right sidebar', 'minimalistflex' ),
|
||||||
'no' => __( 'No', 'minimalistflex' )
|
'no' => esc_html__( 'No', 'minimalistflex' )
|
||||||
)
|
)
|
||||||
) );
|
) );
|
||||||
$wp_customize -> add_control( 'minimalistflex_layout_front_header', Array(
|
$wp_customize -> add_control( 'minimalistflex_layout_front_header', Array(
|
||||||
@ -535,10 +530,10 @@ function minimalistflex_customize_register( $wp_customize ) {
|
|||||||
'priority' => 15,
|
'priority' => 15,
|
||||||
'section' => 'minimalistflex_layout_front',
|
'section' => 'minimalistflex_layout_front',
|
||||||
'label' => _x( 'Header Image', 'layout' , 'minimalistflex' ),
|
'label' => _x( 'Header Image', 'layout' , 'minimalistflex' ),
|
||||||
'description' => __( 'Select whether to display the header image.', 'minimalistflex' ),
|
'description' => esc_html__( 'Select whether to display the header image.', 'minimalistflex' ),
|
||||||
'choices' => Array(
|
'choices' => Array(
|
||||||
'yes' => __( 'Yes', 'minimalistflex' ),
|
'yes' => esc_html__( 'Yes', 'minimalistflex' ),
|
||||||
'no' => __( 'No', 'minimalistflex' )
|
'no' => esc_html__( 'No', 'minimalistflex' )
|
||||||
)
|
)
|
||||||
) );
|
) );
|
||||||
$wp_customize -> add_control( 'minimalistflex_layout_archive_sidebar', Array(
|
$wp_customize -> add_control( 'minimalistflex_layout_archive_sidebar', Array(
|
||||||
@ -546,11 +541,11 @@ function minimalistflex_customize_register( $wp_customize ) {
|
|||||||
'priority' => 10,
|
'priority' => 10,
|
||||||
'section' => 'minimalistflex_layout_archive',
|
'section' => 'minimalistflex_layout_archive',
|
||||||
'label' => _x( 'Sidebar', 'layout' , 'minimalistflex' ),
|
'label' => _x( 'Sidebar', 'layout' , 'minimalistflex' ),
|
||||||
'description' => __( 'Select whether to display the sidebar, and its location.', 'minimalistflex' ),
|
'description' => esc_html__( 'Select whether to display the sidebar, and its location.', 'minimalistflex' ),
|
||||||
'choices' => Array(
|
'choices' => Array(
|
||||||
'left' => __( 'Left sidebar', 'minimalistflex' ),
|
'left' => esc_html__( 'Left sidebar', 'minimalistflex' ),
|
||||||
'right' => __( 'Right sidebar', 'minimalistflex' ),
|
'right' => esc_html__( 'Right sidebar', 'minimalistflex' ),
|
||||||
'no' => __( 'No', 'minimalistflex' )
|
'no' => esc_html__( 'No', 'minimalistflex' )
|
||||||
)
|
)
|
||||||
) );
|
) );
|
||||||
$wp_customize -> add_control( 'minimalistflex_layout_archive_header', Array(
|
$wp_customize -> add_control( 'minimalistflex_layout_archive_header', Array(
|
||||||
@ -558,10 +553,10 @@ function minimalistflex_customize_register( $wp_customize ) {
|
|||||||
'priority' => 15,
|
'priority' => 15,
|
||||||
'section' => 'minimalistflex_layout_archive',
|
'section' => 'minimalistflex_layout_archive',
|
||||||
'label' => _x( 'Header Image', 'layout' , 'minimalistflex' ),
|
'label' => _x( 'Header Image', 'layout' , 'minimalistflex' ),
|
||||||
'description' => __( 'Select whether to display the header image.', 'minimalistflex' ),
|
'description' => esc_html__( 'Select whether to display the header image.', 'minimalistflex' ),
|
||||||
'choices' => Array(
|
'choices' => Array(
|
||||||
'yes' => __( 'Yes', 'minimalistflex' ),
|
'yes' => esc_html__( 'Yes', 'minimalistflex' ),
|
||||||
'no' => __( 'No', 'minimalistflex' )
|
'no' => esc_html__( 'No', 'minimalistflex' )
|
||||||
)
|
)
|
||||||
) );
|
) );
|
||||||
$wp_customize -> add_control( 'minimalistflex_layout_archive_title', Array(
|
$wp_customize -> add_control( 'minimalistflex_layout_archive_title', Array(
|
||||||
@ -569,10 +564,10 @@ function minimalistflex_customize_register( $wp_customize ) {
|
|||||||
'priority' => 20,
|
'priority' => 20,
|
||||||
'section' => 'minimalistflex_layout_archive',
|
'section' => 'minimalistflex_layout_archive',
|
||||||
'label' => _x( 'Title', 'layout' , 'minimalistflex' ),
|
'label' => _x( 'Title', 'layout' , 'minimalistflex' ),
|
||||||
'description' => __( 'Select whether to display the archive title.', 'minimalistflex' ),
|
'description' => esc_html__( 'Select whether to display the archive title.', 'minimalistflex' ),
|
||||||
'choices' => Array(
|
'choices' => Array(
|
||||||
'yes' => __( 'Yes', 'minimalistflex' ),
|
'yes' => esc_html__( 'Yes', 'minimalistflex' ),
|
||||||
'no' => __( 'No', 'minimalistflex' )
|
'no' => esc_html__( 'No', 'minimalistflex' )
|
||||||
)
|
)
|
||||||
) );
|
) );
|
||||||
$wp_customize -> add_control( 'minimalistflex_layout_search_sidebar', Array(
|
$wp_customize -> add_control( 'minimalistflex_layout_search_sidebar', Array(
|
||||||
@ -580,11 +575,11 @@ function minimalistflex_customize_register( $wp_customize ) {
|
|||||||
'priority' => 10,
|
'priority' => 10,
|
||||||
'section' => 'minimalistflex_layout_search',
|
'section' => 'minimalistflex_layout_search',
|
||||||
'label' => _x( 'Sidebar', 'layout' , 'minimalistflex' ),
|
'label' => _x( 'Sidebar', 'layout' , 'minimalistflex' ),
|
||||||
'description' => __( 'Select whether to display the sidebar, and its location.', 'minimalistflex' ),
|
'description' => esc_html__( 'Select whether to display the sidebar, and its location.', 'minimalistflex' ),
|
||||||
'choices' => Array(
|
'choices' => Array(
|
||||||
'left' => __( 'Left sidebar', 'minimalistflex' ),
|
'left' => esc_html__( 'Left sidebar', 'minimalistflex' ),
|
||||||
'right' => __( 'Right sidebar', 'minimalistflex' ),
|
'right' => esc_html__( 'Right sidebar', 'minimalistflex' ),
|
||||||
'no' => __( 'No', 'minimalistflex' )
|
'no' => esc_html__( 'No', 'minimalistflex' )
|
||||||
)
|
)
|
||||||
) );
|
) );
|
||||||
$wp_customize -> add_control( 'minimalistflex_layout_search_header', Array(
|
$wp_customize -> add_control( 'minimalistflex_layout_search_header', Array(
|
||||||
@ -592,10 +587,10 @@ function minimalistflex_customize_register( $wp_customize ) {
|
|||||||
'priority' => 15,
|
'priority' => 15,
|
||||||
'section' => 'minimalistflex_layout_search',
|
'section' => 'minimalistflex_layout_search',
|
||||||
'label' => _x( 'Header Image', 'layout' , 'minimalistflex' ),
|
'label' => _x( 'Header Image', 'layout' , 'minimalistflex' ),
|
||||||
'description' => __( 'Select whether to display the header image.', 'minimalistflex' ),
|
'description' => esc_html__( 'Select whether to display the header image.', 'minimalistflex' ),
|
||||||
'choices' => Array(
|
'choices' => Array(
|
||||||
'yes' => __( 'Yes', 'minimalistflex' ),
|
'yes' => esc_html__( 'Yes', 'minimalistflex' ),
|
||||||
'no' => __( 'No', 'minimalistflex' )
|
'no' => esc_html__( 'No', 'minimalistflex' )
|
||||||
)
|
)
|
||||||
) );
|
) );
|
||||||
$wp_customize -> add_control( 'minimalistflex_layout_search_title', Array(
|
$wp_customize -> add_control( 'minimalistflex_layout_search_title', Array(
|
||||||
@ -603,10 +598,10 @@ function minimalistflex_customize_register( $wp_customize ) {
|
|||||||
'priority' => 20,
|
'priority' => 20,
|
||||||
'section' => 'minimalistflex_layout_search',
|
'section' => 'minimalistflex_layout_search',
|
||||||
'label' => _x( 'Search Query', 'layout' , 'minimalistflex' ),
|
'label' => _x( 'Search Query', 'layout' , 'minimalistflex' ),
|
||||||
'description' => __( 'Select whether to display the search query.', 'minimalistflex' ),
|
'description' => esc_html__( 'Select whether to display the search query.', 'minimalistflex' ),
|
||||||
'choices' => Array(
|
'choices' => Array(
|
||||||
'yes' => __( 'Yes', 'minimalistflex' ),
|
'yes' => esc_html__( 'Yes', 'minimalistflex' ),
|
||||||
'no' => __( 'No', 'minimalistflex' )
|
'no' => esc_html__( 'No', 'minimalistflex' )
|
||||||
)
|
)
|
||||||
) );
|
) );
|
||||||
$wp_customize -> add_control( 'minimalistflex_layout_search_form', Array(
|
$wp_customize -> add_control( 'minimalistflex_layout_search_form', Array(
|
||||||
@ -614,10 +609,10 @@ function minimalistflex_customize_register( $wp_customize ) {
|
|||||||
'priority' => 20,
|
'priority' => 20,
|
||||||
'section' => 'minimalistflex_layout_search',
|
'section' => 'minimalistflex_layout_search',
|
||||||
'label' => _x( 'Search Form', 'layout' , 'minimalistflex' ),
|
'label' => _x( 'Search Form', 'layout' , 'minimalistflex' ),
|
||||||
'description' => __( 'Select whether to also display the search form.', 'minimalistflex' ),
|
'description' => esc_html__( 'Select whether to also display the search form.', 'minimalistflex' ),
|
||||||
'choices' => Array(
|
'choices' => Array(
|
||||||
'yes' => __( 'Yes', 'minimalistflex' ),
|
'yes' => esc_html__( 'Yes', 'minimalistflex' ),
|
||||||
'no' => __( 'No', 'minimalistflex' )
|
'no' => esc_html__( 'No', 'minimalistflex' )
|
||||||
)
|
)
|
||||||
) );
|
) );
|
||||||
$wp_customize -> add_control( 'minimalistflex_layout_author_sidebar', Array(
|
$wp_customize -> add_control( 'minimalistflex_layout_author_sidebar', Array(
|
||||||
@ -625,11 +620,11 @@ function minimalistflex_customize_register( $wp_customize ) {
|
|||||||
'priority' => 10,
|
'priority' => 10,
|
||||||
'section' => 'minimalistflex_layout_author',
|
'section' => 'minimalistflex_layout_author',
|
||||||
'label' => _x( 'Sidebar', 'layout' , 'minimalistflex' ),
|
'label' => _x( 'Sidebar', 'layout' , 'minimalistflex' ),
|
||||||
'description' => __( 'Select whether to display the sidebar, and its location.', 'minimalistflex' ),
|
'description' => esc_html__( 'Select whether to display the sidebar, and its location.', 'minimalistflex' ),
|
||||||
'choices' => Array(
|
'choices' => Array(
|
||||||
'left' => __( 'Left sidebar', 'minimalistflex' ),
|
'left' => esc_html__( 'Left sidebar', 'minimalistflex' ),
|
||||||
'right' => __( 'Right sidebar', 'minimalistflex' ),
|
'right' => esc_html__( 'Right sidebar', 'minimalistflex' ),
|
||||||
'no' => __( 'No', 'minimalistflex' )
|
'no' => esc_html__( 'No', 'minimalistflex' )
|
||||||
)
|
)
|
||||||
) );
|
) );
|
||||||
$wp_customize -> add_control( 'minimalistflex_layout_author_header', Array(
|
$wp_customize -> add_control( 'minimalistflex_layout_author_header', Array(
|
||||||
@ -637,10 +632,10 @@ function minimalistflex_customize_register( $wp_customize ) {
|
|||||||
'priority' => 15,
|
'priority' => 15,
|
||||||
'section' => 'minimalistflex_layout_author',
|
'section' => 'minimalistflex_layout_author',
|
||||||
'label' => _x( 'Header Image', 'layout' , 'minimalistflex' ),
|
'label' => _x( 'Header Image', 'layout' , 'minimalistflex' ),
|
||||||
'description' => __( 'Select whether to display the header image.', 'minimalistflex' ),
|
'description' => esc_html__( 'Select whether to display the header image.', 'minimalistflex' ),
|
||||||
'choices' => Array(
|
'choices' => Array(
|
||||||
'yes' => __( 'Yes', 'minimalistflex' ),
|
'yes' => esc_html__( 'Yes', 'minimalistflex' ),
|
||||||
'no' => __( 'No', 'minimalistflex' )
|
'no' => esc_html__( 'No', 'minimalistflex' )
|
||||||
)
|
)
|
||||||
) );
|
) );
|
||||||
$wp_customize -> add_control( 'minimalistflex_layout_author_title', Array(
|
$wp_customize -> add_control( 'minimalistflex_layout_author_title', Array(
|
||||||
@ -648,10 +643,10 @@ function minimalistflex_customize_register( $wp_customize ) {
|
|||||||
'priority' => 20,
|
'priority' => 20,
|
||||||
'section' => 'minimalistflex_layout_author',
|
'section' => 'minimalistflex_layout_author',
|
||||||
'label' => _x( 'Author Name', 'layout' , 'minimalistflex' ),
|
'label' => _x( 'Author Name', 'layout' , 'minimalistflex' ),
|
||||||
'description' => __( 'Select whether to display the author name.', 'minimalistflex' ),
|
'description' => esc_html__( 'Select whether to display the author name.', 'minimalistflex' ),
|
||||||
'choices' => Array(
|
'choices' => Array(
|
||||||
'yes' => __( 'Yes', 'minimalistflex' ),
|
'yes' => esc_html__( 'Yes', 'minimalistflex' ),
|
||||||
'no' => __( 'No', 'minimalistflex' )
|
'no' => esc_html__( 'No', 'minimalistflex' )
|
||||||
)
|
)
|
||||||
) );
|
) );
|
||||||
$wp_customize -> add_control( 'minimalistflex_layout_author_admin', Array(
|
$wp_customize -> add_control( 'minimalistflex_layout_author_admin', Array(
|
||||||
@ -659,10 +654,10 @@ function minimalistflex_customize_register( $wp_customize ) {
|
|||||||
'priority' => 40,
|
'priority' => 40,
|
||||||
'section' => 'minimalistflex_layout_author',
|
'section' => 'minimalistflex_layout_author',
|
||||||
'label' => _x( 'Admin Status', 'layout' , 'minimalistflex' ),
|
'label' => _x( 'Admin Status', 'layout' , 'minimalistflex' ),
|
||||||
'description' => __( 'Show an indicator in the bottom-right of the avatar if the author is an admin.', 'minimalistflex' ),
|
'description' => esc_html__( 'Show an indicator in the bottom-right of the avatar if the author is an admin.', 'minimalistflex' ),
|
||||||
'choices' => Array(
|
'choices' => Array(
|
||||||
'yes' => __( 'Yes', 'minimalistflex' ),
|
'yes' => esc_html__( 'Yes', 'minimalistflex' ),
|
||||||
'no' => __( 'No', 'minimalistflex' )
|
'no' => esc_html__( 'No', 'minimalistflex' )
|
||||||
)
|
)
|
||||||
) );
|
) );
|
||||||
$wp_customize -> add_control( 'minimalistflex_layout_singular_sidebar', Array(
|
$wp_customize -> add_control( 'minimalistflex_layout_singular_sidebar', Array(
|
||||||
@ -670,11 +665,11 @@ function minimalistflex_customize_register( $wp_customize ) {
|
|||||||
'priority' => 10,
|
'priority' => 10,
|
||||||
'section' => 'minimalistflex_layout_singular',
|
'section' => 'minimalistflex_layout_singular',
|
||||||
'label' => _x( 'Sidebar', 'layout' , 'minimalistflex' ),
|
'label' => _x( 'Sidebar', 'layout' , 'minimalistflex' ),
|
||||||
'description' => __( 'Select whether to display the sidebar, and its location.', 'minimalistflex' ),
|
'description' => esc_html__( 'Select whether to display the sidebar, and its location.', 'minimalistflex' ),
|
||||||
'choices' => Array(
|
'choices' => Array(
|
||||||
'left' => __( 'Left sidebar', 'minimalistflex' ),
|
'left' => esc_html__( 'Left sidebar', 'minimalistflex' ),
|
||||||
'right' => __( 'Right sidebar', 'minimalistflex' ),
|
'right' => esc_html__( 'Right sidebar', 'minimalistflex' ),
|
||||||
'no' => __( 'No', 'minimalistflex' )
|
'no' => esc_html__( 'No', 'minimalistflex' )
|
||||||
)
|
)
|
||||||
) );
|
) );
|
||||||
$wp_customize -> add_control( 'minimalistflex_layout_singular_header', Array(
|
$wp_customize -> add_control( 'minimalistflex_layout_singular_header', Array(
|
||||||
@ -682,10 +677,10 @@ function minimalistflex_customize_register( $wp_customize ) {
|
|||||||
'priority' => 15,
|
'priority' => 15,
|
||||||
'section' => 'minimalistflex_layout_singular',
|
'section' => 'minimalistflex_layout_singular',
|
||||||
'label' => _x( 'Header Image', 'layout' , 'minimalistflex' ),
|
'label' => _x( 'Header Image', 'layout' , 'minimalistflex' ),
|
||||||
'description' => __( 'Select whether to display the header image.', 'minimalistflex' ),
|
'description' => esc_html__( 'Select whether to display the header image.', 'minimalistflex' ),
|
||||||
'choices' => Array(
|
'choices' => Array(
|
||||||
'yes' => __( 'Yes', 'minimalistflex' ),
|
'yes' => esc_html__( 'Yes', 'minimalistflex' ),
|
||||||
'no' => __( 'No', 'minimalistflex' )
|
'no' => esc_html__( 'No', 'minimalistflex' )
|
||||||
)
|
)
|
||||||
) );
|
) );
|
||||||
$wp_customize -> add_control( 'minimalistflex_layout_page_sidebar', Array(
|
$wp_customize -> add_control( 'minimalistflex_layout_page_sidebar', Array(
|
||||||
@ -693,11 +688,11 @@ function minimalistflex_customize_register( $wp_customize ) {
|
|||||||
'priority' => 10,
|
'priority' => 10,
|
||||||
'section' => 'minimalistflex_layout_page',
|
'section' => 'minimalistflex_layout_page',
|
||||||
'label' => _x( 'Sidebar', 'layout' , 'minimalistflex' ),
|
'label' => _x( 'Sidebar', 'layout' , 'minimalistflex' ),
|
||||||
'description' => __( 'Select whether to display the sidebar, and its location.', 'minimalistflex' ),
|
'description' => esc_html__( 'Select whether to display the sidebar, and its location.', 'minimalistflex' ),
|
||||||
'choices' => Array(
|
'choices' => Array(
|
||||||
'left' => __( 'Left sidebar', 'minimalistflex' ),
|
'left' => esc_html__( 'Left sidebar', 'minimalistflex' ),
|
||||||
'right' => __( 'Right sidebar', 'minimalistflex' ),
|
'right' => esc_html__( 'Right sidebar', 'minimalistflex' ),
|
||||||
'no' => __( 'No', 'minimalistflex' )
|
'no' => esc_html__( 'No', 'minimalistflex' )
|
||||||
)
|
)
|
||||||
) );
|
) );
|
||||||
$wp_customize -> add_control( 'minimalistflex_layout_page_header', Array(
|
$wp_customize -> add_control( 'minimalistflex_layout_page_header', Array(
|
||||||
@ -705,130 +700,130 @@ function minimalistflex_customize_register( $wp_customize ) {
|
|||||||
'priority' => 15,
|
'priority' => 15,
|
||||||
'section' => 'minimalistflex_layout_page',
|
'section' => 'minimalistflex_layout_page',
|
||||||
'label' => _x( 'Header Image', 'layout' , 'minimalistflex' ),
|
'label' => _x( 'Header Image', 'layout' , 'minimalistflex' ),
|
||||||
'description' => __( 'Select whether to display the header image.', 'minimalistflex' ),
|
'description' => esc_html__( 'Select whether to display the header image.', 'minimalistflex' ),
|
||||||
'choices' => Array(
|
'choices' => Array(
|
||||||
'yes' => __( 'Yes', 'minimalistflex' ),
|
'yes' => esc_html__( 'Yes', 'minimalistflex' ),
|
||||||
'no' => __( 'No', 'minimalistflex' )
|
'no' => esc_html__( 'No', 'minimalistflex' )
|
||||||
)
|
)
|
||||||
) );
|
) );
|
||||||
$wp_customize -> add_control( 'minimalistflex_interface_scroll_top', Array(
|
$wp_customize -> add_control( 'minimalistflex_interface_scroll_top', Array(
|
||||||
'type' => 'radio',
|
'type' => 'radio',
|
||||||
'priority' => 10,
|
'priority' => 10,
|
||||||
'section' => 'minimalistflex_interface',
|
'section' => 'minimalistflex_interface',
|
||||||
'label' => __( 'Scroll to top button', 'minimalistflex' ),
|
'label' => esc_html__( 'Scroll to top button', 'minimalistflex' ),
|
||||||
'description' => __( 'Whether to display a "Scroll to top" button in the bottom-right corner.', 'minimalistflex' ),
|
'description' => esc_html__( 'Whether to display a "Scroll to top" button in the bottom-right corner.', 'minimalistflex' ),
|
||||||
'choices' => Array(
|
'choices' => Array(
|
||||||
'yes' => __( 'Yes', 'minimalistflex' ),
|
'yes' => esc_html__( 'Yes', 'minimalistflex' ),
|
||||||
'no' => __( 'No', 'minimalistflex' )
|
'no' => esc_html__( 'No', 'minimalistflex' )
|
||||||
)
|
)
|
||||||
) );
|
) );
|
||||||
$wp_customize -> add_control( 'minimalistflex_interface_excerpt', Array(
|
$wp_customize -> add_control( 'minimalistflex_interface_excerpt', Array(
|
||||||
'type' => 'number',
|
'type' => 'number',
|
||||||
'priority' => 20,
|
'priority' => 20,
|
||||||
'section' => 'minimalistflex_interface',
|
'section' => 'minimalistflex_interface',
|
||||||
'label' => __( 'Excerpt Word Count', 'minimalistflex' ),
|
'label' => esc_html__( 'Excerpt Word Count', 'minimalistflex' ),
|
||||||
'description' => __( 'The word count of the excerpts on any archive page and the blog page.', 'minimalistflex' )
|
'description' => esc_html__( 'The word count of the excerpts on any archive page and the blog page.', 'minimalistflex' )
|
||||||
) );
|
) );
|
||||||
$wp_customize -> add_control( 'minimalistflex_interface_autoh2label', Array(
|
$wp_customize -> add_control( 'minimalistflex_interface_autoh2label', Array(
|
||||||
'type' => 'radio',
|
'type' => 'radio',
|
||||||
'priority' => 25,
|
'priority' => 25,
|
||||||
'section' => 'minimalistflex_interface',
|
'section' => 'minimalistflex_interface',
|
||||||
'label' => __( 'Auto h2 Label', 'minimalistflex' ),
|
'label' => esc_html__( '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' ),
|
'description' => esc_html__( '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(
|
'choices' => Array(
|
||||||
'yes' => __( 'Yes', 'minimalistflex' ),
|
'yes' => esc_html__( 'Yes', 'minimalistflex' ),
|
||||||
'no' => __( 'No', 'minimalistflex' )
|
'no' => esc_html__( 'No', 'minimalistflex' )
|
||||||
)
|
)
|
||||||
) );
|
) );
|
||||||
$wp_customize -> add_control( 'minimalistflex_interface_comment_count', Array(
|
$wp_customize -> add_control( 'minimalistflex_interface_comment_count', Array(
|
||||||
'type' => 'radio',
|
'type' => 'radio',
|
||||||
'priority' => 30,
|
'priority' => 30,
|
||||||
'section' => 'minimalistflex_interface',
|
'section' => 'minimalistflex_interface',
|
||||||
'label' => __( 'Comment Count', 'minimalistflex' ),
|
'label' => esc_html__( 'Comment Count', 'minimalistflex' ),
|
||||||
'description' => __( 'Whether to display the comment count of the posts listed in an archive page.', 'minimalistflex' ),
|
'description' => esc_html__( 'Whether to display the comment count of the posts listed in an archive page.', 'minimalistflex' ),
|
||||||
'choices' => Array(
|
'choices' => Array(
|
||||||
'yes' => __( 'Yes', 'minimalistflex' ),
|
'yes' => esc_html__( 'Yes', 'minimalistflex' ),
|
||||||
'no' => __( 'No', 'minimalistflex' )
|
'no' => esc_html__( 'No', 'minimalistflex' )
|
||||||
)
|
)
|
||||||
) );
|
) );
|
||||||
$wp_customize -> add_control( 'minimalistflex_interface_publisher', Array(
|
$wp_customize -> add_control( 'minimalistflex_interface_publisher', Array(
|
||||||
'type' => 'radio',
|
'type' => 'radio',
|
||||||
'priority' => 35,
|
'priority' => 35,
|
||||||
'section' => 'minimalistflex_interface',
|
'section' => 'minimalistflex_interface',
|
||||||
'label' => __( 'Publisher', 'minimalistflex' ),
|
'label' => esc_html__( 'Publisher', 'minimalistflex' ),
|
||||||
'description' => __( 'Whether to display the publisher.', 'minimalistflex' ),
|
'description' => esc_html__( 'Whether to display the publisher.', 'minimalistflex' ),
|
||||||
'choices' => Array(
|
'choices' => Array(
|
||||||
'yes' => __( 'Yes', 'minimalistflex' ),
|
'yes' => esc_html__( 'Yes', 'minimalistflex' ),
|
||||||
'no' => __( 'No', 'minimalistflex' )
|
'no' => esc_html__( 'No', 'minimalistflex' )
|
||||||
)
|
)
|
||||||
) );
|
) );
|
||||||
$wp_customize -> add_control( 'minimalistflex_interface_date', Array(
|
$wp_customize -> add_control( 'minimalistflex_interface_date', Array(
|
||||||
'type' => 'radio',
|
'type' => 'radio',
|
||||||
'priority' => 40,
|
'priority' => 40,
|
||||||
'section' => 'minimalistflex_interface',
|
'section' => 'minimalistflex_interface',
|
||||||
'label' => __( 'Publish Date', 'minimalistflex' ),
|
'label' => esc_html__( 'Publish Date', 'minimalistflex' ),
|
||||||
'description' => __( 'Whether to display the published date.', 'minimalistflex' ),
|
'description' => esc_html__( 'Whether to display the published date.', 'minimalistflex' ),
|
||||||
'choices' => Array(
|
'choices' => Array(
|
||||||
'publish' => __( 'Yes, publish time only.', 'minimalistflex' ),
|
'publish' => esc_html__( 'Yes, publish time only.', 'minimalistflex' ),
|
||||||
'modify' => __( 'Yes, and display modified time if possible.', 'minimalistflex' ),
|
'modify' => esc_html__( 'Yes, and display modified time if possible.', 'minimalistflex' ),
|
||||||
'no' => __( 'No', 'minimalistflex' )
|
'no' => esc_html__( 'No', 'minimalistflex' )
|
||||||
)
|
)
|
||||||
) );
|
) );
|
||||||
$wp_customize -> add_control( 'minimalistflex_interface_readlink', Array(
|
$wp_customize -> add_control( 'minimalistflex_interface_readlink', Array(
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'priority' => 45,
|
'priority' => 45,
|
||||||
'section' => 'minimalistflex_interface',
|
'section' => 'minimalistflex_interface',
|
||||||
'label' => __( 'Read More Link', 'minimalistflex' ),
|
'label' => esc_html__( 'Read More Link', 'minimalistflex' ),
|
||||||
'description' => __( 'The text for the "Read More" links.', 'minimalistflex' )
|
'description' => esc_html__( 'The text for the "Read More" links.', 'minimalistflex' )
|
||||||
) );
|
) );
|
||||||
$wp_customize -> add_control( 'minimalistflex_interface_thumbnail_height', Array(
|
$wp_customize -> add_control( 'minimalistflex_interface_thumbnail_height', Array(
|
||||||
'type' => 'radio',
|
'type' => 'radio',
|
||||||
'priority' => 50,
|
'priority' => 50,
|
||||||
'section' => 'minimalistflex_interface',
|
'section' => 'minimalistflex_interface',
|
||||||
'label' => __( 'Thumbnail Images Size', 'minimalistflex' ),
|
'label' => esc_html__( 'Thumbnail Images Size', 'minimalistflex' ),
|
||||||
'description' => __( 'Select whether to enable flexible height for your thumbnail images, or use a fixed height.', 'minimalistflex' ),
|
'description' => esc_html__( 'Select whether to enable flexible height for your thumbnail images, or use a fixed height.', 'minimalistflex' ),
|
||||||
'choices' => Array(
|
'choices' => Array(
|
||||||
'fixed' => __( 'Fixed', 'minimalistflex' ),
|
'fixed' => esc_html__( 'Fixed', 'minimalistflex' ),
|
||||||
'auto' => __( 'Flexible', 'minimalistflex' )
|
'auto' => esc_html__( 'Flexible', 'minimalistflex' )
|
||||||
)
|
)
|
||||||
) );
|
) );
|
||||||
$wp_customize -> add_control( 'minimalistflex_interface_thumbnail_height_px', Array(
|
$wp_customize -> add_control( 'minimalistflex_interface_thumbnail_height_px', Array(
|
||||||
'type' => 'number',
|
'type' => 'number',
|
||||||
'priority' => 51,
|
'priority' => 51,
|
||||||
'section' => 'minimalistflex_interface',
|
'section' => 'minimalistflex_interface',
|
||||||
'label' => __( 'Height', 'minimalistflex' ),
|
'label' => esc_html__( 'Height', 'minimalistflex' ),
|
||||||
'description' => __( 'Enter your desired height here. Should be in pixels.', 'minimalistflex' ),
|
'description' => esc_html__( 'Enter your desired height here. Should be in pixels.', 'minimalistflex' ),
|
||||||
) );
|
) );
|
||||||
$wp_customize -> add_control( 'minimalistflex_footer_type', Array(
|
$wp_customize -> add_control( 'minimalistflex_footer_type', Array(
|
||||||
'type' => 'radio',
|
'type' => 'radio',
|
||||||
'priority' => 9,
|
'priority' => 9,
|
||||||
'section' => 'minimalistflex_footer',
|
'section' => 'minimalistflex_footer',
|
||||||
'label' => __( 'Footer Options', 'minimalistflex' ),
|
'label' => esc_html__( 'Footer Options', 'minimalistflex' ),
|
||||||
'description' => __( 'Choose what to display in your footer credit section.', 'minimalistflex' ),
|
'description' => esc_html__( 'Choose what to display in your footer credit section.', 'minimalistflex' ),
|
||||||
'choices' => Array(
|
'choices' => Array(
|
||||||
'both' => __( 'Both MinimalistFlex credits and custom footer text.', 'minimalistflex' ),
|
'both' => esc_html__( 'Both MinimalistFlex credits and custom footer text.', 'minimalistflex' ),
|
||||||
'minimalistflex' => __( 'MinimalistFlex credits only.', 'minimalistflex' ),
|
'minimalistflex' => esc_html__( 'MinimalistFlex credits only.', 'minimalistflex' ),
|
||||||
'custom' => __( 'Custom footer text only.', 'minimalistflex' ),
|
'custom' => esc_html__( 'Custom footer text only.', 'minimalistflex' ),
|
||||||
'none' => __( 'Neither.', 'minimalistflex' )
|
'none' => esc_html__( 'Neither.', 'minimalistflex' )
|
||||||
)
|
)
|
||||||
) );
|
) );
|
||||||
$wp_customize -> add_control( new WP_Customize_Code_Editor_Control( $wp_customize, 'minimalistflex_footer_text', Array(
|
$wp_customize -> add_control( new WP_Customize_Code_Editor_Control( $wp_customize, 'minimalistflex_footer_text', Array(
|
||||||
'code_type' => 'htmlmixed',
|
'code_type' => 'htmlmixed',
|
||||||
'priority' => 15,
|
'priority' => 15,
|
||||||
'section' => 'minimalistflex_footer',
|
'section' => 'minimalistflex_footer',
|
||||||
'label' => __( 'Custom Footer Text', 'minimalistflex' ),
|
'label' => esc_html__( 'Custom Footer Text', 'minimalistflex' ),
|
||||||
'description' => __( 'Here you may set a custom footer text to be displayed in the footer credits. HTML allowed.', 'minimalistflex' )
|
'description' => esc_html__( '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(
|
$wp_customize -> add_control( 'minimalistflex_footer_widget_layout', Array(
|
||||||
'type' => 'radio',
|
'type' => 'radio',
|
||||||
'priority' => 10,
|
'priority' => 10,
|
||||||
'section' => 'minimalistflex_footer',
|
'section' => 'minimalistflex_footer',
|
||||||
'label' => __( 'Footer Widget Layout', 'minimalistflex' ),
|
'label' => esc_html__( 'Footer Widget Layout', 'minimalistflex' ),
|
||||||
'description' => __( 'Choose the layout of the footer widgets.', 'minimalistflex' ),
|
'description' => esc_html__( 'Choose the layout of the footer widgets.', 'minimalistflex' ),
|
||||||
'choices' => Array(
|
'choices' => Array(
|
||||||
'one' => __( 'One column. Only shows the "Footer" widget area.', 'minimalistflex' ),
|
'one' => esc_html__( 'One column. Only shows the "Footer" widget area.', 'minimalistflex' ),
|
||||||
'two' => __( 'Two columns. Also shows the "Footer 2" widget area.', 'minimalistflex' ),
|
'two' => esc_html__( 'Two columns. Also shows the "Footer 2" widget area.', 'minimalistflex' ),
|
||||||
'three' => __( 'Three columns. Also shows the "Footer 3" widget area (aka all areas).', 'minimalistflex' )
|
'three' => esc_html__( 'Three columns. Also shows the "Footer 3" widget area (aka all areas).', 'minimalistflex' )
|
||||||
)
|
)
|
||||||
) );
|
) );
|
||||||
|
|
||||||
|
|||||||
@ -42,8 +42,8 @@ jQuery(document).ready(function($){
|
|||||||
wp.customize("minimalistflex_color_tint-contrast").set("#00281d")
|
wp.customize("minimalistflex_color_tint-contrast").set("#00281d")
|
||||||
wp.customize("minimalistflex_color_contrast").set("#000000")
|
wp.customize("minimalistflex_color_contrast").set("#000000")
|
||||||
wp.customize("minimalistflex_color_contrast-dark").set("#ffffff")
|
wp.customize("minimalistflex_color_contrast-dark").set("#ffffff")
|
||||||
wp.customize("minimalistflex_color_footer-text").set("#ffffff")
|
wp.customize("minimalistflex_color_footer-text").set("#000000")
|
||||||
wp.customize("minimalistflex_color_footer-bg").set("#333333")
|
wp.customize("minimalistflex_color_footer-bg").set("#ffffff")
|
||||||
})
|
})
|
||||||
$("#minimalistflex-palette-dark").click(function(e){
|
$("#minimalistflex-palette-dark").click(function(e){
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
|
|||||||
@ -2,14 +2,14 @@
|
|||||||
# This file is distributed under the GNU General Public License v3.0 or later.
|
# This file is distributed under the GNU General Public License v3.0 or later.
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: MinimalistFlex 1.0.2\n"
|
"Project-Id-Version: MinimalistFlex 1.0.5\n"
|
||||||
"Report-Msgid-Bugs-To: https://wordpress.org/support/theme/minimalistflex\n"
|
"Report-Msgid-Bugs-To: https://wordpress.org/support/theme/minimalistflex\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
"POT-Creation-Date: 2024-08-28T02:53:46+00:00\n"
|
"POT-Creation-Date: 2024-09-14T13:34:32+00:00\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"X-Generator: WP-CLI 2.11.0\n"
|
"X-Generator: WP-CLI 2.11.0\n"
|
||||||
"X-Domain: minimalistflex\n"
|
"X-Domain: minimalistflex\n"
|
||||||
@ -81,7 +81,7 @@ msgstr ""
|
|||||||
#. translators: %1$s: Number of comments. %2$s: Post title.
|
#. translators: %1$s: Number of comments. %2$s: Post title.
|
||||||
#: comments.php:19
|
#: comments.php:19
|
||||||
msgctxt "comments title"
|
msgctxt "comments title"
|
||||||
msgid "One comment on \"%2$s\""
|
msgid "%1$s comment on \"%2$s\""
|
||||||
msgid_plural "%1$s comments on \"%2$s\""
|
msgid_plural "%1$s comments on \"%2$s\""
|
||||||
msgstr[0] ""
|
msgstr[0] ""
|
||||||
msgstr[1] ""
|
msgstr[1] ""
|
||||||
@ -112,61 +112,69 @@ msgstr ""
|
|||||||
msgid "Theme <a href=\"%s\">MinimalistFlex</a>."
|
msgid "Theme <a href=\"%s\">MinimalistFlex</a>."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:66
|
#: functions.php:37
|
||||||
|
msgid "An abstract default header image."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: functions.php:42
|
||||||
|
msgid "A default header image that contains three lines."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: functions.php:67
|
||||||
msgctxt "sidebar name"
|
msgctxt "sidebar name"
|
||||||
msgid "Main Sidebar"
|
msgid "Main Sidebar"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:68
|
#: functions.php:69
|
||||||
msgid "Widgets in this area will be shown on all posts and pages."
|
msgid "Widgets in this area will be shown on all posts and pages."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:75
|
#: functions.php:76
|
||||||
msgctxt "sidebar name"
|
msgctxt "sidebar name"
|
||||||
msgid "Above Content"
|
msgid "Above Content"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:77
|
#: functions.php:78
|
||||||
msgid "Widgets in this area will be shown above the main content."
|
msgid "Widgets in this area will be shown above the main content."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:84
|
#: functions.php:85
|
||||||
msgctxt "sidebar name"
|
msgctxt "sidebar name"
|
||||||
msgid "Below Content"
|
msgid "Below Content"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:86
|
#: functions.php:87
|
||||||
msgid "Widgets in this area will be shown below the main content."
|
msgid "Widgets in this area will be shown below the main content."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:93
|
#: functions.php:94
|
||||||
msgctxt "sidebar name"
|
msgctxt "sidebar name"
|
||||||
msgid "Footer"
|
msgid "Footer"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:95
|
#: functions.php:96
|
||||||
msgid "Widgets in this area will be shown in the footer. Always shows."
|
msgid "Widgets in this area will be shown in the footer. Always shows."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:102
|
#: functions.php:103
|
||||||
msgctxt "sidebar name"
|
msgctxt "sidebar name"
|
||||||
msgid "Footer 2"
|
msgid "Footer 2"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:104
|
#: functions.php:105
|
||||||
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."
|
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 ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:111
|
#: functions.php:112
|
||||||
msgctxt "sidebar name"
|
msgctxt "sidebar name"
|
||||||
msgid "Footer 3"
|
msgid "Footer 3"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:113
|
#: functions.php:114
|
||||||
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."
|
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 ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:125
|
#: functions.php:126
|
||||||
msgid "Main Menu"
|
msgid "Main Menu"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -614,7 +622,7 @@ msgid "You may customize how your footer looks like here."
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: includes/customizer.php:447
|
#: includes/customizer.php:447
|
||||||
#: templates/loop.php:107
|
#: templates/loop.php:108
|
||||||
msgid "Read More"
|
msgid "Read More"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -895,7 +903,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: page.php:24
|
#: page.php:24
|
||||||
#: singular.php:48
|
#: singular.php:48
|
||||||
#: templates/loop.php:72
|
#: templates/loop.php:73
|
||||||
msgid "Pages: "
|
msgid "Pages: "
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -966,27 +974,28 @@ msgstr ""
|
|||||||
msgid "The thhumbnail image link for %s"
|
msgid "The thhumbnail image link for %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: templates/loop.php:56
|
#. translators: %d: Number of comments.
|
||||||
|
#: templates/loop.php:57
|
||||||
msgctxt "comment count"
|
msgctxt "comment count"
|
||||||
msgid "1 Comment"
|
msgid "%d Comment"
|
||||||
msgid_plural "%d Comments"
|
msgid_plural "%d Comments"
|
||||||
msgstr[0] ""
|
msgstr[0] ""
|
||||||
msgstr[1] ""
|
msgstr[1] ""
|
||||||
|
|
||||||
#. translators: %s: Post publish time.
|
#. translators: %s: Post publish time.
|
||||||
#: templates/loop.php:88
|
#: templates/loop.php:89
|
||||||
#: templates/publisher.php:19
|
#: templates/publisher.php:19
|
||||||
msgid "Published on %s"
|
msgid "Published on %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. translators: %s: Post last modified time.
|
#. translators: %s: Post last modified time.
|
||||||
#: templates/loop.php:94
|
#: templates/loop.php:95
|
||||||
#: templates/publisher.php:25
|
#: templates/publisher.php:25
|
||||||
msgid "Last modified on %s"
|
msgid "Last modified on %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. translators: %s: Post title.
|
#. translators: %s: Post title.
|
||||||
#: templates/loop.php:103
|
#: templates/loop.php:104
|
||||||
msgid "Read more of %s"
|
msgid "Read more of %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
@ -4,12 +4,14 @@
|
|||||||
# 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 ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: MinimalistFlex 1.0.0\n"
|
"Project-Id-Version: MinimalistFlex 1.0.0\n"
|
||||||
"Report-Msgid-Bugs-To: https://wordpress.org/support/theme/minimalistflex\n"
|
"Report-Msgid-Bugs-To: https://wordpress.org/support/theme/minimalistflex\n"
|
||||||
"POT-Creation-Date: 2024-08-28T02:53:46+00:00\n"
|
"POT-Creation-Date: 2024-09-14T13:34:32+00:00\n"
|
||||||
"PO-Revision-Date: 2024-08-28 10:57+0800\n"
|
"PO-Revision-Date: 2024-09-14 21:35+0800\n"
|
||||||
"Last-Translator: 枫原万叶 <hufang2007@icloud.com>\n"
|
"Last-Translator: 枫原万叶 <hufang2007@icloud.com>\n"
|
||||||
"Language-Team: Chinese <kde-i18n-doc@kde.org>\n"
|
"Language-Team: Chinese <kde-i18n-doc@kde.org>\n"
|
||||||
"Language: zh_CN\n"
|
"Language: zh_CN\n"
|
||||||
@ -102,7 +104,7 @@ msgstr "%s 的所有文章"
|
|||||||
#. translators: %1$s: Number of comments. %2$s: Post title.
|
#. translators: %1$s: Number of comments. %2$s: Post title.
|
||||||
#: comments.php:19
|
#: comments.php:19
|
||||||
msgctxt "comments title"
|
msgctxt "comments title"
|
||||||
msgid "One comment on \"%2$s\""
|
msgid "%1$s comment on \"%2$s\""
|
||||||
msgid_plural "%1$s comments on \"%2$s\""
|
msgid_plural "%1$s comments on \"%2$s\""
|
||||||
msgstr[0] "「%2$s」上有 %1$s 条评论"
|
msgstr[0] "「%2$s」上有 %1$s 条评论"
|
||||||
|
|
||||||
@ -131,48 +133,56 @@ msgstr "返回页首"
|
|||||||
msgid "Theme <a href=\"%s\">MinimalistFlex</a>."
|
msgid "Theme <a href=\"%s\">MinimalistFlex</a>."
|
||||||
msgstr "<a href=\"%s\">MinimalistFlex</a> 主题。"
|
msgstr "<a href=\"%s\">MinimalistFlex</a> 主题。"
|
||||||
|
|
||||||
#: functions.php:66
|
#: functions.php:37
|
||||||
|
msgid "An abstract default header image."
|
||||||
|
msgstr "一个抽象的页眉图片。"
|
||||||
|
|
||||||
|
#: functions.php:42
|
||||||
|
msgid "A default header image that contains three lines."
|
||||||
|
msgstr "一个包含了三条线段的页眉图片。"
|
||||||
|
|
||||||
|
#: functions.php:67
|
||||||
msgctxt "sidebar name"
|
msgctxt "sidebar name"
|
||||||
msgid "Main Sidebar"
|
msgid "Main Sidebar"
|
||||||
msgstr "主要侧栏"
|
msgstr "主要侧栏"
|
||||||
|
|
||||||
#: functions.php:68
|
#: functions.php:69
|
||||||
msgid "Widgets in this area will be shown on all posts and pages."
|
msgid "Widgets in this area will be shown on all posts and pages."
|
||||||
msgstr "在此区域中的小工具将会显示在所有的文章和页面中。"
|
msgstr "在此区域中的小工具将会显示在所有的文章和页面中。"
|
||||||
|
|
||||||
#: functions.php:75
|
#: functions.php:76
|
||||||
msgctxt "sidebar name"
|
msgctxt "sidebar name"
|
||||||
msgid "Above Content"
|
msgid "Above Content"
|
||||||
msgstr "主要内容上方"
|
msgstr "主要内容上方"
|
||||||
|
|
||||||
#: functions.php:77
|
#: functions.php:78
|
||||||
msgid "Widgets in this area will be shown above the main content."
|
msgid "Widgets in this area will be shown above the main content."
|
||||||
msgstr "在此区域中的小工具将会显示在主要内容的上方。"
|
msgstr "在此区域中的小工具将会显示在主要内容的上方。"
|
||||||
|
|
||||||
#: functions.php:84
|
#: functions.php:85
|
||||||
msgctxt "sidebar name"
|
msgctxt "sidebar name"
|
||||||
msgid "Below Content"
|
msgid "Below Content"
|
||||||
msgstr "主要内容下方"
|
msgstr "主要内容下方"
|
||||||
|
|
||||||
#: functions.php:86
|
#: functions.php:87
|
||||||
msgid "Widgets in this area will be shown below the main content."
|
msgid "Widgets in this area will be shown below the main content."
|
||||||
msgstr "在此区域中的小工具将会显示在主要内容的下方。"
|
msgstr "在此区域中的小工具将会显示在主要内容的下方。"
|
||||||
|
|
||||||
#: functions.php:93
|
#: functions.php:94
|
||||||
msgctxt "sidebar name"
|
msgctxt "sidebar name"
|
||||||
msgid "Footer"
|
msgid "Footer"
|
||||||
msgstr "页脚"
|
msgstr "页脚"
|
||||||
|
|
||||||
#: functions.php:95
|
#: functions.php:96
|
||||||
msgid "Widgets in this area will be shown in the footer. Always shows."
|
msgid "Widgets in this area will be shown in the footer. Always shows."
|
||||||
msgstr "在此区域中的小工具将会显示在页脚中。此小工具区域始终显示。"
|
msgstr "在此区域中的小工具将会显示在页脚中。此小工具区域始终显示。"
|
||||||
|
|
||||||
#: functions.php:102
|
#: functions.php:103
|
||||||
msgctxt "sidebar name"
|
msgctxt "sidebar name"
|
||||||
msgid "Footer 2"
|
msgid "Footer 2"
|
||||||
msgstr "页脚 2"
|
msgstr "页脚 2"
|
||||||
|
|
||||||
#: functions.php:104
|
#: functions.php:105
|
||||||
msgid ""
|
msgid ""
|
||||||
"Widgets in this area will be shown in the footer to construct a multi column "
|
"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 "
|
"footer. Only shows when the footer is set to display it. Also twice as wide "
|
||||||
@ -181,12 +191,12 @@ msgstr ""
|
|||||||
"在此区域中的小工具将会在页脚中显示,以形成多栏布局。仅当被设置为显示时才会显"
|
"在此区域中的小工具将会在页脚中显示,以形成多栏布局。仅当被设置为显示时才会显"
|
||||||
"示。宽度为其它页脚小工具区域的两倍。"
|
"示。宽度为其它页脚小工具区域的两倍。"
|
||||||
|
|
||||||
#: functions.php:111
|
#: functions.php:112
|
||||||
msgctxt "sidebar name"
|
msgctxt "sidebar name"
|
||||||
msgid "Footer 3"
|
msgid "Footer 3"
|
||||||
msgstr "页脚 3"
|
msgstr "页脚 3"
|
||||||
|
|
||||||
#: functions.php:113
|
#: functions.php:114
|
||||||
msgid ""
|
msgid ""
|
||||||
"Widgets in this area will be shown in the footer to construct a multi column "
|
"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."
|
"footer. Only shows when the footer is set to display it."
|
||||||
@ -194,7 +204,7 @@ msgstr ""
|
|||||||
"在此区域中的小工具将会在页脚中显示,以形成多栏布局。仅当被设置为显示时才会显"
|
"在此区域中的小工具将会在页脚中显示,以形成多栏布局。仅当被设置为显示时才会显"
|
||||||
"示。"
|
"示。"
|
||||||
|
|
||||||
#: functions.php:125
|
#: functions.php:126
|
||||||
msgid "Main Menu"
|
msgid "Main Menu"
|
||||||
msgstr "主菜单"
|
msgstr "主菜单"
|
||||||
|
|
||||||
@ -647,7 +657,7 @@ msgstr "页脚"
|
|||||||
msgid "You may customize how your footer looks like here."
|
msgid "You may customize how your footer looks like here."
|
||||||
msgstr "您可以在此配置您站点的页脚。"
|
msgstr "您可以在此配置您站点的页脚。"
|
||||||
|
|
||||||
#: includes/customizer.php:447 templates/loop.php:107
|
#: includes/customizer.php:447 templates/loop.php:108
|
||||||
msgid "Read More"
|
msgid "Read More"
|
||||||
msgstr "阅读更多"
|
msgstr "阅读更多"
|
||||||
|
|
||||||
@ -927,7 +937,7 @@ msgstr "文章作者"
|
|||||||
msgid "Admin"
|
msgid "Admin"
|
||||||
msgstr "管理员"
|
msgstr "管理员"
|
||||||
|
|
||||||
#: page.php:24 singular.php:48 templates/loop.php:72
|
#: page.php:24 singular.php:48 templates/loop.php:73
|
||||||
msgid "Pages: "
|
msgid "Pages: "
|
||||||
msgstr "页面:"
|
msgstr "页面:"
|
||||||
|
|
||||||
@ -991,24 +1001,25 @@ msgstr "文章 %s 的特色图片。此图片也将链接到对应的文章。"
|
|||||||
msgid "The thhumbnail image link for %s"
|
msgid "The thhumbnail image link for %s"
|
||||||
msgstr "%s 的特色图片链接"
|
msgstr "%s 的特色图片链接"
|
||||||
|
|
||||||
#: templates/loop.php:56
|
#. translators: %d: Number of comments.
|
||||||
|
#: templates/loop.php:57
|
||||||
msgctxt "comment count"
|
msgctxt "comment count"
|
||||||
msgid "1 Comment"
|
msgid "%d Comment"
|
||||||
msgid_plural "%d Comments"
|
msgid_plural "%d Comments"
|
||||||
msgstr[0] "%d 条评论"
|
msgstr[0] "%d 条评论"
|
||||||
|
|
||||||
#. translators: %s: Post publish time.
|
#. translators: %s: Post publish time.
|
||||||
#: templates/loop.php:88 templates/publisher.php:19
|
#: templates/loop.php:89 templates/publisher.php:19
|
||||||
msgid "Published on %s"
|
msgid "Published on %s"
|
||||||
msgstr "发表于 %s"
|
msgstr "发表于 %s"
|
||||||
|
|
||||||
#. translators: %s: Post last modified time.
|
#. translators: %s: Post last modified time.
|
||||||
#: templates/loop.php:94 templates/publisher.php:25
|
#: templates/loop.php:95 templates/publisher.php:25
|
||||||
msgid "Last modified on %s"
|
msgid "Last modified on %s"
|
||||||
msgstr "最后编辑于 %s"
|
msgstr "最后编辑于 %s"
|
||||||
|
|
||||||
#. translators: %s: Post title.
|
#. translators: %s: Post title.
|
||||||
#: templates/loop.php:103
|
#: templates/loop.php:104
|
||||||
msgid "Read more of %s"
|
msgid "Read more of %s"
|
||||||
msgstr "阅读 %s 的更多内容"
|
msgstr "阅读 %s 的更多内容"
|
||||||
|
|
||||||
@ -1069,3 +1080,4 @@ msgstr "MinimalistFlex 暗背景色"
|
|||||||
msgctxt "Color name"
|
msgctxt "Color name"
|
||||||
msgid "MinimalistFlex White"
|
msgid "MinimalistFlex White"
|
||||||
msgstr "MinimalistFlex 白色"
|
msgstr "MinimalistFlex 白色"
|
||||||
|
|
||||||
|
|||||||
4
page.php
4
page.php
@ -8,7 +8,7 @@ if ( !defined( 'WPINC' ) ) {
|
|||||||
|
|
||||||
<?php if ( have_posts() ) :
|
<?php if ( have_posts() ) :
|
||||||
the_post();
|
the_post();
|
||||||
$id = get_the_ID();
|
$mf_id = get_the_ID();
|
||||||
?>
|
?>
|
||||||
<div <?php post_class( "singular" ) ?>>
|
<div <?php post_class( "singular" ) ?>>
|
||||||
<?php if ( has_post_thumbnail() ): ?>
|
<?php if ( has_post_thumbnail() ): ?>
|
||||||
@ -31,6 +31,4 @@ if ( !defined( 'WPINC' ) ) {
|
|||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<?php ?>
|
|
||||||
|
|
||||||
<?php get_footer(); ?>
|
<?php get_footer(); ?>
|
||||||
19
readme.txt
19
readme.txt
@ -28,6 +28,9 @@ fully responsive, and looks good on very small screens.
|
|||||||
We also tried our best to make the theme as accessible as
|
We also tried our best to make the theme as accessible as
|
||||||
possible.
|
possible.
|
||||||
|
|
||||||
|
The MinimalistFlex WordPress theme, Copyright Frank419 2024.
|
||||||
|
MinimalistFlex is licensed under the terms of GNU General Public License, Version 3.0.
|
||||||
|
|
||||||
== Frequently Asked Quesions ==
|
== Frequently Asked Quesions ==
|
||||||
|
|
||||||
= How do I set default featured images? =
|
= How do I set default featured images? =
|
||||||
@ -48,6 +51,22 @@ As a bonus, we have 4 pre-built color palettes for you.
|
|||||||
|
|
||||||
== Changelog ==
|
== Changelog ==
|
||||||
|
|
||||||
|
= 1.1.1 =
|
||||||
|
* How would I forget the CodeSniffer checks? Anyways, fixed a security issue.
|
||||||
|
|
||||||
|
= 1.1 =
|
||||||
|
* A little bit new design, as well as fixed some visual issues.
|
||||||
|
* Fixed a bug where the "Below Content" widget area don't display properly.
|
||||||
|
|
||||||
|
= 1.0.5 =
|
||||||
|
* Addressed a menu styling issue.
|
||||||
|
* Fixed footer credit not being properly displayed.
|
||||||
|
|
||||||
|
= 1.0.4 =
|
||||||
|
* Addressed a security issue where many places have not used proper escaping / no escaping at all.
|
||||||
|
* Added correct styling for the main content without a sidebar.
|
||||||
|
* Added correct singular placeholders.
|
||||||
|
|
||||||
= 1.0.3 =
|
= 1.0.3 =
|
||||||
* Addressed an important issue where the menu items cannot be opened due to an improper usage of e.preventDefault().
|
* Addressed an important issue where the menu items cannot be opened due to an improper usage of e.preventDefault().
|
||||||
|
|
||||||
|
|||||||
@ -13,7 +13,7 @@ if ( !defined( 'WPINC' ) ) {
|
|||||||
<?php
|
<?php
|
||||||
printf(
|
printf(
|
||||||
/* translators: %s: The search query. */
|
/* translators: %s: The search query. */
|
||||||
__( 'You have searched for: "%s"', 'minimalistflex' ),
|
esc_html__( 'You have searched for: "%s"', 'minimalistflex' ),
|
||||||
get_search_query()
|
get_search_query()
|
||||||
)
|
)
|
||||||
?>
|
?>
|
||||||
@ -37,7 +37,7 @@ if ( !defined( 'WPINC' ) ) {
|
|||||||
<?php
|
<?php
|
||||||
printf(
|
printf(
|
||||||
/* translators: %s: The search query. */
|
/* translators: %s: The search query. */
|
||||||
__( 'You have searched for: "%s"', 'minimalistflex' ),
|
esc_html__( 'You have searched for: "%s"', 'minimalistflex' ),
|
||||||
get_search_query()
|
get_search_query()
|
||||||
)
|
)
|
||||||
?>
|
?>
|
||||||
|
|||||||
@ -6,7 +6,7 @@ if ( !defined( 'WPINC' ) ) {
|
|||||||
|
|
||||||
<?php if ( is_active_sidebar( 'below-content' ) ): ?>
|
<?php if ( is_active_sidebar( 'below-content' ) ): ?>
|
||||||
<ul class="below-content-widgets">
|
<ul class="below-content-widgets">
|
||||||
<?php dynamic_sidebar( 'above-content' ); ?>
|
<?php dynamic_sidebar( 'below-content' ); ?>
|
||||||
</ul>
|
</ul>
|
||||||
<?php elseif ( user_can( get_current_user_id(), 'edit_theme_options' ) ): ?>
|
<?php elseif ( user_can( get_current_user_id(), 'edit_theme_options' ) ): ?>
|
||||||
<ul class="below-content-widgets">
|
<ul class="below-content-widgets">
|
||||||
|
|||||||
@ -23,7 +23,7 @@ if ( !defined( 'WPINC' ) ) {
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li id="archives" class="panel widget">
|
<li id="archives" class="panel widget">
|
||||||
<h3 class="widget-title"><?php _e( 'Archives', 'minimalistflex' ); ?></h3>
|
<h3 class="widget-title"><?php esc_html_e( 'Archives', 'minimalistflex' ); ?></h3>
|
||||||
<ul>
|
<ul>
|
||||||
<?php wp_get_archives( array( 'type' => 'monthly' ) ); ?>
|
<?php wp_get_archives( array( 'type' => 'monthly' ) ); ?>
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
42
singular.php
42
singular.php
@ -5,57 +5,61 @@ if ( !defined( 'WPINC' ) ) {
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$default_images = explode( ',', get_theme_mod( 'minimalistflex_default_featured_images' ));
|
$mf_default_images = explode( ',', get_theme_mod( 'minimalistflex_default_featured_images' ));
|
||||||
$default_image_location = get_theme_mod( 'minimalistflex_default_featured_images_location', 'archive' );
|
$mf_default_image_location = get_theme_mod( 'minimalistflex_default_featured_images_location', 'archive' );
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php get_header(); ?>
|
<?php get_header(); ?>
|
||||||
|
|
||||||
<?php if ( have_posts() ) :
|
<?php if ( have_posts() ) :
|
||||||
the_post();
|
the_post();
|
||||||
$id = get_the_author_meta( 'ID' );
|
$mf_id = get_the_author_meta( 'ID' );
|
||||||
?>
|
?>
|
||||||
<div <?php post_class( "singular" ) ?>>
|
<div <?php post_class( "singular" ) ?>>
|
||||||
<?php if ( has_post_thumbnail() ): ?>
|
<?php if ( has_post_thumbnail() ): ?>
|
||||||
<div class="singular-image">
|
<div class="singular-image">
|
||||||
<?php the_post_thumbnail( 'large' ); ?>
|
<?php the_post_thumbnail( 'large' ); ?>
|
||||||
</div>
|
</div>
|
||||||
<?php elseif ( ( $default_images[0] <> '' || minimalistflex_get_first_image() ) && $default_image_location <> 'no' && $default_image_location <> 'archive' ): ?>
|
<?php elseif ( ( $mf_default_images[0] <> '' || minimalistflex_get_first_image() ) && $mf_default_image_location <> 'no' && $mf_default_image_location <> 'archive' ): ?>
|
||||||
<?php if ( get_theme_mod( 'minimalistflex_default_featured_images_first_image', 'yes' ) === 'yes' && minimalistflex_get_first_image() ): ?>
|
<?php if ( get_theme_mod( 'minimalistflex_default_featured_images_first_image', 'yes' ) === 'yes' && minimalistflex_get_first_image() ): ?>
|
||||||
<?php $imgsrc = minimalistflex_get_first_image(); ?>
|
<?php $mf_imgsrc = minimalistflex_get_first_image(); ?>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<?php
|
<?php
|
||||||
$key = minimalistflex_get_seconds() % count($default_images);
|
$mf_key = minimalistflex_get_seconds() % count($mf_default_images);
|
||||||
$imgsrc = $default_images[$key];
|
$mf_imgsrc = $mf_default_images[$mf_key];
|
||||||
?>
|
?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<div class="singular-image">
|
<div class="singular-image">
|
||||||
<img src="<?php echo esc_url( $imgsrc ) ?>" aria-label="<?php
|
<img src="<?php echo esc_url( $mf_imgsrc ) ?>" aria-label="<?php
|
||||||
printf(
|
printf(
|
||||||
/* translators: %s: Title of the post. */
|
/* translators: %s: Title of the post. */
|
||||||
esc_attr__( 'The thumbnail image for %s.', 'minimalistflex' ),
|
esc_attr__( 'The thumbnail image for %s.', 'minimalistflex' ),
|
||||||
get_the_title()
|
esc_attr( get_the_title() )
|
||||||
)
|
)
|
||||||
?>">
|
?>">
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<div class="singular-main">
|
<div class="singular-main">
|
||||||
<h1 class="panel-title"><?php the_title(); ?></h1>
|
<div class="singular-post">
|
||||||
<?php get_template_part( 'templates/publisher' ) ?>
|
<h1 class="panel-title"><?php the_title(); ?></h1>
|
||||||
<div class="panel-main">
|
<?php get_template_part( 'templates/publisher' ) ?>
|
||||||
<?php the_content(); ?>
|
<div class="panel-main">
|
||||||
<?php wp_link_pages( Array(
|
<?php the_content(); ?>
|
||||||
'before' => '<p class="panel post-nav-links"><span class="post-nav-links-indicator">' . __( 'Pages: ', 'minimalistflex' ) . '</span>'
|
<?php wp_link_pages( Array(
|
||||||
) ); ?>
|
'before' => '<p class="panel post-nav-links"><span class="post-nav-links-indicator">' . __( 'Pages: ', 'minimalistflex' ) . '</span>'
|
||||||
|
) ); ?>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<?php get_sidebar( 'below-content' ) ?>
|
<?php get_sidebar( 'below-content' ) ?>
|
||||||
<?php get_template_part( 'templates/author' ) ?>
|
<div class="singular-card">
|
||||||
<?php get_template_part( 'templates/metadata' ) ?>
|
<?php get_template_part( 'templates/author' ) ?>
|
||||||
|
<?php get_template_part( 'templates/metadata' ) ?>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<?php if ( comments_open() || get_comments_number() ) :
|
<?php if ( comments_open() || get_comments_number() ) :
|
||||||
comments_template();
|
comments_template();
|
||||||
else: ?>
|
else: ?>
|
||||||
<p class="no-comments"><?php _e( 'Comments are closed.', 'minimalistflex' ); ?></p>
|
<p class="no-comments"><?php esc_html_e( 'Comments are closed.', 'minimalistflex' ); ?></p>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
|
|||||||
260
style.css
260
style.css
@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* Theme Name: MinimalistFlex
|
* 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!
|
* 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.3
|
* Version: 1.1.1
|
||||||
* Theme URI: https://github.com/onmyodev/MinimalistFlex/
|
* Theme URI: https://github.com/onmyodev/MinimalistFlex/
|
||||||
* Author: Frank419
|
* Author: Frank419
|
||||||
* Author URI: https://onmyodev.com/
|
* Author URI: https://onmyodev.com/
|
||||||
@ -10,6 +10,7 @@
|
|||||||
* Tested up to: 6.6
|
* Tested up to: 6.6
|
||||||
* Requires at least: 4.9
|
* Requires at least: 4.9
|
||||||
* Requires PHP: 5.6
|
* Requires PHP: 5.6
|
||||||
|
* Requires CP: 1.0
|
||||||
* License: GNU General Public License v3.0 or later
|
* License: GNU General Public License v3.0 or later
|
||||||
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
||||||
* Copyright: The MinimalistFlex theme, Copyright Frank419 2024.
|
* Copyright: The MinimalistFlex theme, Copyright Frank419 2024.
|
||||||
@ -77,27 +78,9 @@
|
|||||||
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
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 {
|
html {
|
||||||
scroll-behavior: smooth;
|
scroll-behavior: smooth;
|
||||||
|
color: var(--minimalistflex-default);
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
@ -114,7 +97,7 @@ body.loading * {
|
|||||||
body.custom-background .minimalistflex-content {
|
body.custom-background .minimalistflex-content {
|
||||||
background-color: color-mix(
|
background-color: color-mix(
|
||||||
in srgb,
|
in srgb,
|
||||||
var(--minimalistflex-level1),
|
var(--minimalistflex-level2),
|
||||||
transparent 50%
|
transparent 50%
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -122,7 +105,7 @@ body.custom-background .minimalistflex-content {
|
|||||||
body.custom-background .minimalistflex-sidebar {
|
body.custom-background .minimalistflex-sidebar {
|
||||||
background-color: color-mix(
|
background-color: color-mix(
|
||||||
in srgb,
|
in srgb,
|
||||||
var(--minimalistflex-level2),
|
var(--minimalistflex-level1),
|
||||||
transparent 25%
|
transparent 25%
|
||||||
);
|
);
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
@ -141,13 +124,11 @@ button:focus {
|
|||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
|
||||||
.minimalistflex-master a,
|
.minimalistflex-master a {
|
||||||
.minimalistflex-master a * {
|
|
||||||
color: var(--minimalistflex-link);
|
color: var(--minimalistflex-link);
|
||||||
}
|
}
|
||||||
|
|
||||||
.minimalistflex-master a:hover,
|
.minimalistflex-master a:hover {
|
||||||
.minimalistflex-master a:hover * {
|
|
||||||
color: var(--minimalistflex-link-hover);
|
color: var(--minimalistflex-link-hover);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -160,6 +141,7 @@ button:focus {
|
|||||||
);
|
);
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
color: var(--minimalistflex-default);
|
color: var(--minimalistflex-default);
|
||||||
|
padding: 1em !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.warning::before {
|
.warning::before {
|
||||||
@ -176,11 +158,11 @@ button:focus {
|
|||||||
border-radius: 1em;
|
border-radius: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
tt,
|
.minimalistflex-master tt,
|
||||||
kbd,
|
.minimalistflex-master kbd,
|
||||||
code,
|
.minimalistflex-master code,
|
||||||
pre {
|
.minimalistflex-master pre {
|
||||||
font-family: Hack, 'Courier New', Courier, monospace;
|
font-family: 'Courier New', Courier, monospace;
|
||||||
background-color: #111111;
|
background-color: #111111;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
@ -188,36 +170,36 @@ pre {
|
|||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
code:has(br) {
|
.minimalistflex-master code:has(br) {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
blockquote,
|
.minimalistflex-master blockquote,
|
||||||
address {
|
.minimalistflex-master address {
|
||||||
border-left: solid 3px var(--minimalistflex-tint);
|
border-left: solid 3px var(--minimalistflex-tint);
|
||||||
padding-left: 1em;
|
padding-left: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
dt {
|
.minimalistflex-master dt {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
table {
|
.minimalistflex-master table {
|
||||||
border: none;
|
border: none;
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
}
|
}
|
||||||
|
|
||||||
table thead,
|
.minimalistflex-master table thead,
|
||||||
table tbody tr:not(:last-child) {
|
.minimalistflex-master table tbody tr:not(:last-child) {
|
||||||
border-bottom: solid 1px var(--minimalistflex-default);
|
border-bottom: solid 1px var(--minimalistflex-default);
|
||||||
}
|
}
|
||||||
|
|
||||||
table thead,
|
.minimalistflex-master table thead,
|
||||||
table tbody tr:nth-child(2n) {
|
.minimalistflex-master table tbody tr:nth-child(2n) {
|
||||||
background-color: color-mix(
|
background-color: color-mix(
|
||||||
in srgb,
|
in srgb,
|
||||||
#f0f0f0,
|
var(--minimalistflex-header-sidebar),
|
||||||
transparent 25%
|
transparent 50%
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -225,17 +207,19 @@ table tbody tr:nth-child(2n) {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
a[target=_blank] {
|
.minimalistflex-master a[target=_blank] {
|
||||||
margin-left: 1.5em;
|
padding-left: 1em;
|
||||||
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
a[target=_blank]::before {
|
.minimalistflex-master a[target=_blank]::before {
|
||||||
content: "\f504";
|
content: "\f504";
|
||||||
font-family: "Dashicons";
|
font-family: "Dashicons";
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: calc(1em + 3px);
|
font-size: 14px;
|
||||||
left: 1em;
|
top: -5px;
|
||||||
|
left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -368,6 +352,7 @@ a[target=_blank]::before {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
flex-wrap: nowrap;
|
flex-wrap: nowrap;
|
||||||
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.minimalistflex-menu li {
|
.minimalistflex-menu li {
|
||||||
@ -389,7 +374,7 @@ a[target=_blank]::before {
|
|||||||
display: none;
|
display: none;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 100%;
|
top: 100%;
|
||||||
left: 0;
|
right: 0;
|
||||||
background-color: var(--minimalistflex-header-bg);
|
background-color: var(--minimalistflex-header-bg);
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
width: 200px;
|
width: 200px;
|
||||||
@ -463,7 +448,6 @@ a[target=_blank]::before {
|
|||||||
.minimalistflex-master {
|
.minimalistflex-master {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: nowrap;
|
flex-wrap: nowrap;
|
||||||
align-items: stretch;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.minimalistflex-master.minimalistflex-sidebar-layout-right {
|
.minimalistflex-master.minimalistflex-sidebar-layout-right {
|
||||||
@ -476,13 +460,17 @@ a[target=_blank]::before {
|
|||||||
|
|
||||||
.minimalistflex-content {
|
.minimalistflex-content {
|
||||||
width: 67%;
|
width: 67%;
|
||||||
background-color: var(--minimalistflex-level1);
|
background-color: var(--minimalistflex-level2);
|
||||||
|
}
|
||||||
|
|
||||||
|
.minimalistflex-master.minimalistflex-sidebar-layout-no .minimalistflex-content {
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.minimalistflex-sidebar {
|
.minimalistflex-sidebar {
|
||||||
width: 33%;
|
width: 33%;
|
||||||
background-color: var(--minimalistflex-level2);
|
background-color: var(--minimalistflex-level1);
|
||||||
box-shadow: var(--minimalistflex-inset-shadow-light);
|
box-shadow: var(--minimalistflex-card-shadow);
|
||||||
}
|
}
|
||||||
|
|
||||||
.page-numbers,
|
.page-numbers,
|
||||||
@ -491,11 +479,12 @@ a[target=_blank]::before {
|
|||||||
margin: 10%;
|
margin: 10%;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
border-radius: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.panel.sticky {
|
.panel.sticky {
|
||||||
border-top: solid 3px var(--minimalistflex-tint);
|
border-top: solid 3px var(--minimalistflex-tint);
|
||||||
padding-top: 2em;
|
padding-top: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.panel.sticky:has(.panel-image) {
|
.panel.sticky:has(.panel-image) {
|
||||||
@ -505,7 +494,7 @@ a[target=_blank]::before {
|
|||||||
.panel.sticky::before {
|
.panel.sticky::before {
|
||||||
content: var(--minimalistflex-featured);
|
content: var(--minimalistflex-featured);
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: calc(-2em - 6px);
|
||||||
right: 1em;
|
right: 1em;
|
||||||
padding: 0.5em 1em;
|
padding: 0.5em 1em;
|
||||||
color: var(--minimalistflex-contrast);
|
color: var(--minimalistflex-contrast);
|
||||||
@ -534,34 +523,36 @@ a[target=_blank]::before {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.panel-content {
|
.panel-content {
|
||||||
padding: 1em;
|
|
||||||
position: relative;
|
position: relative;
|
||||||
|
background-color: var(--minimalistflex-level1);
|
||||||
|
box-shadow: var(--minimalistflex-card-shadow);
|
||||||
}
|
}
|
||||||
|
|
||||||
.panel-comment-count {
|
.panel-content > * {
|
||||||
position: absolute;
|
padding: 1em;
|
||||||
right: 1em;
|
|
||||||
top: 1em;
|
|
||||||
font-size: 12px;
|
|
||||||
color: var(--minimalistflex-level3-dark);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.panel-title {
|
.panel-title {
|
||||||
padding: 0;
|
padding: 16px;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font-size: 32px;
|
font-size: 32px;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
.panel-main {
|
|
||||||
border-bottom: solid 1px var(--minimalistflex-shadow);
|
|
||||||
}
|
|
||||||
|
|
||||||
.panel-meta {
|
.panel-meta {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: left;
|
||||||
|
background-color: var(--minimalistflex-level2);
|
||||||
|
line-height: 0;
|
||||||
|
border-top: solid 1px var(--minimalistflex-shadow);
|
||||||
|
border-bottom: solid 1px var(--minimalistflex-shadow);
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.panel-meta > * {
|
||||||
|
margin-right: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.panel-author {
|
.panel-author {
|
||||||
@ -578,21 +569,38 @@ a.panel-author:focus {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.panel-meta .avatar {
|
.panel-meta .avatar {
|
||||||
width: 40px;
|
width: 2em;
|
||||||
height: 40px;
|
height: 2em;
|
||||||
border-radius: 20px;
|
border-radius: 2px;
|
||||||
margin: 1em;
|
margin: 0;
|
||||||
|
margin-right: 1em;
|
||||||
box-shadow: var(--minimalistflex-card-shadow);
|
box-shadow: var(--minimalistflex-card-shadow);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.panel-meta span {
|
||||||
|
color: var(--minimalistflex-link);
|
||||||
|
}
|
||||||
|
|
||||||
|
.panel-comment-count a {
|
||||||
|
color: var(--minimalistflex-link);
|
||||||
|
}
|
||||||
|
|
||||||
|
.panel-comment-count a:hover {
|
||||||
|
color: var(--minimalistflex-link-hover);
|
||||||
|
}
|
||||||
|
|
||||||
|
.panel-link-container {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
.panel-link {
|
.panel-link {
|
||||||
position: relative;
|
position: relative;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
color: var(--minimalistflex-default);
|
color: var(--minimalistflex-default);
|
||||||
padding: 1em;
|
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
padding-right: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.panel-link:hover,
|
.panel-link:hover,
|
||||||
@ -633,7 +641,6 @@ a.panel-author:focus {
|
|||||||
.post-nav-links {
|
.post-nav-links {
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
margin-bottom: 1em;
|
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -735,12 +742,12 @@ a.panel-author:focus {
|
|||||||
top: calc(50% - 75px);
|
top: calc(50% - 75px);
|
||||||
width: 150px;
|
width: 150px;
|
||||||
height: 150px;
|
height: 150px;
|
||||||
border-radius: 75px;
|
border-radius: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.author-page-avatar img {
|
.author-page-avatar img {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
border-radius: 75px;
|
border-radius: 2px;
|
||||||
box-shadow: var(--minimalistflex-card-shadow);
|
box-shadow: var(--minimalistflex-card-shadow);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -754,7 +761,7 @@ a.panel-author:focus {
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
border-radius: 16px;
|
border-radius: 2px;
|
||||||
padding: 0 1em;
|
padding: 0 1em;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
@ -779,12 +786,12 @@ a.panel-author:focus {
|
|||||||
|
|
||||||
.singular-image {
|
.singular-image {
|
||||||
display: block;
|
display: block;
|
||||||
width: 70%;
|
width: 80%;
|
||||||
height: var(--minimalistflex-max-height);
|
height: var(--minimalistflex-max-height);
|
||||||
margin: 2em;
|
|
||||||
box-shadow: var(--minimalistflex-card-shadow);
|
box-shadow: var(--minimalistflex-card-shadow);
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
line-height: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.singular-image > img {
|
.singular-image > img {
|
||||||
@ -794,17 +801,31 @@ a.panel-author:focus {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.singular-main {
|
.singular-main {
|
||||||
width: 50%;
|
margin: 10%;
|
||||||
padding: 2em;
|
width: 80%;
|
||||||
line-height: 2em;
|
line-height: 2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.singular-post {
|
||||||
|
padding: 0;
|
||||||
|
box-shadow: var(--minimalistflex-card-shadow);
|
||||||
|
}
|
||||||
|
|
||||||
|
.singular-post > * {
|
||||||
|
padding: 2em;
|
||||||
|
background-color: var(--minimalistflex-level1);
|
||||||
|
}
|
||||||
|
|
||||||
.publisher {
|
.publisher {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
justify-content: space-between;
|
justify-content: left;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 1em;
|
padding: 1em;
|
||||||
|
background-color: var(--minimalistflex-level2);
|
||||||
|
border-top: solid 1px var(--minimalistflex-shadow);
|
||||||
|
border-bottom: solid 1px var(--minimalistflex-shadow);
|
||||||
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.publisher-link {
|
.publisher-link {
|
||||||
@ -813,21 +834,31 @@ a.panel-author:focus {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.publisher > * {
|
||||||
|
margin-right: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
.publisher-link img {
|
.publisher-link img {
|
||||||
height: 2em;
|
height: 2em;
|
||||||
width: 2em;
|
width: 2em;
|
||||||
border-radius: 50%;
|
border-radius: 2px;
|
||||||
box-shadow: var(--minimalistflex-card-shadow);
|
box-shadow: var(--minimalistflex-card-shadow);
|
||||||
margin-right: 1em;
|
margin: 0 1em 0 0 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.publisher-datetime {
|
.publisher-datetime {
|
||||||
color: var(--minimalistflex-level3-dark);
|
color: var(--minimalistflex-level3-dark);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.singular-card {
|
||||||
|
box-shadow: var(--minimalistflex-card-shadow);
|
||||||
|
}
|
||||||
|
|
||||||
.singular-author {
|
.singular-author {
|
||||||
padding: 1em;
|
padding: 1em;
|
||||||
clear: both;
|
clear: both;
|
||||||
|
background-color: var(--minimalistflex-level2);
|
||||||
|
border-bottom: solid 1px var(--minimalistflex-shadow);
|
||||||
}
|
}
|
||||||
|
|
||||||
.author-card {
|
.author-card {
|
||||||
@ -838,7 +869,7 @@ a.panel-author:focus {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.author-avatar img {
|
.author-avatar img {
|
||||||
border-radius: 50%;
|
border-radius: 2px;
|
||||||
box-shadow: var(--minimalistflex-card-shadow);
|
box-shadow: var(--minimalistflex-card-shadow);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -862,6 +893,7 @@ a.author-link {
|
|||||||
|
|
||||||
.singular-meta {
|
.singular-meta {
|
||||||
padding: 1em;
|
padding: 1em;
|
||||||
|
background-color: var(--minimalistflex-level1);
|
||||||
}
|
}
|
||||||
|
|
||||||
.singular-categories {
|
.singular-categories {
|
||||||
@ -900,10 +932,16 @@ a.author-link {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.comments-area {
|
.comments-area {
|
||||||
width: 70%;
|
width: 80%;
|
||||||
margin-bottom: 4em;
|
margin-bottom: 4em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.comment-respond {
|
||||||
|
background-color: var(--minimalistflex-level1);
|
||||||
|
box-shadow: var(--minimalistflex-card-shadow);
|
||||||
|
padding: 2em;
|
||||||
|
}
|
||||||
|
|
||||||
.comment-list {
|
.comment-list {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
@ -918,6 +956,29 @@ a.author-link {
|
|||||||
|
|
||||||
.comment {
|
.comment {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
background-color: var(--minimalistflex-level1);
|
||||||
|
box-shadow: var(--minimalistflex-card-shadow);
|
||||||
|
margin: 1em 0 1em 4em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.comment-list .children .comment {
|
||||||
|
margin: 0 2em;
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.comment-list .children .children {
|
||||||
|
margin-left: -4.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.comment .comment-respond {
|
||||||
|
box-shadow: none;
|
||||||
|
background-color: var(--minimalistflex-level2);
|
||||||
|
}
|
||||||
|
|
||||||
|
.comment .children .comment-respond {
|
||||||
|
margin-left: -5.5em;
|
||||||
|
margin-bottom: 2em;
|
||||||
|
width: calc(100% + 7.5em);
|
||||||
}
|
}
|
||||||
|
|
||||||
.comment.bypostauthor {
|
.comment.bypostauthor {
|
||||||
@ -953,6 +1014,19 @@ a.author-link {
|
|||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.comment-edit-link {
|
||||||
|
position: relative;
|
||||||
|
padding-left: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.comment-edit-link::before {
|
||||||
|
position: absolute;
|
||||||
|
content: "\f464";
|
||||||
|
font-family: "Dashicons";
|
||||||
|
top: 1px;
|
||||||
|
left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.comment-body {
|
.comment-body {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 2em;
|
padding: 2em;
|
||||||
@ -961,10 +1035,12 @@ a.author-link {
|
|||||||
|
|
||||||
.comment-author > .avatar {
|
.comment-author > .avatar {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: -20px;
|
top: 0;
|
||||||
left: -20px;
|
left: -4em;
|
||||||
border-radius: 20px;
|
margin: 0;
|
||||||
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
|
border-radius: 2px;
|
||||||
|
box-shadow: var(--minimalistflex-card-shadow);
|
||||||
|
background-color: var(--minimalistflex-level1);
|
||||||
}
|
}
|
||||||
|
|
||||||
.comment-form {
|
.comment-form {
|
||||||
@ -1067,8 +1143,9 @@ p[class*=comment-form-] {
|
|||||||
clear: both;
|
clear: both;
|
||||||
}
|
}
|
||||||
|
|
||||||
.panel.widget {
|
.below-content-widgets {
|
||||||
padding: 1em;
|
background-color: transparent;
|
||||||
|
box-shadow: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.widget > * {
|
.widget > * {
|
||||||
@ -1524,6 +1601,7 @@ a img.alignwide {
|
|||||||
|
|
||||||
.minimalistflex-menu ul {
|
.minimalistflex-menu ul {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
align-items: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
.minimalistflex-menu .menu-item-has-children:hover > .sub-menu {
|
.minimalistflex-menu .menu-item-has-children:hover > .sub-menu {
|
||||||
|
|||||||
@ -4,14 +4,14 @@ if ( !defined( 'WPINC' ) ) {
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php $userid = get_the_author_meta( 'ID' ) ?>
|
<?php $mf_userid = get_the_author_meta( 'ID' ) ?>
|
||||||
<div class="singular-author">
|
<div class="singular-author">
|
||||||
<div class="author-card">
|
<div class="author-card">
|
||||||
<div class="author-avatar">
|
<div class="author-avatar">
|
||||||
<?php echo get_avatar( $userid, 80 ); ?>
|
<?php echo get_avatar( $mf_userid, 80 ); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="author-description">
|
<div class="author-description">
|
||||||
<a class="author-link" href="<?php echo get_author_posts_url( $userid ) ?>"><?php the_author() ?></a>
|
<a class="author-link" href="<?php echo esc_url( get_author_posts_url( $mf_userid ) ) ?>"><?php the_author() ?></a>
|
||||||
<p class="author-tagline"><?php the_author_meta( 'description' ) ?></p>
|
<p class="author-tagline"><?php the_author_meta( 'description' ) ?></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -5,14 +5,14 @@ if ( !defined( 'WPINC' ) ) {
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$default_images = explode( ',', get_theme_mod( 'minimalistflex_default_featured_images' ));
|
$mf_default_images = explode( ',', get_theme_mod( 'minimalistflex_default_featured_images' ));
|
||||||
$default_image_location = get_theme_mod( 'minimalistflex_default_featured_images_location', 'archive' );
|
$mf_default_image_location = get_theme_mod( 'minimalistflex_default_featured_images_location', 'archive' );
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php while ( have_posts() ) :
|
<?php while ( have_posts() ) :
|
||||||
the_post();
|
the_post();
|
||||||
$id = get_the_author_meta('ID');
|
$mf_id = get_the_author_meta('ID');
|
||||||
$post_id = get_the_ID();
|
$mf_post_id = get_the_ID();
|
||||||
?>
|
?>
|
||||||
<div <?php post_class("panel"); ?>>
|
<div <?php post_class("panel"); ?>>
|
||||||
<?php if ( has_post_thumbnail() ): ?>
|
<?php if ( has_post_thumbnail() ): ?>
|
||||||
@ -20,88 +20,94 @@ $default_image_location = get_theme_mod( 'minimalistflex_default_featured_images
|
|||||||
printf(
|
printf(
|
||||||
/* translators: %s: Post title associated with the thumbnail image. */
|
/* translators: %s: Post title associated with the thumbnail image. */
|
||||||
esc_attr__( 'Thumbnail image of %s. Also a link that navigates to it.', 'minimalistflex' ),
|
esc_attr__( 'Thumbnail image of %s. Also a link that navigates to it.', 'minimalistflex' ),
|
||||||
get_the_title()
|
esc_attr( get_the_title() )
|
||||||
) ?>">
|
) ?>">
|
||||||
<?php the_post_thumbnail( 'large' ); ?>
|
<?php the_post_thumbnail( 'large' ); ?>
|
||||||
</a>
|
</a>
|
||||||
<?php elseif ( ( $default_images[0] <> '' || minimalistflex_get_first_image() ) && $default_image_location <> 'no' && $default_image_location <> 'single' ): ?>
|
<?php elseif ( ( $mf_default_images[0] <> '' || minimalistflex_get_first_image() ) && $mf_default_image_location <> 'no' && $mf_default_image_location <> 'single' ): ?>
|
||||||
<?php if ( get_theme_mod( 'minimalistflex_default_featured_images_first_image', 'yes' ) === 'yes' && minimalistflex_get_first_image() ): ?>
|
<?php if ( get_theme_mod( 'minimalistflex_default_featured_images_first_image', 'yes' ) === 'yes' && minimalistflex_get_first_image() ): ?>
|
||||||
<?php $imgsrc = minimalistflex_get_first_image(); ?>
|
<?php $mf_imgsrc = minimalistflex_get_first_image(); ?>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<?php
|
<?php
|
||||||
$key = minimalistflex_get_seconds() % count($default_images);
|
$mf_key = minimalistflex_get_seconds() % count($mf_default_images);
|
||||||
$imgsrc = $default_images[$key];
|
$mf_imgsrc = $mf_default_images[$mf_key];
|
||||||
?>
|
?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<a class="panel-image" href="<?php the_permalink() ?>" aria-label="<?php
|
<a class="panel-image" href="<?php the_permalink() ?>" aria-label="<?php
|
||||||
printf(
|
printf(
|
||||||
/* translators: %s: Post title associated with the thumbnail image. */
|
/* translators: %s: Post title associated with the thumbnail image. */
|
||||||
esc_attr__( 'The thhumbnail image link for %s', 'minimalistflex' ),
|
esc_attr__( 'The thhumbnail image link for %s', 'minimalistflex' ),
|
||||||
get_the_title()
|
esc_attr( get_the_title() )
|
||||||
) ?>">
|
) ?>">
|
||||||
<img src="<?php echo esc_url( $imgsrc );?>" aria-label="<?php
|
<img src="<?php echo esc_url( $mf_imgsrc );?>" aria-label="<?php
|
||||||
printf(
|
printf(
|
||||||
/* translators: %s: Title of the post. */
|
/* translators: %s: Title of the post. */
|
||||||
esc_attr__( 'The thumbnail image for %s.', 'minimalistflex' ),
|
esc_attr__( 'The thumbnail image for %s.', 'minimalistflex' ),
|
||||||
get_the_title()
|
esc_attr( get_the_title() )
|
||||||
)
|
)
|
||||||
?>">
|
?>">
|
||||||
</a>
|
</a>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<div class="panel-content">
|
<div class="panel-content">
|
||||||
<?php if ( get_theme_mod( 'minimalistflex_interface_comment_count', 'yes' ) === 'yes' ): ?>
|
<h2 class="panel-title"><?php the_title(); ?></h2>
|
||||||
<div class="panel-comment-count">
|
|
||||||
<?php
|
|
||||||
printf(
|
|
||||||
_nx(
|
|
||||||
'1 Comment',
|
|
||||||
'%d Comments',
|
|
||||||
get_comments_number(),
|
|
||||||
'comment count',
|
|
||||||
'minimalistflex'
|
|
||||||
),
|
|
||||||
number_format_i18n( get_comments_number() )
|
|
||||||
);
|
|
||||||
?>
|
|
||||||
</div>
|
|
||||||
<?php endif; ?>
|
|
||||||
<h1 class="panel-title"><?php the_title(); ?></h1>
|
|
||||||
<div class="panel-main">
|
<div class="panel-main">
|
||||||
<?php the_excerpt(); ?>
|
<?php the_excerpt(); ?>
|
||||||
<?php wp_link_pages( Array(
|
|
||||||
'before' => '<p class="panel post-nav-links"><span class="post-nav-links-indicator">' . __('Pages: ', 'minimalistflex') . '</span>'
|
|
||||||
) ); ?>
|
|
||||||
</div>
|
</div>
|
||||||
|
<?php wp_link_pages( Array(
|
||||||
|
'before' => '<div class="panel post-nav-links"><span class="post-nav-links-indicator">' . esc_html__('Pages: ', 'minimalistflex') . '</span>',
|
||||||
|
'after' => '</div>'
|
||||||
|
) ); ?>
|
||||||
<div class="panel-meta">
|
<div class="panel-meta">
|
||||||
<?php if ( get_theme_mod( 'minimalistflex_interface_publisher', 'yes' ) === 'yes' ): ?>
|
<?php if ( get_theme_mod( 'minimalistflex_interface_publisher', 'yes' ) === 'yes' ): ?>
|
||||||
<a class="panel-author" href="<?php echo esc_url( get_author_posts_url($id) ) ?>">
|
<a class="panel-author" href="<?php echo esc_url( get_author_posts_url($mf_id) ) ?>">
|
||||||
<span aria-hidden="true"><?php echo get_avatar( $id, 80 ) ?></span>
|
<span aria-hidden="true"><?php echo get_avatar( $mf_id, 80 ) ?></span>
|
||||||
<?php the_author() ?>
|
<span><?php the_author() ?></span>
|
||||||
</a>
|
</a>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php $datemode = get_theme_mod( 'minimalistflex_interface_date', 'modify' ); ?>
|
<?php $mf_datemode = get_theme_mod( 'minimalistflex_interface_date', 'modify' ); ?>
|
||||||
<?php if ( $datemode <> 'no' ): ?>
|
<?php if ( $mf_datemode <> 'no' ): ?>
|
||||||
<div class="panel-author">
|
<div class="panel-author">
|
||||||
<?php if ( $datemode === 'publish' || get_the_modified_date() <> get_the_date() ): ?>
|
<?php if ( $mf_datemode === 'publish' || get_the_modified_date() <> get_the_date() ): ?>
|
||||||
<?php printf(
|
<?php printf(
|
||||||
/* translators: %s: Post publish time. */
|
/* translators: %s: Post publish time. */
|
||||||
__( 'Published on %s', 'minimalistflex' ),
|
esc_html__( 'Published on %s', 'minimalistflex' ),
|
||||||
get_the_date()
|
esc_html( get_the_date() )
|
||||||
) ?>
|
) ?>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<?php printf(
|
<?php printf(
|
||||||
/* translators: %s: Post last modified time. */
|
/* translators: %s: Post last modified time. */
|
||||||
__( 'Last modified on %s', 'minimalistflex' ),
|
esc_html__( 'Last modified on %s', 'minimalistflex' ),
|
||||||
get_the_modified_date()
|
esc_html( get_the_modified_date() )
|
||||||
) ?>
|
) ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
<?php if ( get_theme_mod( 'minimalistflex_interface_comment_count', 'yes' ) === 'yes' ): ?>
|
||||||
|
<div class="panel-comment-count">
|
||||||
|
<a href="<?php echo esc_url( get_comments_link() ) ?>">
|
||||||
|
<?php
|
||||||
|
printf(
|
||||||
|
/* translators: %d: Number of comments. */
|
||||||
|
esc_html( _nx(
|
||||||
|
'%d Comment',
|
||||||
|
'%d Comments',
|
||||||
|
get_comments_number(),
|
||||||
|
'comment count',
|
||||||
|
'minimalistflex'
|
||||||
|
) ),
|
||||||
|
esc_html( number_format_i18n( get_comments_number() ) )
|
||||||
|
);
|
||||||
|
?>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
|
</div>
|
||||||
|
<div class="panel-link-container">
|
||||||
<a class="panel panel-link" href="<?php the_permalink(); ?>" aria-label="<?php
|
<a class="panel panel-link" href="<?php the_permalink(); ?>" aria-label="<?php
|
||||||
printf(
|
printf(
|
||||||
/* translators: %s: Post title. */
|
/* translators: %s: Post title. */
|
||||||
__( 'Read more of %s', 'minimalistflex' ),
|
esc_attr__( 'Read more of %s', 'minimalistflex' ),
|
||||||
get_the_title()
|
esc_attr( get_the_title() )
|
||||||
)
|
)
|
||||||
?>">
|
?>">
|
||||||
<?php echo esc_html( get_theme_mod( 'minimalistflex_interface_readlink', __( 'Read More', 'minimalistflex' ) ) ); ?>
|
<?php echo esc_html( get_theme_mod( 'minimalistflex_interface_readlink', __( 'Read More', 'minimalistflex' ) ) ); ?>
|
||||||
|
|||||||
@ -5,31 +5,31 @@ if ( !defined( 'WPINC' ) ) {
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="singular-meta">
|
<div class="singular-meta">
|
||||||
<?php $tags = get_the_category(); ?>
|
<?php $mf_tags = get_the_category(); ?>
|
||||||
<?php if( $tags ): ?>
|
<?php if( $mf_tags ): ?>
|
||||||
<div class="singular-categories">
|
<div class="singular-categories">
|
||||||
<div class="categories-indicator">
|
<div class="categories-indicator">
|
||||||
<?php esc_html_e( 'Categories:', 'minimalistflex' ) ?>
|
<?php esc_html_e( 'Categories:', 'minimalistflex' ) ?>
|
||||||
</div>
|
</div>
|
||||||
<?php foreach( $tags as $tag ) { ?>
|
<?php foreach( $mf_tags as $mf_tag ) { ?>
|
||||||
<div class="singular-category">
|
<div class="singular-category">
|
||||||
<a href="<?php echo esc_url( get_category_link( $tag ) ) ?>">
|
<a href="<?php echo esc_url( get_category_link( $mf_tag ) ) ?>">
|
||||||
<?php echo $tag->name; ?>
|
<?php echo esc_html( $mf_tag->name ) ?>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php $tags = get_the_tags(); ?>
|
<?php $mf_tags = get_the_tags(); ?>
|
||||||
<?php if( $tags ): ?>
|
<?php if( $mf_tags ): ?>
|
||||||
<div class="singular-categories singular-tags">
|
<div class="singular-categories singular-tags">
|
||||||
<div class="categories-indicator tags-indicator">
|
<div class="categories-indicator tags-indicator">
|
||||||
<?php esc_html_e( 'Tags:', 'minimalistflex' ) ?>
|
<?php esc_html_e( 'Tags:', 'minimalistflex' ) ?>
|
||||||
</div>
|
</div>
|
||||||
<?php foreach( $tags as $tag ) { ?>
|
<?php foreach( $mf_tags as $mf_tag ) { ?>
|
||||||
<div class="singular-category singular-tag">
|
<div class="singular-category singular-tag">
|
||||||
<a href="<?php echo esc_url( get_tag_link( $tag ) ) ?>">
|
<a href="<?php echo esc_url( get_tag_link( $mf_tag ) ) ?>">
|
||||||
<?php echo $tag->name; ?>
|
<?php echo esc_html( $mf_tag->name ) ?>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|||||||
@ -4,10 +4,12 @@ if ( !defined( 'WPINC' ) ) {
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
<?php $mf_id = get_the_author_meta( 'ID' ); ?>
|
||||||
|
|
||||||
<div class="publisher">
|
<div class="publisher">
|
||||||
|
|
||||||
<a class="publisher-link" href="<?php echo esc_url( get_author_posts_url($id) ) ?>">
|
<a class="publisher-link" href="<?php echo esc_url( get_author_posts_url($mf_id) ) ?>">
|
||||||
<?php echo get_avatar( $id, 32 ) ?>
|
<?php echo get_avatar( $mf_id, 32 ) ?>
|
||||||
<span><?php the_author() ?></span>
|
<span><?php the_author() ?></span>
|
||||||
</a>
|
</a>
|
||||||
<div class="publisher-datetime">
|
<div class="publisher-datetime">
|
||||||
@ -16,14 +18,14 @@ if ( !defined( 'WPINC' ) ) {
|
|||||||
<?php if ( $datemode == 'publish' || get_the_modified_date() <> get_the_date() ): ?>
|
<?php if ( $datemode == 'publish' || get_the_modified_date() <> get_the_date() ): ?>
|
||||||
<?php printf(
|
<?php printf(
|
||||||
/* translators: %s: Post publish time. */
|
/* translators: %s: Post publish time. */
|
||||||
__( 'Published on %s', 'minimalistflex' ),
|
esc_html__( 'Published on %s', 'minimalistflex' ),
|
||||||
get_the_date()
|
esc_html( get_the_date() )
|
||||||
) ?>
|
) ?>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<?php printf(
|
<?php printf(
|
||||||
/* translators: %s: Post last modified time. */
|
/* translators: %s: Post last modified time. */
|
||||||
__( 'Last modified on %s', 'minimalistflex' ),
|
esc_html__( 'Last modified on %s', 'minimalistflex' ),
|
||||||
get_the_modified_date()
|
esc_html( get_the_modified_date() )
|
||||||
) ?>
|
) ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user