auth->check('publish,contentadmin',$core->blog->id)) { try { $core->meta->delMeta($template,'template'); http::redirect($p_url.'&del='.$template); } catch (Exception $e) { $core->error->add($e->getMessage()); } } $params = array(); $params['limit'] = array((($page-1)*$nb_per_page),$nb_per_page); $params['no_content'] = true; $params['meta_id'] = $template; $params['meta_type'] = 'template'; $params['post_type'] = ''; # Get posts try { $posts = $core->meta->getPostsByMeta($params); $counter = $core->meta->getPostsByMeta($params,true); $post_list = new adminPostList($core,$posts,$counter->f(0)); } catch (Exception $e) { $core->error->add($e->getMessage()); } # Actions combo box $combo_action = array(); if ($core->auth->check('publish,contentadmin',$core->blog->id)) { $combo_action[__('Status')] = array( __('Publish') => 'publish', __('Unpublish') => 'unpublish', __('Schedule') => 'schedule', __('Mark as pending') => 'pending' ); } $combo_action[__('Mark')] = array( __('Mark as selected') => 'selected', __('Mark as unselected') => 'unselected' ); $combo_action[__('Change')] = array(__('Change category') => 'category'); if ($core->auth->check('admin',$core->blog->id)) { $combo_action[__('Change')] = array_merge($combo_action[__('Change')], array(__('Change author') => 'author')); } if ($core->auth->check('delete,contentadmin',$core->blog->id)) { $combo_action[__('Delete')] = array(__('Delete') => 'delete'); } # --BEHAVIOR-- adminPostsActionsCombo $core->callBehavior('adminPostsActionsCombo',array(&$combo_action)); ?>