replace all mt- to sad-
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php
|
||||
/**
|
||||
* MT: Author Info
|
||||
*
|
||||
@ -80,7 +80,7 @@ class sophia_after_dark_Author_Info extends WP_widget {
|
||||
|
||||
echo $before_widget;
|
||||
?>
|
||||
<div class="mt-author-info-wrapper">
|
||||
<div class="sad-author-info-wrapper">
|
||||
<?php
|
||||
if ( ! empty( $sophia_after_dark_widget_title ) ) {
|
||||
echo $before_title . esc_html( $sophia_after_dark_widget_title ) . $after_title;
|
||||
@ -123,7 +123,7 @@ class sophia_after_dark_Author_Info extends WP_widget {
|
||||
* @param array $new_instance Values just sent to be saved.
|
||||
* @param array $old_instance Previously saved values from database.
|
||||
*
|
||||
* @uses sophia_after_dark_widgets_updated_field_value() defined in mt-widget-fields.php
|
||||
* @uses sophia_after_dark_widgets_updated_field_value() defined in sad-widget-fields.php
|
||||
*
|
||||
* @return array Updated safe values to be saved.
|
||||
*/
|
||||
@ -151,7 +151,7 @@ class sophia_after_dark_Author_Info extends WP_widget {
|
||||
*
|
||||
* @param array $instance Previously saved values from database.
|
||||
*
|
||||
* @uses sophia_after_dark_widgets_show_widget_field() defined in mt-widget-fields.php
|
||||
* @uses sophia_after_dark_widgets_show_widget_field() defined in sad-widget-fields.php
|
||||
*/
|
||||
public function form( $instance ) {
|
||||
$widget_fields = $this->widget_fields();
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php
|
||||
/**
|
||||
* MT: Latest Posts
|
||||
*
|
||||
@ -79,13 +79,13 @@ class sophia_after_dark_Latest_Posts extends WP_widget {
|
||||
|
||||
echo $before_widget;
|
||||
?>
|
||||
<div class="mt-latest-posts-wrapper">
|
||||
<div class="sad-latest-posts-wrapper">
|
||||
<?php
|
||||
if ( !empty( $sophia_after_dark_widget_title ) ) {
|
||||
echo $before_title . esc_html( $sophia_after_dark_widget_title ) . $after_title;
|
||||
}
|
||||
?>
|
||||
<div class="mt-posts-content-wrapper">
|
||||
<div class="sad-posts-content-wrapper">
|
||||
<?php
|
||||
$sophia_after_dark_posts_args = array(
|
||||
'posts_per_page' => absint( $sophia_after_dark_post_count ),
|
||||
@ -99,14 +99,14 @@ class sophia_after_dark_Latest_Posts extends WP_widget {
|
||||
while ( $sophia_after_dark_posts_query->have_posts() ) {
|
||||
$sophia_after_dark_posts_query->the_post();
|
||||
?>
|
||||
<div class="mt-single-post-wrap">
|
||||
<div class="sad-single-post-wrap">
|
||||
<?php if ( has_post_thumbnail() ) { ?>
|
||||
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
|
||||
<figure><div class="mt-post-thumb"><?php the_post_thumbnail( 'thumbnail' ); ?></div></figure>
|
||||
<figure><div class="sad-post-thumb"><?php the_post_thumbnail( 'thumbnail' ); ?></div></figure>
|
||||
</a>
|
||||
<?php } ?>
|
||||
<div class="mt-post-content">
|
||||
<h5 class="mt-post-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h5>
|
||||
<div class="sad-post-content">
|
||||
<h5 class="sad-post-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h5>
|
||||
<div class="entry-cat">
|
||||
<?php
|
||||
sophia_after_dark_posted_on();
|
||||
@ -134,7 +134,7 @@ class sophia_after_dark_Latest_Posts extends WP_widget {
|
||||
* @param array $new_instance Values just sent to be saved.
|
||||
* @param array $old_instance Previously saved values from database.
|
||||
*
|
||||
* @uses sophia_after_dark_widgets_updated_field_value() defined in mt-widget-fields.php
|
||||
* @uses sophia_after_dark_widgets_updated_field_value() defined in sad-widget-fields.php
|
||||
*
|
||||
* @return array Updated safe values to be saved.
|
||||
*/
|
||||
@ -162,7 +162,7 @@ class sophia_after_dark_Latest_Posts extends WP_widget {
|
||||
*
|
||||
* @param array $instance Previously saved values from database.
|
||||
*
|
||||
* @uses sophia_after_dark_widgets_show_widget_field() defined in mt-widget-fields.php
|
||||
* @uses sophia_after_dark_widgets_show_widget_field() defined in sad-widget-fields.php
|
||||
*/
|
||||
public function form( $instance ) {
|
||||
$widget_fields = $this->widget_fields();
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php
|
||||
/**
|
||||
* MT: Social Media
|
||||
*
|
||||
@ -61,13 +61,13 @@ class sophia_after_dark_Social_Media extends WP_widget {
|
||||
|
||||
echo $before_widget;
|
||||
?>
|
||||
<div class="mt-aside-social-wrapper">
|
||||
<div class="sad-aside-social-wrapper">
|
||||
<?php
|
||||
if ( ! empty( $sophia_after_dark_widget_title ) ) {
|
||||
echo $before_title . esc_html( $sophia_after_dark_widget_title ) . $after_title;
|
||||
}
|
||||
?>
|
||||
<div class="mt-social-icons-wrapper">
|
||||
<div class="sad-social-icons-wrapper">
|
||||
<?php sophia_after_dark_social_media_content(); ?>
|
||||
</div>
|
||||
</div>
|
||||
@ -83,7 +83,7 @@ class sophia_after_dark_Social_Media extends WP_widget {
|
||||
* @param array $new_instance Values just sent to be saved.
|
||||
* @param array $old_instance Previously saved values from database.
|
||||
*
|
||||
* @uses sophia_after_dark_widgets_updated_field_value() defined in mt-widget-fields.php
|
||||
* @uses sophia_after_dark_widgets_updated_field_value() defined in sad-widget-fields.php
|
||||
*
|
||||
* @return array Updated safe values to be saved.
|
||||
*/
|
||||
@ -111,7 +111,7 @@ class sophia_after_dark_Social_Media extends WP_widget {
|
||||
*
|
||||
* @param array $instance Previously saved values from database.
|
||||
*
|
||||
* @uses sophia_after_dark_widgets_show_widget_field() defined in mt-widget-fields.php
|
||||
* @uses sophia_after_dark_widgets_show_widget_field() defined in sad-widget-fields.php
|
||||
*/
|
||||
public function form( $instance ) {
|
||||
$widget_fields = $this->widget_fields();
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php
|
||||
/**
|
||||
* Define custom fields for widgets
|
||||
*
|
||||
@ -122,9 +122,9 @@ function sophia_after_dark_widgets_show_widget_field( $instance = '', $widget_fi
|
||||
<?php echo $image; ?>
|
||||
</div>
|
||||
|
||||
<div class="actions mt-clearfix">
|
||||
<button type="button" class="button mt-delete-button align-left"><?php esc_html_e( 'Remove', 'sophia-after-dark' ); ?></button>
|
||||
<button type="button" class="button mt-upload-button alignright"><?php esc_html_e( 'Select Image', 'sophia-after-dark' ); ?></button>
|
||||
<div class="actions sad-clearfix">
|
||||
<button type="button" class="button sad-delete-button align-left"><?php esc_html_e( 'Remove', 'sophia-after-dark' ); ?></button>
|
||||
<button type="button" class="button sad-upload-button alignright"><?php esc_html_e( 'Select Image', 'sophia-after-dark' ); ?></button>
|
||||
|
||||
<input name="<?php echo esc_attr( $instance->get_field_name( $sophia_after_dark_widgets_name ) ); ?>" id="<?php echo esc_attr( $instance->get_field_id( $sophia_after_dark_widgets_name ) ); ?>" class="upload-id" type="hidden" value="<?php echo esc_url( $sophia_after_dark_widget_field_value ) ?>"/>
|
||||
</div>
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php
|
||||
/**
|
||||
* custom function and work related to widgets.
|
||||
*
|
||||
@ -77,7 +77,7 @@ add_action( 'widgets_init', 'sophia_after_dark_widgets_init' );
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
require get_template_directory() . '/inc/widgets/mt-widget-fields.php'; // Widget fields
|
||||
require get_template_directory() . '/inc/widgets/mt-author-info.php'; // Author Info
|
||||
require get_template_directory() . '/inc/widgets/mt-latest-posts.php'; // Latest Posts
|
||||
require get_template_directory() . '/inc/widgets/mt-social-media.php'; // Social Media
|
||||
require get_template_directory() . '/inc/widgets/sad-widget-fields.php'; // Widget fields
|
||||
require get_template_directory() . '/inc/widgets/sad-author-info.php'; // Author Info
|
||||
require get_template_directory() . '/inc/widgets/sad-latest-posts.php'; // Latest Posts
|
||||
require get_template_directory() . '/inc/widgets/sad-social-media.php'; // Social Media
|
Reference in New Issue
Block a user