=' ) ) { parent::__construct( false, __( 'Jalali Date Calender', 'wp-parsidate' ), 'description=' . __( 'Jalali Date Calender', 'wp-parsidate' ) ); } else { parent::WP_Widget( false, __( 'Jalali Date Calender', 'wp-parsidate' ), 'description=' . __( 'Jalali Date Calender', 'wp-parsidate' ) ); } } /** * Outputs the settings update form. * * @param array $instance Current settings. * * @return void Default return is 'noform'. * @since 2.8.0 * */ public function form( $instance ) { $title = ! empty( $instance['parsidate_calendar_title'] ) ? $instance['parsidate_calendar_title'] : __( 'Jalali Date Calender', 'wp-parsidate' ); $theme = ! empty( $instance['theme_color'] ) ? $instance['theme_color'] : 'light-mode'; if ( ! wpp_is_active( 'conv_permalinks' ) ) { echo "

" . __( 'For use widget, active "Fix permalinks dates" option in plugin settings.', 'wp-parsidate' ) . "

"; } ?>

#$widget_id{background:#141414;border-radius:8px 8px 4px 4px;" . "overflow:hidden;box-shadow:0 0 5px 0 #000;text-align:center;padding-top:15px;color:#dcdcdc}" . "#$widget_id table{direction:rtl;border-radius:12px;overflow:hidden;" . "background:#1d1d1d;box-shadow:inset 0 0 0 6px #141414}#$widget_id table th," . "#$widget_id table td{border:0}#$widget_id table th:last-child," . "#$widget_id table tr td:last-child{color:#f28a8a}"; } else { echo ""; } } }