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
[wpo365-sign-in-with-microsoft-v2-sc] | |
<!-- For details visit https://www.wpo365.com/authentication-shortcode/ --> | |
<div> | |
<style> | |
.wpo365-mssignin-wrapper { | |
box-sizing: border-box; | |
display: block; | |
width: 100%; | |
padding: 12px 12px 24px 12px; | |
text-align: center; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.4.2/handlebars.js"></script> | |
</head> | |
<body> | |
<script id="entry-template" type="text/x-handlebars-template"> | |
<div class="entry-main"> | |
{{! #gallery is a so-called block expression for which a custom helper has been registered }} | |
{{#gallery posts}} |
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 | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase /wordpress/ | |
RewriteRule ^index\.php$ - [L] | |
# BEGIN THIS DL-FILE.PHP ADDITION | |
RewriteCond %{REQUEST_URI} ^.*wp-content/.* | |
RewriteRule ^wp-content/uploads/(.*)$ dl-file.php?file=$1 [QSA,L] | |
# END THIS DL-FILE.PHP ADDITION |
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
<content> | |
<script id="jshelpers"> | |
if (!!window.wpo365 | |
&& 'registerHandlebarsHelper' in window.wpo365 | |
&& 'handlebarsSafeString' in window.wpo365 | |
&& 'moment' in window.wpo365) { | |
window.wpo365.registerHandlebarsHelper('formatSummary', | |
function (summary) { | |
return window.wpo365.handlebarsSafeString( | |
summary |
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
<content> | |
<script id="jshelpers"> | |
</script> | |
<header id="header" type="x-handlebars-template"> | |
<style> | |
.pintraItemCell { | |
position: relative; | |
outline: transparent; | |
min-height: 54px; | |
padding: 10px; |
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
[wpo365-display-error-message-sc] |
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
add_action( 'login_form', 'sign_in_with_microsoft', 10, 1 ); | |
function sign_in_with_microsoft( $input = '' ) { | |
?> | |
<!-- For details visit https://docs.wpo365.com/article/74-add-sign-in-with-microsoft-button-to-a-wordpress-login-form --> | |
<div> | |
<style> | |
.wpo365-mssignin-wrapper { | |
box-sizing: border-box; | |
display: block; |
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
<content> | |
<script id="jshelpers"> | |
if (!!window.wpo365 | |
&& 'registerHandlebarsHelper' in window.wpo365 | |
&& 'handlebarsSafeString' in window.wpo365 | |
&& 'moment' in window.wpo365) { | |
window.wpo365.registerHandlebarsHelper('formatSummary', | |
function (summary) { | |
return window.wpo365.handlebarsSafeString( | |
summary |
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 | |
/** | |
* Plugin Name: WPO365 Hooks (samples) | |
* Plugin URI: https://www.wpo365.com/downloads/wordpress-office-365-hooks/ | |
* Description: An example of a plugin that hooks into the various WPO365 login hooks. | |
* Version: 0.5 | |
* Author: marco@wpo365.com | |
* Author URI: https://www.wpo365.com | |
* License: GPL2+ | |
*/ |
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
<content> | |
<script id="jshelpers"> | |
if (!!window.wpo365 | |
&& 'registerHandlebarsHelper' in window.wpo365 | |
&& 'handlebarsSafeString' in window.wpo365 | |
&& 'moment' in window.wpo365) { | |
window.wpo365.registerHandlebarsHelper('formatSummary', | |
function (summary) { | |
return window.wpo365.handlebarsSafeString( | |
summary |
OlderNewer