-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathttwenty.php
46 lines (39 loc) · 1.36 KB
/
ttwenty.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
/*
Plugin Name: Twenty20 Image Before-After
Plugin URI: https://wordpress.org/plugins/twenty20/
Description: Need to highlight the differences between two images? Makes it easy with Twenty20 plugin.
Version: 1.5.7
Author: Zayed Baloch
Author URI: https://www.zayedbaloch.com/
License: GPL2
*/
defined('ABSPATH') or die("No script kiddies please!");
define( 'ZB_T20_VER', '1.5.7' );
define( 'ZB_T20_URL', plugins_url( '', __FILE__ ) );
define( 'ZB_T20_DOMAIN', 'zb_twenty20' );
// INITIALIZE PLUGIN
function twenty20_dir_init() {
load_plugin_textdomain( ZB_T20_DOMAIN );
}
add_action( 'init', 'twenty20_dir_init' );
include_once('inc/enqueue.php');
include_once('inc/twenty20-shortcode.php');
include_once('inc/widget-twenty20.php');
include_once('inc/elementor-class.php');
if ( class_exists( 'WPBakeryShortCode' ) ) {
require_once( 'inc/twenty20-shortcode-vc.php' );
}
$theme = wp_get_theme();
if ( 'Flatsome' == $theme->name || 'Flatsome' == $theme->parent_theme ) {
include_once('inc/for-flatsome-ux-builder.php');
}
function twenty20_ux_builder_thumbnails( $name ) {
return ZB_T20_URL . '/assets/images/' . $name . '.png';
}
function twenty20_ux_builder_template( $path ) {
ob_start();
include 'inc/templates/' . $path;
return ob_get_clean();
}
include_once('blocks/before-after-block.php');