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 | |
// Return http response 503 service unavailable. This is important for SEO too! | |
$protocol = $_SERVER["SERVER_PROTOCOL"]; | |
if ( 'HTTP/1.1' != $protocol && 'HTTP/1.0' != $protocol ) $protocol = 'HTTP/1.0'; | |
header( "$protocol 503 Service Unavailable", true, 503 ); | |
header( 'Content-Type: text/html; charset=utf-8' ); | |
header( 'Retry-After: 600' ); // 10 minutes | |
?> | |
<!DOCTYPE html> | |
<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
define( 'DISALLOW_FILE_EDIT', 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
<?php | |
//Ylätunniste | |
get_header(); ?> | |
<div class="post hentry"> | |
<!-- Sivua ei löytynyt ilmoitus --> | |
<h1 class="entry-title">Voi ei! Hakemaasi sivua ei löydy.</h1> | |
<div class="entry-content"> | |
<p> | |
Olemme pahoillamme, sillä sivua, jota yritit hakea, ei löytynyt. Osoite on saattanut vanhentua. Voit yrittää käyttää hakua, tai etsiä tietoa alla olevan tiedon perusteella. | |
</p> |
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
[wpsocialite size="small" url="http://esimerkki.fi" button_override="facebook,twitter-share,twitter-follow,pinterest,linkedin,gplus,stumbleupon"] |
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 | |
$args = array( | |
'size' => 'large', //choose which size buttons to display. | |
'url' => 'http://esimerkki.fi', //use this to override the url that is sent to WPSocialite. Not recommended to use in loop. | |
'button_override' => 'facebook,twitter-share,twitter-follow,pinterest,linkedin,gplus,stumbleupon' //used to override buttons that are displayed. Add and remove as needed. | |
); | |
wpsocialite_markup( $args ); ?> |
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( 'WP_ALLOW_MULTISITE', 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
<?php | |
// Return http response 503 service unavailable. This is important for SEO too! | |
$protocol = $_SERVER["SERVER_PROTOCOL"]; | |
if ( 'HTTP/1.1' != $protocol && 'HTTP/1.0' != $protocol ) $protocol = 'HTTP/1.0'; | |
header( "$protocol 503 Service Unavailable", true, 503 ); | |
header( 'Content-Type: text/html; charset=utf-8' ); | |
header( 'Retry-After: 600' ); // 10 minutes | |
mail("[email protected]", "Tietokantavirhe tapahtui", "WP-Oppaan tietokannan kanssa on ongelma!", "From: WP-Opas"); | |
?> |
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 | |
/* | |
Plugin Name: WP-Opas Helper Plugin | |
Plugin URI: http://wpopas.fi/ | |
Description: Allow shortcodes in widgets. | |
Version: 1.0 | |
Author: Timo Leiniö | |
Author URI: http://wpopas.fi/ | |
*/ |
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
.fb-like-box, .fb-like-box iframe { | |
width:260px !important | |
} |
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 | |
define( 'AUTOMATIC_UPDATER_DISABLED', true ); | |
?> |