PluginProbe
Photonic Gallery & Lightbox for Flickr, SmugMug & Others / 3.35
Photonic Gallery & Lightbox for Flickr, SmugMug & Others v3.35
3.35 3.34 3.33 2.19 2.20 2.21 2.22 2.23 2.24 2.25 2.26 2.27 2.28 2.29 2.30 2.31 2.32 2.33 2.34 2.40 2.41 2.42 2.43 2.44 2.45 All 140 releases
photonic / Components / Comment.php

Comment.php in Photonic Gallery & Lightbox for Flickr, SmugMug & Others 3.35, at Components/Comment.php

35 lines 682 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Photonic_Plugin\Components;
4
5 use Photonic_Plugin\Layouts\Core_Layout;
6 use Photonic_Plugin\Platforms\Base;
7
8 class Comment implements Printable {
9 private string $message;
10
11 /**
12 * Error constructor.
13 *
14 * @param String $message
15 */
16 public function __construct(string $message) {
17 $this->message = $message;
18 }
19
20 /**
21 * {@inheritDoc} - an Error
22 */
23 public function html(Base $module, ?Core_Layout $layout, bool $print = false): string { // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter
24 $ret = "
25 <!--
26 {$this->message}
27 -->\n";
28 if ($print) {
29 echo wp_kses_post($ret);
30 }
31
32 return wp_kses_post($ret);
33 }
34 }
35