Magic grid responsive fixes, readme screenshot images credit added

This commit is contained in:
AlxMedia 2021-09-20 21:39:45 +02:00
parent 0e937cb1ba
commit da707cf8a6
6 changed files with 17 additions and 12 deletions

View file

@ -6,7 +6,7 @@
<div class="type-portfolio-thumb">
<a href="<?php the_permalink(); ?>">
<?php if ( has_post_thumbnail() ) : ?>
<?php the_post_thumbnail('gridframe-medium-h'); ?>
<?php the_post_thumbnail('gridframe-medium'); ?>
<?php else: ?>
<img src="<?php echo esc_url( get_template_directory_uri() ); ?>/img/thumb-medium.png" alt="<?php the_title_attribute(); ?>" />
<?php endif; ?>

View file

@ -64,7 +64,7 @@
<?php if ( get_theme_mod( 'credit', 'on' ) == 'on' ): ?>
<div id="credit">
<p><?php esc_html_e('Powered by','gridframe'); ?> <a href="<?php esc_url( __( 'https://wordpress.org', 'gridframe' ) ); ?>" rel="nofollow">WordPress</a>. <?php esc_html_e('Theme by','gridframe'); ?> <a href="http://alx.media" rel="nofollow">Alx</a>.</p>
<p><?php esc_html_e('Powered by','gridframe'); ?> <a href="<?php esc_url( _e( 'https://wordpress.org', 'gridframe' ) ); ?>" rel="nofollow">WordPress</a>. <?php esc_html_e('Theme by','gridframe'); ?> <a href="http://alx.media" rel="nofollow">Alx</a>.</p>
</div><!--/#credit-->
<?php endif; ?>

View file

@ -74,8 +74,7 @@ if ( ! function_exists( 'gridframe_setup' ) ) {
// Thumbnail sizes
add_image_size( 'gridframe-small', 200, 200, true );
add_image_size( 'gridframe-medium', 520, 520, true );
add_image_size( 'gridframe-medium-h', 520 );
add_image_size( 'gridframe-medium', 400 );
add_image_size( 'gridframe-large', 940 );
// Thumbnail sizes custom widgets
@ -539,7 +538,6 @@ if ( ! function_exists( 'gridframe_body_class' ) ) {
if ( get_theme_mod( 'boxed','off' ) == 'on' ) { $classes[] = 'boxed'; }
if ( has_nav_menu( 'mobile' ) ) { $classes[] = 'mobile-menu'; }
if ( get_theme_mod( 'mobile-sidebar-hide','on' ) != 'on' ) { $classes[] = 'mobile-sidebar-hide'; }
if ( get_theme_mod('profile-image') || get_theme_mod('profile-name') || get_theme_mod('profile-description') ) { $classes[] = 'skew-active'; }
if (! ( is_user_logged_in() ) ) { $classes[] = 'logged-out'; }
return $classes;
}

View file

@ -72,13 +72,15 @@ Screenshot images
License: CC0 1.0 Universal (CC0 1.0)
Source: https://stocksnap.io
Sidebar images
1. https://stocksnap.io/photo/X - CC0 1.0 Universal (CC0 1.0)
Header images
1. https://stocksnap.io/photo/TNK87N7464 - CC0 1.0 Universal (CC0 1.0)
Content images
1. https://stocksnap.io/photo/X - CC0 1.0 Universal (CC0 1.0)
1. https://stocksnap.io/photo/R7J4JSU0EE - CC0 1.0 Universal (CC0 1.0)
2. https://stocksnap.io/photo/ETYYX6WJQI - CC0 1.0 Universal (CC0 1.0)
3. https://stocksnap.io/photo/ZCIZ1AWXTC - CC0 1.0 Universal (CC0 1.0)
== Changelog ==
= 1.0.0 - 2021-09-10 =
= 1.0.0 - 2021-09-21 =
* Initial release

View file

@ -1,5 +1,9 @@
#wrapper { min-width: 320px; }
@media only screen and (min-width: 1024px) and (max-width: 1024px) {
.type-portfolio { width: 300px; }
}
@media only screen and (max-width: 960px) {
#profile-name { font-size: 44px; }
}
@ -147,7 +151,8 @@
#profile-name,
#profile-description { padding-left: 20px; padding-right: 20px; }
.type-portfolio { width: 100%; padding-left: 20px; padding-right: 20px; box-sizing: border-box; }
.magic-grid { margin-left: 20px; margin-right: 20px; }
.type-portfolio { width: 100%; }
.front-widgets { margin-left: 20px; margin-right: 20px; }
.content { padding: 0; }

View file

@ -1368,10 +1368,10 @@ li #reply-title { font-size: 0; margin: 0!important; padding: 0; height: 0; bord
.wp-pagenavi a:active,
.wp-pagenavi span.current { color: #333; }
.wp-pagenavi a { background: #eee; border-radius: 4px; color: #333; border: none; box-shadow: inset 0 1px 0 rgba(0,0,0,0.05); }
.wp-pagenavi a { background: #e5e5e5; border-radius: 20px; color: #333; border: none; box-shadow: inset 0 1px 0 rgba(0,0,0,0.05); }
.wp-pagenavi a:hover,
.wp-pagenavi a:active,
.wp-pagenavi span.current { background: #e5e5e5; border-radius: 4px; border: none; box-shadow: 0 1px 0 rgba(0,0,0,0.05); }
.wp-pagenavi span.current { background: #fff; border-radius: 20px; border: none; box-shadow: 0 1px 0 rgba(0,0,0,0.05); }
/* ------------------------------------------------------------------------- *