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 | |
/** | |
* A method for inserting multiple rows into the specified table | |
* Updated to include the ability to Update existing rows by primary key | |
* | |
* Usage Example for insert: | |
* | |
* $insert_arrays = array(); | |
* foreach($assets as $asset) { |
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
// ==UserScript== | |
// @name Redmine Extra | |
// @namespace https://github.com/j4ckth3r1pp3r | |
// @version 0.95 | |
// @description Overview in tasks, spent time by date/task, fancybox on images, extra links, auto update info | |
// @author J4ck Th3 R1pp3r | |
// @match https://redmine.tsn-media.com/* | |
// @grant none | |
// @require https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.1.25/jquery.fancybox.min.js | |
// ==/UserScript== |
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
// ==UserScript== | |
// @name AdLess FS.TO Player | |
// @namespace http://j4ck.lp5.com.ua/myshows/ | |
// @version 0.4 | |
// @description Меняет плеер сайта на HTML5 встроенный и добавляет кнопку MyShows и фон для сериалов оттуда | |
// @author J4ck Th3 R1pp3r | |
// @match http://fs.to/* | |
// @connect j4ck.lp5.com.ua | |
// @grant GM_xmlhttpRequest | |
// ==/UserScript== |
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 | |
//---- Убираем лишние теги | |
function filter_wpcf7_form_elements( $this_form_do_shortcode ) { | |
$this_form_do_shortcode = preg_replace('/<\/{0,1}(p|br \/)>/', '', $this_form_do_shortcode); | |
return $this_form_do_shortcode; | |
}; | |
add_filter( 'wpcf7_form_elements', 'filter_wpcf7_form_elements', 10, 1 ); | |
?> |
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
jQuery(function($) { $(document).ready(function() { //загрузка документа | |
//---- Добавляем ссылки подстраниц на главную страницу ACF настроек ----// | |
var linksSettings; | |
var optionPageClass = '.toplevel_page_site-settings '; | |
linksSettings = $(optionPageClass+'.wp-first-item ul').html(); | |
linksSettings = '<ul>'+linksSettings+'</ul>'; | |
$(optionPageClass+'#normal-sortables').append(linksSettings); | |
}); |
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
/* | |
** Помечает указанное ACF поле в админке неактивным, при отмеченном выбранном ACF чекбоксе | |
*/ | |
function disableField (check, field) { | |
//check - имя чекбокса ACF | |
//field - имя поле ACF, который будет отключаться | |
check = $('div[data-name="'+check+'"] input[type="checkbox"]'); | |
field = $('div[data-name="'+field+'"] input'); |
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 | |
define('WP_USE_THEMES', false); | |
preg_match('/(.*)wp-content/', __DIR__, $matches); | |
$root_folder = $matches[1]; | |
require( $root_folder.'/wp-blog-header.php' ); | |