site documentation
Posted in site documentation
4149
6:18 am, June 9, 2021
 

Latest from Code Widget

What generates the Latest from Code Widget?

Code

PHP

$widget_latest_list = $class->list_all(
        $start = 0,
        $max = 10,
        $list_type = "latest",
        $template_file = "core-list-item-compact.html",
        $search_term = ""
      );
$class_nice_name = $class->nice_name;
if($widget_latest_list > "") { // add this to a card
    $widget_card = new template("card-title.html");
    $widget_card->set("title", "Latest from $class_nice_name");
    $widget_card->set("content", "<div class='list-group'>" . $widget_latest_list . "</div>");
  $widgets->add($widget_card->output());
}

Template File(s)

core-list-item-compact.html
card-title.html

HTML

<a href="/view/[@class_name]/[@uid]/[@title_uid]/" class="list-group-item list-group-item-action text-truncate" title="[@title_escaped]" data-toggle="tooltip"><span class="badge bg-info text-dark"> Posted in  site documentation </span> [@title_escaped]</a>

x

View Statistics
This Week
52
This Month
428
This Year
447

No Items Found.

Add Comment
Type in a Nick Name here
 
Search Code
Search Code by entering your search text above.
Welcome

This is my test area for webdev. I keep a collection of code here, mostly for my reference. Also if i find a good link, i usually add it here and then forget about it. more...

Subscribe to weekly updates about things i have added to the site or thought interesting during the last week.

You could also follow me on twitter or not... does anyone even use twitter anymore?

If you found something useful or like my work, you can buy me a coffee here. Mmm Coffee. ☕

❤️👩‍💻🎮

🪦 2000 - 16 Oct 2022 - Boots
Random Quote
For a long time it had seemed to me that life was about to begin - real life. But there was always some obstacle in the way, something to be gotten through first, some unfinished business, time still to be served, or a debt to be paid. Then life would begin. At last it dawned on me that these obstacles were my life.
Alfred D. Souza
Random CSS Property

Pseudo-classes

A CSS pseudo-class is a keyword added to a selector that specifies a special state of the selected element(s). For example, :hover can be used to change a button's color when the user's pointer hovers over it.
Pseudo-classes css reference