site documentation
Posted in site documentation
4167
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
128
This Month
446
This Year
465

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
Treasure every moment that you have and treasure it more because you shared it with someone special, special enough to spend your time...and remember that time waits for no one.
Unknown
Random CSS Property

line-height

The line-height CSS property sets the height of a line box. It's commonly used to set the distance between lines of text. On block-level elements, it specifies the minimum height of line boxes within the element. On non-replaced inline elements, it specifies the height that is used to calculate line box height.
line-height css reference