Latest from Code Widget
<p><strong>What generates the Latest from Code Widget?</strong></p>
<p><img src="https://i.imgur.com/wGgPVvf.png" /></p>
<p>Code</p>
<h4>PHP</h4>
<pre><code class="php hljs">$widgetlatestlist = $class->listall(<br /> $start = 0,<br /> $max = 10,<br /> $listtype = "latest",<br /> $templatefile = "core-list-item-compact.html",<br /> $searchterm = ""<br /> );<br />$classnicename = $class->nicename;<br />if($widgetlatestlist > "") { // add this to a card<br /> $widgetcard = new template("card-title.html");<br /> $widgetcard->set("title", "Latest from $classnicename");<br /> $widgetcard->set("content", "<div class='list-group'>" . $widgetlatestlist . "</div>");<br /> $widgets->add($widgetcard->output());<br />}</code></pre>
<p><strong>Template File(s)</strong></p>
<p><code class="php hljs">core-list-item-compact.html<br />card-title.html</code></p>
<h4>HTML</h4>
<pre><code class="html hljs xml"><a href="[@basedirectory]/view/[@classname]/[@uid]/[@titleuid]/" class="list-group-item list-group-item-action text-truncate" title="[@titleescaped]" data-toggle="tooltip"><span class="badge bg-info text-dark"> Posted in </span> [@titleescaped]</a><br /></code></pre>
<p>x</p>