This commit is contained in:
Shish
2023-11-11 21:49:12 +00:00
parent 848797030e
commit fd1bb21f9d
235 changed files with 1551 additions and 1591 deletions

View File

@@ -10,6 +10,6 @@ class TagEditCloudInfo extends ExtensionInfo
public string $key = self::KEY;
public string $name = "Tag EditCloud";
public array $authors = ["AtomicDryad", "Luana Latte"=>"luana.latte.cat@gmail.com"];
public array $authors = ["AtomicDryad", "Luana Latte" => "luana.latte.cat@gmail.com"];
public string $description = "Add or remove tags to the editor via clicking.";
}

View File

@@ -40,7 +40,7 @@ class TagEditCloud extends Extension
public function onSetupBuilding(SetupBuildingEvent $event)
{
$sort_by = ['Alphabetical'=>'a','Popularity'=>'p','Relevance'=>'r','Categories'=>'c'];
$sort_by = ['Alphabetical' => 'a','Popularity' => 'p','Relevance' => 'r','Categories' => 'c'];
$sb = $event->panel->create_new_block("Tag Edit Cloud");
$sb->add_bool_option("tageditcloud_disable", "Disable Tag Selection Cloud: ");
@@ -99,7 +99,7 @@ class TagEditCloud extends Extension
GROUP BY t2.tag
ORDER BY count DESC
LIMIT :limit",
["tag_min1" => $tags_min, "tag_min2" => $tags_min, "limit" => $max_count, "relevant_tags"=>$relevant_tags]
["tag_min1" => $tags_min, "tag_min2" => $tags_min, "limit" => $max_count, "relevant_tags" => $relevant_tags]
);
break;
/** @noinspection PhpMissingBreakStatementInspection */