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/cta.tar
assets/banner.svg000064400000002573151542160350010045 0ustar00<svg enable-background="new 55 277 240 240" viewBox="55 277 240 240" xmlns="http://www.w3.org/2000/svg"><path d="m55 277h240v240h-240z" fill="#1880b6"/><g fill="#324249"><path d="m207 373.2v-35.7c0-2.3-1.4-4.4-4.3-4.4-1.2 0-3.7 1.9-4.8 2.7-1.4 1.1-17.8 15.7-25.5 21.2h-35.4c-.3 0-26 .3-26 26s25.7 26 26 26h10v48c0 2.2 1.8 4 4 4h12c2.2 0 4-1.8 4-4v-48h5.4l27.5 22.8c1.1.8 2.3 1.2 3.5 1.2 1.8 0 3.7-1.2 3.7-4v-36.2c4.6-.9 8-5 8-9.8s-3.5-8.9-8.1-9.8zm-44 83.8h-12v-48h12zm8-52h-34c-.9 0-22-.2-22-22 0-21.7 21.1-22 22-22h34zm32 22.5c0 .8-.8 1.2-1.4.5l-26.6-22v-46c4.1-2.9 24.5-20.1 26.2-21.5.9-.7 1.8-.5 1.8.8zm4-38.9v-11.3c2.3.8 4 3 4 5.6 0 2.7-1.7 4.9-4 5.7z"/><path d="m216.9 396.5c-.4.4-2.3 2-1.2 3.4s2.4.7 3.5-.1c4.4-3.4 7.9-9.8 7.9-16.9 0-7-2.8-12.6-7.4-16.5-.5-.5-2.4-1.9-3.7-.5-1.2 1.4.6 3.1.8 3.3 3.8 3.3 6.3 7.9 6.3 13.7-.1 5.7-2.5 10.4-6.2 13.6z"/><path d="m218.2 351.7c-.5-.2-2.2-1-2.9.8-.7 1.7 1.2 2.8 1.4 2.9 11 4.5 18.3 15 18.3 27.6 0 12.5-7.6 23.2-18.5 27.7-.2.1-2 .9-1.2 2.9.6 1.7 2.3.9 2.9.7 12.2-5.1 20.8-17.2 20.8-31.4 0-14.1-8.4-26.1-20.8-31.2z"/></g><path d="m115 383c0 21.8 21.1 22 22 22h34v-44h-34c-.9 0-22 .3-22 22z" fill="#8ed9ef"/><path d="m201.2 338.5c-1.7 1.5-22.1 18.6-26.2 21.5v46l26.5 22c.7.7 1.4.3 1.4-.5v-88.2c.1-1.3-.9-1.6-1.7-.8z" fill="#8ed9ef"/><g fill="#f2f0da"><path d="m151 409h12v48h-12z"/><path d="m207 377.4v11.3c2.3-.8 4-3 4-5.6 0-2.7-1.7-4.9-4-5.7z"/></g></svg>assets/icon.svg000064400000002506151542160350007524 0ustar00<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="m6.00854 15.17358-.03296 4.4353c-.00488.80566.646 1.46582 1.45166 1.47168l2.4082.01709h.01074c.52295 0 .99316-.26807 1.25879-.71924.26807-.4541.27344-1 .01514-1.45947l-.42236-.73926.02106-2.82434 6.91693 3.0011c.2373.10303.48877.15381.73877.15381.35352 0 .70508-.10156 1.01172-.30127.52295-.34082.8374-.91699.8418-1.54053l.08496-11.89502c.00439-.62402-.30273-1.2041-.8208-1.55176-.51758-.34863-1.17139-.41113-1.74756-.17236l-7.17664 2.99255-3.92102-.02771h-.02051c-1.5957 0-2.90039 1.29248-2.91211 2.89062l-.02393 3.39648c-.00586.77734.29199 1.51074.83789 2.06494.4093.41516.92157.6922 1.48022.80737zm1.46705 4.44556.03253-4.37872 1.71136.01215-.02173 2.91589c-.00195.25488.06348.50684.18799.72754l.46045.70166-2.37061.02148zm10.84619-15.18506c.15479-.06445.27539-.00684.33447.03271s.15771.13086.15674.29639l-.08496 11.89502c-.00098.16553-.10107.25537-.16064.29395-.05908.03955-.18115.09375-.33496.02832l-6.81824-2.95844.02405-3.36383.02417-3.36377 6.85938-2.86035zm-13.10742 4.48145c.00586-.7749.63818-1.40137 1.41211-1.40137h.00977l3.32422.02344-.02222 3.10986-.02222 3.10986-3.14563-.02216c-.00049 0-.00085-.00031-.00134-.00031-.00037.00006-.00067.00018-.00104.00024l-.17621-.00122c-.37695-.00293-.73047-.15234-.99512-.4209s-.40918-.62402-.40625-1.00098l.02393-3.39648z"/></svg>css/style.css000064400000001042151542160360007206 0ustar00.sow-cta-base{zoom:1}.sow-cta-base:before{content:'';display:block}.sow-cta-base:after{content:'';display:table;clear:both}.sow-cta-base .sow-cta-text .sow-cta-title,.sow-cta-base .sow-cta-text .sow-cta-subtitle,.sow-cta-base .sow-cta-text p{margin:.4em 0}.sow-cta-base .sow-cta-text .sow-cta-title{margin-top:0}.sow-cta-base .sow-cta-text .sow-cta-subtitle,.sow-cta-base .sow-cta-text p{margin-bottom:0;font-weight:normal}@media screen and (max-width:640px){.sow-cta-base{text-align:center;padding:1.75em}.sow-cta-base .sow-cta-text{float:none}}cta.php000064400000024604151542160360006035 0ustar00<?php
/*
Widget Name: Call To Action
Description: Prompt visitors to take action with a customizable title, subtitle, button, and design settings.
Author: SiteOrigin
Author URI: https://siteorigin.com
Documentation: https://siteorigin.com/widgets-bundle/call-action-widget/
*/

class SiteOrigin_Widget_Cta_Widget extends SiteOrigin_Widget {
	public function __construct() {
		parent::__construct(
			'sow-cta',
			__( 'SiteOrigin Call To Action', 'so-widgets-bundle' ),
			array(
				'description' => __( 'Prompt visitors to take action with a customizable title, subtitle, button, and design settings.', 'so-widgets-bundle' ),
				'help' => 'https://siteorigin.com/widgets-bundle/call-action-widget/',
			),
			array(
			),
			false,
			plugin_dir_path( __FILE__ )
		);
	}

	/**
	 * Initialize the CTA Widget.
	 */
	public function initialize() {
		// This widget requires the Button Widget.
		if ( ! class_exists( 'SiteOrigin_Widget_Button_Widget' ) ) {
			SiteOrigin_Widgets_Bundle::single()->include_widget( 'button' );
		}
		$this->register_frontend_styles(
			array(
				array(
					'sow-cta-main',
					plugin_dir_url( __FILE__ ) . 'css/style.css',
					array(),
					SOW_BUNDLE_VERSION,
				),
			)
		);
		$this->register_frontend_scripts(
			array(
				array(
					'sow-cta-main',
					plugin_dir_url( __FILE__ ) . 'js/cta' . SOW_BUNDLE_JS_SUFFIX . '.js',
					array( 'jquery' ),
					SOW_BUNDLE_VERSION,
				),
			)
		);


		add_filter( 'siteorigin_widgets_google_font_fields_sow-cta', array( $this, 'add_google_font_fields' ), 10, 3 );
	}

	public function get_settings_form() {
		return array(
			'responsive_breakpoint' => array(
				'type'        => 'measurement',
				'label'       => __( 'Responsive Breakpoint', 'so-widgets-bundle' ),
				'default'     => '780px',
				'description' => __( 'This setting controls when the mobile alignment will be used. The default value is 780px.', 'so-widgets-bundle' ),
			),
		);
	}

	public function get_widget_form() {
		return array(
			'title' => array(
				'type' => 'text',
				'label' => __( 'Title', 'so-widgets-bundle' ),
			),

			'sub_title' => array(
				'type' => 'text',
				'label' => __( 'Subtitle', 'so-widgets-bundle' ),
			),

			'design' => array(
				'type' => 'section',
				'label' => __( 'Design', 'so-widgets-bundle' ),
				'fields' => array(
					'colors' => array(
						'type' => 'section',
						'label' => __( 'Colors', 'so-widgets-bundle' ),
						'fields' => array(
							'background_color' => array(
								'type' => 'color',
								'label' => __( 'Background Color', 'so-widgets-bundle' ),
								'default' => '#f8f8f8',
							),
							'border_color' => array(
								'type' => 'color',
								'label' => __( 'Border Color', 'so-widgets-bundle' ),
								'default' => '#e3e3e3',
							),
							'title_color' => array(
								'type' => 'color',
								'label' => __( 'Title Color', 'so-widgets-bundle' ),
							),
							'subtitle_color' => array(
								'type' => 'color',
								'label' => __( 'Subtitle Color', 'so-widgets-bundle' ),
							),
						),
					),
					'fonts' => array(
						'type' => 'section',
						'label' => __( 'Fonts', 'so-widgets-bundle' ),
						'fields' => array(
							'title_tag' => array(
								'type' => 'select',
								'label' => __( 'Title 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' ),
								),
							),
							'title_font_family' => array(
								'type' => 'font',
								'label' => __( 'Title Font Family', 'so-widgets-bundle' ),
							),
							'title_font_size' => array(
								'type' => 'measurement',
								'label' => __( 'Title Font Size', 'so-widgets-bundle' ),
							),
							'sub_title_tag' => array(
								'type' => 'select',
								'label' => __( 'Subtitle HTML Tag', 'so-widgets-bundle' ),
								'default' => 'h5',
								'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' ),
								),
							),
							'subtitle_font_family' => array(
								'type' => 'font',
								'label' => __( 'Subtitle Font Family', 'so-widgets-bundle' ),
							),
							'subtitle_font_size' => array(
								'type' => 'measurement',
								'label' => __( 'Subtitle Font Size', 'so-widgets-bundle' ),
							),
						),
					),
					'layout' => array(
						'type' => 'section',
						'label' => __( 'Layout', 'so-widgets-bundle' ),
						'fields' => array(
							'desktop' => array(
								'type' => 'select',
								'label' => __( 'Desktop Button Align', 'so-widgets-bundle' ),
								'default' => 'right',
								'options' => array(
									'top' => __( 'Center Top', 'so-widgets-bundle' ),
									'left' => __( 'Left', 'so-widgets-bundle' ),
									'bottom' => __( 'Center Bottom', 'so-widgets-bundle' ),
									'right' => __( 'Right', 'so-widgets-bundle' ),
								),
							),
							'mobile' => array(
								'type' => 'select',
								'label' => __( 'Mobile Button Align', 'so-widgets-bundle' ),
								'default' => 'right',
								'options' => array(
									'' => __( 'Desktop Button Align', 'so-widgets-bundle' ),
									'above' => __( 'Center Top', 'so-widgets-bundle' ),
									'below' => __( 'Center Bottom', 'so-widgets-bundle' ),
								),
							),
						),
					),
				),
			),

			'button' => array(
				'type' => 'widget',
				'class' => 'SiteOrigin_Widget_Button_Widget',
				'label' => __( 'Button', 'so-widgets-bundle' ),
			),
		);
	}

	public function modify_child_widget_form( $child_widget_form, $child_widget ) {
		unset( $child_widget_form['design']['fields']['align'] );
		unset( $child_widget_form['design']['fields']['mobile_align'] );

		return $child_widget_form;
	}

	public function modify_instance( $instance ) {
		if ( empty( $instance ) || empty( $instance['design'] ) ) {
			return array();
		}

		if ( isset( $instance['design']['background_color'] ) ) {
			$instance['design']['colors'] = array();
			$instance['design']['colors']['background_color'] = $instance['design']['background_color'];
			$instance['design']['colors']['title_color'] = $instance['design']['title_color'];
			$instance['design']['colors']['subtitle_color'] = $instance['design']['subtitle_color'];
			$instance['design']['layout'] = array();
			$instance['design']['layout']['desktop'] = $instance['design']['button_align'];
		}

		return $instance;
	}

	public function get_less_variables( $instance ) {
		if ( empty( $instance ) || empty( $instance['design'] ) ) {
			return array();
		}

		$less_vars = array(
			'border_color' => ! empty( $instance['design']['colors']['border_color'] ) ? $instance['design']['colors']['border_color'] : '',
			'background_color' => ! empty( $instance['design']['colors']['background_color'] ) ? $instance['design']['colors']['background_color'] : '',
			'title_color' => ! empty( $instance['design']['colors']['title_color'] ) ? $instance['design']['colors']['title_color'] : '',
			'subtitle_color' => ! empty( $instance['design']['colors']['subtitle_color'] ) ? $instance['design']['colors']['subtitle_color'] : '',
			'button_align' => ! empty( $instance['design']['layout']['desktop'] ) ? $instance['design']['layout']['desktop'] : '',
			'mobile_button_align' => ! empty( $instance['design']['layout']['mobile'] ) ? $instance['design']['layout']['mobile'] : '',
		);

		$global_settings = $this->get_global_settings();

		if ( ! empty( $global_settings['responsive_breakpoint'] ) ) {
			$less_vars['responsive_breakpoint'] = ! empty( $global_settings['responsive_breakpoint'] ) ? $global_settings['responsive_breakpoint'] : '780px';
		}

		$fonts = empty( $instance['design']['fonts'] ) ? array() : $instance['design']['fonts'];

		if ( ! empty( $fonts['title_font_family'] ) ) {
			$font = siteorigin_widget_get_font( $fonts['title_font_family'] );
			$less_vars['title_font_family'] = $font['family'];

			if ( ! empty( $font['weight'] ) ) {
				$less_vars['title_font_weight'] = $font['weight'];
			}
		}

		if ( ! empty( $fonts['title_font_size'] ) ) {
			$less_vars['title_font_size'] = $fonts['title_font_size'];
		}

		if ( ! empty( $fonts['subtitle_font_family'] ) ) {
			$font = siteorigin_widget_get_font( $fonts['subtitle_font_family'] );
			$less_vars['subtitle_font_family'] = $font['family'];

			if ( ! empty( $font['weight'] ) ) {
				$less_vars['subtitle_font_weight'] = $font['weight'];
			}
		}

		if ( ! empty( $fonts['subtitle_font_size'] ) ) {
			$less_vars['subtitle_font_size'] = $fonts['subtitle_font_size'];
		}

		return $less_vars;
	}

	public function get_template_variables( $instance, $args ) {
		$template_vars = array(
			'title' => ! empty( $instance['title'] ) ? $instance['title'] : '',
			'sub_title' => ! empty( $instance['sub_title'] ) ? $instance['sub_title'] : '',
			'button' => $instance['button'],
			'title_tag' => siteorigin_widget_valid_tag(
				! empty( $instance['design']['fonts']['title_tag'] ) ? $instance['design']['fonts']['title_tag'] : 'h4',
				'h4'
			),
			'sub_title_tag' => siteorigin_widget_valid_tag(
				! empty( $instance['design']['fonts']['sub_title_tag'] ) ? $instance['design']['fonts']['sub_title_tag'] : 'h5',
				'h5'
			),
		);

		return $template_vars;
	}

	public function add_google_font_fields( $fields, $instance, $widget ) {
		if ( ! empty( $instance['design']['fonts']['title_font_family'] ) ) {
			$fields[] = $instance['design']['fonts']['title_font_family'];
		}

		if ( ! empty( $instance['design']['fonts']['subtitle_font_family'] ) ) {
			$fields[] = $instance['design']['fonts']['subtitle_font_family'];
		}

		return $fields;
	}

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

		return sprintf(
			__( 'Get more font customization options with %sSiteOrigin Premium%s', 'so-widgets-bundle' ),
			'<a href="https://siteorigin.com/downloads/premium/?featured_addon=plugin/cta" target="_blank" rel="noopener noreferrer">',
			'</a>'
		);
	}
}

siteorigin_widget_register( 'sow-cta', __FILE__, 'SiteOrigin_Widget_Cta_Widget' );
js/cta.js000064400000000741151542160370006273 0ustar00/* globals jQuery, sowb */

var sowb = window.sowb || {};

jQuery( function ( $ ) {
	var setupCta = function () {
		$( '.sow-cta-base' ).each( function () {
			var $$ = $( this );
			var
				$b = $$.find( '.so-widget-sow-button' ),
				$t = $$.find( '.sow-cta-text' );
			
			if ( $t.outerHeight() > $b.outerHeight() ) {
				$b.css( 'margin-top', ( $t.outerHeight() - $b.outerHeight() ) / 2 + 'px' );
			}
		} );
	};
	setupCta();
	
	$( sowb ).on( 'setup_widgets', setupCta );
} );
js/cta.min.js000064400000000463151542160370007056 0ustar00var sowb=window.sowb||{};jQuery((function(t){var o=function(){t(".sow-cta-base").each((function(){var o=t(this),e=o.find(".so-widget-sow-button"),i=o.find(".sow-cta-text");i.outerHeight()>e.outerHeight()&&e.css("margin-top",(i.outerHeight()-e.outerHeight())/2+"px")}))};o(),t(sowb).on("setup_widgets",o)}));styles/default.less000064400000004747151542160400010415 0ustar00@import "../../../base/less/mixins";

@border_color: default;
@background_color: default;
@title_color: default;
@title_font_family: default;
@title_font_weight: default;
@title_font_size: default;
@subtitle_color: default;
@subtitle_font_family: default;
@subtitle_font_weight: default;
@subtitle_font_size: default;
@button_align: right;
@mobile_button_align: default;
@responsive_breakpoint: default;
@padding: 2em 2.5em;

.sow-cta-base {
	padding: @padding;

	& when ( iscolor( @border_color ) ) {
		border: 1px solid @border_color;
	}
	& when ( iscolor( @background_color ) ) {
		background-color: @background_color;
	}

	.sow-cta-text {
		.sow-cta- {
			&title {
				color: @title_color;
				font-family: @title_font_family;
				font-weight: @title_font_weight;
				font-size: @title_font_size;
			}

			&subtitle {
				color: @subtitle_color;
				font-family: @subtitle_font_family;
				font-weight: @subtitle_font_weight;
				font-size: @subtitle_font_size;
			}
		}
	}
}

.sow-cta-base {
	& when ( @button_align = top ) {
		.sow-cta-wrapper {
			display: flex;
			flex-direction: column-reverse;
			justify-content: center;

			.sow-cta-text {
				text-align: center;
			}
		}

		.so-widget-sow-button {
			margin-bottom: 1.5em;
		}
	}

	& when ( @button_align = left ) {
		.sow-cta-text {
			float: right;
		}

		.so-widget-sow-button {
			float: left;
			margin-right: 1em;
		}
	}

	& when ( @button_align = bottom ) {
		flex-direction: column;

		.sow-cta-text {
			text-align: center;
		}

		.so-widget-sow-button {
			margin-top: 1.5em;
		}
	}

	& when ( @button_align = right ) {
		.sow-cta-text {
			float: left;
		}

		.so-widget-sow-button {
			float: right;
			margin-left: 1em;
		}
	}


	@media (max-width: @responsive_breakpoint) {
		.sow-cta-wrapper {
			.so-widget-sow-button {
				margin-right: 0;
				margin-left: 0;
			}

			& when ( @mobile_button_align = above ), ( @mobile_button_align = below ) {
				display: flex;

				.so-widget-sow-button {
					float: none;
				}

				.sow-cta-text {
					text-align: center;
				}

				& when ( @mobile_button_align = above ) {
					flex-direction: column-reverse;
					justify-content: center;

					.so-widget-sow-button {
						margin-top: 0 !important;
						margin-bottom: 1em;
					}
				}

				& when ( @mobile_button_align = below ) {
					flex-direction: column;
					.so-widget-sow-button {
						margin-top: 1em !important;
						margin-bottom: 0;
					}
				}
			}
		}
	}

	.sow-cta-wrapper::after {
		clear: both;
		content: "";
		display: table;
	}
}
tpl/default.php000064400000001526151542160410007503 0ustar00<div
	class="sow-cta-base"
	<?php echo apply_filters( 'siteorigin_widgets_cta_base', '', $instance ); ?>
>
	<?php do_action( 'siteorigin_widgets_cta_before_wrapper', $instance ); ?>

	<div class="sow-cta-wrapper">

		<div class="sow-cta-text">
			<?php if ( ! empty( $title ) ) { ?>
				<<?php echo esc_html( $title_tag ); ?> class="sow-cta-title">
					<?php echo wp_kses_post( $title ); ?>
				</<?php echo esc_html( $title_tag ); ?>>
			<?php } ?>

			<?php if ( ! empty( $sub_title ) ) { ?>
				<<?php echo esc_html( $title_tag ); ?> class="sow-cta-subtitle">
					<?php echo wp_kses_post( $sub_title ); ?>
				</<?php echo esc_html( $title_tag ); ?>>
			<?php } ?>
		</div>

		<?php $this->sub_widget( 'SiteOrigin_Widget_Button_Widget', $args, $button ); ?>

	</div>

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