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
<html> | |
<head> | |
<style> | |
/* kinsta-banner is used on the homepage only */ | |
.kinsta-banner { font-size: 150% } | |
.kinsta-banner { width: 75% } | |
</style> | |
</head> | |
<body> | |
<!-- kinsta banner START --> |
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
RewriteEngine On | |
RewriteCond %{SERVER_PORT} 80 | |
RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L,NE] | |
# Please make sure to replace the example.com domain name in line 3 with your own | |
# BEGIN WordPress | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / |
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
RewriteEngine On | |
RewriteCond %{HTTPS} !=on | |
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE] | |
# BEGIN WordPress | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.php$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f |
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
RewriteEngine On | |
RewriteCond %{SERVER_PORT} 80 | |
RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L,NE] | |
# Please make sure to replace the example.com domain name in line 3 with your own | |
# BEGIN WordPress | |
# END WordPress |
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
RewriteEngine On | |
RewriteCond %{HTTPS} !=on | |
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE] | |
# BEGIN WordPress | |
# END WordPress |
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
define('FORCE_SSL', true); | |
define('FORCE_SSL_ADMIN',true); |
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
<html> | |
<head> | |
<title>PHP-Test</title> | |
</head> | |
<body> | |
<?php echo '<h1>Hello World!</h1><h3>Welcome to WPMU DEV</h3>'; ?> | |
</body> | |
</html> |
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
$foo = "bar"; | |
echo $foo; |
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(document).ready( function() { | |
jQuery(".user_like").click( function(e) { | |
e.preventDefault(); | |
post_id = jQuery(this).attr("data-post_id"); | |
nonce = jQuery(this).attr("data-nonce"); | |
jQuery.ajax({ | |
type : "post", | |
dataType : "json", | |
url : myAjax.ajaxurl, | |
data : {action: "my_user_like", post_id : post_id, nonce: nonce}, |
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 // used here only for enabling syntax highlighting. Leave this out if it's already included in your plugin file. | |
// Fires after WordPress has finished loading, but before any headers are sent. | |
add_action( 'init', 'script_enqueuer' ); | |
function script_enqueuer() { | |
// Register the JS file with a unique handle, file location, and an array of dependencies | |
wp_register_script( "liker_script", plugin_dir_url(__FILE__).'liker_script.js', array('jquery') ); | |
NewerOlder