/**
  * Prepare display params
  *
  * @param array MUST contain at least the basic display params
  */
 function init_display($params)
 {
     // Force some params (because this is a simplified widget):
     $params['item_type'] = '3000';
     // Use post types 3000 (sidebar links) only
     parent::init_display($params);
 }
Example #2
0
 /**
  * Prepare display params
  *
  * @param array MUST contain at least the basic display params
  */
 function init_display($params)
 {
     global $Blog;
     // Force some params (because this is a simplified widget):
     if ($this->disp_params['blog_ID'] == 0) {
         // We want to try and use previous defaults:
         if (!empty($this->disp_params['linkblog_ID'])) {
             $params['blog_ID'] = $this->disp_params['linkblog_ID'];
         } else {
             // Recycle the previous value from deprecated links_blog_ID param. We will eventually drop that field from the database.
             $params['blog_ID'] = $Blog->get('links_blog_ID');
         }
     }
     parent::init_display($params);
 }
 /**
  * Prepare display params
  *
  * @param array MUST contain at least the basic display params
  */
 function init_display($params)
 {
     // Force some params (because this is a simplified widget):
     $params['item_type'] = '#';
     // Use default post types
     $params['follow_mainlist'] = 'tags';
     // Follow tags for relation
     parent::init_display($params);
 }
 /**
  * Prepare display params
  *
  * @param array MUST contain at least the basic display params
  */
 function init_display($params)
 {
     // Force some params (because this is a simplified widget):
     $params['item_type'] = '1000';
     // Use item types 1000 (pages) only
     parent::init_display($params);
 }
 /**
  * Prepare display params
  *
  * @param array MUST contain at least the basic display params
  */
 function init_display($params)
 {
     // Force some params (because this is a simplified widget):
     $params['item_type'] = '#';
     // Use default post types
     parent::init_display($params);
 }