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 | |
echo 'Ok'; | |
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
[mail function] | |
; For Win32 only. | |
; http://php.net/smtp | |
;SMTP = localhost | |
; http://php.net/smtp-port | |
;smtp_port = 25 | |
; For Win32 only. | |
; http://php.net/sendmail-from | |
sendmail_from = admin+umob@domain.com |
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
; configuration for fake sendmail | |
; if this file doesn't exist, sendmail.exe will look for the settings in | |
; the registry, under HKLM\Software\Sendmail | |
[sendmail] | |
; you must change mail.mydomain.com to your smtp server, | |
; or to IIS's "pickup" directory. (generally C:\Inetpub\mailroot\Pickup) | |
; emails delivered via IIS's pickup directory cause sendmail to |
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 | |
/** | |
* This script allows you to sync plugins from development machine with staging/live servers. | |
* Author: Svetoslav Marinov (SLAVI) | http://orbisius.com | |
* (c) All Rights Reserved. | |
* (c) Dec 2014 | |
* License: LGPL | |
* zzz_sync.php | |
*/ |
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
// the vhost has this line to define the environment 'SetEnv DEV_ENV development' | |
$suffix = empty($_SERVER['DEV_ENV']) ? '.min' : ''; | |
wp_register_style('my-awesome-plugin', plugins_url("/assets/main{$suffix}.css", __FILE__), false, | |
filemtime( plugin_dir_path( __FILE__ ) . "/assets/main{$suffix}.css" ) ); | |
wp_enqueue_style('my-awesome-plugin'); | |
wp_enqueue_script( 'jquery' ); | |
wp_register_script( 'my-awesome-plugin', plugins_url("/assets/main{$suffix}.js", __FILE__), array('jquery', ), | |
filemtime( plugin_dir_path( __FILE__ ) . "/assets/main{$suffix}.js" ), true); |
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 | |
// Author: Slavi Marinov | Orbisius.com & qSandbox.com | |
// 0) Read this article https://medium.com/@qsandbox/getting-started-with-mandrill-c2c3a6ba5c2a | |
// 1) Join Mandrill at http://mandrill.com/ | |
// 2) Download PHPMailer from https://github.com/PHPMailer/PHPMailer | |
// Adapted example from: shared/PHPMailer-master/examples/mailing_list.phps | |
require_once 'shared/PHPMailer-master/class.phpmailer.php'; | |
require_once 'shared/PHPMailer-master/class.smtp.php'; | |
$message = "This is a test message prepared on: " . date( 'r' ) . " from " . $_SERVER['HTTP_HOST'] . ' ' . $_SERVER['REMOTE_ADDR']; |
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
How To Setup Let's Encrypt SSL certificate for a news Site and Fix Mixed Content Error | |
/////////////////////////////////// | |
// put this in wp-config.php | |
// orbisius.com | |
// GPL | |
ob_start( 'orbisius_custom_link_corrector_global' ); | |
/** | |
* This is used here to correct all links that are not ssl |
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 | |
/* | |
This code allows you to make some WooCommerce Checkout Fields optional. | |
Blog post http://orbisius.com/link/3710 | |
Author: Svetoslav Marinov (Slavi) | |
Author URI: http://orbisius.com | |
*/ | |
/* | |
Installation |
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
/* | |
vanbo/wc-css-make-storefront-product-tabs-horizontal | |
credit: https://gist.github.com/vanbo/c05e9b9512bd53e3680c82e1c6e4e6a3 | |
*/ | |
.product .woocommerce-tabs ul.tabs { | |
width: 100%; | |
float: none; | |
margin-right: 5.8823529412%; | |
} |