| 1 |
<?php |
| 2 |
|
| 3 |
/* |
| 4 |
* @Author pickplugins |
| 5 |
* Copyright: 2015 pickplugins |
| 6 |
*/ |
| 7 |
|
| 8 |
if ( ! defined('ABSPATH')) exit; // if direct access |
| 9 |
|
| 10 |
class class_related_post_functions{ |
| 11 |
|
| 12 |
public function __construct(){ |
| 13 |
|
| 14 |
//add_action( 'admin_menu', array( $this, 'related_post_menu_init' ), 12 ); |
| 15 |
|
| 16 |
} |
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
public function faq(){ |
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
$faq['core'] = array( |
| 25 |
'title'=>__('Core', 'related-post'), |
| 26 |
'items'=>array( |
| 27 |
|
| 28 |
array( |
| 29 |
'question'=>__('How to display on archive pages ?', 'related-post'), |
| 30 |
'answer_url'=>'https://pickplugins.com/docs/documentation/related-post/how-to-display-on-archive-pages/', |
| 31 |
|
| 32 |
), |
| 33 |
|
| 34 |
|
| 35 |
), |
| 36 |
|
| 37 |
|
| 38 |
); |
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
$faq = apply_filters('related_post_filter_faq', $faq); |
| 44 |
|
| 45 |
return $faq; |
| 46 |
|
| 47 |
} |
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
public function layout_items(){ |
| 58 |
|
| 59 |
$layout_items = array( |
| 60 |
|
| 61 |
'thumbnail'=>array('name'=>__('Thumbnail','related-post'), 'options'=>array()), |
| 62 |
'title'=>array('name'=>__('Title','related-post'), 'options'=>array()), |
| 63 |
'excerpt'=>array('name'=>__('Excerpt','related-post'), 'options'=>array()), |
| 64 |
|
| 65 |
); |
| 66 |
|
| 67 |
$layout_items = apply_filters('related_post_filter_layout_items',$layout_items); |
| 68 |
|
| 69 |
return $layout_items; |
| 70 |
|
| 71 |
|
| 72 |
} |
| 73 |
|
| 74 |
|
| 75 |
} |
| 76 |
|
| 77 |
new class_related_post_functions(); |