This file contains hidden or 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 | |
| add_filter( 'gform_get_form_filter', 'my_fix_gform_signature_field', 99, 2 ); | |
| function my_fix_gform_signature_field( $form_string, $form ) { | |
| $replacements = array( | |
| "~<canvas id='input_\d+_~" => "<canvas id='input_" . $form['id'] . "_", | |
| "~id='input_\d+_(\d+)_Container'~" => "id='input_" . $form['id'] . "_$1_Container'", | |
| ); | |
| foreach ( $replacements as $find => $replace ) { | |
| $form_string = preg_replace( $find, $replace, $form_string ); |
This file contains hidden or 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($) { | |
| $(window).on('load', function() { | |
| var $firstTab = $('.tabify-tab:eq(0)'); | |
| if ($firstTab.length) { | |
| $firstTab.trigger('click'); | |
| } | |
| }); | |
| }); |
This file contains hidden or 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 $sections = carbon_get_post_meta( get_the_ID(), 'lk_section', 'complex' ); ?> | |
| <?php if ( ! empty( $sections ) ): ?> | |
| <?php foreach ( $sections as $section ): ?> | |
| <section class="<?php echo esc_attr( $section['class'] ); ?>"> | |
| <?php if ( ! empty( $section['lk_row'] ) ): ?> | |
| <?php foreach ( $section['lk_row'] as $row ): ?> | |
| <div class="<?php echo esc_attr( $row['class'] ); ?>"> | |
| <?php if ( ! empty( $row['lk_column'] ) ): ?> |
This file contains hidden or 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 | |
| /* | |
| Plugin Name: Media Grid Fix | |
| Version: 1.0 | |
| */ | |
| // global script enqueuing | |
| remove_action('init', 'mg_global_scripts'); | |
| add_action('init', 'my_mg_global_scripts'); | |
| function my_mg_global_scripts() { |
This file contains hidden or 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 prototype to allow inline editing / editor views for contact forms.\ | |
| * | |
| * Originally developed in: http://github.com/automattic/gm2016-grunion-editor | |
| * Authors: Michael Arestad, Andrew Ozz, and George Stephanis | |
| */ | |
| class Grunion_Editor_View { |
This file contains hidden or 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 | |
| /** | |
| * Plugin Name: My Test Plugin | |
| * Plugin URI: https://wordpress.com/ | |
| * Description: Your custom description here | |
| * Version: 1.0 | |
| * Author: WordPress.com | |
| * Author URI: https://developer.wordpress.org/ | |
| */ |
This file contains hidden or 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
| =SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(D2,"я", "ya"),"ю", "yu"),"ъ", "y"),"щ", "sht"),"ш", "sh"),"ч", "ch"),"ц", "c"),"х", "h"),"ф", "f"),"у", "u"),"т", "t"),"с", "s"),"р", "r"),"п", "p"),"о", "o"),"н", "n"),"м", "m"),"л", "l"),"к", "k"),"й", "y"),"и", "i"),"з", "z"),"ж", "j"),"е", "e"),"д", "d"),"г", "g"),"в", "v"),"б", "b"),"а", "a"),"Я", "Ya"),"Ю", "Yu"),"ь", "Y"),"Ъ", "Y"),"Щ", "Sht"),"Ш", "Sh"),"Ч", "Ch") |
This file contains hidden or 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
| find . -type f -exec perl -0777 -i -p -e 's/(import[^\n\r]+)[\n\r]{2,}(import[^\n\r]+)/\1\n\2/igs' {} + |
This file contains hidden or 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 | |
| add_filter( 'gettext', 'dyad_translate_read_more_to_bg', 20, 3 ); | |
| function dyad_translate_read_more_to_bg( $translated_text, $text, $domain ) { | |
| if ( $text === 'Read More' ) { | |
| return 'Прочети още'; | |
| } | |
| return $translated_text; | |
| } |