PluginProbe
Powerkit – Supercharge your WordPress Site / 2.4.4
Powerkit – Supercharge your WordPress Site v2.4.4
3.1.1 3.1.0 3.0.9 3.0.8 trunk 2.2.6 2.2.7 2.2.8 2.2.9 2.3.0 2.3.1 2.3.2 2.3.3 2.3.4 2.3.5 2.3.6 2.3.7 2.3.8 2.3.9 2.4.0 2.4.1 2.4.2 2.4.3 2.4.4 2.4.5 All 87 releases
powerkit / modules / posts / helpers / helper-powerkit-posts.php

helper-powerkit-posts.php in Powerkit – Supercharge your WordPress Site 2.4.4, at modules/posts/helpers/helper-powerkit-posts.php

26 lines 741 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Helpers Posts
4 *
5 * @package Powerkit
6 * @subpackage Modules/Helper
7 */
8
9 /**
10 * Widget template handler
11 *
12 * @param string $name Specific template.
13 * @param array $posts Array of posts.
14 * @param array $params Array of params.
15 * @param array $instance Widget instance.
16 */
17 function powerkit_widget_featured_posts_handler( $name, $posts, $params, $instance ) {
18 $templates = apply_filters( 'powerkit_featured_posts_templates', array() );
19
20 if ( isset( $templates[ $name ] ) && function_exists( $templates[ $name ]['func'] ) ) {
21 call_user_func( $templates[ $name ]['func'], $posts, $params, $instance );
22 } else {
23 call_user_func( 'powerkit_widget_featured_posts_template', $posts, $params, $instance );
24 }
25 }
26