PluginProbe
Photo Gallery by Re Gallery: Responsive Image Gallery with AI SEO / trunk
Photo Gallery by Re Gallery: Responsive Image Gallery with AI SEO vtrunk
1.20.14 1.20.13 1.20.12 1.20.11 1.20.10 1.20.9 1.20.8 1.20.7 1.20.6 1.20.5 1.20.4 1.20.3 1.20.2 1.20.1 1.20.0 1.19.2 1.19.1 1.19.0 1.10.0 1.10.1 1.10.2 1.10.3 1.10.4 1.10.5 1.11.0 All 135 releases
regallery / includes / shortcode.php

shortcode.php in Photo Gallery by Re Gallery: Responsive Image Gallery with AI SEO trunk, at includes/shortcode.php

23 lines 542 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 defined('ABSPATH') || die('Access Denied');
3
4 class REACG_Shortcode {
5 private $obj;
6
7 public function __construct($that) {
8 $this->obj = $that;
9
10 add_shortcode($that->shortcode, array($this, 'content'));
11 }
12
13 public function content( $params = array() ) {
14 if ( (is_admin() && defined('DOING_AJAX') && !DOING_AJAX) || !isset($params['id']) ) {
15 return false;
16 }
17
18 $id = (int) $params['id'];
19
20 return str_replace(array( "\r\n", "\n", "\r" ), '', REACGLibrary::get_rest_routs($id));
21 }
22 }
23