site documentation
Posted in site documentation
4168
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
129
This Month
447
This Year
466

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
“If you just sit and observe, you will see how restless your mind is. If you try to calm it, it only makes it worse, but over time it does calm, and when it does, there’s room to hear more subtle things. You see so much more than you could see before. It’s a discipline; you have to practice it.”
Steve Jobs
Random CSS Property

::marker

The ::marker CSS pseudo-element selects the marker box of a list item, which typically contains a bullet or number. It works on any element or pseudo-element set to display: list-item, such as the <li> and <summary> elements.
::marker css reference