Skip to content

Commit

Permalink
Add thumbnails for extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
rilwis committed Mar 30, 2022
1 parent 61da477 commit 8cb78db
Show file tree
Hide file tree
Showing 34 changed files with 61 additions and 33 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*

images
images
/extensions
62 changes: 31 additions & 31 deletions docs/extensions.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,57 +11,57 @@ Learn about Meta Box extensions, what features they offer and how to use them.

[![checkbox](/thumbs/checkbox.png) <span className="thumb_text">MB Custom Post Types & Custom Taxonomies</span>](/extensions/mb-custom-post-type/)

[![checkbox](/thumbs/checkbox.png) <span className="thumb_text">Meta Box Builder</span>](/extensions/meta-box-builder/)
[![builder](/extensions/builder.png) <span className="thumb_text">Meta Box Builder</span>](/extensions/meta-box-builder/)

[![checkbox](/thumbs/checkbox.png) <span className="thumb_text">MB Views</span>](/extensions/mb-views/)
[![views](/extensions/views.png) <span className="thumb_text">MB Views</span>](/extensions/mb-views/)

[![checkbox](/thumbs/checkbox.png) <span className="thumb_text">Meta Box Columns</span>](/extensions/meta-box-columns/)
[![columns](/extensions/columns.png) <span className="thumb_text">Meta Box Columns</span>](/extensions/meta-box-columns/)

[![checkbox](/thumbs/checkbox.png) <span className="thumb_text">Meta Box Tabs</span>](/extensions/meta-box-tabs/)
[![tabs](/extensions/tabs.png) <span className="thumb_text">Meta Box Tabs</span>](/extensions/meta-box-tabs/)

[![checkbox](/thumbs/checkbox.png) <span className="thumb_text">Meta Box Tooltip</span>](/extensions/meta-box-tooltip/)
[![tooltip](/extensions/tooltip.png) <span className="thumb_text">Meta Box Tooltip</span>](/extensions/meta-box-tooltip/)

[![checkbox](/thumbs/checkbox.png) <span className="thumb_text">MB Admin Columns</span>](/extensions/mb-admin-columns/)
[![admin-columns](/extensions/admin-columns.png) <span className="thumb_text">MB Admin Columns</span>](/extensions/mb-admin-columns/)

[![checkbox](/thumbs/checkbox.png) <span className="thumb_text">Meta Box Conditional Logic</span>](/extensions/meta-box-conditional-logic/)

[![checkbox](/thumbs/checkbox.png) <span className="thumb_text">Meta Box Include Exclude</span>](/extensions/meta-box-include-exclude/)

[![checkbox](/thumbs/checkbox.png) <span className="thumb_text">Meta Box Show Hide</span>](/extensions/meta-box-show-hide/)
[![show-hide](/extensions/show-hide.png) <span className="thumb_text">Meta Box Show Hide</span>](/extensions/meta-box-show-hide/)

[![checkbox](/thumbs/checkbox.png) <span className="thumb_text">Meta Box Text Limiter</span>](/extensions/meta-box-text-limiter/)
[![text-limiter](/extensions/text-limiter.png) <span className="thumb_text">Meta Box Text Limiter</span>](/extensions/meta-box-text-limiter/)

[![checkbox](/thumbs/checkbox.png) <span className="thumb_text">Meta Box Template</span>](/extensions/meta-box-template/)
[![template](/extensions/template.png) <span className="thumb_text">Meta Box Template</span>](/extensions/meta-box-template/)

</div>

## Data

<div className="thumbs color-green">

[![checkbox](/thumbs/checkbox.png) <span className="thumb_text">Meta Box Group</span>](/extensions/meta-box-group/)
[![group](/extensions/group.png) <span className="thumb_text">Meta Box Group</span>](/extensions/meta-box-group/)

[![checkbox](/thumbs/checkbox.png) <span className="thumb_text">MB Frontend Submission</span>](/extensions/mb-frontend-submission/)
[![frontend-submission](/extensions/frontend-submission.png) <span className="thumb_text">MB Frontend Submission</span>](/extensions/mb-frontend-submission/)

[![checkbox](/thumbs/checkbox.png) <span className="thumb_text">MB Settings Page</span>](/extensions/mb-settings-page/)
[![settings-page](/extensions/settings-page.png) <span className="thumb_text">MB Settings Page</span>](/extensions/mb-settings-page/)

[![checkbox](/thumbs/checkbox.png) <span className="thumb_text">MB Term Meta</span>](/extensions/mb-term-meta/)
[![term-meta](/extensions/term-meta.png) <span className="thumb_text">MB Term Meta</span>](/extensions/mb-term-meta/)

[![checkbox](/thumbs/checkbox.png) <span className="thumb_text">MB User Meta</span>](/extensions/mb-user-meta/)
[![user-meta](/extensions/user-meta.png) <span className="thumb_text">MB User Meta</span>](/extensions/mb-user-meta/)

[![checkbox](/thumbs/checkbox.png) <span className="thumb_text">MB User Profile</span>](/extensions/mb-user-profile/)
[![user-profile](/extensions/user-profile.png) <span className="thumb_text">MB User Profile</span>](/extensions/mb-user-profile/)

[![checkbox](/thumbs/checkbox.png) <span className="thumb_text">MB Blocks</span>](/extensions/mb-blocks/)
[![blocks](/extensions/blocks.png) <span className="thumb_text">MB Blocks</span>](/extensions/mb-blocks/)

[![checkbox](/thumbs/checkbox.png) <span className="thumb_text">MB Relationships</span>](/extensions/mb-relationships/)
[![relationships](/extensions/relationships.png) <span className="thumb_text">MB Relationships</span>](/extensions/mb-relationships/)

[![checkbox](/thumbs/checkbox.png) <span className="thumb_text">MB Custom Table</span>](/extensions/mb-custom-table/)
[![custom-table](/extensions/custom-table.png) <span className="thumb_text">MB Custom Table</span>](/extensions/mb-custom-table/)

[![checkbox](/thumbs/checkbox.png) <span className="thumb_text">Meta Box Geolocation</span>](/extensions/meta-box-geolocation/)
[![geolocation](/extensions/geolocation.png) <span className="thumb_text">Meta Box Geolocation</span>](/extensions/meta-box-geolocation/)

[![checkbox](/thumbs/checkbox.png) <span className="thumb_text">MB REST API</span>](/extensions/mb-rest-api/)
[![rest-api](/extensions/rest-api.png) <span className="thumb_text">MB REST API</span>](/extensions/mb-rest-api/)

[![checkbox](/thumbs/checkbox.png) <span className="thumb_text">MB Revision</span>](/extensions/mb-revision/)
[![revision](/extensions/revision.png) <span className="thumb_text">MB Revision</span>](/extensions/mb-revision/)

<!-- [![checkbox](/thumbs/checkbox.png) <span className="thumb_text">MB Comment Meta</span>](/extensions/mb-comment-meta/) -->

Expand All @@ -71,37 +71,37 @@ Learn about Meta Box extensions, what features they offer and how to use them.

<div className="thumbs color-amber">

[![checkbox](/thumbs/checkbox.png) <span className="thumb_text">MB ACF Migration</span>](/extensions/mb-acf-migration/)
[![acf](/extensions/acf.jpg) <span className="thumb_text">MB ACF Migration</span>](/extensions/mb-acf-migration/)

[![checkbox](/thumbs/checkbox.png) <span className="thumb_text">MB Rank Math</span>](/extensions/mb-rank-math/)
[![rankmath](/extensions/rankmath.jpg) <span className="thumb_text">MB Rank Math</span>](/extensions/mb-rank-math/)

<!-- [![checkbox](/thumbs/checkbox.png) <span className="thumb_text">Meta Box for Yoast SEO</span>](/extensions/meta-box-yoat-seo/) -->
[![yoast-seo](/thumbs/checkbox.png) <span className="thumb_text">Meta Box for Yoast SEO</span>](/extensions/meta-box-yoat-seo/)

<!-- [![checkbox](/thumbs/checkbox.png) <span className="thumb_text">Meta Box - FacetWP Integrator</span>](/extensions/meta-box-facetwp-integrator/) -->
<!-- [![facetwp](/extensions/facetwp.png) <span className="thumb_text">Meta Box - FacetWP Integrator</span>](/extensions/meta-box-facetwp-integrator/) -->

<!-- [![checkbox](/thumbs/checkbox.png) <span className="thumb_text">Meta Box - Elementor Integrator</span>](/extensions/mb-elementor-integrator/) -->
<!-- [![elementor](/extensions/elementor.png) <span className="thumb_text">Meta Box - Elementor Integrator</span>](/extensions/mb-elementor-integrator/) -->

<!-- [![checkbox](/thumbs/checkbox.png) <span className="thumb_text">Meta Box - Beaver Themer Integrator</span>](/extensions/meta-box-beaver-themer-integrator/) -->
<!-- [![beaver](/extensions/beaver.png) <span className="thumb_text">Meta Box - Beaver Themer Integrator</span>](/extensions/meta-box-beaver-themer-integrator/) -->

</div>

## Solutions

<div className="thumbs color-red">

[![checkbox](/thumbs/checkbox.png) <span className="thumb_text">MB Favorite Posts</span>](/extensions/mb-favorite-posts/)
[![favorite-posts](/extensions/favourite-posts.png) <span className="thumb_text">MB Favorite Posts</span>](/extensions/mb-favorite-posts/)

[![checkbox](/thumbs/checkbox.png) <span className="thumb_text">MB Testimonials</span>](/extensions/mb-testimonials/)
[![testimonials](/extensions/testimonials.png) <span className="thumb_text">MB Testimonials</span>](/extensions/mb-testimonials/)

<!-- [![checkbox](/thumbs/checkbox.png) <span className="thumb_text">MB User Avatar</span>](/extensions/mb-user-avatar/) -->
<!-- [![user-avatar](/extensions/user-avatar.png) <span className="thumb_text">MB User Avatar</span>](/extensions/mb-user-avatar/) -->

</div>

## Bundle

<div className="thumbs color-cyan">

[![checkbox](/thumbs/checkbox.png) <span className="thumb_text">Meta Box AIO</span>](/extensions/meta-box-aio/)
[![aio](/thumbs/checkbox.png) <span className="thumb_text">Meta Box AIO</span>](/extensions/meta-box-aio/)

<!-- [![checkbox](/thumbs/checkbox.png) <span className="thumb_text">MB Core</span>](/extensions/mb-core/) -->

Expand Down
27 changes: 27 additions & 0 deletions scripts/copy-extensions.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php
$dir = dirname( __DIR__ ) . '/extensions';
$des = dirname( __DIR__ ) . '/static/extensions';

$categories = array_diff( scandir( $dir ), ['.', '..', '.DS_Store' ] );

foreach ( $categories as $category ) {
$fields = array_diff( scandir( "$dir/$category" ), ['.', '..', '.DS_Store' ] );

foreach ( $fields as $field ) {
$files = array_diff( scandir( "$dir/$category/$field" ), ['.', '..', '.DS_Store' ] );

foreach ( $files as $file ) {
if ( strpos( $file, 'thumbnail' ) === false ) {
continue;
}

$new_name = strtolower( $file );
$new_name = str_replace( ['mb-', '_thumbnail'], '', $new_name );
$new_name = str_replace( ' ', '-', $new_name );

copy( "$dir/$category/$field/$file", "$des/$new_name" );
}
}
}

echo "Done\n";
2 changes: 1 addition & 1 deletion src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ summary {
/* Field types thumbnails */
.thumbs {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 260px));
grid-template-columns: repeat(auto-fit, 220px);
gap: 2rem;
}
@media (max-width: 479px) {
Expand Down
Binary file added static/extensions/acf.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/extensions/admin-columns.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/extensions/beaver.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/extensions/blocks.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/extensions/builder.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/extensions/columns.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/extensions/custom-table.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/extensions/elementor.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/extensions/facetwp.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/extensions/favourite-posts.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/extensions/frontend-submission.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/extensions/geolocation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/extensions/group.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/extensions/rankmath.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/extensions/relationships.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/extensions/rest-api.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/extensions/revision.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/extensions/searchwp.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/extensions/settings-page.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/extensions/show-hide.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/extensions/tabs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/extensions/template.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/extensions/term-meta.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/extensions/testimonials.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/extensions/text-limiter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/extensions/tooltip.png
Binary file added static/extensions/user-meta.png
Binary file added static/extensions/user-profile.png
Binary file added static/extensions/views.png
Binary file added static/extensions/yoast-seo.jpg

0 comments on commit 8cb78db

Please sign in to comment.