site documentation
Posted in site documentation
4148
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
51
This Month
427
This Year
446

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
You drown not by falling in the river, but by staying submerged.
Unknown
Random CSS Property

radial-gradient()

The radial-gradient() CSS function creates an image consisting of a progressive transition between two or more colors that radiate from an origin. Its shape may be a circle or an ellipse. The function's result is an object of the <gradient> data type, which is a special kind of <image>.
radial-gradient() css reference