Go through this amazon link http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/install-LAMP.html
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 | |
add_action( 'wp_enqueue_scripts', 'enqueue_my_styles' ); | |
/** | |
* Example callback function that demonstrates how to properly enqueue conditional stylesheets in WordPress for IE. | |
* IE10 and up does not support conditional comments in standards mode. | |
* | |
* @uses wp_style_add_data() WordPress function to add the conditional data. | |
* @link https://developer.wordpress.org/reference/functions/wp_style_add_data/ |
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
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{REQUEST_METHOD} POST | |
RewriteCond %{REQUEST_URI} .(wp-login)\.php* | |
RewriteCond %{HTTP_REFERER} !.*(no.payment|what.the.fuck).* [OR] | |
RewriteRule (.*) /pay-due-invoice-to-login.htm [R=301,L] | |
</ifModule> |
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 | |
// Don't include the opening tag | |
function html5_insert_image( $html, $id, $caption, $title, $align, $url, $size, $alt ) { | |
$src = wp_get_attachment_image_src( $id, $size, false ); | |
$html5 = "<figure id=\"post-$id media-$id\" class=\"align-$align\">"; | |
if ( $url ) { | |
$html5 .= "<a href=\"$url\" class=\"image-link\"><img src=\"$src[0]\" alt=\"$alt\" /></a>"; | |
} else { |
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 register_watermarked_size() { | |
add_image_size( 'watermarked', 550, 550, true ); // This is what should be uploaded | |
} | |
add_action( 'init', 'register_watermarked_size' ); | |
class Watermark_Image { | |
// The attachment meta array | |
public $meta = array(); |
This is a simplified showcase of how you can easily build your own Optin form in WordPress.
It can connect to any API that supports cURL (most of them do). There is no error reporting implemented. It uses exit intent detection script called Ouibounce, which needs to be enqueued in your functions.php
See the tutorial here: How to build your own WordPress email form
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 for calculating loan ammount. | |
* Sum is without fees and additional costs. | |
*/ | |
function calculate_mortage( totalammount, ownmoney, interest, years ) { | |
/** | |
* Formula M = P * ( J / (1 - (1 + J)^-N)) | |
* M = Payment monthly | |
* P = Loan ammount | |
* J = Effective intrest in decimal (x% / 100) / 12 months |
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 | |
/** | |
* Gravity Perks // GP Unique ID // Add Wait-for-payment Support for 3rd-party Payment Gateways | |
* http://gravitywiz.com/documentation/gp-unique-id/ | |
*/ | |
// 1 - Indicate that waiting for payments is enabled. | |
add_filter( 'gpui_wait_for_payment', '__return_true' ); | |
// 2 - Fetch the applicable payment feed for your gateway. |
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 | |
// enable divi functions | |
add_action( 'wp_enqueue_scripts', 'my_enqueue_assets' ); | |
function my_enqueue_assets() { | |
wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' ); | |
} | |
//add 1440px image size | |
add_image_size('image_1440', 1440, 9999, false); |
OlderNewer