-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #272 from wikitongues/main
staging deploy
- Loading branch information
Showing
25 changed files
with
497 additions
and
249 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
wp-content/plugins/wt-gallery/includes/templates/gallery-careers.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<li class="gallery-item"> | ||
<?php | ||
$title = get_the_title(); | ||
$location = get_field('location'); | ||
|
||
echo '<a href="">'; | ||
echo '<h3>' . $title . '</h3>'; | ||
echo '<p> — '.$location.'</p>'; | ||
echo '</a>'; | ||
?> | ||
</li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Wikitongues gallery features | ||
|
||
## Simple implementation | ||
|
||
``` php | ||
// Gallery | ||
$params = [ | ||
'title' => 'Other videos of ' . $language_names, | ||
'post_type' => 'videos', | ||
'custom_class' => 'full', | ||
'columns' => 5, | ||
'posts_per_page' => 5, | ||
'orderby' => 'rand', | ||
'order' => 'asc', | ||
'pagination' => 'false', | ||
'meta_key' => 'language_iso_codes', | ||
'meta_value' => $language_iso_codes, | ||
'selected_posts' => '', | ||
'display_blank' => '', | ||
'taxonomy' => '', | ||
'term' => '' | ||
]; | ||
echo create_gallery_instance($params); | ||
``` | ||
|
||
Note: Boolean type fields must be strings instead | ||
|
||
## flexible post types: | ||
|
||
* `languages` | ||
* `videos` | ||
* `fellows` | ||
* `careers` | ||
* `resources` | ||
|
||
Any post type is accessible to the plugin. However custom templates will be required in order to render new types. Templates follow the name pattern gallery-[type].php | ||
|
||
# Design | ||
* Custom classes | ||
* Grid control via number of columns and count of posts to load per page | ||
* Sorting with `orderby` and `order` | ||
* `Pagination` | ||
|
||
# Filtering | ||
|
||
* Filter my post metadata with `meta_key` and `meta_value` | ||
* Filter by `taxonomy` and `term` | ||
* Return arbitrary posts with `selected_posts` |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.