This repository has been archived by the owner on Feb 24, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#1299] - template for microstory with filters
- Loading branch information
1 parent
4e87fea
commit 6235b0e
Showing
12 changed files
with
332 additions
and
194 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
87 changes: 10 additions & 77 deletions
87
code/wp-content/themes/Akvo-responsive/inc/shortcodes.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
25 changes: 25 additions & 0 deletions
25
code/wp-content/themes/Akvo-responsive/inc/shortcodes/class-akvo-shortcode-custom-posts.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,25 @@ | ||
<?php | ||
class AKVO_SHORTCODE_CUSTOM_POSTS extends AKVO_SHORTCODE{ | ||
|
||
function __construct(){ | ||
|
||
$this->shortcode = 'akvo_custom_posts'; | ||
$this->template = 'custom_posts.php'; | ||
|
||
parent::__construct(); | ||
|
||
} | ||
|
||
function get_default_atts(){ | ||
return array( | ||
'post_type' => 'new_staffs', | ||
'filters' => '', | ||
'showposts' => 100 | ||
); | ||
} | ||
|
||
|
||
|
||
} | ||
|
||
new AKVO_SHORTCODE_CUSTOM_POSTS; |
Oops, something went wrong.