예제 #1
0
 public function onPostListBuilding(PostListBuildingEvent $event)
 {
     global $user;
     if ($user->can("bulk_edit_image_source") && !empty($event->search_terms)) {
         $event->add_control($this->theme->mss_html(implode(" ", $event->search_terms)));
     }
 }
예제 #2
0
 public function onPostListBuilding(PostListBuildingEvent $event)
 {
     global $user;
     if ($user->can("manage_admintools") && !empty($event->search_terms)) {
         $event->add_control($this->theme->dbq_html(implode(" ", $event->search_terms)));
     }
 }