ProShell v2.0
Dashboard
Server Info
Server: 158.106.128.192
PHP: 8.2.33
home
planet5
public_html
bansibaba.com
wp-includes
2026-09-12 08:25:31
Editing: monarch-widget.php
Cancel
Save Changes
<?php if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } class MonarchWidget extends WP_Widget { function __construct(){ $widget_ops = array( 'description' => esc_html__( 'Monarch plugin widget, please configure all the settings in Monarch control panel', 'Monarch' ), ); parent::__construct( false, $name = esc_html__( 'Monarch Follow', 'Monarch' ), $widget_ops ); } /* Displays the Widget in the front-end */ function widget( $args, $instance ){ extract( $args ); $title = apply_filters( 'et_social_widget_title', esc_html( $instance['title'] ) ); echo $before_widget; if ( $title ) { echo $before_title . $title . $after_title; } echo ET_Monarch::display_widget(); echo $after_widget; } /* Saves the settings. */ function update($new_instance, $old_instance){ $instance = $old_instance; $instance['title'] = sanitize_text_field( $new_instance['title'] ); return $instance; } /* Creates the form for the widget in the back-end. */ function form( $instance ){ //Defaults $instance = wp_parse_args( (array) $instance, array( 'title' => esc_html__( 'Follow Us', 'Monarch' ), ) ); $title = $instance['title']; # Title printf( '<p> <label for="%1$s">%2$s: </label> <input class="widefat" id="%1$s" name="%4$s" type="text" value="%3$s" /> </p>', esc_attr( $this->get_field_id( 'title' ) ), esc_html__( 'Title', 'Monarch' ), esc_attr( $title ), esc_attr( $this->get_field_name( 'title' ) ) ); } }
Upload Files
Cancel
Upload
Create New
Cancel
Create
Change Permissions
Cancel
Save
Change Date
Cancel
Save
Rename Item
Cancel
Save
Confirm Delete
Are you sure you want to delete the selected items?
Cancel
Delete