constructor_args[$varname] = 'Number of posts to display for ' . $context; $this->$varname = $this->default_displayed; // set default } $this->LightPressPlugin($frontend, $args, $dummy_run); // change count for current context (and record count if using WP-style paging) if (!$dummy_run) { $context = 'display_' . ($frontend->context['type'] ? $frontend->context['type'] : 'index'); if (isset($this->$context)) { $display = $this->$context; $c_index =& $frontend->context['index']; $frontend->options['posts_per_page'] = $display; if (($c_index > 0) && isset($_REQUEST['paged']) && !empty($_REQUEST['paged'])) $c_index = (int)$_REQUEST['paged'] * (int)$display; } } } function hide() { return; // do nothing } function run($hook, &$hook_data) { return; // do nothing } } ?>