-
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.
- Loading branch information
1 parent
a4e9470
commit e976afc
Showing
3 changed files
with
55 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,14 @@ | ||
<?php | ||
|
||
// Create Shortcode wppedia_navigation | ||
// Shortcode: [wppedia_navigation] | ||
function create_wppedia_navigation_shortcode() { | ||
|
||
ob_start(); | ||
wppedia_get_template_part('nav/char', 'navigation'); | ||
return ob_get_clean(); | ||
|
||
} | ||
add_shortcode( 'wppedia_navigation', 'create_wppedia_navigation_shortcode' ); | ||
|
||
// Create Shortcode wppedia_searchform | ||
// Shortcode: [wppedia_searchform] | ||
function create_wppedia_searchform_shortcode() { | ||
|
||
ob_start(); | ||
wppedia_get_template_part('search/form'); | ||
return ob_get_clean(); | ||
|
||
} | ||
add_shortcode( 'wppedia_searchform', 'create_wppedia_searchform_shortcode' ); | ||
/** | ||
* Register custom shortcodes | ||
* the code for shortcodes is available in the shortcodes | ||
* folder | ||
* | ||
* @since 1.1.5 | ||
*/ | ||
|
||
defined( 'ABSPATH' ) || die(); | ||
|
||
require_once __DIR__ . '/shortcodes/navigation.php'; | ||
require_once __DIR__ . '/shortcodes/searchform.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,22 @@ | ||
<?php | ||
|
||
/** | ||
* Register shortcode to display the WPPedia initial char | ||
* navigation | ||
* | ||
* @shortcode_name wppedia_navigation | ||
* @usage [wppedia_navigation] | ||
* | ||
* @since 1.1.5 | ||
*/ | ||
|
||
defined( 'ABSPATH' ) || die(); | ||
|
||
function create_wppedia_navigation_shortcode() { | ||
|
||
ob_start(); | ||
wppedia_get_template_part('nav/char', 'navigation'); | ||
return ob_get_clean(); | ||
|
||
} | ||
add_shortcode( 'wppedia_navigation', 'create_wppedia_navigation_shortcode' ); |
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,21 @@ | ||
<?php | ||
|
||
/** | ||
* Register shortcode to display the WPPedia searchform | ||
* | ||
* @shortcode_name wppedia_searchform | ||
* @usage [wppedia_searchform] | ||
* | ||
* @since 1.1.5 | ||
*/ | ||
|
||
defined( 'ABSPATH' ) || die(); | ||
|
||
function create_wppedia_searchform_shortcode() { | ||
|
||
ob_start(); | ||
wppedia_get_template_part('search/form'); | ||
return ob_get_clean(); | ||
|
||
} | ||
add_shortcode( 'wppedia_searchform', 'create_wppedia_searchform_shortcode' ); |