public function display($idstring = "") { if ($idstring != "") { $options = phoneme_unserialize(widgetOptions($idstring)->options); } include __DIR__ . "/display.php"; }
public function display($idstring = "") { if ($idstring != "") { $options = phoneme_unserialize(widgetOptions($idstring)->options); } $post_numbers = $options['sometext']; $posts = Post::orderBy("id", "desc")->take($post_numbers)->get(); include __DIR__ . "/display.php"; }