mirror of
https://ghproxy.net/https://github.com/AlxMedia/bigvisual.git
synced 2025-08-26 08:23:11 +08:00
1.0.1
This commit is contained in:
parent
81eed28cda
commit
797e90a735
10 changed files with 373 additions and 128 deletions
53
content-featured.php
Normal file
53
content-featured.php
Normal file
|
@ -0,0 +1,53 @@
|
|||
<?php $format = get_post_format(); ?>
|
||||
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class('card-large'); ?>>
|
||||
<div class="type-card">
|
||||
<div class="type-card-inner">
|
||||
<div class="type-card-thumbnail" style="background-image:url('<?php the_post_thumbnail_url('bigvisual-large'); ?>');">
|
||||
|
||||
<?php if ( has_post_format('video') && !is_sticky() ) echo'<span class="thumb-icon"><i class="fas fa-play"></i></span>'; ?>
|
||||
<?php if ( has_post_format('audio') && !is_sticky() ) echo'<span class="thumb-icon"><i class="fas fa-volume-up"></i></span>'; ?>
|
||||
<?php if ( is_sticky() ) echo'<span class="thumb-icon"><i class="fas fa-star"></i></span>'; ?>
|
||||
|
||||
<?php if ( comments_open() && ( get_theme_mod( 'comment-count', 'on' ) =='on' ) ): ?>
|
||||
<a class="type-card-comments" href="<?php comments_link(); ?>"><i class="fas fa-comment"></i><span><?php comments_number( '0', '1', '%' ); ?></span></a>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="type-card-content">
|
||||
|
||||
<h3 class="type-card-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h3>
|
||||
|
||||
<?php if (get_theme_mod('excerpt-length','26') != '0'): ?>
|
||||
<div class="type-card-excerpt">
|
||||
<?php the_excerpt(); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="type-card-thumbnail-bottom">
|
||||
|
||||
<?php if ( has_category() && ( get_theme_mod( 'card-category', 'on' ) =='on' ) ): ?>
|
||||
<div class="type-card-category"><?php the_category(' '); ?></div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ( get_theme_mod( 'card-avatar', 'on' ) =='on' ): ?>
|
||||
<div class="type-card-author">
|
||||
<a href="<?php echo get_author_posts_url(get_the_author_meta( 'ID' )); ?>"><?php echo get_avatar(get_the_author_meta('user_email'),'128'); ?></a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="type-card-bottom group">
|
||||
<?php if ( get_theme_mod( 'card-date', 'on' ) =='on' ): ?>
|
||||
<div class="type-card-date"><i class="far fa-calendar"></i><?php the_time( get_option('date_format') ); ?></div>
|
||||
<?php endif; ?>
|
||||
<?php if ( get_theme_mod( 'card-read-more', 'on' ) =='on' ): ?>
|
||||
<a class="type-card-more-link" href="<?php the_permalink(); ?>"><?php esc_html_e('Read more','bigvisual'); ?> <i class="fas fa-chevron-right"></i></a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
|
@ -1,6 +1,6 @@
|
|||
<?php $format = get_post_format(); ?>
|
||||
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class('card-small'); ?>>
|
||||
<div class="type-card">
|
||||
<div class="type-card-inner">
|
||||
<div class="type-card-thumbnail" style="background-image:url('<?php the_post_thumbnail_url('bigvisual-large'); ?>');">
|
||||
|
|
|
@ -511,7 +511,7 @@ if ( ! function_exists( 'bigvisual_get_featured_post_ids' ) ) {
|
|||
function bigvisual_get_featured_post_ids() {
|
||||
$args = array(
|
||||
'category' => absint( get_theme_mod('featured-category','') ),
|
||||
'numberposts' => absint( get_theme_mod('featured-posts-count','0')),
|
||||
'numberposts' => absint( get_theme_mod('featured-posts-count','3')),
|
||||
);
|
||||
$posts = get_posts($args);
|
||||
if ( !$posts ) return false;
|
||||
|
@ -627,11 +627,11 @@ if ( ! function_exists( 'bigvisual_pre_get_posts' ) ) {
|
|||
if ( $query->is_home() ) {
|
||||
|
||||
// Featured posts enabled
|
||||
if ( get_theme_mod('featured-posts-count','0') != '0' ) {
|
||||
if ( get_theme_mod('featured-posts-count','3') != '0' ) {
|
||||
// Get featured post ids
|
||||
$featured_post_ids = bigvisual_get_featured_post_ids();
|
||||
// Exclude posts
|
||||
if ( $featured_post_ids && !get_theme_mod('featured-posts-include') )
|
||||
if ( $featured_post_ids && get_theme_mod('featured-posts-include','off') =='on' )
|
||||
$query->set('post__not_in', $featured_post_ids);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -140,6 +140,40 @@ Kirki::add_field( 'bigvisual_theme', array(
|
|||
'step' => '1',
|
||||
),
|
||||
) );
|
||||
// Blog: Featured Posts Include
|
||||
Kirki::add_field( 'bigvisual_theme', array(
|
||||
'type' => 'switch',
|
||||
'settings' => 'featured-posts-include',
|
||||
'label' => esc_html__( 'Featured Posts', 'bigvisual' ),
|
||||
'description' => esc_html__( 'Exclude featured posts from the content below', 'bigvisual' ),
|
||||
'section' => 'blog',
|
||||
'default' => 'off',
|
||||
) );
|
||||
// Blog: Featured Category
|
||||
Kirki::add_field( 'bigvisual_theme', array(
|
||||
'type' => 'select',
|
||||
'settings' => 'featured-category',
|
||||
'label' => esc_html__( 'Featured Category', 'bigvisual' ),
|
||||
'description' => esc_html__( 'By not selecting a category, it will show your latest post(s) from all categories', 'bigvisual' ),
|
||||
'section' => 'blog',
|
||||
'default' => '',
|
||||
'choices' => Kirki_Helper::get_terms( 'category' ),
|
||||
'placeholder' => esc_html__( 'Select a category', 'bigvisual' ),
|
||||
) );
|
||||
// Blog: Featured Post Count
|
||||
Kirki::add_field( 'bigvisual_theme', array(
|
||||
'type' => 'slider',
|
||||
'settings' => 'featured-posts-count',
|
||||
'label' => esc_html__( 'Featured Post Count', 'bigvisual' ),
|
||||
'description' => esc_html__( 'Max number of featured posts to display. Set it to 0 to disable', 'bigvisual' ),
|
||||
'section' => 'blog',
|
||||
'default' => '3',
|
||||
'choices' => array(
|
||||
'min' => '0',
|
||||
'max' => '10',
|
||||
'step' => '1',
|
||||
),
|
||||
) );
|
||||
// Blog: Comment Count
|
||||
Kirki::add_field( 'bigvisual_theme', array(
|
||||
'type' => 'switch',
|
||||
|
|
32
inc/featured.php
Normal file
32
inc/featured.php
Normal file
|
@ -0,0 +1,32 @@
|
|||
<?php
|
||||
// Query featured entries
|
||||
$featured = new WP_Query(
|
||||
array(
|
||||
'no_found_rows' => false,
|
||||
'update_post_meta_cache' => false,
|
||||
'update_post_term_cache' => false,
|
||||
'ignore_sticky_posts' => 1,
|
||||
'posts_per_page' => absint( get_theme_mod('featured-posts-count','3') ),
|
||||
'cat' => absint( get_theme_mod('featured-category','') )
|
||||
)
|
||||
);
|
||||
?>
|
||||
|
||||
<?php if ( is_home() && !is_paged() && ( get_theme_mod('featured-posts-count','3') !='0') && $featured->have_posts() ): // Show if posts are not 0 ?>
|
||||
|
||||
<div class="slick-featured-wrap-outer">
|
||||
<div class="slick-featured-wrap">
|
||||
<div class="slick-featured">
|
||||
<?php while ( $featured->have_posts() ): $featured->the_post(); ?>
|
||||
<div>
|
||||
<?php get_template_part('content-featured'); ?>
|
||||
</div>
|
||||
<?php endwhile; ?>
|
||||
</div>
|
||||
<div class="slick-featured-nav"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php wp_reset_postdata(); ?>
|
|
@ -8,11 +8,15 @@
|
|||
|
||||
<?php get_template_part('inc/front-widgets-top'); ?>
|
||||
|
||||
<?php get_template_part('inc/featured'); ?>
|
||||
|
||||
<?php if ( have_posts() ) : ?>
|
||||
|
||||
<div class="article-grid">
|
||||
<?php while ( have_posts() ): the_post(); ?>
|
||||
<?php get_template_part('content'); ?>
|
||||
<?php endwhile; ?>
|
||||
</div>
|
||||
|
||||
<?php get_template_part('inc/front-widgets-bottom'); ?>
|
||||
<?php get_template_part('inc/pagination'); ?>
|
||||
|
|
|
@ -80,6 +80,70 @@ jQuery(document).ready(function($) {
|
|||
|
||||
responsiveVideo();
|
||||
|
||||
/* Slick featured posts
|
||||
/* ------------------------------------ */
|
||||
$.fn.randomize = function (selector) {
|
||||
var $elems = selector ? $(this).find(selector) : $(this).children(),
|
||||
$parents = $elems.parent();
|
||||
|
||||
$parents.each(function () {
|
||||
$(this).children(selector).sort(function (childA, childB) {
|
||||
// * Prevent last slide from being reordered
|
||||
if($(childB).index() !== $(this).children(selector).length - 0.5) {
|
||||
return Math.round(Math.random()) - 0.5;
|
||||
}
|
||||
}.bind(this)).detach().appendTo(this);
|
||||
});
|
||||
|
||||
return this;
|
||||
};
|
||||
|
||||
$(".slick-featured").randomize().slick({
|
||||
centerMode: true,
|
||||
centerPadding: '0',
|
||||
slidesToShow: 1,
|
||||
appendArrows: '.slick-featured-nav',
|
||||
responsive: [
|
||||
{
|
||||
breakpoint: 1280,
|
||||
settings: {
|
||||
arrows: true,
|
||||
centerMode: true,
|
||||
centerPadding: '0',
|
||||
slidesToShow: 1
|
||||
}
|
||||
},
|
||||
{
|
||||
breakpoint: 1024,
|
||||
settings: {
|
||||
arrows: true,
|
||||
centerMode: true,
|
||||
centerPadding: '0',
|
||||
slidesToShow: 1
|
||||
}
|
||||
},
|
||||
{
|
||||
breakpoint: 768,
|
||||
settings: {
|
||||
arrows: true,
|
||||
centerMode: true,
|
||||
centerPadding: '0',
|
||||
slidesToShow: 1
|
||||
}
|
||||
},
|
||||
{
|
||||
breakpoint: 480,
|
||||
settings: {
|
||||
arrows: true,
|
||||
centerMode: true,
|
||||
centerPadding: '0',
|
||||
slidesToShow: 1
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
$('.slick-featured-wrap-outer').show();
|
||||
|
||||
/* Slick image slide
|
||||
/* ------------------------------------ */
|
||||
$('.slick-image-slide').each( function() {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Bigvisual\n"
|
||||
"POT-Creation-Date: 2021-09-29 12:46+0200\n"
|
||||
"POT-Creation-Date: 2021-10-01 11:41+0200\n"
|
||||
"PO-Revision-Date: 2018-09-21 21:27+0100\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
|
@ -39,7 +39,7 @@ msgstr ""
|
|||
msgid "Pingbacks"
|
||||
msgstr ""
|
||||
|
||||
#: content.php:49
|
||||
#: content-featured.php:49 content.php:49
|
||||
msgid "Read more"
|
||||
msgstr ""
|
||||
|
||||
|
@ -79,7 +79,7 @@ msgstr ""
|
|||
msgid "Normal full width sidebar"
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:183 functions/theme-options.php:282
|
||||
#: functions.php:183 functions/theme-options.php:316
|
||||
msgid "Footer Ads"
|
||||
msgstr ""
|
||||
|
||||
|
@ -152,10 +152,10 @@ msgid "Primary Sidebar"
|
|||
msgstr ""
|
||||
|
||||
#: functions/meta-boxes.php:31 functions/meta-boxes.php:64
|
||||
#: functions/theme-options.php:481 functions/theme-options.php:491
|
||||
#: functions/theme-options.php:501 functions/theme-options.php:511
|
||||
#: functions/theme-options.php:521 functions/theme-options.php:531
|
||||
#: functions/theme-options.php:541
|
||||
#: functions/theme-options.php:515 functions/theme-options.php:525
|
||||
#: functions/theme-options.php:535 functions/theme-options.php:545
|
||||
#: functions/theme-options.php:555 functions/theme-options.php:565
|
||||
#: functions/theme-options.php:575
|
||||
msgid "Select a sidebar"
|
||||
msgstr ""
|
||||
|
||||
|
@ -282,474 +282,504 @@ msgid "Max number of words. Set it to 0 to disable."
|
|||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:147
|
||||
msgid "Card Comment Count"
|
||||
msgid "Featured Posts"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:148
|
||||
msgid "Comment count with bubbles"
|
||||
msgid "Exclude featured posts from the content below"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:156
|
||||
msgid "Card Categories"
|
||||
msgid "Featured Category"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:157
|
||||
msgid ""
|
||||
"By not selecting a category, it will show your latest post(s) from all "
|
||||
"categories"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:161
|
||||
msgid "Select a category"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:167
|
||||
msgid "Featured Post Count"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:168
|
||||
msgid "Max number of featured posts to display. Set it to 0 to disable"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:181
|
||||
msgid "Card Comment Count"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:182
|
||||
msgid "Comment count with bubbles"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:190
|
||||
msgid "Card Categories"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:191
|
||||
msgid "Show categories on cards"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:165
|
||||
#: functions/theme-options.php:199
|
||||
msgid "Card Avatar"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:166
|
||||
#: functions/theme-options.php:200
|
||||
msgid "Show avatar on cards"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:174
|
||||
#: functions/theme-options.php:208
|
||||
msgid "Card Date"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:175
|
||||
#: functions/theme-options.php:209
|
||||
msgid "Show date on cards"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:183
|
||||
#: functions/theme-options.php:217
|
||||
msgid "Card Read More Link"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:184
|
||||
#: functions/theme-options.php:218
|
||||
msgid "Show more link on cards"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:192
|
||||
#: functions/theme-options.php:226
|
||||
msgid "Single - Post Format"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:193
|
||||
#: functions/theme-options.php:227
|
||||
msgid "Shows post format in top of content area"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:201
|
||||
#: functions/theme-options.php:235
|
||||
msgid "Single - Author Bio"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:202
|
||||
#: functions/theme-options.php:236
|
||||
msgid "Shows post author description, if it exists"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:210
|
||||
#: functions/theme-options.php:244
|
||||
msgid "Single - Related Posts"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:211
|
||||
#: functions/theme-options.php:245
|
||||
msgid "Shows randomized related articles below the post"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:215 functions/theme-options.php:229
|
||||
#: functions/theme-options.php:249 functions/theme-options.php:263
|
||||
msgid "Disable"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:216
|
||||
#: functions/theme-options.php:250
|
||||
msgid "Related by categories"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:217
|
||||
#: functions/theme-options.php:251
|
||||
msgid "Related by tags"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:224
|
||||
#: functions/theme-options.php:258
|
||||
msgid "Single - Post Navigation"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:225
|
||||
#: functions/theme-options.php:259
|
||||
msgid "Shows links to the next and previous article"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:230
|
||||
#: functions/theme-options.php:264
|
||||
msgid "Below content"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:237
|
||||
#: functions/theme-options.php:271
|
||||
msgid "Header Search"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:238
|
||||
#: functions/theme-options.php:272
|
||||
msgid "Header search button"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:246
|
||||
#: functions/theme-options.php:280
|
||||
msgid "Header Social Links"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:247 functions/theme-options.php:308
|
||||
#: functions/theme-options.php:281 functions/theme-options.php:342
|
||||
msgid "Social link icon buttons"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:255
|
||||
#: functions/theme-options.php:289
|
||||
msgid "Profile Image"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:256
|
||||
#: functions/theme-options.php:290
|
||||
msgid "Works best with square size"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:264
|
||||
#: functions/theme-options.php:298
|
||||
msgid "Profile Title"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:265
|
||||
#: functions/theme-options.php:299
|
||||
msgid "The large text"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:273
|
||||
#: functions/theme-options.php:307
|
||||
msgid "Profile Description"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:274
|
||||
#: functions/theme-options.php:308
|
||||
msgid "The smaller text below the title"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:283
|
||||
#: functions/theme-options.php:317
|
||||
msgid "Footer widget ads area"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:291
|
||||
#: functions/theme-options.php:325
|
||||
msgid "Footer Widget Columns"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:292
|
||||
#: functions/theme-options.php:326
|
||||
msgid "Select columns to enable footer widgets. Recommended number: 3"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:307
|
||||
#: functions/theme-options.php:341
|
||||
msgid "Footer Social Links"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:316
|
||||
#: functions/theme-options.php:350
|
||||
msgid "Footer Logo"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:317
|
||||
#: functions/theme-options.php:351
|
||||
msgid "Upload your custom logo image"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:325
|
||||
#: functions/theme-options.php:359
|
||||
msgid "Footer Copyright"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:326
|
||||
#: functions/theme-options.php:360
|
||||
msgid "Replace the footer copyright text"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:334
|
||||
#: functions/theme-options.php:368
|
||||
msgid "Footer Credit"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:335
|
||||
#: functions/theme-options.php:369
|
||||
msgid "Footer credit text"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:343
|
||||
#: functions/theme-options.php:377
|
||||
msgid "Global Layout"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:344
|
||||
#: functions/theme-options.php:378
|
||||
msgid "Other layouts will override this option if they are set"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:357 functions/theme-options.php:476
|
||||
#: functions/theme-options.php:391 functions/theme-options.php:510
|
||||
msgid "Home"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:358
|
||||
#: functions/theme-options.php:392
|
||||
msgid "(is_home) Posts homepage layout"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:372 functions/theme-options.php:486
|
||||
#: functions/theme-options.php:406 functions/theme-options.php:520
|
||||
msgid "Single"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:373
|
||||
#: functions/theme-options.php:407
|
||||
msgid ""
|
||||
"(is_single) Single post layout - If a post has a set layout, it will "
|
||||
"override this."
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:387 functions/theme-options.php:496
|
||||
#: functions/theme-options.php:421 functions/theme-options.php:530
|
||||
msgid "Archive"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:388
|
||||
#: functions/theme-options.php:422
|
||||
msgid "(is_archive) Category, date, tag and author archive layout"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:402 functions/theme-options.php:506
|
||||
#: functions/theme-options.php:436 functions/theme-options.php:540
|
||||
msgid "Archive - Category"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:403
|
||||
#: functions/theme-options.php:437
|
||||
msgid "(is_category) Category archive layout"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:417 functions/theme-options.php:516
|
||||
#: functions/theme-options.php:451 functions/theme-options.php:550
|
||||
msgid "Search"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:418
|
||||
#: functions/theme-options.php:452
|
||||
msgid "(is_search) Search page layout"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:432 functions/theme-options.php:526
|
||||
#: functions/theme-options.php:466 functions/theme-options.php:560
|
||||
msgid "Error 404"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:433
|
||||
#: functions/theme-options.php:467
|
||||
msgid "(is_404) Error 404 page layout"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:447 functions/theme-options.php:536
|
||||
#: functions/theme-options.php:481 functions/theme-options.php:570
|
||||
msgid "Default Page"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:448
|
||||
#: functions/theme-options.php:482
|
||||
msgid ""
|
||||
"(is_page) Default page layout - If a page has a set layout, it will override "
|
||||
"this."
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:477
|
||||
#: functions/theme-options.php:511
|
||||
msgid "(is_home) Primary"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:487
|
||||
#: functions/theme-options.php:521
|
||||
msgid ""
|
||||
"(is_single) Primary - If a single post has a unique sidebar, it will "
|
||||
"override this."
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:497
|
||||
#: functions/theme-options.php:531
|
||||
msgid "(is_archive) Primary"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:507
|
||||
#: functions/theme-options.php:541
|
||||
msgid "(is_category) Primary"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:517
|
||||
#: functions/theme-options.php:551
|
||||
msgid "(is_search) Primary"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:527
|
||||
#: functions/theme-options.php:561
|
||||
msgid "(is_404) Primary"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:537
|
||||
#: functions/theme-options.php:571
|
||||
msgid ""
|
||||
"(is_page) Primary - If a page has a unique sidebar, it will override this."
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:550
|
||||
#: functions/theme-options.php:584
|
||||
msgid "Create Social Links"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:551
|
||||
#: functions/theme-options.php:585
|
||||
msgid "Create and organize your social links"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:553
|
||||
#: functions/theme-options.php:587
|
||||
msgid "Font Awesome names:"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:553 functions/theme-options.php:570
|
||||
#: functions/theme-options.php:587 functions/theme-options.php:604
|
||||
msgid "View All"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:556
|
||||
#: functions/theme-options.php:590
|
||||
msgid "social link"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:563
|
||||
#: functions/theme-options.php:597
|
||||
msgid "Title"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:564
|
||||
#: functions/theme-options.php:598
|
||||
msgid "Ex: Facebook"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:569
|
||||
#: functions/theme-options.php:603
|
||||
msgid "Icon Name"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:570
|
||||
#: functions/theme-options.php:604
|
||||
msgid "Font Awesome icons. Ex: fa-facebook "
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:575
|
||||
#: functions/theme-options.php:609
|
||||
msgid "Link"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:576
|
||||
#: functions/theme-options.php:610
|
||||
msgid "Enter the full url for your icon button"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:581
|
||||
#: functions/theme-options.php:615
|
||||
msgid "Icon Color"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:582
|
||||
#: functions/theme-options.php:616
|
||||
msgid "Set a unique color for your icon (optional)"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:587
|
||||
#: functions/theme-options.php:621
|
||||
msgid "Open in new window"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:596
|
||||
#: functions/theme-options.php:630
|
||||
msgid "Dynamic Styles"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:597
|
||||
#: functions/theme-options.php:631
|
||||
msgid "Turn on to use the styling options below"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:605
|
||||
#: functions/theme-options.php:639
|
||||
msgid "Font"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:606
|
||||
#: functions/theme-options.php:640
|
||||
msgid "Select font for the theme"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:610
|
||||
#: functions/theme-options.php:644
|
||||
msgid "Titillium Web, Latin (Self-hosted)"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:611
|
||||
#: functions/theme-options.php:645
|
||||
msgid "Titillium Web, Latin-Ext"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:612
|
||||
#: functions/theme-options.php:646
|
||||
msgid "Droid Serif, Latin"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:613
|
||||
#: functions/theme-options.php:647
|
||||
msgid "Source Sans Pro, Latin-Ext"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:614
|
||||
#: functions/theme-options.php:648
|
||||
msgid "Lato, Latin"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:615
|
||||
#: functions/theme-options.php:649
|
||||
msgid "Raleway, Latin"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:616
|
||||
#: functions/theme-options.php:650
|
||||
msgid "Ubuntu, Latin-Ext"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:617
|
||||
#: functions/theme-options.php:651
|
||||
msgid "Ubuntu, Latin / Cyrillic-Ext"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:618
|
||||
#: functions/theme-options.php:652
|
||||
msgid "Roboto, Latin-Ext"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:619
|
||||
#: functions/theme-options.php:653
|
||||
msgid "Roboto, Latin / Cyrillic-Ext"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:620
|
||||
#: functions/theme-options.php:654
|
||||
msgid "Roboto Condensed, Latin-Ext"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:621
|
||||
#: functions/theme-options.php:655
|
||||
msgid "Roboto Condensed, Latin / Cyrillic-Ext"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:622
|
||||
#: functions/theme-options.php:656
|
||||
msgid "Roboto Slab, Latin-Ext"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:623
|
||||
#: functions/theme-options.php:657
|
||||
msgid "Roboto Slab, Latin / Cyrillic-Ext"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:624
|
||||
#: functions/theme-options.php:658
|
||||
msgid "Playfair Display, Latin-Ext"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:625
|
||||
#: functions/theme-options.php:659
|
||||
msgid "Playfair Display, Latin / Cyrillic"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:626
|
||||
#: functions/theme-options.php:660
|
||||
msgid "Open Sans, Latin-Ext"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:627
|
||||
#: functions/theme-options.php:661
|
||||
msgid "Open Sans, Latin / Cyrillic-Ext"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:628
|
||||
#: functions/theme-options.php:662
|
||||
msgid "PT Serif, Latin-Ext"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:629
|
||||
#: functions/theme-options.php:663
|
||||
msgid "PT Serif, Latin / Cyrillic-Ext"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:630
|
||||
#: functions/theme-options.php:664
|
||||
msgid "Arial"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:631
|
||||
#: functions/theme-options.php:665
|
||||
msgid "Georgia"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:632
|
||||
#: functions/theme-options.php:666
|
||||
msgid "Verdana"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:633
|
||||
#: functions/theme-options.php:667
|
||||
msgid "Tahoma"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:640
|
||||
#: functions/theme-options.php:674
|
||||
msgid "Header Logo Image Max-height"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:641
|
||||
#: functions/theme-options.php:675
|
||||
msgid ""
|
||||
"Your logo image should have the double height of this to be high resolution"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:654
|
||||
#: functions/theme-options.php:688
|
||||
msgid "Website Max-width"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:655
|
||||
#: functions/theme-options.php:689
|
||||
msgid "Max-width of the container"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:668
|
||||
#: functions/theme-options.php:702
|
||||
msgid "Post Format Max-width"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:669
|
||||
#: functions/theme-options.php:703
|
||||
msgid "Max-width of the post formats, shown at the top of articles"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:682
|
||||
#: functions/theme-options.php:716
|
||||
msgid "Content Max-width"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:683
|
||||
#: functions/theme-options.php:717
|
||||
msgid "Max-width of the website content"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:696
|
||||
#: functions/theme-options.php:730
|
||||
msgid "Primary Color"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -76,5 +76,9 @@ Content images
|
|||
|
||||
== Changelog ==
|
||||
|
||||
= 1.0.1 - 2021-10-01 =
|
||||
* Added featured posts carousel
|
||||
* Added grid for entries
|
||||
|
||||
= 1.0.0 - 2021-09-29 =
|
||||
* Initial release
|
||||
|
|
28
style.css
28
style.css
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
Theme Name: Bigvisual
|
||||
Theme URI: http://alx.media/themes/bigvisual/
|
||||
Version: 1.0.0
|
||||
Version: 1.0.1
|
||||
Requires at least: 5.0
|
||||
Requires PHP: 5.6
|
||||
Tested up to: 5.8
|
||||
|
@ -866,7 +866,22 @@ box-shadow: 0 0 2px rgba(255,255,255,0.4);
|
|||
#page { position: relative; }
|
||||
#page:after { background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(241,241,241,1) 100%); z-index: -1; content:""; display: block; position: absolute; top: 0; left: 0; right: 0; height: 300px; }
|
||||
|
||||
.type-card { background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 2px 3px rgba(0,0,0,0.06); margin-bottom: 40px; border-radius: 10px; position: relative; }
|
||||
.slick-featured-wrap-outer { display: none; /* before loading */ margin: 0; }
|
||||
.slick-featured-wrap { padding: 0; }
|
||||
.slick-featured { position: relative; z-index: 2; }
|
||||
.slick-featured-nav { position: relative; text-align: center; margin-bottom: 0; z-index: 3; }
|
||||
.slick-featured-nav .slick-prev,
|
||||
.slick-featured-nav .slick-next { background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 2px 3px rgba(0,0,0,0.06); transition: all 0.3s ease; position: relative; display: inline-block; margin: 30px 10px 10px; height: 34px; width: 34px; border-radius: 10px; }
|
||||
.slick-featured-nav .slick-prev:hover,
|
||||
.slick-featured-nav .slick-next:hover,
|
||||
.slick-featured-nav .slick-prev:focus,
|
||||
.slick-featured-nav .slick-next:focus { background: #fff; }
|
||||
.slick-featured-nav .slick-prev { left: 0; }
|
||||
.slick-featured-nav .slick-next { right: 0; }
|
||||
.slick-featured-nav .slick-prev:before { color: #000; font-family: "Font Awesome 5 Free"; font-weight: 900; content: "\f053"; }
|
||||
.slick-featured-nav .slick-next:before { color: #000; font-family: "Font Awesome 5 Free"; font-weight: 900; content: "\f054"; }
|
||||
|
||||
.type-card { background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 2px 3px rgba(0,0,0,0.06); margin-bottom: 10px; border-radius: 10px; position: relative; }
|
||||
.type-card-inner { position: relative; border-radius: 10px; overflow: hidden; }
|
||||
.type-card-thumbnail { height: 620px; width: 100%; background-color: #ccc; background-position: center; background-size: cover; }
|
||||
.type-card-thumbnail:before { opacity: 0.8; background: url(img/image-gradient.png) repeat-x; background-size: 100% 100%; content: ""; position: absolute; display: block; height: 100%; width: 100%; bottom: 0; display: block; transition: all .4s ease; }
|
||||
|
@ -899,6 +914,15 @@ body.search article.type-page .type-card-comments,
|
|||
body.search article.type-page .type-card-author,
|
||||
body.search article.type-page .type-card-date { display: none; }
|
||||
|
||||
.article-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(380px,1fr)); gap: 30px; }
|
||||
|
||||
@media only screen and (min-width: 1190px) {
|
||||
.card-small .type-card-content { padding: 40px; }
|
||||
.card-small .type-card-title { font-size: 32px; }
|
||||
.card-small .type-card-comments { right: 40px; bottom: 100px; }
|
||||
.card-small .type-card-excerpt { font-size: 15px; }
|
||||
}
|
||||
|
||||
.slick-image-slide-wrapper { position: relative; }
|
||||
.slick-image-slide { background: #333; }
|
||||
.slick-image-slide .slick-slide > div > div { display: block!important; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue