get_bool("poolsInfoOnViewImage")){
if($linksPools <> " "){
$page->add_block(new Block("Pool Info", $editor, "main", 1));
}
}
}
/*
* HERE WE SHOWS THE LIST OF POOLS
*/
public function list_pools(Page $page, $pools, $pageNumber, $totalPages)
{
global $user;
$html = '
";
$blockTitle = "Pools";
$page->set_title(html_escape($blockTitle));
$page->set_heading(html_escape($blockTitle));
$page->add_block(new Block($blockTitle, $html, "main", 10));
$this->display_paginator($page, "pool/list", null, $pageNumber, $totalPages);
}
/*
* HERE WE DISPLAY THE NEW POOL COMPOSER
*/
public function new_pool_composer(Page $page)
{
$html = "
";
if($user->id == $pool['user_id'] || $user->is_admin()){
$editor .= "
";
}
$page->add_block(new Block("Manage Pool", $editor, "left", 10));
}
/*
* HERE WE DISPLAY THE RESULT OF THE SEARCH ON IMPORT
*/
public function pool_result(Page $page, $images, $pool_id){
$pool_images = "
";
$pool_images .= "";
$page->add_block(new Block("Import", $pool_images, "main", 10));
$editor = "
";
$page->add_block(new Block("Manage Pool", $editor, "left", 10));
}
/*
* HERE WE DISPLAY THE POOL ORDERER
* WE LIST ALL IMAGES ON POOL WITHOUT PAGINATION AND WITH A TEXT INPUT TO SET A NUMBER AND CHANGE THE ORDER
*/
public function edit_order(Page $page, $pools, $images)
{
global $user;
$pool_info = "
";
$page->set_title("Sorting Pool");
$page->set_heading("Sorting Pool");
$page->add_block(new Block("Sorting Pool", $pool_info, "main", 10));
$pool_images = "";
$page->add_block(new Block("Sorting Posts", $pool_images, "main", 30));
}
/*
* HERE WE DISPLAY THE POOL EDITOR
* WE LIST ALL IMAGES ON POOL WITHOUT PAGINATION AND WITH A CHECKBOX TO SELECT WHICH IMAGE WE WANT REMOVE
*/
public function edit_pool(Page $page, $pools, $images)
{
global $user;
$pool_info = "