-
Notifications
You must be signed in to change notification settings - Fork 3
/
browser-shots-carousel.php
39 lines (34 loc) · 1.25 KB
/
browser-shots-carousel.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
<?php
/**
* Plugin Name: Browser Shots Carousel
* Plugin URI: https://mediaron.com/downloads/browser-shots-carousel/
* Description: Show off your website screenshots in a carousel format.
* Version: 0.9.0
* Author: Ronald Huereca, Ben Gilbanks
* Author URI: https://mediaron.com
* Requires at least: 5.0
* Contributors: ronalfy
* Text Domain: browser-shots-carousel
* Domain Path: /languages
*/
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
define( 'BROWSER_SHOTS_CAROUSEL_PLUGIN_NAME', 'Browser Shots Carousel' );
define( 'BROWSER_SHOTS_CAROUSEL_DIR', plugin_dir_path( __FILE__ ) );
define( 'BROWSER_SHOTS_CAROUSEL_URL', plugins_url( '/', __FILE__ ) );
define( 'BROWSER_SHOTS_CAROUSEL_VERSION', '0.9.0' );
define( 'BROWSER_SHOTS_CAROUSEL_SLUG', plugin_basename( __FILE__ ) );
define( 'BROWSER_SHOTS_CAROUSEL_FILE', __FILE__ );
/**
* Block Registration and Output.
*/
require_once BROWSER_SHOTS_CAROUSEL_DIR . 'src/block/class-browser-shots-carousel.php';
/**
* Load the plugin i18n.
*/
function browser_shots_carousel_load_plugin_text_domain() {
load_plugin_textdomain( 'browser-shots-carousel', false, basename( dirname( __FILE__ ) ) . '/languages' );
}
add_action( 'plugins_loaded', 'browser_shots_carousel_load_plugin_text_domain' );