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
/*upload ico files */ | |
function upload_ico_files( $types, $file, $filename, $mimes ) { | |
if ( false !== strpos( $filename, '.ico' ) ) { | |
$types['ext'] = 'ico'; | |
$types['type'] = 'image/ico'; | |
} | |
return $types; | |
} | |
add_filter( 'wp_check_filetype_and_ext', 'upload_ico_files', 10, 4 ); |
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(document).ready(function( $ ){ | |
if (window.matchMedia('(min-width: 767px)').matches) { | |
var test = jQuery(".hide-text:nth-of-type(2)").html(); jQuery(".hide-text:nth-of-type(2)").html(test.replace('text','')); | |
var test = jQuery(".hide-text:nth-of-type(1)").html(); jQuery(".hide-text:nth-of-type(1)").html(test.replace('text','')); |
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
function CheckForSpecialCharacters(executionContext) { | |
'use strict'; | |
var formContext = executionContext.getFormContext(); | |
var StreetAddressField = formContext.getAttribute("crf8e_nombre").getValue(); | |
const specialChars = /[`!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?~]/; | |
if (StreetAddressField === null) return; | |
if (specialChars.test(StreetAddressField)) { | |
formContext.getControl("crf8e_nombre").setNotification("The following characters are not allowed: [`!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?~]", 102); |
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
/*Versión con Emojis sin fotos*/ | |
<table border="0" cellspacing="0" cellpadding="0"> | |
<tbody> | |
<tr> | |
<td width="189" style="width:auto;border-top:none;border-bottom:none;border-left:none;border-right:1.5pt solid rgb(91,155,213);padding-right: 1rem; vertical-align: middle; min-width: 250px;"> | |
<h3 style="margin:0cm 0cm 0.0001pt; font-family:Arial,sans-serif;color:black">Felipe | |
de Abajo Aragón</h3> | |
<p style="margin:0cm 0cm 0.0001pt;line-height:16.5pt; font-family:Arial,sans-serif;color:black">Informático y formador</p> | |
</td> | |
<td width="378" valign="top" style="auto;padding-left: 1rem; vertical-align: middle; min-width: 200px;"> |
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
Merge from branch not possible because branches do not share the same history: | |
git checkout [BRANCH] | |
git branch master [BRANCH] -f | |
git checkout master | |
git push origin master -f |
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
this.Close(); //If called in the main form, it closes the app too. | |
Application.Exit(); | |
System.Diagnostics.Process.GetCurrentProcess().Kill(); // Causes an abnormal process termination and should only used when necessary. |
NewerOlder