This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* showing duplicated box */ | |
function print_duplicated_image_box( $post ) { | |
wp_nonce_field( 'remove_duplicated_nonce_action', 'remove_duplicated_nonce' ); ?> | |
<script type="text/javascript"> | |
jQuery(document).ready(function(){ | |
$('#scan-images-duplicated, #delete-images-duplicated').click(function(e){ | |
e.preventDefault(); | |
var order = $(this).hasClass('scanimages') ? 'scan' : 'delete_all', | |
p_data = { | |
action: 'galleryduplicate', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SEND EMAIL WHAT SHOW ON CUSTOM BOX | |
function print_my_custom_notification_box( $post ) { | |
wp_nonce_field( 'my_custom_notification_box_nonce_action', 'my_custom_notification_box_nonce_field' ); ?> | |
<script type="text/javascript"> | |
jquery(document).ready(function($){ | |
$('#mynotification-box-button').click(function(e){ | |
e.preventDefault(); | |
$('#mynotification-box .spinner').show(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* The base configurations of the WordPress. | |
* | |
* This file has the following configurations: MySQL settings, Table Prefix, | |
* Secret Keys, WordPress Language, and ABSPATH. You can find more information | |
* by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing | |
* wp-config.php} Codex page. You can get the MySQL settings from your web host. | |
* | |
* This file is used by the wp-config.php creation script during the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// REMOVE DUPLICATE IMAGES | |
function print_duplicated_image_box( $post ) { | |
wp_nonce_field( 'remove_duplicated_nonce_action', 'remove_duplicated_nonce' ); ?> | |
<script type="text/javascript"> | |
jQuery(document).ready(function($){ | |
$('#scan-images-duplicated, #delete-images-duplicated').click(function(e){ | |
e.preventDefault(); | |
var order = $(this).hasClass('scanimages') ? 'scan' : 'delete_all', | |
p_data = { | |
action: 'galleryduplicate', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//PRE RENDERING FOR ITEM FIELD | |
add_filter("gform_pre_submission", "product_items"); | |
add_filter("gform_pre_render", "product_items"); | |
// add_filter("gform_admin_pre_render", "product_items"); | |
function product_items($form){ | |
// THIS IS THE PRE RENDER ON FORM #2 CURRENTLY LIVE AND VALIDATES FINE | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// REMOVE DUPLICATE IMAGES | |
function print_duplicated_image_box( $post ) { | |
wp_nonce_field( 'remove_duplicated_nonce_action', 'remove_duplicated_nonce' ); ?> | |
<script type="text/javascript"> | |
jQuery(document).ready(function($){ | |
$('#scan-images-duplicated, #delete-images-duplicated').click(function(e){ | |
e.preventDefault(); | |
var order = $(this).hasClass('scanimages') ? 'scan' : 'delete_all', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var menu = '<div class="navbar navbar-inverse navbar-fixed-top"><div class="navbar-inner"><div class="container"><button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></button><a class="brand" href=""></a><div class="nav-collapse collapse"><ul id="menu-main-menu" class="nav"><li id="menu-item-29" class="main-menu-home menu-item menu-item-type-custom menu-item-object-custom menu-item-29"><a href="">Select event</a></li> | |
</ul><ul class="nav visible-phone" id="subMobile"><li ><a href="" title=" 's Downloads"><i class="icon-camera icon-white"></i>'s Downloads</a></li><li id="menu-item-65" class="sub-menu-images menu-item menu-item-type-post_type menu-item-object-download menu-item-65"><a href="download=studio-ambient-images">Studio & Ambient</a></li> | |
<li id="menu-item-64" class="sub-menu-images menu-item menu-item-type-post_type menu-item-object-download menu-item-64"><a href="d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* MEDIA LIBRARY FILTER */ | |
add_filter('parse_query', 'node_admin_posts_filter'); | |
add_action('restrict_manage_posts', 'node_admin_posts_filter_restrict_manage_posts'); | |
function node_admin_posts_filter($wp_query) | |
{ | |
if (is_admin() && isset($_GET['page_id']) && $_GET['page_id'] != '') | |
{ | |
$original_query = $wp_query; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* MEDIA LIBRARY FILTER */ | |
add_filter('parse_query', 'node_admin_posts_filter'); | |
add_action('restrict_manage_posts', 'node_admin_posts_filter_restrict_manage_posts'); | |
function node_admin_posts_filter($wp_query) | |
{ | |
if (is_admin() && isset($_GET['page_id']) && $_GET['page_id'] != '') | |
{ | |
$original_query = $wp_query; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @package WordPress | |
* @subpackage Motocom Limited | |
* @since Sam Lowes 1.0 | |
*/ | |
// Template Name: News | |
get_header(); |