PluginProbe
Floating Button – Easily Create Sticky, Fixed & Floating Buttons / 5.2
Floating Button – Easily Create Sticky, Fixed & Floating Buttons v5.2
trunk 2.0.2 3.0 4.0 4.1.2 4.3 5.0 5.0.1 5.1 5.1.1 5.2 5.3 5.3.1 6.0 6.0.1 6.0.10 6.0.11 6.0.12 6.0.13 6.0.2 6.0.3 6.0.4 6.0.5 6.0.6 6.0.7 All 31 releases
floating-button / public / display.php

display.php in Floating Button – Easily Create Sticky, Fixed & Floating Buttons 5.2, at public/display.php

30 lines 810 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Conditions for display shortcode on the frontend
4 *
5 * @package Wow_Plugin
6 * @subpackage Public/Display
7 * @author Wow-Company <helper@wow-company.com>
8 * @copyright 2019 Wow-Company
9 * @license GNU Public License
10 * @version 1.0
11 */
12
13 if ( ! defined( 'ABSPATH' ) ) {
14 exit;
15 }
16
17 global $wpdb;
18 $table = $wpdb->prefix . "wow_" . $this->plugin['prefix'];
19 $result = $wpdb->get_results( "SELECT * FROM " . $table . " order by id asc" );
20
21 if ( count( $result ) > 0 ) {
22 foreach ( $result as $key => $val ) {
23 $param = unserialize( $val->param );
24 $param['show'] = ! empty( $param['show'] ) ? $param['show'] : 'all';
25 if ( $param['show'] == 'all' ) {
26 echo do_shortcode( '[' . $this->plugin['shortcode'] . ' id=' . $val->id . ']' );
27 }
28 }
29 }
30