-
Notifications
You must be signed in to change notification settings - Fork 0
/
tile-simulator.php
44 lines (33 loc) · 1.2 KB
/
tile-simulator.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
<?php
/**
* @package TileSimulator
*/
/*
Plugin Name: Tile Simulator
Description: Tile Simulator is a custom plugin for Lili Cement Tiles. The simulator allows users to customize tile colors, visualize available tiles in different environments and export tiles for purchase.
Author: Candice Canoso
Version: 2.1
Author URI: http://www.cndce.me/
*/
defined('ABSPATH') or die('I\'m a plugin! Please don\'t access me directly!');
define('BORDER_CATEGORY_SLUG', 'border-collection');
define('SIMULATOR_DIR', plugin_dir_path(__FILE__));
function admin_style()
{
wp_enqueue_style('tile-simulator-admin-style', plugins_url('assets/css/admin.css', __FILE__));
wp_enqueue_script('block-ui', plugins_url('tile-simulator/assets/js/jquery.blockUI.js'), array('jquery'));
}
add_action('admin_enqueue_scripts', 'admin_style');
function register_styles()
{
wp_register_style('fonts', 'https://fonts.googleapis.com/css?family=Raleway:300,400,700');
}
add_action('init', 'register_styles');
function enqueue_global_scripts()
{
wp_enqueue_style('fonts');
}
add_action('wp_enqueue_scripts', 'enqueue_global_scripts');
require_once 'google-recaptcha.php';
require_once 'includes/includes.php';
require_once 'pages.php';