site documentation
Posted in site documentation
4173
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
134
This Month
452
This Year
471

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
I believe that in order to better your knowledge base, it takes a lot of failing in order to succeed. I don't consider anything a failure as long as you get back up and you learn from your own mistakes.
Unknown
Random CSS Property

masonry-auto-flow

Experimental: This is an experimental technologyCheck the Browser compatibility table carefully before using this in production.
masonry-auto-flow css reference