File: /var/www/vhosts/uyarreklam.com.tr/httpdocs/call-to-action.tar
call-to-action.php 0000644 00000002032 15154621455 0010070 0 ustar 00 <?php
class SiteOrigin_Panels_Widget_Call_To_Action extends SiteOrigin_Panels_Widget {
function __construct() {
parent::__construct(
__('Call To Action (PB)', 'siteorigin-panels'),
array(
'description' => __('A Call to Action block', 'siteorigin-panels'),
'default_style' => 'simple',
),
array(),
array(
'title' => array(
'type' => 'text',
'label' => __('Title', 'siteorigin-panels'),
),
'subtitle' => array(
'type' => 'text',
'label' => __('Sub Title', 'siteorigin-panels'),
),
'button_text' => array(
'type' => 'text',
'label' => __('Button Text', 'siteorigin-panels'),
),
'button_url' => array(
'type' => 'text',
'label' => __('Button URL', 'siteorigin-panels'),
),
'button_new_window' => array(
'type' => 'checkbox',
'label' => __('Open In New Window', 'siteorigin-panels'),
),
)
);
// We need the button style
$this->add_sub_widget('button', __('Button', 'siteorigin-panels'), 'SiteOrigin_Panels_Widget_Button');
}
} presets/simple.php 0000644 00000000771 15154621455 0010250 0 ustar 00 <?php
return array(
'light_dashed' => array(
'texture' => 'light-dashed',
'title_text_color' => '#333333',
'subtitle_text_color' => '#555555',
),
'dark_dashed' => array(
'texture' => 'dark-dashed',
'title_text_color' => '#FFFFFF',
'subtitle_text_color' => '#CCCCCC',
),
'clean' => array(
'background_color' => '#FCFCFC',
'texture' => 'none',
'title_text_color' => '#333333',
'subtitle_text_color' => '#555555',
'rounding' => '0px',
'borders' => '1px solid #D0D0D0',
),
);
styles/simple.less 0000644 00000002145 15154621455 0010262 0 ustar 00 /*
Name: Simple
Template: simple
Author: Greg Priday
Author URI: http://siteorigin.com/
*/
@import "../../../less/mixins";
/* Everything for the background */
@background_color: #F6F6F6;
@padding: 2em;
@rounding: 4px;
@shadow: 0.1;
@borders: 1px solid #E0E0E0;
/* Everything for the Title */
@title_text_color: #EFEFEF;
@title_font_weight: auto;
@subtitle_text_color: #CCCCCC;
@subtitle_font_weight: auto;
@texture: dark-dashed;
& {
.clearfix();
padding: @padding;
position: relative;
.rounded(@rounding);
background: texture(@texture, @background_color);
.box-shadow(0 1px 2px rgba(0,0,0,@shadow));
border: @borders;
.title {
line-height: 1.6em;
margin: 0;
color: @title_text_color;
font-weight: @title_font_weight;
}
.subtitle {
line-height: 1.25em;
margin: 0;
color: @subtitle_text_color;
font-weight: @subtitle_font_weight;
}
.origin-widget-button {
position: absolute;
display: block;
top: 50%;
right: 2em;
margin-top: -22px;
}
}
@media (max-width:680px) {
& {
.origin-widget-button {
position: static;
margin-top: 2em;
a {
display: block;
}
}
}
} tpl/simple.php 0000644 00000000537 15154621455 0007362 0 ustar 00 <h2 class="title"><?php echo esc_html($instance['title']) ?></h2>
<h5 class="subtitle"><?php echo esc_html($instance['subtitle']) ?></h5>
<?php $this->sub_widget('button', array('text' => $instance['button_text'], 'url' => $instance['button_url'], 'new_window' => $instance['button_new_window'], 'origin_style' => $instance['origin_style_button'])) ?>