View style-login.css
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
body.login div#login form#loginform p.submit input#wp-submit { | |
background-color:#17a8e3 !important; | |
} |
View login-style.css
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
body.login div#login form#loginform input { | |
font-size: 15px; | |
color: #555555; | |
} |
View style-login.css
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
body.login div#login form#loginform p.submit input#wp-submit { | |
background-color:#17a8e3 !important; | |
color: #ffffff; | |
border: 1px solid #0d9ed9; | |
margin: 10px 10px 10px 10px; | |
} |
View functions.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
<?php | |
//* Display posts from other blogs with WordPress REST API | |
function fc_display_posts_from_other_blogs() { | |
// trying to get value from the cache | |
if( false == $allposts = get_transient( 'misha_remote_cache' ) ) { | |
// it will be the array with all posts | |
$allposts = array(); | |
// get the first website latest posts |
View functions.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
<?php | |
// print posts | |
foreach( $allposts as $remote_post ) { | |
$timestamp = strtotime( $remote_post->date_gmt ); | |
$date = gmdate("m/d/y",$timestamp); | |
echo '<p><a href="' .$remote_post->link.'">'.$remote_post->title->rendered.'</a> ' . $date . '</p>'; | |
} |
View page_writing_index.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
<?php | |
/* | |
Template Name: Writing Index | |
*/ | |
//* Adds a CSS class to the body element | |
add_filter( 'body_class', 'bbs_index_body_class' ); | |
function bbs_index_body_class( $classes ) { |
View wpmu-dev-forminator-submissions-dashboard-widget-06.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
<?php | |
/** | |
* Setup permissions here if needed | |
* | |
* @return bool | |
*/ | |
public function user_allowed() { | |
return true; | |
} |
View wpmu-dev-forminator-submissions-dashboard-widget-02.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
<?php | |
function forminator_dash_widget() { | |
// Widget should be added after `wp_dashboard_setup` hook called. | |
add_action( 'wp_dashboard_setup', 'add_forminator_dash_widget' ); | |
} | |
function add_forminator_dash_widget() { | |
// Instantiate Forminator_Submissions_Dash_Widget class. | |
$widget = Forminator_Submissions_Dash_Widget::get_instance(); | |
$widget->register_widget(); |
View wpmu-dev-forminator-submissions-dashboard-widget-03.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
<?php | |
/** | |
* Class Forminator_Submissions_Dash_Widget. | |
* | |
*/ | |
class Forminator_Submissions_Dash_Widget { | |
/** | |
* Class instance | |
* |
View wpmu-dev-forminator-submissions-dashboard-widget-04.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
<?php | |
/** | |
* Get instance | |
* | |
* @return Forminator_Submissions_Dash_Widget | |
*/ | |
public static function get_instance() { | |
if ( is_null( self::$instance ) ) { | |
self::$instance = new self(); | |
} |