Search found 5 matches

by GEORGE
Tue Apr 25, 2023 9:11 am
Forum: General
Topic: Pagination if i have many pages
Replies: 2
Views: 434

Re: Pagination if i have many pages

Which theme do you use? I created my own theme. It is based on the theme of the Mars :D Pagintaion code: <?php if (Paginator::numberOfPages()>1): ?> <div class="pagi-nav"> <nav class="pgn"> <?php if (Paginator::showPrev()): ?> <span class="pprev"><a href="<?php ec...
by GEORGE
Sun Apr 23, 2023 10:09 am
Forum: General
Topic: Pagination if i have many pages
Replies: 2
Views: 434

Pagination if i have many pages

Is there an easy way/example of a code snippet that adds an ellipsis if, for example, there are too many pages:
321.png
321.png (2.71 KiB) Viewed 434 times
by GEORGE
Fri Nov 25, 2022 4:08 pm
Forum: General
Topic: How to write only for first main page?
Replies: 4
Views: 701

Re: How to write only for first main page?

You can do it with the following code: <?php if ($_SERVER['QUERY_STRING'] == "" || $_SERVER['QUERY_STRING'] == "page=1") { echo "Hello World!"; } ?> thx its work! in category print too. My decision: <?php if ($_SERVER['REQUEST_URI']=="/" || $_SERVER['QUERY_ST...
by GEORGE
Thu Nov 24, 2022 8:35 pm
Forum: General
Topic: How to write only for first main page?
Replies: 4
Views: 701

Re: How to write only for first main page?

Edi wrote: Thu Nov 24, 2022 8:08 pm Sorry, I do not understand your question. What will you do?

Bludit does not use code with square brackets.
how do I write code in the home.php so that my text "hello world" was only on the main page and only on the first page?
by GEORGE
Thu Nov 24, 2022 8:04 pm
Forum: General
Topic: How to write only for first main page?
Replies: 4
Views: 701

How to write only for first main page?

How to write in home.php only for first main page? like this:
[aviable=main][page-count=1]
content
[/page-count][/aviable]