HEX
Server: LiteSpeed
System: Linux eko108.isimtescil.net 4.18.0-477.21.1.lve.1.el8.x86_64 #1 SMP Tue Sep 5 23:08:35 UTC 2023 x86_64
User: uyarreklamcomtr (11202)
PHP: 7.4.33
Disabled: opcache_get_status
Upload Files
File: /var/www/vhosts/uyarreklam.com.tr/httpdocs/author-box.tar
assets/banner.svg000064400000005012151541574430010043 0ustar00<svg fill="none" height="120" viewBox="0 0 120 120" width="120" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><clipPath id="a"><path d="m0 0h120v120h-120z"/></clipPath><g clip-path="url(#a)"><path d="m0 0h120v120h-120z" fill="#1880b6"/><path d="m83.875 27.1607h-48.75v62.6786h48.75z" fill="#f0eed5" stroke="#324249" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m59.5 64.3036c8.3336 0 15.0893-6.7557 15.0893-15.0893s-6.7557-15.0893-15.0893-15.0893-15.0893 6.7557-15.0893 15.0893 6.7557 15.0893 15.0893 15.0893z" fill="#8cdaf0" stroke="#324249" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m65.3036 46.8929c0 3.2052-2.5984 5.8035-5.8036 5.8035s-5.8036-2.5983-5.8036-5.8035 2.5984-5.8036 5.8036-5.8036 5.8036 2.5984 5.8036 5.8036z" fill="#f0eed5"/><path d="m67.9864 61.6928c-2.418 1.6476-5.3397 2.6108-8.4864 2.6108s-6.0685-.9632-8.4865-2.6109c1.8963-2.6365 4.9909-4.3534 8.4865-4.3534s6.5902 1.7169 8.4864 4.3535z" fill="#f0eed5"/><path d="m65.3036 46.8929c0 3.2052-2.5984 5.8035-5.8036 5.8035s-5.8036-2.5983-5.8036-5.8035 2.5984-5.8036 5.8036-5.8036 5.8036 2.5984 5.8036 5.8036z" stroke="#324249" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m67.9864 61.6928c-2.418 1.6476-5.3397 2.6108-8.4864 2.6108s-6.0685-.9632-8.4865-2.6109c1.8963-2.6365 4.9909-4.3534 8.4865-4.3534s6.5902 1.7169 8.4864 4.3535z" stroke="#324249" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><g fill="#8cdaf0"><path d="m52.5357 80.5536c0 1.2821-1.0393 2.3214-2.3214 2.3214s-2.3214-1.0393-2.3214-2.3214 1.0393-2.3215 2.3214-2.3215 2.3214 1.0394 2.3214 2.3215z"/><path d="m61.8214 80.5536c0 1.2821-1.0393 2.3214-2.3214 2.3214s-2.3214-1.0393-2.3214-2.3214 1.0393-2.3215 2.3214-2.3215 2.3214 1.0394 2.3214 2.3215z"/><path d="m71.1071 80.5536c0 1.2821-1.0393 2.3214-2.3214 2.3214s-2.3214-1.0393-2.3214-2.3214 1.0393-2.3215 2.3214-2.3215 2.3214 1.0394 2.3214 2.3215z"/></g><g stroke="#324249" stroke-linecap="round" stroke-width="2"><g stroke-linejoin="round"><path d="m52.5357 80.5536c0 1.2821-1.0393 2.3214-2.3214 2.3214s-2.3214-1.0393-2.3214-2.3214 1.0393-2.3215 2.3214-2.3215 2.3214 1.0394 2.3214 2.3215z"/><path d="m61.8214 80.5536c0 1.2821-1.0393 2.3214-2.3214 2.3214s-2.3214-1.0393-2.3214-2.3214 1.0393-2.3215 2.3214-2.3215 2.3214 1.0394 2.3214 2.3215z"/><path d="m71.1071 80.5536c0 1.2821-1.0393 2.3214-2.3214 2.3214s-2.3214-1.0393-2.3214-2.3214 1.0393-2.3215 2.3214-2.3215 2.3214 1.0394 2.3214 2.3215z"/></g><path d="m44.4107 71.2679h30.1786"/></g></g></svg>assets/icon.svg000064400000001512151541574430007527 0ustar00<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="m5.60449 21.92041h12.79102c.68945 0 1.25-.56055 1.25-1.25v-17.34082c0-.68945-.56055-1.25-1.25-1.25h-12.79102c-.68945 0-1.25.56055-1.25 1.25v17.34082c0 .68945.56055 1.25 1.25 1.25zm.25-1.5v-6.12598h12.29102v6.12598zm4.75147-12.81006c0-.76855.62549-1.39404 1.39404-1.39404s1.39404.62549 1.39404 1.39404-.62549 1.39355-1.39404 1.39355-1.39404-.625-1.39404-1.39355zm1.39404 2.89356c1.4165 0 2.59943.97754 2.93573 2.29053h-5.87146c.3363-1.31299 1.51923-2.29053 2.93573-2.29053zm6.14551-6.92432v9.21484h-1.68085c-.23639-1.40826-1.1214-2.58484-2.33826-3.237.47211-.51508.76764-1.19489.76764-1.94708 0-1.5957-1.29834-2.89404-2.89404-2.89404s-2.89404 1.29834-2.89404 2.89404c0 .7522.29553 1.43201.76764 1.94708-1.21686.65216-2.10187 1.82874-2.33826 3.237h-1.68085v-9.21484z"/></svg>author-box.php000064400000033364151541574430007367 0ustar00<?php
/*
Widget Name: Author Box
Description: Display author information, including avatar, name, bio, and post links in a customizable box.
Author: SiteOrigin
Author URI: https://siteorigin.com
Documentation: https://siteorigin.com/widgets-bundle/author-box-widget/
*/

class SiteOrigin_Widget_Author_Box_Widget extends SiteOrigin_Widget {
	public function __construct() {
		parent::__construct(
			'sow-author-box',
			__( 'SiteOrigin Author Box', 'so-widgets-bundle' ),
			array(
				'description' => __( 'Display author information, including avatar, name, bio, and post links in a customizable box.', 'so-widgets-bundle' ),
				'help' => 'https://siteorigin.com/widgets-bundle/author-box-widget/',
				'has_preview' => false,
				'panels_title' => false,
			),
			array(),
			false,
			plugin_dir_path( __FILE__ )
		);
	}

	function get_settings_form() {
		return array(
			'responsive_breakpoint' => array(
				'type'        => 'measurement',
				'label'       => __( 'Responsive Breakpoint', 'so-widgets-bundle' ),
				'default'     => '780px',
				'description' => __( 'Device width, in pixels, to collapse into a mobile view.', 'so-widgets-bundle' )
			)
		);
	}

	public function get_widget_form() {
		return array(
			'settings' => array(
				'type' => 'section',
				'label' => __( 'Settings', 'so-widgets-bundle' ),
				'hide' => true,
				'fields' => array(
					'avatar' => array(
						'type' => 'checkbox',
						'default' => true,
						'label' => __( 'Author Avatar', 'so-widgets-bundle' ),
						'state_emitter' => array(
							'callback' => 'conditional',
							'args' => array(
								'avatar[show]: val',
								'avatar[hide]: ! val',
							),
						),
					),
					'link_avatar' => array(
						'type' => 'checkbox',
						'default' => true,
						'label' => __( 'Link Author Avatar', 'so-widgets-bundle' ),
					),
					'link_name' => array(
						'type' => 'checkbox',
						'default' => true,
						'label' => __( 'Link Author Name', 'so-widgets-bundle' ),
					),
					'link_all_posts' => array(
						'type' => 'checkbox',
						'default' => true,
						'label' => __( 'Add All Posts by Author Link', 'so-widgets-bundle' ),
					),
					'author_bio' => array(
						'type' => 'checkbox',
						'default' => true,
						'label' => __( 'Author Bio', 'so-widgets-bundle' ),
					),
				),
			),
			'design' => array(
				'type' => 'section',
				'label' => __( 'Design', 'so-widgets-bundle' ),
				'hide' => true,
				'fields' => array(
					'container' => array(
						'type' => 'section',
						'label' => __( 'Container', 'so-widgets-bundle' ),
						'hide' => true,
						'fields' => array(
							'background_color' => array(
								'type' => 'color',
								'label' => __( 'Background', 'so-widgets-bundle' ),
								'alpha' => true,
							),
							'border_color' => array(
								'type' => 'color',
								'label' => __( 'Border Color', 'so-widgets-bundle' ),
								'default' => '#D2D2D2',
							),
							'border_radius' => array(
								'type' => 'slider',
								'label' => __( 'Border Radius', 'so-widgets-bundle' ),
								'max' => 50,
								'min' => 0,
								'step' => 1,
							),
							'border_thickness' => array(
								'type' => 'multi-measurement',
								'label' => __( 'Border Thickness', 'so-widgets-bundle' ),
								'default' => '1px 0 0 0',
								'measurements' => array(
									'top' => __( 'Top', 'so-widgets-bundle' ),
									'right' => __( 'Right', 'so-widgets-bundle' ),
									'bottom' => __( 'Bottom', 'so-widgets-bundle' ),
									'left' => __( 'Left', 'so-widgets-bundle' ),
								),
							),
							'padding' => array(
								'type' => 'multi-measurement',
								'label' => __( 'Padding', 'so-widgets-bundle' ),
								'default' => '40px 0 0 0',
								'measurements' => array(
									'top' => __( 'Top', 'so-widgets-bundle' ),
									'right' => __( 'Right', 'so-widgets-bundle' ),
									'bottom' => __( 'Bottom', 'so-widgets-bundle' ),
									'left' => __( 'Left', 'so-widgets-bundle' ),
								),
							),
						),
					),
					'avatar' => array(
						'type' => 'section',
						'label' => __( 'Author Avatar', 'so-widgets-bundle' ),
						'hide' => true,
						'state_handler' => array(
							'avatar[show]' => array( 'show' ),
							'avatar[hide]' => array( 'hide' ),
						),
						'fields' => array(
							'border_radius' => array(
								'type' => 'slider',
								'label' => __( 'Border Radius', 'so-widgets-bundle' ),
								'max' => 50,
								'min' => 0,
								'step' => 1,
								'default' => 50,
							),
							'size' => array(
								'type' => 'number',
								'label' => __( 'Image Size', 'so-widgets-bundle' ),
								'default' => 100,
								'unit' => 'px',
								'width' => 70,
							),
							'position' => array(
								'type' => 'radio',
								'label' => __( 'Position', 'so-widgets-bundle' ),
								'default' => 'left',
								'options' => array(
									'left' => __( 'Left', 'so-widgets-bundle' ),
									'right' => __( 'Right', 'so-widgets-bundle' ),
								),
							),
						),
					),
					'name' => array(
						'type' => 'section',
						'label' => __( 'Author Name', 'so-widgets-bundle' ),
						'hide' => true,
						'fields' => array(
							'tag' => array(
								'type' => 'select',
								'label' => __( 'HTML Tag', 'so-widgets-bundle' ),
								'default' => 'h4',
								'options' => array(
									'h1' => __( 'H1', 'so-widgets-bundle' ),
									'h2' => __( 'H2', 'so-widgets-bundle' ),
									'h3' => __( 'H3', 'so-widgets-bundle' ),
									'h4' => __( 'H4', 'so-widgets-bundle' ),
									'h5' => __( 'H5', 'so-widgets-bundle' ),
									'h6' => __( 'H6', 'so-widgets-bundle' ),
									'p' => __( 'Paragraph', 'so-widgets-bundle' ),
								),
							),
							'font' => array(
								'type' => 'font',
								'label' => __( 'Font', 'so-widgets-bundle' ),
							),
							'font_size' => array(
								'type' => 'measurement',
								'label' => __( 'Font Size', 'so-widgets-bundle' ),
								'default' => '15px',
							),
							'color' => array(
								'type' => 'color',
								'label' => __( 'Color', 'so-widgets-bundle' ),
								'default' => '#2d2d2d',
							),
							'color_hover' => array(
								'type' => 'color',
								'label' => __( 'Hover Color', 'so-widgets-bundle' ),
								'default' => '#626262',
							),
							'margin_bottom' => array(
								'type' => 'measurement',
								'label' => __( 'Bottom Margin', 'so-widgets-bundle' ),
								'default' => '5px',
							),
						),
					),
					'all' => array(
						'type' => 'section',
						'label' => __( 'Author All Posts Link', 'so-widgets-bundle' ),
						'hide' => true,
						'fields' => array(
							'font' => array(
								'type' => 'font',
								'label' => __( 'Font', 'so-widgets-bundle' ),
							),
							'size' => array(
								'type' => 'measurement',
								'label' => __( 'Font Size', 'so-widgets-bundle' ),
								'default' => '13px',
							),
							'color' => array(
								'type' => 'color',
								'label' => __( 'Color', 'so-widgets-bundle' ),
								'default' => '#626262',
							),
							'color_hover' => array(
								'type' => 'color',
								'label' => __( 'Hover Color', 'so-widgets-bundle' ),
								'default' => '#2d2d2d',
							),
							'spacing' => array(
								'type' => 'multi-measurement',
								'label' => __( 'Margin', 'so-widgets-bundle' ),
								'default' => '0 10px',
								'measurements' => array(
									'top' => __( 'Top', 'so-widgets-bundle' ),
									'bottom' => __( 'Bottom', 'so-widgets-bundle' ),
								),
							),
						),
					),
					'bio' => array(
						'type' => 'section',
						'label' => __( 'Author Bio', 'so-widgets-bundle' ),
						'hide' => true,
						'fields' => array(
							'font' => array(
								'type' => 'font',
								'label' => __( 'Font', 'so-widgets-bundle' ),
							),
							'font_size' => array(
								'type' => 'measurement',
								'label' => __( 'Font Size', 'so-widgets-bundle' ),
								'default' => '14px',
							),
							'color' => array(
								'type' => 'color',
								'label' => __( 'Color', 'so-widgets-bundle' ),
								'default' => '#626262',
							),
							'link' => array(
								'type' => 'color',
								'label' => __( 'Link Color', 'so-widgets-bundle' ),
								'default' => '#2d2d2d',
							),
							'link_hover' => array(
								'type' => 'color',
								'label' => __( 'Link Hover Color', 'so-widgets-bundle' ),
								'default' => '#626262',
							),
						),
					),
				),
			),
		);
	}

	public function get_template_variables( $instance, $args ) {
		$title_tag = siteorigin_widget_valid_tag(
			$instance['design']['name']['tag'] ?? '',
			'h4'
		);

		return array(
			'title_tag' => $title_tag,
			'responsive_breakpoint' => $this->get_global_settings( 'responsive_breakpoint' ),
			'show_avatar' => ! empty( $instance['settings']['avatar'] ),
			'link_avatar' => ! empty( $instance['settings']['link_avatar'] ),
			'link_name' => ! empty( $instance['settings']['link_name'] ),
			'author_bio' => ! empty( $instance['settings']['author_bio'] ),
			'link_all_posts' => ! empty( $instance['settings']['link_all_posts'] ),
			'avatar_image_size' => ! empty( $instance['design']['avatar']['size'] ) ? (int) $instance['design']['avatar']['size'] . 'px' : '100px',
		);
	}

	public function get_less_variables( $instance ) {
		if ( empty( $instance ) ) {
			return array();
		}

		$less_vars = array();

		// Container.
		$less_vars['container_background'] = ! empty( $instance['design']['container']['background_color'] ) ? $instance['design']['container']['background_color'] : '';
		$less_vars['container_border_radius'] = ! empty( $instance['design']['container']['border_radius'] ) ? $instance['design']['container']['border_radius'] . 'px' : '';
		$less_vars['container_border_color'] = ! empty( $instance['design']['container']['border_color'] ) ? $instance['design']['container']['border_color'] : '';
		$less_vars['container_border_thickness'] = ! empty( $instance['design']['container']['border_thickness'] ) ? $instance['design']['container']['border_thickness'] : '1px 0 0 0';
		$less_vars['container_padding'] = ! empty( $instance['design']['container']['padding'] ) ? $instance['design']['container']['padding'] : '40px 0 0 0';

		// Author Name.
		if ( ! empty( $instance['design']['name']['font'] ) ) {
			$font = siteorigin_widget_get_font( $instance['design']['name']['font'] );
			$less_vars['name_font'] = $font['family'];

			if ( ! empty( $font['weight'] ) ) {
				$less_vars['name_font_style'] = $font['style'];
				$less_vars['name_font_weight'] = $font['weight_raw'];
			}
		}
		$less_vars['name_font_size'] = ! empty( $instance['design']['name']['font_size'] ) ? $instance['design']['name']['font_size'] : '';
		$less_vars['name_color'] = ! empty( $instance['design']['name']['color'] ) ? $instance['design']['name']['color'] : '';
		$less_vars['name_color_hover'] = ! empty( $instance['design']['name']['color_hover'] ) ? $instance['design']['name']['color_hover'] : '';
		$less_vars['name_margin_bottom'] = ! empty( $instance['design']['name']['margin_bottom'] ) ? $instance['design']['name']['margin_bottom'] : '';
		$less_vars['name_link'] = ! empty( $instance['settings']['link_name'] );

		// Author Avatar.
		$less_vars['avatar_border_radius'] = ! empty( $instance['design']['avatar']['border_radius'] ) ? $instance['design']['avatar']['border_radius'] . 'px' : '';
		$less_vars['avatar_border_position'] = ! empty( $instance['design']['avatar']['position'] ) ? $instance['design']['avatar']['position'] : '';

		// Bio.
		if ( ! empty( $instance['design']['bio']['font'] ) ) {
			$font = siteorigin_widget_get_font( $instance['design']['bio']['font'] );
			$less_vars['bio_font'] = $font['family'];

			if ( ! empty( $font['weight'] ) ) {
				$less_vars['bio_font_style'] = $font['style'];
				$less_vars['bio_font_weight'] = $font['weight_raw'];
			}
		}
		$less_vars['bio_font_size'] = ! empty( $instance['design']['bio']['font_size'] ) ? $instance['design']['bio']['font_size'] : '';
		$less_vars['bio_color'] = ! empty( $instance['design']['bio']['color'] ) ? $instance['design']['bio']['color'] : '';
		$less_vars['bio_link'] = ! empty( $instance['design']['bio']['link'] ) ? $instance['design']['bio']['link'] : '';
		$less_vars['bio_link_hover'] = ! empty( $instance['design']['bio']['link_hover'] ) ? $instance['design']['bio']['link_hover'] : '';

		// All link.
		if ( ! empty( $instance['design']['all']['font'] ) ) {
			$font = siteorigin_widget_get_font( $instance['design']['all']['font'] );
			$less_vars['all_font'] = $font['family'];

			if ( ! empty( $font['weight'] ) ) {
				$less_vars['all_font_style'] = $font['style'];
				$less_vars['all_font_weight'] = $font['weight_raw'];
			}
		}
		$less_vars['all_font_size'] = ! empty( $instance['design']['all']['size'] ) ? $instance['design']['all']['size'] : '';
		$less_vars['all_color'] = ! empty( $instance['design']['all']['color'] ) ? $instance['design']['all']['color'] : '';
		$less_vars['all_color_hover'] = ! empty( $instance['design']['all']['color_hover'] ) ? $instance['design']['all']['color_hover'] : '';

		if ( ! empty( $instance['design']['all']['spacing'] ) ) {
			$spacing = explode( ' ', $instance['design']['all']['spacing'] );
			$less_vars['all_spacing'] = implode( ' 0 ', $spacing );
		} else {
			$less_vars['all_spacing'] = '';
		}

		return $less_vars;
	}

	public function get_form_teaser() {
		if ( class_exists( 'SiteOrigin_Premium' ) ) {
			return false;
		}

		return array(
			sprintf(
				__( '%sSiteOrigin Premium%s adds depth to the Author Box Widget with placement options, author bios, recent post visibility, social buttons, and design customizations. Enjoy centralized global control of author boxes', 'so-widgets-bundle' ),
				'<a href="https://siteorigin.com/downloads/premium/?featured_addon=plugin/author-box" target="_blank" rel="noopener noreferrer">',
				'</a>'
			),
		);
	}
}

siteorigin_widget_register( 'sow-author-box', __FILE__, 'SiteOrigin_Widget_Author_Box_Widget' );
styles/default.less000064400000005603151541574430010420 0ustar00@responsive_breakpoint: 780px;

@container_background: default;
@container_border_color: default;
@container_padding: default;
@container_border_thickness: default;
@container_border_radius: default;

@name_font: default;
@name_font_size: default;
@name_font_style: default;
@name_font_weight: 700;
@name_color: default;
@name_color_hover: default;
@name_link: default;
@name_margin_bottom: default;

@avatar_border_position: left;
@avatar_border_radius: default;
@avatar_image_size: default;

@bio_color: default;
@bio_font: default;
@bio_font_style: default;
@bio_font_size: default;
@bio_font_weight: default;
@bio_link: default;
@bio_link_hover: default;

@all_font: default;
@all_font_size: default;
@all_font_style: default;
@all_font_weight: default;
@all_color: default;
@all_color_hover: default;
@all_spacing: default;

.sow-author-box {
	background: @container_background;
	border-color: @container_border_color;
	border-radius: @container_border_radius;
	border-style: solid;
	border-width: @container_border_thickness;
	padding: @container_padding;

	& when ( @avatar_border_position = right ) {
		flex-direction: row-reverse;
		text-align: right;
	}

	@media (min-width: @responsive_breakpoint) {
		display: flex;
		gap: 30px;

		.sow-author-box-avatar {
			text-align: center;

			a {
				display: inline-block;
				line-height: 0;
			}
		}

		.sow-author-box-description {
			flex: 9;
		}
	}

	@media (max-width: @responsive_breakpoint) {
		text-align: center;
	}

	&-avatar {
		width: @avatar_image_size;
		line-height: 0;

		.avatar {
			border-radius: @avatar_border_radius;
		}
	}

	&-title-wrapper {
		align-items: end;
		display: flex;
		gap: 10px;
		margin-bottom: @name_margin_bottom;

		& when ( @avatar_border_position = right ) {
			justify-content: end;
		}
	}

	&-title {
		margin: 0;
	}

	&-title {
		font-family: @name_font;
		font-size: @name_font_size;
		font-style: @name_font_style;
		font-weight: @name_font_weight;
		line-height: 1;
	}

	& when ( @name_link = 1 ) {
		a {
			color: @name_color;
			text-decoration: none;

			&:hover,
			&:focus {
				color: @name_color_hover;
			}
		}
	}

	&-info {
		font-size: @name_font_size;
		text-decoration: none;

		.sow-author-box-author-all {
			color: @all_color;
			display: block;
			font-family: @all_font;
			font-size: @all_font_size;
			font-style: @all_font_style;
			font-weight: @all_font_weight;
			text-decoration: none;

			& when not ( @all_spacing = default ) {
				margin: @all_spacing;
			}

			&:focus,
			&:hover {
				color: @all_color_hover;
			}
		}

	}

	&-bio {
		color: @bio_color;
		font-family: @bio_font;
		font-size: @bio_font_size;
		font-style: @bio_font_style;
		font-weight: @bio_font_weight;

		a {
			color: @bio_link;

			&:hover,
			&:focus {
				color: @bio_link_hover;
			}
		}
	}

	@media (max-width: @responsive_breakpoint) {
		&-avatar {
			margin-bottom: 15px;
		}

		&-title-wrapper {
			justify-content: center;
		}
	}
}
tpl/default.php000064400000004770151541574430007521 0ustar00<div class="sow-author-box">
	<?php do_action( 'siteorigin_widgets_author_box_before', $instance ); ?>
	<?php if ( $show_avatar ) { ?>
		<?php $avatar_image_size = apply_filters( 'siteorigin_widgets_avatar_size', (int) $avatar_image_size ); ?>
		<div class="sow-author-box-avatar" style="max-width: <?php echo esc_attr( $avatar_image_size ); ?>px;">
			<?php do_action( 'siteorigin_widgets_author_box_avatar_above', $instance ); ?>
			<?php if ( $link_avatar ) { ?>
				<a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>">
			<?php
			}

			echo get_avatar(
				get_the_author_meta( 'ID' ),
				$avatar_image_size * 2
			);

			if ( $link_avatar ) {
				?>
				</a>
			<?php } ?>
			<?php do_action( 'siteorigin_widgets_author_box_avatar_below', $instance ); ?>
		</div>
	<?php } ?>
	<div class="sow-author-box-description">
		<?php do_action( 'siteorigin_widgets_author_box_description_above', $instance ); ?>

		<div class="sow-author-box-title-wrapper">
			<<?php echo esc_html( $title_tag ); ?> class="sow-author-box-title">
				<?php if ( $link_name ) { ?>
					<a href="<?php echo esc_urL( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>"  class="sow-author-box-author">
					<?php
				}
				echo get_the_author();

				if ( $link_name ) {
					?>
					</a>
				<?php } ?>
			</<?php echo esc_html( $title_tag ); ?>>

			<?php
			ob_start();
			do_action( 'siteorigin_widgets_author_box_description_inline', $instance );
			$inline_html_action = ob_get_clean();
			?>
			<?php if ( ! empty( $inline_html_action ) ) { ?>
				<div class="sow-author-box-inline-title">
					<?php echo $inline_html_action; ?>
				</div>
			<?php } ?>
		</div>

		<div class="sow-author-box-info">
			<?php if ( $link_all_posts ) { ?>
				<a href="<?php echo esc_urL( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" class="sow-author-box-author-all">
					<?php esc_html_e( sprintf( 'View posts by %s', get_the_author() ), 'so-widgets-bundle' ); ?>
				</a>
			<?php } ?>
		</div>

		<?php if ( $author_bio ) { ?>
			<div class="sow-author-box-bio">
				<?php do_action( 'siteorigin_widgets_author_box_description_bio_before', $instance ); ?>
				<?php echo wp_kses_post( get_the_author_meta( 'description' ), null ); ?>
			</div>
			<?php do_action( 'siteorigin_widgets_author_box_description_bio_after', $instance ); ?>
		<?php } ?>

		<?php do_action( 'siteorigin_widgets_author_box_description_below', $instance ); ?>
	</div>
	<?php do_action( 'siteorigin_widgets_author_box_after', $instance ); ?>
</div>