From 3179cc1969947b6bdfd6d6924b463d2b157d95a5 Mon Sep 17 00:00:00 2001 From: Luana Date: Mon, 10 Jul 2023 15:06:52 -0300 Subject: [PATCH] format --- ext/index/theme.php | 39 ++++++++++++++++++++++----------------- 1 file changed, 22 insertions(+), 17 deletions(-) diff --git a/ext/index/theme.php b/ext/index/theme.php index 10da779c..f6bd16dc 100644 --- a/ext/index/theme.php +++ b/ext/index/theme.php @@ -192,78 +192,83 @@ and of course start organising your images :-) return emptyHTML( H3("Tag Searching"), P("Searching is largely based on tags, with a number of special keywords available that allow searching based on properties of the posts."), - SHM_COMMAND_EXAMPLE("tagname", 'Returns posts that are tagged with "tagname".'), SHM_COMMAND_EXAMPLE("tagname othertagname", 'Returns posts that are tagged with "tagname" and "othertagme".'), - + // BR(), P("Most tags and keywords can be prefaced with a negative sign (-) to indicate that you want to search for posts that do not match something."), SHM_COMMAND_EXAMPLE("-tagname", 'Returns posts that are not tagged with "tagname".'), SHM_COMMAND_EXAMPLE("-tagname -othertagname", 'Returns posts that are not tagged with "tagname" or "othertagname".'), SHM_COMMAND_EXAMPLE("tagname -othertagname", 'Returns posts that are tagged with "tagname", but are not tagged with "othertagname".'), - + // BR(), P('Wildcard searches are possible as well using * for "any one, more, or none" and ? for "any one".'), SHM_COMMAND_EXAMPLE("tagn*", 'Returns posts that are tagged with "tagname", "tagnot", or anything else that starts with "tagn".'), SHM_COMMAND_EXAMPLE("tagn?me", 'Returns posts that are tagged with "tagname", "tagnome", or anything else that starts with "tagn", has one character, and ends with "me".'), - + // + // + // HR(), H3("Comparing values (<, <=, >, >=, or =)"), P("For example, you can use this to count tags."), SHM_COMMAND_EXAMPLE("tags=1", "Returns posts with exactly 1 tag."), SHM_COMMAND_EXAMPLE("tags>0", "Returns posts with 1 or more tags."), - + // BR(), P("Searching for posts by aspect ratio."), P("The relation is calculated as: width / height."), SHM_COMMAND_EXAMPLE("ratio=4:3", "Returns posts with an aspect ratio of 4:3."), SHM_COMMAND_EXAMPLE("ratio>16:9", "Returns posts with an aspect ratio greater than 16:9."), - + // BR(), P("Searching by dimentions."), SHM_COMMAND_EXAMPLE("size=640x480", "Returns posts exactly 640 pixels wide by 480 pixels high."), SHM_COMMAND_EXAMPLE("size>1920x1080", "Returns posts with a width larger than 1920 and a height larger than 1080."), SHM_COMMAND_EXAMPLE("width=1000", "Returns posts exactly 1000 pixels wide."), SHM_COMMAND_EXAMPLE("height=1000", "Returns posts exactly 1000 pixels high."), - + // BR(), P("Searching by file size."), P("Supported suffixes are kb, mb, and gb. Uses multiples of 1024."), SHM_COMMAND_EXAMPLE("filesize=1", "Returns posts exactly 1 byte in size"), SHM_COMMAND_EXAMPLE("filesize>100mb", "Returns posts greater than 100 megabytes in size."), - + // BR(), P("Searching by date posted."), P("Date format is yyyy-mm-dd. Date posted includes time component, so = will not work unless the time is exact."), SHM_COMMAND_EXAMPLE("posted>=2019-07-19", "Returns posts posted on or after 2019-07-19."), - + // BR(), P("Searching posts by media length."), P("Available suffixes are ms, s, m, h, d, and y. A number by itself will be interpreted as milliseconds. Searches using = are not likely to work unless time is specified down to the millisecond."), - SHM_COMMAND_EXAMPLE("length>=1h","Returns posts that are longer than an hour."), - SHM_COMMAND_EXAMPLE("length<=10h15m","Returns posts that are shorter than 10 hours and 15 minutes."), - SHM_COMMAND_EXAMPLE("length>=10000","Returns posts that are longer than 10,000 milliseconds, or 10 seconds."), - + SHM_COMMAND_EXAMPLE("length>=1h", "Returns posts that are longer than an hour."), + SHM_COMMAND_EXAMPLE("length<=10h15m", "Returns posts that are shorter than 10 hours and 15 minutes."), + SHM_COMMAND_EXAMPLE("length>=10000", "Returns posts that are longer than 10,000 milliseconds, or 10 seconds."), + // BR(), P("Searching posts by ID."), SHM_COMMAND_EXAMPLE("id=1234", "Find the 1234th thing uploaded."), SHM_COMMAND_EXAMPLE("id>1234", "Find more recently posted things."), - + // + // + // HR(), H3("Post attributes."), P("Searching by MD5 hash."), SHM_COMMAND_EXAMPLE("hash=0D3512CAA964B2BA5D7851AF5951F33B", "Returns post with MD5 hash 0D3512CAA964B2BA5D7851AF5951F33B."), - + // BR(), P("Searching by file name."), SHM_COMMAND_EXAMPLE("filename=picasso.jpg", 'Returns posts that are named "picasso.jpg".'), - + // BR(), P("Searching for posts by source."), SHM_COMMAND_EXAMPLE("source=https:///google.com/", 'Returns posts with a source of "https://google.com/".'), SHM_COMMAND_EXAMPLE("source=any", "Returns posts with a source set."), SHM_COMMAND_EXAMPLE("source=none", "Returns posts without a source set."), - + // + // + // HR(), H3("Sorting search results"), P("Sorting can be done using the pattern order:field_direction."),