Initial commit. State 04.2021.

This commit is contained in:
2021-04-22 17:57:16 +02:00
commit 82781cca41
2974 changed files with 975656 additions and 0 deletions

View File

@@ -0,0 +1,571 @@
<?php
/********* ePanel v.3.2 ************/
/* Adds jquery script */
add_action( 'wp_print_scripts', 'et_jquery_script', 8 );
function et_jquery_script(){
wp_enqueue_script('jquery');
}
/* Admin scripts + ajax jquery code */
if ( ! function_exists( 'et_epanel_admin_js' ) ){
function et_epanel_admin_js(){
global $themename;
$epanel_jsfolder = get_template_directory_uri() . '/epanel/js';
wp_enqueue_script('jquery-ui-tabs');
wp_enqueue_script('jquery-form');
wp_enqueue_script('epanel_checkbox',$epanel_jsfolder . '/checkbox.js');
wp_enqueue_script('epanel_functions_init',$epanel_jsfolder . '/functions-init.js');
wp_localize_script( 'epanel_functions_init', 'ePanelSettings', array(
'clearpath' => get_template_directory_uri() . '/epanel/images/empty.png',
'et_saving_text' => esc_html__( 'Saving...', $themename ),
'et_options_saved_text' => esc_html__( 'Options Saved.', $themename ),
'epanel_nonce' => wp_create_nonce('epanel_nonce')
));
wp_enqueue_script('epanel_colorpicker',$epanel_jsfolder . '/colorpicker.js');
wp_enqueue_script('epanel_eye',$epanel_jsfolder . '/eye.js');
}
}
/* --------------------------------------------- */
/* Adds additional ePanel css */
if ( ! function_exists( 'et_epanel_css_admin' ) ){
function et_epanel_css_admin() { ?>
<link rel="stylesheet" href="<?php echo esc_url( get_template_directory_uri() . '/epanel/css/panel.css' ); ?>" type="text/css" />
<style type="text/css">
.lightboxclose { background: url("<?php echo esc_url( get_template_directory_uri() . '/epanel/images/description-close.png' ); ?>") no-repeat; width: 19px; height: 20px; }
</style>
<!--[if IE 7]>
<style type="text/css">
#epanel-save, #epanel-reset { font-size: 0px; display:block; line-height: 0px; bottom: 18px;}
.box-desc { width: 414px; }
.box-desc-content { width: 340px; }
.box-desc-bottom { height: 26px; }
#epanel-content .epanel-box input, #epanel-content .epanel-box select, .epanel-box textarea { width: 395px; }
#epanel-content .epanel-box select { width:434px !important;}
#epanel-content .epanel-box .box-content { padding: 8px 17px 15px 16px; }
</style>
<![endif]-->
<!--[if IE 8]>
<style type="text/css">
#epanel-save, #epanel-reset { font-size: 0px; display:block; line-height: 0px; bottom: 18px;}
</style>
<![endif]-->
<?php }
}
/* --------------------------------------------- */
/* Save/Reset actions | Adds theme options to WP-Admin menu */
add_action('admin_menu', 'et_add_epanel');
function et_add_epanel() {
global $themename, $shortname, $options;
$epanel = basename(__FILE__);
if ( isset( $_GET['page'] ) && $_GET['page'] == $epanel && isset( $_POST['action'] ) ) {
epanel_save_data( 'js_disabled' ); //saves data when javascript is disabled
}
$core_page = add_theme_page( $themename . ' ' . esc_html__( 'Options', $themename ), $themename . ' ' . esc_html__( 'Theme Options', $themename ), 'switch_themes', basename(__FILE__), 'et_build_epanel' );
add_action( "admin_print_scripts-{$core_page}", 'et_epanel_admin_js' );
add_action("admin_head-{$core_page}", 'et_epanel_css_admin');
}
/* --------------------------------------------- */
/* Displays ePanel */
if ( ! function_exists( 'et_build_epanel' ) ){
function et_build_epanel() {
global $themename, $shortname, $options, $et_disabled_jquery;
// load theme settings array
et_load_core_options();
if ( isset($_GET['saved']) ) {
if ( $_GET['saved'] ) echo '<div id="message" class="updated fade"><p><strong>' . esc_html( $themename ) . ' ' . esc_html__( 'settings saved.', $themename ) . '</strong></p></div>';
}
if ( isset($_GET['reset']) ) {
if ( $_GET['reset'] ) echo '<div id="message" class="updated fade"><p><strong>' . esc_html( $themename ) . ' ' . esc_html__( 'settings reset.', $themename ) . '</strong></p></div>';
}
?>
<div id="wrapper">
<div id="panel-wrap">
<form method="post" id="main_options_form" enctype="multipart/form-data">
<div id="epanel-wrapper">
<div id="epanel">
<div id="epanel-content-wrap">
<div id="epanel-content">
<img src="<?php echo get_template_directory_uri() ?>/epanel/images/logo.png" alt="ePanel" class="pngfix" id="epanel-logo" />
<?php
global $epanelMainTabs;
$epanelMainTabs = apply_filters( 'epanel_page_maintabs', $epanelMainTabs );
?>
<ul id="epanel-mainmenu">
<?php if(in_array('general',$epanelMainTabs)) { ?>
<li><a href="#wrap-general"><img src="<?php echo get_template_directory_uri() ?>/epanel/images/general-icon.png" class="pngfix" alt="" /><?php esc_html_e( 'General Settings', $themename ); ?></a></li>
<?php }; ?>
<?php if(in_array('navigation',$epanelMainTabs)) { ?>
<li><a href="#wrap-navigation"><img src="<?php echo get_template_directory_uri() ?>/epanel/images/navigation-icon.png" class="pngfix" alt="" /><?php esc_html_e( 'Navigation', $themename ); ?></a></li>
<?php }; ?>
<?php if(in_array('layout',$epanelMainTabs)) { ?>
<li><a href="#wrap-layout"><img src="<?php echo get_template_directory_uri() ?>/epanel/images/layout-icon.png" class="pngfix" alt="" /><?php esc_html_e( 'Layout Settings', $themename ); ?></a></li>
<?php }; ?>
<?php if(in_array('ad',$epanelMainTabs)) { ?>
<li><a href="#wrap-advertisements"><img src="<?php echo get_template_directory_uri() ?>/epanel/images/ad-icon.png" class="pngfix" alt="" /><?php esc_html_e( 'Ad Management', $themename ); ?></a></li>
<?php }; ?>
<?php if(in_array('colorization',$epanelMainTabs)) { ?>
<li><a href="#wrap-colorization"><img src="<?php echo get_template_directory_uri() ?>/epanel/images/colorization-icon.png" class="pngfix" alt="" /><?php esc_html_e( 'Colorization', $themename ); ?></a></li>
<?php }; ?>
<?php if(in_array('seo',$epanelMainTabs)) { ?>
<li><a href="#wrap-seo"><img src="<?php echo get_template_directory_uri() ?>/epanel/images/seo-icon.png" class="pngfix" alt="" /><?php esc_html_e( 'SEO', $themename ); ?></a></li>
<?php }; ?>
<?php if(in_array('integration',$epanelMainTabs)) { ?>
<li><a href="#wrap-integration"><img src="<?php echo get_template_directory_uri() ?>/epanel/images/integration-icon.png" class="pngfix" alt="" /><?php esc_html_e( 'Integration', $themename ); ?></a></li>
<?php }; ?>
<?php if(in_array('support',$epanelMainTabs)) { ?>
<li><a href="#wrap-support"><img src="<?php echo get_template_directory_uri() ?>/epanel/images/support-icon.png" class="pngfix" alt="" /><?php esc_html_e( 'Support Docs', $themename ); ?></a></li>
<?php }; ?>
<?php do_action( 'epanel_render_maintabs',$epanelMainTabs ); ?>
</ul><!-- end epanel mainmenu -->
<?php
foreach ($options as $value) {
if ( in_array( $value['type'], array( 'text', 'textlimit', 'textarea', 'select', 'checkboxes', 'different_checkboxes', 'colorpicker', 'textcolorpopup', 'upload', 'callback_function' ) ) ) { ?>
<div class="epanel-box">
<div class="box-title">
<h3><?php echo esc_html( $value['name'] ); ?></h3>
<img src="<?php echo get_template_directory_uri() ?>/epanel/images/help-image.png" alt="description" class="box-description" />
<div class="box-descr">
<p><?php echo wp_kses( $value['desc'], array( 'a' => array(
'href' => array(),
'title' => array(),
'target' => array()
)
) ); ?></p>
</div> <!-- end box-desc-content div -->
</div> <!-- end div box-title -->
<div class="box-content">
<?php if ( 'text' == $value['type'] ) { ?>
<?php
$et_input_value = '';
$et_input_value = ( '' != et_get_option( $value['id'] ) ) ? et_get_option( $value['id'] ) : $value['std'];
$et_input_value = stripslashes( $et_input_value );
?>
<input name="<?php echo esc_attr( $value['id'] ); ?>" id="<?php echo esc_attr( $value['id'] ); ?>" type="<?php echo esc_attr( $value['type'] ); ?>" value="<?php echo esc_attr( $et_input_value ); ?>" />
<?php } elseif ( 'textlimit' == $value['type'] ) { ?>
<?php
$et_input_value = '';
$et_input_value = ( '' != et_get_option( $value['id'] ) ) ? et_get_option( $value['id'] ) : $value['std'];
$et_input_value = stripslashes( $et_input_value );
?>
<input name="<?php echo esc_attr( $value['id'] ); ?>" id="<?php echo esc_attr( $value['id'] ); ?>" type="text" maxlength="<?php echo esc_attr( $value['max'] ); ?>" size="<?php echo esc_attr( $value['max'] ); ?>" value="<?php echo esc_attr( $et_input_value ); ?>" />
<?php } elseif ( 'colorpicker' == $value['type'] ) { ?>
<div id="colorpickerHolder"></div>
<?php } elseif ( 'textcolorpopup' == $value['type'] ) { ?>
<?php
$et_input_value = '';
$et_input_value = ( '' != et_get_option( $value['id'] ) ) ? et_get_option( $value['id'] ) : $value['std'];
?>
<input name="<?php echo esc_attr( $value['id'] ); ?>" id="<?php echo esc_attr( $value['id'] ); ?>" class="colorpopup" type="text" value="<?php echo esc_attr( $et_input_value ); ?>" />
<?php } elseif ( 'textarea' == $value['type'] ) { ?>
<?php
$et_textarea_value = '';
$et_textarea_value = ( '' != et_get_option( $value['id'] ) ) ? et_get_option( $value['id'] ) : $value['std'];
$et_textarea_value = stripslashes( $et_textarea_value );
?>
<textarea name="<?php echo esc_attr( $value['id'] ); ?>" id="<?php echo esc_attr( $value['id'] ); ?>"><?php echo esc_textarea( $et_textarea_value ); ?></textarea>
<?php } elseif ( 'upload' == $value['type'] ) { ?>
<?php
$et_upload_button_data = isset( $value['button_text'] )
? sprintf( ' data-button_text="%1$s"', esc_attr( $value['button_text'] ) )
: '';
?>
<input id="<?php echo esc_attr( $value['id'] ); ?>" class="uploadfield" type="text" size="90" name="<?php echo esc_attr( $value['id'] ); ?>" value="<?php echo esc_url( et_get_option($value['id']) ); ?>" />
<div class="upload_buttons">
<span class="upload_image_reset"><?php esc_html_e( 'Reset', $themename ); ?></span>
<input class="upload_image_button" type="button"<?php echo $et_upload_button_data; ?> value="<?php esc_attr_e( 'Upload Image', $themename ); ?>" />
</div>
<div class="clear"></div>
<?php } elseif ( 'select' == $value['type'] ) { ?>
<select name="<?php echo esc_attr( $value['id'] ); ?>" id="<?php echo esc_attr( $value['id'] ); ?>">
<?php foreach ( $value['options'] as $option_key=>$option ) { ?>
<?php
$et_select_active = '';
$et_use_option_values =
( isset( $value['et_array_for'] ) && in_array( $value['et_array_for'], array( 'pages', 'categories' ) ) ) ||
( isset( $value['et_save_values'] ) && $value['et_save_values'] ) ? true : false;
$et_option_db_value = et_get_option($value['id']);
if ( ( $et_use_option_values && ( $et_option_db_value == $option_key ) ) || ( stripslashes( $et_option_db_value ) == trim( stripslashes( $option ) ) ) || ( ! $et_option_db_value && isset( $value['std'] ) && stripslashes( $option ) == stripslashes( $value['std'] ) ) )
$et_select_active = ' selected="selected"';
?>
<option<?php if ( $et_use_option_values ) echo ' value="' . esc_attr( $option_key ) . '"'; ?> <?php echo $et_select_active; ?>><?php echo esc_html( trim( $option ) ); ?></option>
<?php } ?>
</select>
<?php } elseif ( 'checkboxes' == $value['type'] ) {
if ( empty( $value['options'] ) ) {
esc_html_e( "You don't have pages", $themename );
} else {
$i = 1;
$className = 'inputs';
if ( isset( $value['excludeDefault'] ) && $value['excludeDefault'] == 'true' ) $className .= ' different';
foreach ( $value['options'] as $option ){
$checked = "";
$class_name_last = 0 == $i % 3 ? ' last' : '';
if ( et_get_option( $value['id'] ) ) {
if ( in_array( $option, et_get_option( $value['id'] ) ) ) $checked = "checked=\"checked\"";
}
$et_checkboxes_label = $value['id'] . '-' . $option;
if ( 'custom' == $value['usefor'] ) {
$et_helper = (array) $value['helper'];
$et_checkboxes_value = $et_helper[$option];
} else {
if ( 'taxonomy_terms' == $value['usefor'] && isset( $value['taxonomy_name'] ) ) {
$et_checkboxes_term = get_term_by( 'id', $option, $value['taxonomy_name'] );
$et_checkboxes_value = sanitize_text_field( $et_checkboxes_term->name );
} else {
$et_checkboxes_value = ( 'pages' == $value['usefor'] ) ? get_pagename( $option ) : get_categname( $option );
}
}
?>
<p class="<?php echo esc_attr( $className . $class_name_last ); ?>">
<input type="checkbox" class="usual-checkbox" name="<?php echo esc_attr( $value['id'] ); ?>[]" id="<?php echo esc_attr( $et_checkboxes_label ); ?>" value="<?php echo esc_attr( $option ); ?>" <?php echo esc_html( $checked ); ?> />
<label for="<?php echo esc_attr( $et_checkboxes_label ); ?>"><?php echo esc_html( $et_checkboxes_value ); ?></label>
</p>
<?php if ( $i%3 == 0 ) echo('<br class="clearfix"/>'); ?>
<?php $i++;
}
} ?>
<br class="clearfix"/>
<?php } elseif ( 'different_checkboxes' == $value['type'] ){
foreach ( $value['options'] as $option ){
$checked = '';
if ( et_get_option( $value['id']) !== false ) {
if ( in_array( $option, et_get_option( $value['id'] ) ) ) $checked = "checked=\"checked\"";
} elseif ( isset( $value['std'] ) ) {
if ( in_array($option, $value['std']) ) $checked = "checked=\"checked\"";
} ?>
<p class="<?php echo esc_attr( 'postinfo-' . $option ); ?>">
<input type="checkbox" class="usual-checkbox" name="<?php echo esc_attr( $value['id'] ); ?>[]" id="<?php echo esc_attr( $value['id'] . '-' . $option ); ?>" value="<?php echo esc_attr( $option ); ?>" <?php echo esc_html( $checked ); ?> />
</p>
<?php } ?>
<br class="clearfix"/>
<?php } elseif ( 'callback_function' == $value['type'] ) {
call_user_func( $value['function_name'] ); ?>
<?php } ?>
</div> <!-- end box-content div -->
</div> <!-- end epanel-box div -->
<?php } elseif ( 'checkbox' == $value['type'] || 'checkbox2' == $value['type'] ) { ?>
<?php
$et_box_class = 'checkbox' == $value['type'] ? 'epanel-box-small-1' : 'epanel-box-small-2';
?>
<div class="<?php echo esc_attr( 'epanel-box ' . $et_box_class ); ?>">
<div class="box-title"><h3><?php echo esc_html( $value['name'] ); ?></h3>
<img src="<?php echo esc_url( get_template_directory_uri() . '/epanel/images/help-image.png' ); ?>" alt="description" class="box-description" />
<div class="box-descr">
<p><?php echo wp_kses( $value['desc'], array( 'a' => array(
'href' => array(),
'title' => array(),
'target' => array()
)
) ); ?></p>
</div> <!-- end box-desc-content div -->
</div> <!-- end div box-title -->
<div class="box-content">
<?php
$checked = '';
if ( '' != et_get_option( $value['id'] ) ) {
if ( 'on' == et_get_option( $value['id'] ) ) { $checked = 'checked="checked"'; }
else { $checked = ''; }
}
elseif ( 'on' == $value['std'] ) { $checked = 'checked="checked"'; }
?>
<input type="checkbox" class="checkbox" name="<?php echo esc_attr( $value['id'] ); ?>" id="<?php echo esc_attr( $value['id'] );?>" <?php echo $checked; ?> />
</div> <!-- end box-content div -->
</div> <!-- end epanel-box-small div -->
<?php } elseif ( 'support' == $value['type'] ) { ?>
<div class="inner-content">
<?php include( get_template_directory() . "/includes/functions/" . $value['name'] . ".php" ); ?>
</div>
<?php } elseif ( 'contenttab-wrapstart' == $value['type'] || 'subcontent-start' == $value['type'] ) { ?>
<?php $et_contenttab_class = 'contenttab-wrapstart' == $value['type'] ? 'content-div' : 'tab-content'; ?>
<div id="<?php echo esc_attr( $value['name'] ); ?>" class="<?php echo esc_attr( $et_contenttab_class ); ?>">
<?php } elseif ( 'contenttab-wrapend' == $value['type'] || 'subcontent-end' == $value['type'] ) { ?>
</div> <!-- end <?php echo esc_html( $value['name'] ); ?> div -->
<?php } elseif ( 'subnavtab-start' == $value['type'] ) { ?>
<ul class="idTabs">
<?php } elseif ( 'subnavtab-end' == $value['type'] ) { ?>
</ul>
<?php } elseif ( 'subnav-tab' == $value['type'] ) { ?>
<li><a href="#<?php echo esc_attr( $value['name'] ); ?>"><span class="pngfix"><?php echo esc_html( $value['desc'] ); ?></span></a></li>
<?php } elseif ($value['type'] == "clearfix") { ?>
<div class="clearfix"></div>
<?php } ?>
<?php } //end foreach ($options as $value) ?>
</div> <!-- end epanel-content div -->
</div> <!-- end epanel-content-wrap div -->
</div> <!-- end epanel div -->
</div> <!-- end epanel-wrapper div -->
<div id="epanel-bottom">
<?php wp_nonce_field( 'epanel_nonce' ); ?>
<input name="save" type="submit" value="<?php esc_html_e( 'Save changes', $themename ); ?>" id="epanel-save" />
<input type="hidden" name="action" value="save_epanel" />
<img src="<?php echo esc_url( get_template_directory_uri() . '/epanel/images/defaults.png' ); ?>" class="defaults-button" alt="no" />
</div><!-- end epanel-bottom div -->
</form>
<div style="clear: both;"></div>
<div style="position: relative;">
<div class="defaults-hover">
<?php _e( 'This will return all of the settings throughout the options page to their default values. <strong>Are you sure you want to do this?</strong>', $themename ); ?>
<div class="clearfix"></div>
<form method="post">
<?php wp_nonce_field( 'et-nojs-reset_epanel', '_wpnonce_reset' ); ?>
<input name="reset" type="submit" value="<?php esc_html_e( 'Reset', $themename ); ?>" id="epanel-reset" />
<input type="hidden" name="action" value="reset" />
</form>
<img src="<?php echo esc_url( get_template_directory_uri() . '/epanel/images/no.gif' ); ?>" class="no" alt="no" />
</div>
</div>
</div> <!-- end panel-wrap div -->
</div> <!-- end wrapper div -->
<div id="epanel-ajax-saving">
<img src="<?php echo esc_url( get_template_directory_uri() . '/epanel/images/saver.gif' ); ?>" alt="loading" id="loading" />
<span><?php esc_html_e( 'Saving...', $themename ); ?></span>
</div>
<?php
}
}
/* --------------------------------------------- */
add_action('wp_ajax_save_epanel', 'et_epanel_save_callback');
function et_epanel_save_callback() {
check_ajax_referer( 'epanel_nonce' );
epanel_save_data( 'ajax' );
die();
}
if ( ! function_exists( 'epanel_save_data' ) ){
function epanel_save_data( $source ){
global $options, $shortname;
if ( !current_user_can('switch_themes') )
die('-1');
// load theme settings array
et_load_core_options();
$epanel = basename(__FILE__);
if ( isset($_POST['action']) ) {
do_action( 'et_epanel_changing_options' );
if ( 'save_epanel' == $_POST['action'] ) {
if ( 'ajax' != $source ) check_admin_referer( 'epanel_nonce' );
foreach ( $options as $value ) {
if ( isset( $value['id'] ) ) {
if ( isset( $_POST[ $value['id'] ] ) ) {
if ( in_array( $value['type'], array( 'text', 'textlimit' ) ) ) {
if ( isset( $value['validation_type'] ) ) {
// saves the value as integer
if ( 'number' == $value['validation_type'] )
et_update_option( $value['id'], intval( stripslashes( $_POST[$value['id']] ) ) );
// makes sure the option is a url
if ( 'url' == $value['validation_type'] )
et_update_option( $value['id'], esc_url_raw( stripslashes( $_POST[$value['id']] ) ) );
// option is a date format
if ( 'date_format' == $value['validation_type'] )
et_update_option( $value['id'], sanitize_option( 'date_format', $_POST[$value['id']] ) );
/*
* html is not allowed
* wp_strip_all_tags can't be used here, because it returns trimmed text, some options need spaces ( e.g 'character to separate BlogName and Post title' option )
*/
if ( 'nohtml' == $value['validation_type'] ) {
et_update_option( $value['id'], stripslashes( wp_filter_nohtml_kses( $_POST[$value['id']] ) ) );
}
} else {
// use html allowed for posts if the validation type isn't provided
et_update_option( $value['id'], wp_kses_post( stripslashes( $_POST[$value['id']] ) ) );
}
} elseif ( 'select' == $value['type'] ) {
// select boxes that list pages / categories should save page/category ID ( as integer )
if ( isset( $value['et_array_for'] ) && in_array( $value['et_array_for'], array( 'pages', 'categories' ) ) )
et_update_option( $value['id'], intval( stripslashes( $_POST[$value['id']] ) ) );
else // html is not allowed in select boxes
et_update_option( $value['id'], sanitize_text_field( stripslashes( $_POST[$value['id']] ) ) );
} elseif ( in_array( $value['type'], array( 'checkbox', 'checkbox2' ) ) ) {
// saves 'on' value to the database, if the option is enabled
et_update_option( $value['id'], 'on' );
} elseif ( 'upload' == $value['type'] ) {
// makes sure the option is a url
et_update_option( $value['id'], esc_url_raw( stripslashes( $_POST[$value['id']] ) ) );
} elseif ( 'textcolorpopup' == $value['type'] ) {
// the color value
et_update_option( $value['id'], sanitize_text_field( stripslashes( $_POST[$value['id']] ) ) );
} elseif ( 'textarea' == $value['type'] ) {
if ( isset( $value['validation_type'] ) ) {
// html is not allowed
if ( 'nohtml' == $value['validation_type'] ) {
if ( $value['id'] === ( $shortname . '_custom_css' ) ) {
// don't strip slashes from custom css, it should be possible to use \ for icon fonts
et_update_option( $value['id'], wp_strip_all_tags( $_POST[$value['id']] ) );
} else {
et_update_option( $value['id'], wp_strip_all_tags( stripslashes( $_POST[$value['id']] ) ) );
}
}
} else {
if ( current_user_can( 'unfiltered_html' ) )
et_update_option( $value['id'], stripslashes( $_POST[$value['id']] ) );
else
et_update_option( $value['id'], stripslashes( wp_filter_post_kses( addslashes( $_POST[$value['id']] ) ) ) ); // wp_filter_post_kses() expects slashed
}
} elseif ( 'checkboxes' == $value['type'] ) {
// saves categories / pages IDs,
et_update_option( $value['id'], array_map( 'intval', stripslashes_deep( $_POST[$value['id']] ) ) );
} elseif ( 'different_checkboxes' == $value['type'] ) {
// saves 'author/date/categories/comments' options
et_update_option( $value['id'], array_map( 'wp_strip_all_tags', stripslashes_deep( $_POST[$value['id']] ) ) );
}
} else {
if ( in_array( $value['type'], array( 'checkbox', 'checkbox2' ) ) )
et_update_option( $value['id'] , 'false' );
elseif ( 'different_checkboxes' == $value['type'] )
et_update_option( $value['id'] , array() );
else
et_delete_option( $value['id'] );
}
}
}
if ( 'js_disabled' == $source ) header("Location: themes.php?page=$epanel&saved=true");
die('1');
} else if( 'reset' == $_POST['action'] ) {
check_admin_referer( 'et-nojs-reset_epanel', '_wpnonce_reset' );
foreach ($options as $value) {
if ( isset($value['id']) ) {
et_delete_option( $value['id'] );
if ( isset($value['std']) ) et_update_option( $value['id'], $value['std'] );
}
}
header("Location: themes.php?page=$epanel&reset=true");
die('1');
}
}
}
}
function et_epanel_media_upload_scripts() {
global $themename;
wp_enqueue_script('media-upload');
wp_enqueue_script('thickbox');
wp_register_script('et_epanel_uploader', get_template_directory_uri().'/epanel/js/custom_uploader.js', array('jquery','media-upload','thickbox'));
wp_enqueue_script('et_epanel_uploader');
wp_enqueue_media();
wp_localize_script( 'et_epanel_uploader', 'epanel_uploader', array(
'media_window_title' => __( 'Choose an Image', $themename ),
)
);
}
function et_epanel_media_upload_styles() {
wp_enqueue_style('thickbox');
}
global $pagenow;
if ( 'themes.php' == $pagenow && isset( $_GET['page'] ) && ( $_GET['page'] == basename(__FILE__) ) ) {
add_action('admin_print_scripts', 'et_epanel_media_upload_scripts');
add_action('admin_print_styles', 'et_epanel_media_upload_styles');
} ?>

View File

@@ -0,0 +1,216 @@
#epanel span, #epanel applet, #epanel object, #epanel iframe,
#epanel h1, #epanel h2, #epanel h3, #epanel h4, #epanel h5, #epanel h6, #epanel p, #epanel blockquote,
#epanel a, #epanel abbr, #epanel acronym, #epanel address, #epanel big, #epanel cite, #epanel code,
#epanel del, #epanel dfn, #epanel font, #epanel img, #epanel ins, #epanel kbd, #epanel q, #epanel s, #epanel samp,
#epanel small, #epanel strike, #epanel strong, #epanel tt, #epanel var, #epanel fieldset,
#epanel dl, #epanel dt, #epanel dd, #epanel ol, #epanel ul, #epanel li,
#epanel form, #epanel label, #epanel legend,
#epanel table,#epanel caption, #epanel tbody, #epanel tfoot, #epanel thead, #epanel tr, #epanel th, #epanel td {
margin: 0;
padding: 0;
border: 0;
outline: 0;
font-weight: inherit;
font-style: inherit;
font-size: 100%;
font-family: inherit;
vertical-align: baseline;
}
#epanel pre, #epanel sub, #epanel sup, #epanel em {
margin: 0;
padding: 0;
border: 0;
outline: 0;
}
/* remember to define focus styles! */
:focus {
outline: 0;
}
#epanel ol, #epanel ul {
list-style: none;
}
#wrapper { text-align: left; width: 960px; margin: 25px auto 10px; position: relative; }
#panel-wrap { float: left; position: relative; width: 737px; }
#epanel-wrapper { background: url(../images/epanel-bg.png) repeat-y; width: 737px; min-height: 528px; float: left; }
#epanel { background: url(../images/panel-top-bg.png) top left no-repeat; width: 737px; font-family: Arial, sans-serif; float: left; padding-bottom: 5px; }
#epanel a { text-decoration: none; box-shadow: none; }
#epanel-sidebar { width: 180px; float: left; }
#epanel-logo { position: absolute; top: -38px; left: -180px;}
#epanel-content ul#epanel-mainmenu { float: left; position: absolute; left: -198px; top: 52px;}
#epanel-content ul#epanel-mainmenu li { background: url('../images/mainmenu-li-bottom.png') bottom left no-repeat; padding-bottom: 2px; padding-right: 0px; float: none; }
#epanel-content ul#epanel-mainmenu li.ui-tabs-selected, #epanel-content ul#epanel-mainmenu li.ui-tabs-active { padding-bottom: 0px; }
#epanel-content ul#epanel-mainmenu li a { color: #ffffff; background: url('../images/mainlink-bg.png') no-repeat; display: block; height: 34px; width: 139px; padding: 0px 0px 0px 43px; line-height: 34px; position: relative; font-size: 14px; }
#epanel-content ul#epanel-mainmenu li.ui-tabs-selected a, #epanel-content ul#epanel-mainmenu li.ui-tabs-active a { color: #000000; background: url('../images/active-mainlink-bg.png') no-repeat; display: block; height: 42px; width: 145px; padding: 0px 0px 0px 43px; line-height: 42px; }
#epanel-content ul#epanel-mainmenu li.ui-tabs-selected a img, #epanel-content ul#epanel-mainmenu li.ui-tabs-active a img { top: 14px; }
#epanel-content ul#epanel-mainmenu li a img { position: absolute; top: 10px; left: 20px; }
#epanel-content-wrap { background: url('../images/epanel-content-bg.png') repeat-y; width: 521px; float: left; display: inline; margin: 55px 0px 0px 198px; position: relative; }
#epanel-content { background: url('../images/epanel-content-topbg.png') no-repeat; position: relative; }
#epanel-content div.content-div { position: relative; padding: 25px 0px 25px 21px; background: url('../images/epanel-content-bottombg.png') no-repeat bottom left; }
#epanel-content ul.idTabs { position: absolute; top: -33px; left: 0px; }
#epanel-content ul.idTabs li { float: left; background: url('../images/secondary-bg.png') no-repeat top right; }
#epanel-content ul.idTabs li a { font-size: 12px; padding-left: 18px; display: block; line-height: 35px; background: url('../images/secondary-bg.png') no-repeat top left; color: #000000; }
#epanel-content ul.idTabs li a span { background: url('../images/secondary-li-mark.png') no-repeat center left; padding-left: 8px; }
#epanel-content ul.idTabs li { padding-right: 22px; }
#epanel-content ul.idTabs li.ui-tabs-selected, #epanel-content ul.idTabs li.ui-tabs-active { background: url('../images/secondary-active-bg.png') no-repeat top right; }
#epanel-content ul.idTabs li.ui-tabs-selected a, #epanel-content ul.idTabs li.ui-tabs-active a { font-weight: bold; color: #657783; background: url('../images/secondary-active-bg.png') no-repeat top left; }
/*#epanel-content .tab-content { position: relative; } */
#epanel-content .epanel-box { width: 470px; border: 1px solid #d4dee5; background: #ffffff; margin-bottom: 18px; }
#epanel .epanel-box div.box-title { border-bottom: 1px solid #c9d5dd; border-top: 1px solid #ffffff; background: #e1eaef url('../images/box-title-mark.png') no-repeat 11px 16px; padding: 10px 0px 10px 20px; min-height: 18px; width: 450px; float: left; }
#epanel .epanel-box-small-1 div.box-title, #epanel .epanel-box-small-2 div.box-title { width: 203px; }
#epanel .epanel-box div.box-title h3 { color: #657783; font-weight: bold; font-size: 12px; float: left; width: 90%; }
#epanel .epanel-box-small-1 div.box-title h3, #epanel .epanel-box-small-2 div.box-title h3 { width: 168px; }
#epanel-content .epanel-box img.box-description { float: right; margin: -1px 10px 0px 0px; }
#epanel-content .epanel-box .box-content { padding: 22px 17px 22px 16px; /*margin-bottom: 18px;*/ clear: both; }
#epanel-content .epanel-box input, #epanel-content .epanel-box select, .epanel-box textarea { border: 1px solid #d5d5d5; background: #ffffff url('../images/top-input-bg.png') repeat-x; padding: 10px 18px; font-size: 15px; color: #646464; width: 433px; -moz-border-radius: 0px; font-family: Arial, sans-serif; }
#epanel-content .epanel-box select { width: 434px; height: 40px; }
#epanel-content .epanel-box textarea { height: 145px; }
#epanel-content .epanel-box input.usual-checkbox { border: none; background: none; padding: 0px; width: 15px; }
#epanel-content .epanel-box p.inputs { margin-bottom: 5px; }
#epanel-bottom { background: url('../images/epanel-bottom-bg.png') no-repeat; width: 737px; height: 62px; float: left; margin-bottom: 50px; }
#epanel-save, #epanel-reset { text-indent: -9999px; border: none; cursor: pointer; }
#epanel-save { background: url('../images/save.png') no-repeat; width: 84px; height: 34px; float: right; margin: 9px 19px 10px 0px; }
.defaults-hover { display: none; position: absolute; background-image: url(../images/defaults-hover.png); width: 222px; height: 119px; font-size: 11px; padding: 15px; line-height: 18px; top: -300px; left: 453px; }
.defaults-button { cursor: pointer; float: right; margin-right: 10px;margin: 9px 10px 10px 0px; }
#epanel-reset { background: url('../images/yes.gif') no-repeat; width: 47px; height: 24px; float: right; margin: 5px 6px 0px 0px; }
.no { float: right; cursor: pointer; margin: 5px 5px 0px 0px;}
.box-desc { position: fixed; top: 25%; left: 35%; width: 394px; z-index:10000; overflow: auto; font-family: Arial, sans-serif; }
.box-desc-top { background: url('../images/description-top.png') no-repeat top left; width: 394px; height: 11px; }
.box-desc-content { background: url('../images/description-main.png') repeat-y; display: block; padding: 12px 30px 20px 22px; color: #858585; font-size: 12px; line-height: 23px; position: relative; }
.box-desc-content h3 { color: #6195b8; font-size: 18px; line-height: 25px; margin: 0px 0px 15px; width: 320px; font-weight: normal; }
.box-desc-content p { margin: 0px; line-height: 23px; }
.box-desc-content .lightboxclose { position: absolute; top: 8px; right: 24px; }
.box-desc-bottom { background: url('../images/description-bottom.png') no-repeat; width: 394px; height: 16px;}
.ui-tabs-hide, .box-descr { display: none; }
div.shadow { position: fixed; top: 0%; left: 0%; width: 100%; height: 100%; background-color: black; z-index:9500; }
.box-description, .lightboxclose { cursor: pointer; }
/*epanel css changes*/
/*#epanel-content .epanel-box { clear: both; } */
#epanel-content .epanel-box-small-1, #epanel-content .epanel-box-small-2 { width: 223px; float: left; display: inline; clear: none; }
#epanel-content .epanel-box-small-1 { margin-right: 22px; }
/*additions for jquery checkbox*/
.jquery-checkbox { cursor: pointer; }
.jquery-checkbox img { vertical-align: middle; width: 155px; height: 34px; background: transparent url(../images/checkbox.gif) no-repeat; margin-left: 17px !important; }
.jquery-checkbox img { background-position: -155px 0px; }
.jquery-checkbox-checked img { background-position: 0px 0px; }
#epanel p.inputs { width: 126px; float: left; margin: 0px 15px 15px 0px; }
#epanel p.inputs.last { margin: 0px 0px 8px 0px;}
#epanel p.inputs .jquery-checkbox img { vertical-align: middle; width: 23px; height: 19px; background: transparent url(../images/checkbox-2.gif) no-repeat; margin-right: 5px; margin-left: 0px !important; }
#epanel p.inputs .jquery-checkbox img { background-position: 0px 0px; }
#epanel p.inputs .jquery-checkbox-checked img { background-position: -26px 0px; }
#epanel p.inputs.different .jquery-checkbox img { background-position:-26px 0; }
#epanel p.inputs.different .jquery-checkbox-checked img { background-position: 0px 0; }
#epanel p.inputs span.jquery-checkbox { float: left; }
#epanel p.inputs label {vertical-align: middle; font-size: 12px; float: left; width: 98px; margin-bottom: 15px;}
#epanel p.postinfo-author, #epanel p.postinfo-date, #epanel p.postinfo-comments, #epanel p.postinfo-categories { float: left; margin-right: 25px; }
#epanel p.postinfo-author img { vertical-align: middle; width: 63px; height: 19px; background: transparent url(../images/postinfo-author.gif) no-repeat; margin-right: 5px; margin-top: -1px; margin-left: 0px !important;}
#epanel p.postinfo-categories img { vertical-align: middle; width: 91px; height: 19px; background: transparent url(../images/postinfo-categories.gif) no-repeat; margin-right: 5px; margin-left: 0px !important;}
#epanel p.postinfo-date img { vertical-align: middle; width: 55px; height: 19px; background: transparent url(../images/postinfo-date.gif) no-repeat; margin-right: 5px; margin-left: 0px !important;}
#epanel p.postinfo-comments img { vertical-align: middle; width: 89px; height: 19px; background: transparent url(../images/postinfo-comments.gif) no-repeat; margin-right: 5px; margin-left: 0px !important;}
#epanel p.postinfo-author .jquery-checkbox img, #epanel p.postinfo-categories .jquery-checkbox img, #epanel p.postinfo-comments .jquery-checkbox img, #epanel p.postinfo-date .jquery-checkbox img { background-position: 0px -22px; }
#epanel p.postinfo-categories .jquery-checkbox img, #epanel p.postinfo-comments .jquery-checkbox img { background-position: 0px -21px; }
#epanel p.postinfo-author .jquery-checkbox-checked img, #epanel p.postinfo-categories .jquery-checkbox-checked img, #epanel p.postinfo-date .jquery-checkbox-checked img, #epanel p.postinfo-comments .jquery-checkbox-checked img { background-position: 0px 0px; }
#epanel p.postinfo-categories .jquery-checkbox-checked img, #epanel p.postinfo-comments .jquery-checkbox-checked img { background-position: 0px 1px; }
#epanel-content div.content-div .inner-content { padding: 0px 25px 0px 0px; }
#epanel-content div.content-div .inner-content .boldtext { color:#657783; font-size:15px; font-weight:bold; }
#epanel-content div.content-div .inner-content .indent { margin-bottom:15px; margin-top:6px; padding-left:27px; }
#epanel-content div.content-div .inner-content p { padding: 10px 0px; color:#535353; font-family:Arial,Helvetica,sans-serif; font-size:12px;
line-height:22px; }
.colorpicker { width: 356px; height: 176px; overflow: hidden; position: absolute; background: url(../images/custom_background.png); font-family: Arial, Helvetica, sans-serif; display: none; margin-left: 40px; }
.colorpicker_color { width: 150px; height: 150px; left: 14px; top: 13px; position: absolute; background: #f00; overflow: hidden; cursor: crosshair;
}
.colorpicker_color div { position: absolute; top: 0; left: 0; width: 150px; height: 150px; background: url(../images/colorpicker_overlay.png); }
.colorpicker_color div div { position: absolute; top: 0; left: 0; width: 11px; height: 11px; overflow: hidden; background: url(../images/colorpicker_select.gif); margin: -5px 0 0 -5px; }
.colorpicker_hue { position: absolute; top: 13px; left: 171px; width: 35px; height: 150px; cursor: n-resize; }
.colorpicker_hue div { position: absolute; width: 35px; height: 9px; overflow: hidden; background: url(../images/custom_indic.gif) left top; margin: -4px 0 0 0; left: 0px; }
.colorpicker_new_color { position: absolute; width: 60px; height: 30px; left: 213px; top: 13px; background: #f00; }
.colorpicker_current_color { position: absolute; width: 60px; height: 30px; left: 283px; top: 13px; background: #f00; }
#epanel .colorpicker input, .colorpicker input { background-color: transparent !important; border: 1px solid transparent !important; position: absolute !important; font-size: 10px !important; font-family: Arial, Helvetica, sans-serif !important; color: #898989 !important; top: 4px !important; right: 11px !important; text-align: right !important; margin: 0 !important; padding: 0 !important; height: 12px !important; background-image: none !important;
width: 35px;}
.colorpicker_hex { position: absolute; width: 72px; height: 22px; background: url(../images/custom_hex.png) top; left: 212px; top: 142px; }
#epanel .colorpicker_hex input, .colorpicker_hex input { width: 39px; }
.colorpicker_field { height: 22px; width: 62px; background-position: top; position: absolute; }
.colorpicker_field span { position: absolute; width: 12px; height: 22px; overflow: hidden; top: 0; right: 0; cursor: n-resize; }
.colorpicker_rgb_r { background-image: url(../images/custom_rgb_r.png); top: 52px; left: 212px; }
.colorpicker_rgb_g { background-image: url(../images/custom_rgb_g.png); top: 82px; left: 212px; }
.colorpicker_rgb_b { background-image: url(../images/custom_rgb_b.png); top: 112px; left: 212px; }
.colorpicker_hsb_h { background-image: url(../images/custom_hsb_h.png); top: 52px; left: 282px; }
.colorpicker_hsb_s { background-image: url(../images/custom_hsb_s.png); top: 82px; left: 282px; }
.colorpicker_hsb_b { background-image: url(../images/custom_hsb_b.png); top: 112px; left: 282px; }
.colorpicker_submit { position: absolute; width: 22px; height: 22px; background: url(../images/custom_submit.png) top; left: 322px; top: 142px;
overflow: hidden;}
.colorpicker_focus { background-position: center; }
.colorpicker_hex.colorpicker_focus { background-position: bottom; }
.colorpicker_submit.colorpicker_focus { background-position: bottom; }
.colorpicker_slider { background-position: bottom; }
.navigationTabs { height: 23px; line-height: 23px; border-bottom: 1px solid #ccc; }
.navigationTabs li { float: left; height: 23px; line-height: 23px; padding-right: 3px; }
.navigationTabs li a{ float: left; display: block; height: 23px; line-height: 23px; padding: 0 10px; overflow: hidden; color: #52697E; background-color: #eee; position: relative; text-decoration: none; }
.navigationTabs li a:hover { background-color: #f0f0f0; }
.navigationTabs li a.active { background-color: #fff; border: 1px solid #ccc; border-bottom: 0px solid; }
.tabsContent { border: 1px solid #ccc; border-top: 0px solid; width: 698px; overflow: hidden; }
.tab { padding: 16px; display: none; }
.tab h2 { font-weight: bold; font-size: 16px; }
.tab h3 { font-weight: bold; font-size: 14px; margin-top: 20px; }
.tab p { margin-top: 16px; clear: both; }
.tab ul { margin-top: 16px; list-style: disc; }
.tab li { margin: 10px 0 0 35px; }
.tab a { color: #8FB0CF; }
.tab strong { font-weight: bold; }
.tab pre { font-size: 11px; margin-top: 20px; width: 668px; overflow: auto; clear: both; }
.tab table { width: 100%; }
.tab table td { padding: 6px 10px 6px 0; vertical-align: top; }
.tab dt { margin-top: 16px; }
#colorSelector { position: relative; width: 36px; height: 36px; background: url(../images/select.png); }
#colorSelector div { position: absolute; top: 3px; left: 3px; width: 30px; height: 30px; background: url(../images/select.png) center; }
#colorSelector2 { position: absolute; top: 0; left: 0; width: 36px; height: 36px; background: url(../images/select2.png); }
#colorSelector2 div { position: absolute; top: 4px; left: 4px; width: 28px; height: 28px; background: url(../images/select2.png) center; }
#colorpickerHolder2 { top: 32px; left: 0; width: 356px; height: 0; overflow: hidden; position: absolute; }
#colorpickerHolder2 .colorpicker { background-image: url(../images/custom_background.png); position: absolute; bottom: 0; left: 0; }
#colorpickerHolder2 .colorpicker_hue div { background-image: url(../images/custom_indic.gif); }
#colorpickerHolder2 .colorpicker_hex { background-image: url(../images/custom_hex.png); }
#colorpickerHolder2 .colorpicker_rgb_r { background-image: url(../images/custom_rgb_r.png); }
#colorpickerHolder2 .colorpicker_rgb_g { background-image: url(../images/custom_rgb_g.png); }
#colorpickerHolder2 .colorpicker_rgb_b { background-image: url(../images/custom_rgb_b.png); }
#colorpickerHolder2 .colorpicker_hsb_s { background-image: url(../images/custom_hsb_s.png); display: none; }
#colorpickerHolder2 .colorpicker_hsb_h { background-image: url(../images/custom_hsb_h.png); display: none; }
#colorpickerHolder2 .colorpicker_hsb_b { background-image: url(../images/custom_hsb_b.png); display: none; }
#colorpickerHolder2 .colorpicker_submit { background-image: url(../images/custom_submit.png); }
#colorpickerHolder2 .colorpicker input { color: #778398; }
.clearfix { clear: both; }
div#epanel-ajax-saving { position: fixed; top: 35%; left: 44%; padding: 20px 40px 20px 34px; background: #ffffff; overflow: hidden; border: 1px solid #eeeeee; -webkit-box-shadow: 2px 2px 5px #888; -moz-box-shadow: 2px 2px 5px #888;display: none; width: 142px; }
div#epanel-ajax-saving img { float: left; }
div#epanel-ajax-saving span { font-size: 20px; color: #c6c6c6; letter-spacing: -1px; margin: 6px 0px 0px 30px; float: right; }
.upload_buttons { float: right; }
#epanel-content .epanel-box .upload_image_button, #epanel-content .epanel-box .upload_image_reset { color:#000000; float:left; font-size:11px; font-weight:bold; margin-top:10px; padding:4px; width:100px; cursor: pointer; }
#epanel-content .epanel-box .upload_image_reset { margin-right: 7px; background:url("../images/top-input-bg.png") repeat-x scroll 0 0 #FFFFFF; border:1px solid #D5D5D5; padding:3px 7px 3px 8px; width:33px; color: #666666; }
#epanel-content .epanel-box .upload_image_reset:hover { color: #111111; }
#epanel-content .epanel-box .upload_image_button { padding: 6px 4px; }

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,94 @@
.et_google_font_options { display: none; background: #eee; height: 280px; overflow: auto; }
.et_filter_text { position: relative; }
.et_filter_text:before { content: ''; width: 0; height: 0; border-color: #ccc transparent; border-style: solid; border-width: 6px 6px 0; position: absolute; top: 18px; right: 8px; z-index: 1; }
.et_google_font_options, .et_filter_text { background: #fff; border: 1px solid #dfdfdf; -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; }
.et_filter_text, .et_google_font_options li { display: block; padding: 5px 10px; text-indent: -9999px; background-repeat: no-repeat; height: 30px; background-image: url(images/all-fonts.png); margin-bottom: 0; }
.et_gf_default_theme_font { background-position: 0 0; }
.et_gf_abel { background-position: 0 -40px; }
.et_gf_amatic_sc { background-position: 0 -80px; }
.et_gf_arimo { background-position: 0 -120px; }
.et_gf_arvo { background-position: 0 -160px; }
.et_gf_bevan { background-position: 0 -200px; }
.et_gf_bitter { background-position: 0 -240px; }
.et_gf_black_ops_one { background-position: 0 -280px; }
.et_gf_boogaloo { background-position: 0 -320px; }
.et_gf_bree_serif { background-position: 0 -360px; }
.et_gf_calligraffitti { background-position: 0 -400px; }
.et_gf_cantata_one { background-position: 0 -440px; }
.et_gf_cardo { background-position: 0 -480px; }
.et_gf_changa_one { background-position: 0 -520px; }
.et_gf_cherry_cream_soda { background-position: 0 -560px; }
.et_gf_chewy { background-position: 0 -600px; }
.et_gf_comfortaa { background-position: 0 -640px; }
.et_gf_coming_soon { background-position: 0 -680px; }
.et_gf_covered_by_your_grace { background-position: 0 -720px; }
.et_gf_crafty_girls { background-position: 0 -760px; }
.et_gf_crete_round { background-position: 0 -800px; }
.et_gf_crimson_text { background-position: 0 -840px; }
.et_gf_cuprum { background-position: 0 -880px; }
.et_gf_dancing_script { background-position: 0 -920px; }
.et_gf_dosis { background-position: 0 -960px; }
.et_gf_droid_sans { background-position: 0 -1000px; }
.et_gf_droid_serif { background-position: 0 -1040px; }
.et_gf_francois_one { background-position: 0 -1080px; }
.et_gf_fredoka_one { background-position: 0 -1120px; }
.et_gf_the_girl_next_door { background-position: 0 -1160px; }
.et_gf_gloria_hallelujah { background-position: 0 -1200px; }
.et_gf_happy_monkey { background-position: 0 -1240px; }
.et_gf_indie_flower { background-position: 0 -1280px; }
.et_gf_josefin_slab { background-position: 0 -1320px; }
.et_gf_judson { background-position: 0 -1360px; }
.et_gf_kreon { background-position: 0 -1400px; }
.et_gf_lato { background-position: 0 -1440px; }
.et_gf_lato_light { background-position: 0 -1480px; }
.et_gf_leckerli_one { background-position: 0 -1520px; }
.et_gf_lobster { background-position: 0 -1560px; }
.et_gf_lobster_two { background-position: 0 -1600px; }
.et_gf_lora { background-position: 0 -1640px; }
.et_gf_luckiest_guy { background-position: 0 -1680px; }
.et_gf_merriweather { background-position: 0 -1720px; }
.et_gf_metamorphous { background-position: 0 -1760px; }
.et_gf_montserrat { background-position: 0 -1800px; }
.et_gf_noticia_text { background-position: 0 -1840px; }
.et_gf_nova_square { background-position: 0 -1880px; }
.et_gf_nunito { background-position: 0 -1920px; }
.et_gf_old_standard_tt { background-position: 0 -1960px; }
.et_gf_open_sans { background-position: 0 -2000px; }
.et_gf_open_sans_condensed { background-position: 0 -2040px; }
.et_gf_open_sans_light { background-position: 0 -2080px; }
.et_gf_oswald { background-position: 0 -2120px; }
.et_gf_pacifico { background-position: 0 -2160px; }
.et_gf_passion_one { background-position: 0 -2200px; }
.et_gf_patrick_hand { background-position: 0 -2240px; }
.et_gf_permanent_marker { background-position: 0 -2280px; }
.et_gf_play { background-position: 0 -2320px; }
.et_gf_playfair_display { background-position: 0 -2360px; }
.et_gf_poiret_one { background-position: 0 -2400px; }
.et_gf_pt_sans { background-position: 0 -2440px; }
.et_gf_pt_sans_narrow { background-position: 0 -2480px; }
.et_gf_pt_serif { background-position: 0 -2520px; }
.et_gf_raleway { background-position: 0 -2560px; }
.et_gf_raleway_light { background-position: 0 -2600px; }
.et_gf_reenie_beanie { background-position: 0 -2640px; }
.et_gf_righteous { background-position: 0 -2680px; }
.et_gf_roboto { background-position: 0 -2720px; }
.et_gf_roboto_condensed { background-position: 0 -2760px; }
.et_gf_roboto_light { background-position: 0 -2800px; }
.et_gf_rock_salt { background-position: 0 -2840px; }
.et_gf_rokkitt { background-position: 0 -2880px; }
.et_gf_sanchez { background-position: 0 -2920px; }
.et_gf_satisfy { background-position: 0 -2960px; }
.et_gf_schoolbell { background-position: 0 -3000px; }
.et_gf_shadows_into_light { background-position: 0 -3040px; }
.et_gf_source_sans_pro { background-position: 0 -3080px; }
.et_gf_source_sans_pro_light { background-position: 0 -3120px; }
.et_gf_special_elite { background-position: 0 -3160px; }
.et_gf_squada_one { background-position: 0 -3200px; }
.et_gf_tangerine { background-position: 0 -3240px; }
.et_gf_ubuntu { background-position: 0 -3280px; }
.et_gf_unkempt { background-position: 0 -3320px; }
.et_gf_vollkorn { background-position: 0 -3360px; }
.et_gf_walter_turncoat { background-position: 0 -3400px; }
.et_gf_yanone_kaffeesatz { background-position: 0 -3440px; }
.et_google_font_active, .et_google_font_options li:hover { background-color: #effbff; }

View File

@@ -0,0 +1,191 @@
(function($){
var ET_Google_Fonts = function(element, options){
this.element = element;
this.custom_select_link = null;
this.custom_dropdown = null;
this.frontend_customizer = $('body').hasClass( 'et_frontend_customizer' ) ? true : false;
this.options = jQuery.extend({}, this.defaults, options);
this.create_dropdown();
}
ET_Google_Fonts.prototype = {
defaults: {
apply_font_to : 'body',
used_for : 'et_body_font'
},
create_dropdown: function(){
var $et_google_font_main_select = this.element,
et_filter_options_html = '',
$selected_option,
$dropdown_selected_option,
self = this;
$et_google_font_main_select.hide().addClass( 'et_google_font_main_select' );
$et_google_font_main_select.change( $.proxy( self.change_font, self ) );
$et_google_font_main_select.find( 'option' ).each( function() {
var $this_option = $(this),
selected = $(this).is( ':selected' ) ? ' class="et_google_font_active"' : '',
data_parent = typeof $this_option.data( 'parent_font' ) !== 'undefined' && '' !== $this_option.data( 'parent_font' ) ? ' data-parent_font="' + $this_option.data( 'parent_font' ) + '"' : '';
et_filter_options_html += '<li class="' + self.fontname_to_class( $this_option.text() ) + '" data-value="' + $this_option.attr( 'value' ) + '"' + data_parent + selected +'>' + $this_option.text() + '</li>';
} );
$et_google_font_main_select.after( '<a href="#" class="et_google_font_custom_select">' + '<span class="et_filter_text"></span>' + '</a>' + '<ul class="et_google_font_options">' + et_filter_options_html + '</ul>' );
this.custom_select_link = $et_google_font_main_select.next( '.et_google_font_custom_select' );
this.custom_dropdown = this.custom_select_link.next('.et_google_font_options');
$selected_option = $et_google_font_main_select.find( ':selected' );
if ( $selected_option.length ) {
this.custom_select_link.find('.et_filter_text').text( $selected_option.text() );
$dropdown_selected_option = ( $selected_option.val() == 'none' ) ? this.custom_dropdown.find('li').eq(0) : this.custom_dropdown.find('li[data-value="' + $selected_option.text() + '"]');
this.custom_select_link.find('.et_filter_text').addClass( $dropdown_selected_option.attr('class') ).attr( 'data-gf-class', $dropdown_selected_option.attr('class') );
$dropdown_selected_option.addClass( 'et_google_font_active' );
}
this.custom_select_link.click( $.proxy( self.open_dropdown, self ) );
this.custom_dropdown.find('li').click( $.proxy( self.select_option, self ) );
},
open_dropdown: function(event) {
var self = this,
$this_link = $(event.target);
if ( self.custom_dropdown.hasClass( 'et_google_font_open' ) ) return false;
self.custom_dropdown.show().addClass( 'et_google_font_open' );
$this_link.hide();
return false;
},
select_option: function(event) {
var self = this,
$this_option = $(event.target),
this_option_value = $this_option.text(),
$main_text = self.custom_select_link.find( '.et_filter_text' ),
$main_select_active_element = self.element.find( 'option[value="' + this_option_value + '"]' ),
main_text_gf_class = $main_text.attr( 'data-gf-class' );
if ( $this_option.hasClass( 'et_google_font_active' ) ) {
self.close_dropdown();
return false;
}
$this_option.siblings().removeClass( 'et_google_font_active' );
$main_text.removeClass( main_text_gf_class ).addClass( $this_option.attr( 'class' ) ).attr( 'data-gf-class', $this_option.attr( 'class' ) );
$this_option.addClass('et_google_font_active');
self.close_dropdown();
if ( ! $main_select_active_element.length )
self.element.val( 'none' ).trigger( 'change' );
else
self.element.val( this_option_value ).trigger( 'change' );
return false;
},
close_dropdown: function() {
this.custom_select_link.find( '.et_filter_text' ).show();
this.custom_dropdown.hide().removeClass( 'et_google_font_open' );
},
maybe_request_font: function( font_name, font_option ) {
if ( font_option.val() === 'none' ) return;
var font_styles = typeof font_option.data( 'parent_styles' ) !== 'undefined' && '' !== font_option.data( 'parent_styles' ) ? ':' + font_option.data( 'parent_styles' ) : '',
subset = typeof font_option.data( 'parent_subset' ) !== 'undefined' && '' !== font_option.data( 'parent_subset' ) ? '&' + subset : '';
var $head = this.frontend_customizer ? $('head') : $( "#customize-preview iframe" ).contents().find('head');
if ( $head.find( 'link#' + this.fontname_to_class( font_name ) ).length ) return;
$head.append( '<link id="' + this.fontname_to_class( font_name ) + '" href="//fonts.googleapis.com/css?family=' + this.convert_to_google_font_name( font_name ) + font_styles + subset + '" rel="stylesheet" type="text/css" />' );
},
apply_font: function( font_name, font_option ) {
var $head = this.frontend_customizer ? $('head') : $( "#customize-preview iframe" ).contents().find('head'),
font_weight = '';
$head.find( 'style.' + this.options.used_for ).remove();
if ( font_option.val() === 'none' )
return;
font_weight = typeof font_option.data( 'parent_font' ) !== 'undefined' && '' !== font_option.data( 'parent_font' ) ? 'font-weight:' + font_option.data( 'current_styles' ) : '';
$head.append( '<style class="' + this.options.used_for + '">' + this.options.apply_font_to + ' { font-family: "' + font_name + '", sans-serif; ' + font_weight + ' } </style>' );
},
change_font: function() {
var self = this,
$active_option = self.element.find('option:selected'),
active_option_value = $active_option.val(),
active_option_name = typeof $active_option.data( 'parent_font' ) !== 'undefined' && '' !== $active_option.data( 'parent_font' ) ? $active_option.data( 'parent_font' ) : $active_option.val(),
$this_option = this.custom_dropdown.find('li[data-value="' + active_option_value + '"]'),
$main_text = self.custom_select_link.find( '.et_filter_text' ),
main_text_gf_class = $main_text.attr( 'data-gf-class' );
self.maybe_request_font( active_option_name, $active_option );
self.apply_font( active_option_name, $active_option );
// set correct custom dropdown values on first load
if ( this.custom_dropdown.find('li.et_google_font_active').data( 'value' ) !== active_option_value ) {
this.custom_dropdown.find('li').removeClass( 'et_google_font_active' );
$main_text.removeClass( main_text_gf_class ).addClass( $this_option.attr( 'class' ) ).attr( 'data-gf-class', $this_option.attr( 'class' ) );
$this_option.addClass('et_google_font_active');
}
},
convert_to_google_font_name: function( font_name ) {
return font_name.replace(/ /g,'+');
},
fontname_to_class: function( option_value ) {
return 'et_gf_' + option_value.replace(/ /g,'_').toLowerCase();
}
}
$.fn.et_google_fonts = function(options){
new ET_Google_Fonts(this, options)
return this;
};
$(document).ready( function() {
var et_heading_font_option_name = '[heading_font]',
et_body_font_option_name = '[body_font]',
et_buttons_font_option_name = '[all_buttons_font]',
et_secondary_nav_font_option_name = '[secondary_nav_font]',
et_primary_nav_font_option_name = '[primary_nav_font]';
if ( typeof et_google_fonts !== 'undefined' && et_google_fonts.options_in_one_row == 0 ) {
et_heading_font_option_name = '_heading_font';
et_body_font_option_name = '_body_font';
et_buttons_font_option_name = '_all_buttons_font';
et_primary_nav_font_option_name = '_primary_nav_font';
et_secondary_nav_font_option_nam = '_secondary_nav_font';
}
$('select[data-customize-setting-link$="' + et_heading_font_option_name + '"]').et_google_fonts({apply_font_to : 'h1, h2, h3, h4, h5, h6, h1 a, h2 a, h3 a, h4 a, h5 a, h6 a', used_for : 'et_heading_font'});
$('select[data-customize-setting-link$="' + et_body_font_option_name + '"]').et_google_fonts({apply_font_to : 'body', used_for : 'et_body_font'});
$('select[data-customize-setting-link$="' + et_buttons_font_option_name + '"]').et_google_fonts({apply_font_to : '.et_pb_button', used_for : 'et_all_buttons_font'});
$('select[data-customize-setting-link$="' + et_primary_nav_font_option_name + '"]').et_google_fonts({apply_font_to : '#main-header, #et-top-navigation', used_for : 'et_primary_nav_font'});
$('select[data-customize-setting-link$="' + et_secondary_nav_font_option_name + '"]').et_google_fonts({apply_font_to : '#top-header .container', used_for : 'et_secondary_nav_font'});
} );
})(jQuery)

Binary file not shown.

After

Width:  |  Height:  |  Size: 119 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 187 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 160 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 415 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 868 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 562 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 970 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1008 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1018 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 997 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 742 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 815 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 183 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 489 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 137 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 864 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 171 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 461 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 371 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 326 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 745 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 240 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 354 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 317 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 165 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 518 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 533 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 527 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 497 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 550 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 614 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 611 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 506 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 518 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 854 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 315 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 694 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 117 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 528 B

View File

@@ -0,0 +1,12 @@
/**
* jQuery custom checkboxes
*
* Copyright (c) 2008 Khavilo Dmitry (http://widowmaker.kiev.ua/checkbox/)
* Licensed under the MIT License:
* http://www.opensource.org/licenses/mit-license.php
*
* @version 1.3.0 Beta 1
* @author Khavilo Dmitry
* @mailto wm.morgun@gmail.com
**/
(function($){var i=function(e){if(!e)var e=window.event;e.cancelBubble=true;if(e.stopPropagation)e.stopPropagation()};$.fn.checkbox=function(f){try{document.execCommand('BackgroundImageCache',false,true)}catch(e){}var g={cls:'jquery-checkbox',empty:clearpath};g=$.extend(g,f||{});var h=function(a){var b=a.checked;var c=a.disabled;var d=$(a);if(a.stateInterval)clearInterval(a.stateInterval);a.stateInterval=setInterval(function(){if(a.disabled!=c)d.trigger((c=!!a.disabled)?'disable':'enable');if(a.checked!=b)d.trigger((b=!!a.checked)?'check':'uncheck')},10);return d};return this.each(function(){var a=this;var b=h(a);if(a.wrapper)a.wrapper.remove();a.wrapper=$('<span class="'+g.cls+'"><span class="mark"><img src="'+g.empty+'" /></span></span>');a.wrapperInner=a.wrapper.children('span:eq(0)');a.wrapper.hover(function(e){a.wrapperInner.addClass(g.cls+'-hover');i(e)},function(e){a.wrapperInner.removeClass(g.cls+'-hover');i(e)});b.css({position:'absolute',zIndex:-1,visibility:'hidden'}).after(a.wrapper);var c=false;if(b.attr('id')){c=$('label[for='+b.attr('id')+']');if(!c.length)c=false}if(!c){c=b.closest?b.closest('label'):b.parents('label:eq(0)');if(!c.length)c=false}if(c){c.hover(function(e){a.wrapper.trigger('mouseover',[e])},function(e){a.wrapper.trigger('mouseout',[e])});c.click(function(e){b.trigger('click',[e]);i(e);return false})}a.wrapper.click(function(e){b.trigger('click',[e]);i(e);return false});b.click(function(e){i(e)});b.bind('disable',function(){a.wrapperInner.addClass(g.cls+'-disabled')}).bind('enable',function(){a.wrapperInner.removeClass(g.cls+'-disabled')});b.bind('check',function(){a.wrapper.addClass(g.cls+'-checked')}).bind('uncheck',function(){a.wrapper.removeClass(g.cls+'-checked')});$('img',a.wrapper).bind('dragstart',function(){return false}).bind('mousedown',function(){return false});if(window.getSelection)a.wrapper.css('MozUserSelect','none');if(a.checked)a.wrapper.addClass(g.cls+'-checked');if(a.disabled)a.wrapperInner.addClass(g.cls+'-disabled')})}})(jQuery);

View File

@@ -0,0 +1,484 @@
/**
*
* Color picker
* Author: Stefan Petre www.eyecon.ro
*
* Dual licensed under the MIT and GPL licenses
*
*/
(function ($) {
var ColorPicker = function () {
var
ids = {},
inAction,
charMin = 65,
visible,
tpl = '<div class="colorpicker"><div class="colorpicker_color"><div><div></div></div></div><div class="colorpicker_hue"><div></div></div><div class="colorpicker_new_color"></div><div class="colorpicker_current_color"></div><div class="colorpicker_hex"><input type="text" maxlength="6" size="6" /></div><div class="colorpicker_rgb_r colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_rgb_g colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_rgb_b colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_h colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_s colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_b colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_submit"></div></div>',
defaults = {
eventName: 'click',
onShow: function () {},
onBeforeShow: function(){},
onHide: function () {},
onChange: function () {},
onSubmit: function () {},
color: 'ff0000',
livePreview: true,
flat: false
},
fillRGBFields = function (hsb, cal) {
var rgb = HSBToRGB(hsb);
$(cal).data('colorpicker').fields
.eq(1).val(rgb.r).end()
.eq(2).val(rgb.g).end()
.eq(3).val(rgb.b).end();
},
fillHSBFields = function (hsb, cal) {
$(cal).data('colorpicker').fields
.eq(4).val(hsb.h).end()
.eq(5).val(hsb.s).end()
.eq(6).val(hsb.b).end();
},
fillHexFields = function (hsb, cal) {
$(cal).data('colorpicker').fields
.eq(0).val(HSBToHex(hsb)).end();
},
setSelector = function (hsb, cal) {
$(cal).data('colorpicker').selector.css('backgroundColor', '#' + HSBToHex({h: hsb.h, s: 100, b: 100}));
$(cal).data('colorpicker').selectorIndic.css({
left: parseInt(150 * hsb.s/100, 10),
top: parseInt(150 * (100-hsb.b)/100, 10)
});
},
setHue = function (hsb, cal) {
$(cal).data('colorpicker').hue.css('top', parseInt(150 - 150 * hsb.h/360, 10));
},
setCurrentColor = function (hsb, cal) {
$(cal).data('colorpicker').currentColor.css('backgroundColor', '#' + HSBToHex(hsb));
},
setNewColor = function (hsb, cal) {
$(cal).data('colorpicker').newColor.css('backgroundColor', '#' + HSBToHex(hsb));
},
keyDown = function (ev) {
var pressedKey = ev.charCode || ev.keyCode || -1;
if ((pressedKey > charMin && pressedKey <= 90) || pressedKey == 32) {
return false;
}
var cal = $(this).parent().parent();
if (cal.data('colorpicker').livePreview === true) {
change.apply(this);
}
},
change = function (ev) {
var cal = $(this).parent().parent(), col;
if (this.parentNode.className.indexOf('_hex') > 0) {
cal.data('colorpicker').color = col = HexToHSB(fixHex(this.value));
} else if (this.parentNode.className.indexOf('_hsb') > 0) {
cal.data('colorpicker').color = col = fixHSB({
h: parseInt(cal.data('colorpicker').fields.eq(4).val(), 10),
s: parseInt(cal.data('colorpicker').fields.eq(5).val(), 10),
b: parseInt(cal.data('colorpicker').fields.eq(6).val(), 10)
});
} else {
cal.data('colorpicker').color = col = RGBToHSB(fixRGB({
r: parseInt(cal.data('colorpicker').fields.eq(1).val(), 10),
g: parseInt(cal.data('colorpicker').fields.eq(2).val(), 10),
b: parseInt(cal.data('colorpicker').fields.eq(3).val(), 10)
}));
}
if (ev) {
fillRGBFields(col, cal.get(0));
fillHexFields(col, cal.get(0));
fillHSBFields(col, cal.get(0));
}
setSelector(col, cal.get(0));
setHue(col, cal.get(0));
setNewColor(col, cal.get(0));
cal.data('colorpicker').onChange.apply(cal, [col, HSBToHex(col), HSBToRGB(col)]);
},
blur = function (ev) {
var cal = $(this).parent().parent();
cal.data('colorpicker').fields.parent().removeClass('colorpicker_focus');
},
focus = function () {
charMin = this.parentNode.className.indexOf('_hex') > 0 ? 70 : 65;
$(this).parent().parent().data('colorpicker').fields.parent().removeClass('colorpicker_focus');
$(this).parent().addClass('colorpicker_focus');
},
downIncrement = function (ev) {
var field = $(this).parent().find('input').focus();
var current = {
el: $(this).parent().addClass('colorpicker_slider'),
max: this.parentNode.className.indexOf('_hsb_h') > 0 ? 360 : (this.parentNode.className.indexOf('_hsb') > 0 ? 100 : 255),
y: ev.pageY,
field: field,
val: parseInt(field.val(), 10),
preview: $(this).parent().parent().data('colorpicker').livePreview
};
$(document).bind('mouseup', current, upIncrement);
$(document).bind('mousemove', current, moveIncrement);
},
moveIncrement = function (ev) {
ev.data.field.val(Math.max(0, Math.min(ev.data.max, parseInt(ev.data.val + ev.pageY - ev.data.y, 10))));
if (ev.data.preview) {
change.apply(ev.data.field.get(0), [true]);
}
return false;
},
upIncrement = function (ev) {
change.apply(ev.data.field.get(0), [true]);
ev.data.el.removeClass('colorpicker_slider').find('input').focus();
$(document).unbind('mouseup', upIncrement);
$(document).unbind('mousemove', moveIncrement);
return false;
},
downHue = function (ev) {
var current = {
cal: $(this).parent(),
y: $(this).offset().top
};
current.preview = current.cal.data('colorpicker').livePreview;
$(document).bind('mouseup', current, upHue);
$(document).bind('mousemove', current, moveHue);
},
moveHue = function (ev) {
change.apply(
ev.data.cal.data('colorpicker')
.fields
.eq(4)
.val(parseInt(360*(150 - Math.max(0,Math.min(150,(ev.pageY - ev.data.y))))/150, 10))
.get(0),
[ev.data.preview]
);
return false;
},
upHue = function (ev) {
fillRGBFields(ev.data.cal.data('colorpicker').color, ev.data.cal.get(0));
fillHexFields(ev.data.cal.data('colorpicker').color, ev.data.cal.get(0));
$(document).unbind('mouseup', upHue);
$(document).unbind('mousemove', moveHue);
return false;
},
downSelector = function (ev) {
var current = {
cal: $(this).parent(),
pos: $(this).offset()
};
current.preview = current.cal.data('colorpicker').livePreview;
$(document).bind('mouseup', current, upSelector);
$(document).bind('mousemove', current, moveSelector);
},
moveSelector = function (ev) {
change.apply(
ev.data.cal.data('colorpicker')
.fields
.eq(6)
.val(parseInt(100*(150 - Math.max(0,Math.min(150,(ev.pageY - ev.data.pos.top))))/150, 10))
.end()
.eq(5)
.val(parseInt(100*(Math.max(0,Math.min(150,(ev.pageX - ev.data.pos.left))))/150, 10))
.get(0),
[ev.data.preview]
);
return false;
},
upSelector = function (ev) {
fillRGBFields(ev.data.cal.data('colorpicker').color, ev.data.cal.get(0));
fillHexFields(ev.data.cal.data('colorpicker').color, ev.data.cal.get(0));
$(document).unbind('mouseup', upSelector);
$(document).unbind('mousemove', moveSelector);
return false;
},
enterSubmit = function (ev) {
$(this).addClass('colorpicker_focus');
},
leaveSubmit = function (ev) {
$(this).removeClass('colorpicker_focus');
},
clickSubmit = function (ev) {
var cal = $(this).parent();
var col = cal.data('colorpicker').color;
cal.data('colorpicker').origColor = col;
setCurrentColor(col, cal.get(0));
cal.data('colorpicker').onSubmit(col, HSBToHex(col), HSBToRGB(col), cal.data('colorpicker').el);
},
show = function (ev) {
var cal = $('#' + $(this).data('colorpickerId'));
cal.data('colorpicker').onBeforeShow.apply(this, [cal.get(0)]);
var pos = $(this).offset();
var viewPort = getViewport();
var top = pos.top + this.offsetHeight;
var left = pos.left;
if (top + 176 > viewPort.t + viewPort.h) {
top -= this.offsetHeight + 176;
}
if (left + 356 > viewPort.l + viewPort.w) {
left -= 356;
}
cal.css({left: left + 'px', top: top + 'px'});
if (cal.data('colorpicker').onShow.apply(this, [cal.get(0)]) != false) {
cal.show();
}
$(document).bind('mousedown', {cal: cal}, hide);
return false;
},
hide = function (ev) {
if (!isChildOf(ev.data.cal.get(0), ev.target, ev.data.cal.get(0))) {
if (ev.data.cal.data('colorpicker').onHide.apply(this, [ev.data.cal.get(0)]) != false) {
ev.data.cal.hide();
}
$(document).unbind('mousedown', hide);
}
},
isChildOf = function(parentEl, el, container) {
if (parentEl == el) {
return true;
}
if (parentEl.contains) {
return parentEl.contains(el);
}
if ( parentEl.compareDocumentPosition ) {
return !!(parentEl.compareDocumentPosition(el) & 16);
}
var prEl = el.parentNode;
while(prEl && prEl != container) {
if (prEl == parentEl)
return true;
prEl = prEl.parentNode;
}
return false;
},
getViewport = function () {
var m = document.compatMode == 'CSS1Compat';
return {
l : window.pageXOffset || (m ? document.documentElement.scrollLeft : document.body.scrollLeft),
t : window.pageYOffset || (m ? document.documentElement.scrollTop : document.body.scrollTop),
w : window.innerWidth || (m ? document.documentElement.clientWidth : document.body.clientWidth),
h : window.innerHeight || (m ? document.documentElement.clientHeight : document.body.clientHeight)
};
},
fixHSB = function (hsb) {
return {
h: Math.min(360, Math.max(0, hsb.h)),
s: Math.min(100, Math.max(0, hsb.s)),
b: Math.min(100, Math.max(0, hsb.b))
};
},
fixRGB = function (rgb) {
return {
r: Math.min(255, Math.max(0, rgb.r)),
g: Math.min(255, Math.max(0, rgb.g)),
b: Math.min(255, Math.max(0, rgb.b))
};
},
fixHex = function (hex) {
var len = 6 - hex.length;
if (len > 0) {
var o = [];
for (var i=0; i<len; i++) {
o.push('0');
}
o.push(hex);
hex = o.join('');
}
return hex;
},
HexToRGB = function (hex) {
var hex = parseInt(((hex.indexOf('#') > -1) ? hex.substring(1) : hex), 16);
return {r: hex >> 16, g: (hex & 0x00FF00) >> 8, b: (hex & 0x0000FF)};
},
HexToHSB = function (hex) {
return RGBToHSB(HexToRGB(hex));
},
RGBToHSB = function (rgb) {
var hsb = {
h: 0,
s: 0,
b: 0
};
var min = Math.min(rgb.r, rgb.g, rgb.b);
var max = Math.max(rgb.r, rgb.g, rgb.b);
var delta = max - min;
hsb.b = max;
if (max != 0) {
}
hsb.s = max != 0 ? 255 * delta / max : 0;
if (hsb.s != 0) {
if (rgb.r == max) {
hsb.h = (rgb.g - rgb.b) / delta;
} else if (rgb.g == max) {
hsb.h = 2 + (rgb.b - rgb.r) / delta;
} else {
hsb.h = 4 + (rgb.r - rgb.g) / delta;
}
} else {
hsb.h = -1;
}
hsb.h *= 60;
if (hsb.h < 0) {
hsb.h += 360;
}
hsb.s *= 100/255;
hsb.b *= 100/255;
return hsb;
},
HSBToRGB = function (hsb) {
var rgb = {};
var h = Math.round(hsb.h);
var s = Math.round(hsb.s*255/100);
var v = Math.round(hsb.b*255/100);
if(s == 0) {
rgb.r = rgb.g = rgb.b = v;
} else {
var t1 = v;
var t2 = (255-s)*v/255;
var t3 = (t1-t2)*(h%60)/60;
if(h==360) h = 0;
if(h<60) {rgb.r=t1; rgb.b=t2; rgb.g=t2+t3}
else if(h<120) {rgb.g=t1; rgb.b=t2; rgb.r=t1-t3}
else if(h<180) {rgb.g=t1; rgb.r=t2; rgb.b=t2+t3}
else if(h<240) {rgb.b=t1; rgb.r=t2; rgb.g=t1-t3}
else if(h<300) {rgb.b=t1; rgb.g=t2; rgb.r=t2+t3}
else if(h<360) {rgb.r=t1; rgb.g=t2; rgb.b=t1-t3}
else {rgb.r=0; rgb.g=0; rgb.b=0}
}
return {r:Math.round(rgb.r), g:Math.round(rgb.g), b:Math.round(rgb.b)};
},
RGBToHex = function (rgb) {
var hex = [
rgb.r.toString(16),
rgb.g.toString(16),
rgb.b.toString(16)
];
$.each(hex, function (nr, val) {
if (val.length == 1) {
hex[nr] = '0' + val;
}
});
return hex.join('');
},
HSBToHex = function (hsb) {
return RGBToHex(HSBToRGB(hsb));
},
restoreOriginal = function () {
var cal = $(this).parent();
var col = cal.data('colorpicker').origColor;
cal.data('colorpicker').color = col;
fillRGBFields(col, cal.get(0));
fillHexFields(col, cal.get(0));
fillHSBFields(col, cal.get(0));
setSelector(col, cal.get(0));
setHue(col, cal.get(0));
setNewColor(col, cal.get(0));
};
return {
init: function (opt) {
opt = $.extend({}, defaults, opt||{});
if (typeof opt.color == 'string') {
opt.color = HexToHSB(opt.color);
} else if (opt.color.r != undefined && opt.color.g != undefined && opt.color.b != undefined) {
opt.color = RGBToHSB(opt.color);
} else if (opt.color.h != undefined && opt.color.s != undefined && opt.color.b != undefined) {
opt.color = fixHSB(opt.color);
} else {
return this;
}
return this.each(function () {
if (!$(this).data('colorpickerId')) {
var options = $.extend({}, opt);
options.origColor = opt.color;
var id = 'collorpicker_' + parseInt(Math.random() * 1000);
$(this).data('colorpickerId', id);
var cal = $(tpl).attr('id', id);
if (options.flat) {
cal.appendTo(this).show();
} else {
cal.appendTo(document.body);
}
options.fields = cal
.find('input')
.bind('keyup', keyDown)
.bind('change', change)
.bind('blur', blur)
.bind('focus', focus);
cal
.find('span').bind('mousedown', downIncrement).end()
.find('>div.colorpicker_current_color').bind('click', restoreOriginal);
options.selector = cal.find('div.colorpicker_color').bind('mousedown', downSelector);
options.selectorIndic = options.selector.find('div div');
options.el = this;
options.hue = cal.find('div.colorpicker_hue div');
cal.find('div.colorpicker_hue').bind('mousedown', downHue);
options.newColor = cal.find('div.colorpicker_new_color');
options.currentColor = cal.find('div.colorpicker_current_color');
cal.data('colorpicker', options);
cal.find('div.colorpicker_submit')
.bind('mouseenter', enterSubmit)
.bind('mouseleave', leaveSubmit)
.bind('click', clickSubmit);
fillRGBFields(options.color, cal.get(0));
fillHSBFields(options.color, cal.get(0));
fillHexFields(options.color, cal.get(0));
setHue(options.color, cal.get(0));
setSelector(options.color, cal.get(0));
setCurrentColor(options.color, cal.get(0));
setNewColor(options.color, cal.get(0));
if (options.flat) {
cal.css({
position: 'relative',
display: 'block'
});
} else {
$(this).bind(options.eventName, show);
}
}
});
},
showPicker: function() {
return this.each( function () {
if ($(this).data('colorpickerId')) {
show.apply(this);
}
});
},
hidePicker: function() {
return this.each( function () {
if ($(this).data('colorpickerId')) {
$('#' + $(this).data('colorpickerId')).hide();
}
});
},
setColor: function(col) {
if (typeof col == 'string') {
col = HexToHSB(col);
} else if (col.r != undefined && col.g != undefined && col.b != undefined) {
col = RGBToHSB(col);
} else if (col.h != undefined && col.s != undefined && col.b != undefined) {
col = fixHSB(col);
} else {
return this;
}
return this.each(function(){
if ($(this).data('colorpickerId')) {
var cal = $('#' + $(this).data('colorpickerId'));
cal.data('colorpicker').color = col;
cal.data('colorpicker').origColor = col;
fillRGBFields(col, cal.get(0));
fillHSBFields(col, cal.get(0));
fillHexFields(col, cal.get(0));
setHue(col, cal.get(0));
setSelector(col, cal.get(0));
setCurrentColor(col, cal.get(0));
setNewColor(col, cal.get(0));
}
});
}
};
}();
$.fn.extend({
ColorPicker: ColorPicker.init,
ColorPickerHide: ColorPicker.hidePicker,
ColorPickerShow: ColorPicker.showPicker,
ColorPickerSetColor: ColorPicker.setColor
});
})(jQuery)

View File

@@ -0,0 +1,37 @@
jQuery(document).ready(function() {
var et_file_frame;
jQuery( '.upload_image_button' ).click(function( event ) {
var this_el = jQuery( this ),
use_for = this_el.parents( '.epanel-box' ).find( '.box-title > h3' ).text(),
button_text = this_el.data( 'button_text' ),
window_title = epanel_uploader.media_window_title,
fileInput = this_el.parent().prev('input.uploadfield');
event.preventDefault();
et_file_frame = wp.media.frames.et_file_frame = wp.media({
title: window_title,
library: {
type: 'image'
},
button: {
text: button_text,
},
multiple: false
});
et_file_frame.on( 'select', function() {
var attachment = et_file_frame.state().get( 'selection' ).first().toJSON();
fileInput.val( attachment.url );
});
et_file_frame.open();
return false;
});
jQuery( '.upload_image_reset' ).click( function() {
jQuery(this).parent().prev( 'input.uploadfield' ).val( '' );
});
});

View File

@@ -0,0 +1,51 @@
/**
*
* Zoomimage
* Author: Stefan Petre www.eyecon.ro
*
*/
(function($){
var EYE = window.EYE = function() {
var _registered = {
init: []
};
return {
init: function() {
$.each(_registered.init, function(nr, fn){
fn.call();
});
},
extend: function(prop) {
for (var i in prop) {
if (prop[i] != undefined) {
this[i] = prop[i];
}
}
},
register: function(fn, type) {
if (!_registered[type]) {
_registered[type] = [];
}
_registered[type].push(fn);
}
};
}();
$(EYE.init);
})(jQuery);
(function($){
var initLayout = function() {
$('#colorpickerHolder').ColorPicker({flat: true});
$('.colorpopup').ColorPicker({
onSubmit: function(hsb, hex, rgb, el) {
$(el).val(hex);
$(el).ColorPickerHide();
},
onBeforeShow: function () {
$(this).ColorPickerSetColor(this.value);
}
})
}
EYE.register(initLayout, 'init');
})(jQuery);

View File

@@ -0,0 +1,64 @@
/* <![CDATA[ */
var clearpath = ePanelSettings.clearpath,
et_saving_text = ePanelSettings.et_saving_text,
et_options_saved_text = ePanelSettings.et_options_saved_text;
jQuery(document).ready(function(){
jQuery('#epanel-content,#epanel-content > div').tabs({ fx: { opacity: 'toggle', duration:'fast' }, selected: 0 });
jQuery(".box-description").click(function(){
var descheading = jQuery(this).prev("h3").html();
var desctext = jQuery(this).next(".box-descr").html();
jQuery('body').append("<div id='custom-lbox'><div class='shadow'></div><div class='box-desc'><div class='box-desc-top'></div><div class='box-desc-content'><h3>"+descheading+"</h3>"+desctext+"<div class='lightboxclose'></div> </div> <div class='box-desc-bottom'></div> </div></div>");
jQuery(".shadow").animate({ opacity: "show" }, "fast").fadeTo("fast", 0.75);
jQuery('.lightboxclose').click(function(){
jQuery(".shadow").animate({ opacity: "hide" }, "fast", function(){jQuery("#custom-lbox").remove();});
});
});
jQuery(".defaults-button").click(function() {
jQuery(".defaults-hover").animate({opacity: "show", top: "-240"}, "fast");
});
jQuery(".no").click(function() {
jQuery(".defaults-hover").animate({opacity: "hide", top: "-300"}, "fast");
});
// ":not([safari])" is desirable but not necessary selector
jQuery('input:checkbox:not([safari])').checkbox();
jQuery('input[safari]:checkbox').checkbox({cls:'jquery-safari-checkbox'});
jQuery('input:radio').checkbox();
var $save_message = jQuery("#epanel-ajax-saving");
jQuery('input#epanel-save').click(function($){
var options_fromform = jQuery('#main_options_form').formSerialize(),
add_nonce = '&_ajax_nonce='+ePanelSettings.epanel_nonce;
options_fromform += add_nonce;
var save_button=jQuery(this);
jQuery.ajax({
type: "POST",
url: ajaxurl,
data: options_fromform,
beforeSend: function ( xhr ){
$save_message.children("img").css("display","block");
$save_message.children("span").css("margin","6px 0px 0px 30px").html( et_saving_text );
$save_message.fadeIn('fast');
},
success: function(response){
$save_message.children("img").css("display","none");
$save_message.children("span").css("margin","0px").html( et_options_saved_text );
save_button.blur();
setTimeout(function(){
$save_message.fadeOut("slow");
},500);
}
});
return false;
});
});
/* ]]> */

View File

@@ -0,0 +1,37 @@
(function($){
var initLayout = function() {
var hash = window.location.hash.replace('#', '');
var currentTab = $('ul.navigationTabs a')
.bind('click', showTab)
.filter('a[rel=' + hash + ']');
if (currentTab.size() == 0) {
currentTab = $('ul.navigationTabs a:first');
}
showTab.apply(currentTab.get(0));
$('#colorpickerHolder').ColorPicker({flat: true});
$('.colorpopup').ColorPicker({
onSubmit: function(hsb, hex, rgb, el) {
$(el).val(hex);
$(el).ColorPickerHide();
},
onBeforeShow: function () {
$(this).ColorPickerSetColor(this.value);
}
})
};
var showTab = function(e) {
var tabIndex = $('ul.navigationTabs a')
.removeClass('active')
.index(this);
$(this)
.addClass('active')
.blur();
$('div.tab')
.hide()
.eq(tabIndex)
.show();
};
EYE.register(initLayout, 'init');
})(jQuery)

View File

@@ -0,0 +1,918 @@
<?php
global $epanelMainTabs, $themename, $shortname, $options;
$epanelMainTabs = array('general','navigation','layout','ad','seo','integration','support');
$cats_array = get_categories('hide_empty=0');
$pages_array = get_pages('hide_empty=0');
$pages_number = count($pages_array);
$site_pages = array();
$site_cats = array();
$pages_ids = array();
$cats_ids = array();
foreach ($pages_array as $pagg) {
$site_pages[$pagg->ID] = htmlspecialchars($pagg->post_title);
$pages_ids[] = $pagg->ID;
}
foreach ($cats_array as $categs) {
$site_cats[$categs->cat_ID] = $categs->cat_name;
$cats_ids[] = $categs->cat_ID;
}
$shortname = esc_html( $shortname );
$pages_ids = array_map( 'intval', $pages_ids );
$cats_ids = array_map( 'intval', $cats_ids );
$options = array (
array( "name" => "wrap-general",
"type" => "contenttab-wrapstart",),
array( "type" => "subnavtab-start",),
array( "name" => "general-1",
"type" => "subnav-tab",
"desc" => esc_html__("General",$themename)),
array( "type" => "subnavtab-end",),
array( "name" => "general-1",
"type" => "subcontent-start",),
array( "name" => esc_html__("Logo",$themename),
"id" => $shortname."_logo",
"type" => "upload",
"button_text" => __( "Set As Logo", $themename ),
"std" => "",
"desc" => esc_html__("If you would like to use your own custom logo image click the Upload Image button.",$themename)
),
array( "name" => esc_html__("Favicon",$themename),
"id" => $shortname."_favicon",
"type" => "upload",
"button_text" => __( "Set As Favicon", $themename ),
"std" => "",
"desc" => esc_html__("If you would like to use your own custom favicon image click the Upload Image button.",$themename)
),
array( "name" => esc_html__("Fixed Navigation Bar",$themename),
"id" => $shortname."_fixed_nav",
"type" => "checkbox",
"std" => "on",
"desc" => esc_html__("By default the navigation bar stays on top of the screen at all times. We suggest to disable this option, if you need to use a logo taller than the default one.",$themename)
),
array( "type" => "clearfix",),
array( "name" => esc_html__("Grab the first post image",$themename),
"id" => $shortname."_grab_image",
"type" => "checkbox",
"std" => "false",
"desc" => esc_html__("By default thumbnail images are created using custom fields. However, if you would rather use the images that are already in your post for your thumbnail (and bypass using custom fields) you can activate this option. Once activcated thumbnail images will be generated automatically using the first image in your post. The image must be hosted on your own server.",$themename)
),
array( "name" => esc_html__("Blog Style Mode",$themename),
"id" => $shortname."_blog_style",
"type" => "checkbox2",
"std" => "false",
"desc" => esc_html__("By default the theme truncates your posts on index/homepages automatically to create post previews. If you would rather show your posts in full on index pages like a traditional blog then you can activate this feature.",$themename),
),
array( "type" => "clearfix",),
array( "name" => esc_html__( "Shop Page & Category Page Layout for WooCommerce", $themename ),
"id" => $shortname . "_shop_page_sidebar",
"type" => "select",
"options" => array(
'et_right_sidebar' => __( 'Right Sidebar', $themename ),
'et_left_sidebar' => __( 'Left Sidebar', $themename ),
'et_full_width_page' => __( 'Full Width', $themename ),
),
"std" => 'et_right_sidebar',
"desc" => esc_html__( "Here you can choose Shop Page & Category Page Layout for WooCommerce.", $themename ),
'et_save_values' => true,
),
array( "name" => __( "MailChimp API Key", $themename ),
"id" => $shortname . "_mailchimp_api_key",
"std" => "",
"type" => "text",
"validation_type" => "nohtml",
"desc" => sprintf( __( 'Enter your MailChimp API key. You can create an api key <a target="_blank" href="%1$s">here</a>', $themename ), 'https://us3.admin.mailchimp.com/account/api/' ),
),
array( "name" => __( "Aweber Authorization", $themename ),
"type" => "callback_function",
"desc" => __( 'Authorize your Aweber account here.', $themename ),
"function_name" => 'et_aweber_authorization_option',
),
array( "name" => __( "Regenerate MailChimp Lists", $themename ),
"id" => $shortname."_regenerate_mailchimp_lists",
"type" => "checkbox",
"std" => "false",
"desc" => __( "By default, MailChimp lists are cached for one day. If you added new list, but it doesn't appear within the Email Optin module settings, activate this option. Don't forget to disable it once the list has been regenerated.",$themename ) ),
array( "name" => __( "Regenerate Aweber Lists", $themename ),
"id" => $shortname."_regenerate_aweber_lists",
"type" => "checkbox2",
"std" => "false",
"desc" => __( "By default, Aweber lists are cached for one day. If you added new list, but it doesn't appear within the Email Optin module settings, activate this option. Don't forget to disable it once the list has been regenerated.", $themename ) ),
array( "type" => "clearfix",),
array( "name" => __( "Show Facebook Icon", $themename ),
"id" => $shortname."_show_facebook_icon",
"type" => "checkbox",
"std" => "on",
"desc" => __( "Here you can choose to display the Facebook Icon on your homepage. ", $themename ) ),
array( "name" => __( "Show Twitter Icon", $themename ),
"id" => $shortname."_show_twitter_icon",
"type" => "checkbox2",
"std" => "on",
"desc" => __( "Here you can choose to display the Twitter Icon. ", $themename ) ),
array( "type" => "clearfix",),
array( "name" => __( "Show Google+ Icon", $themename ),
"id" => $shortname."_show_google_icon",
"type" => "checkbox",
"std" => "on",
"desc" => __( "Here you can choose to display the Google+ Icon on your homepage. ", $themename ) ),
array( "name" => __( "Show RSS Icon", $themename ),
"id" => $shortname."_show_rss_icon",
"type" => "checkbox2",
"std" => "on",
"desc" => __( "Here you can choose to display the RSS Icon. ", $themename ) ),
array( "type" => "clearfix",),
array( "name" => __( "Facebook Profile Url", $themename ),
"id" => $shortname."_facebook_url",
"std" => "#",
"type" => "text",
"validation_type" => "url",
"desc" => __( "Enter the URL of your Facebook Profile. ", $themename ) ),
array( "name" => __( "Twitter Profile Url", $themename ),
"id" => $shortname."_twitter_url",
"std" => "#",
"type" => "text",
"validation_type" => "url",
"desc" => __( "Enter the URL of your Twitter Profile.", $themename ) ),
array( "name" => __( "Google+ Profile Url", $themename ),
"id" => $shortname."_google_url",
"std" => "#",
"type" => "text",
"validation_type" => "url",
"desc" => __( "Enter the URL of your Google+ Profile. ", $themename ) ),
array( "name" => __( "RSS Icon Url", $themename ),
"id" => $shortname."_rss_url",
"std" => "",
"type" => "text",
"validation_type" => "url",
"desc" => __( "Enter the URL of your RSS feed. ", $themename ) ),
array( "name" => esc_html__("Number of Posts displayed on Category page",$themename),
"id" => $shortname."_catnum_posts",
"std" => "6",
"type" => "text",
"desc" => esc_html__("Here you can designate how many recent articles are displayed on the Category page. This option works independently from the Settings > Reading options in wp-admin.",$themename),
"validation_type" => "number"
),
array( "name" => esc_html__("Number of Posts displayed on Archive pages",$themename),
"id" => $shortname."_archivenum_posts",
"std" => "5",
"type" => "text",
"desc" => esc_html__("Here you can designate how many recent articles are displayed on the Archive pages. This option works independently from the Settings > Reading options in wp-admin.",$themename),
"validation_type" => "number"
),
array( "name" => esc_html__("Number of Posts displayed on Search pages",$themename),
"id" => $shortname."_searchnum_posts",
"std" => "5",
"type" => "text",
"desc" => esc_html__("Here you can designate how many recent articles are displayed on the Search results pages. This option works independently from the Settings > Reading options in wp-admin.",$themename),
"validation_type" => "number"
),
array( "name" => esc_html__("Number of Posts displayed on Tag pages",$themename),
"id" => $shortname."_tagnum_posts",
"std" => "5",
"type" => "text",
"desc" => esc_html__("Here you can designate how many recent articles are displayed on the Tag pages. This option works independently from the Settings > Reading options in wp-admin.",$themename),
"validation_type" => "number"
),
array( "name" => esc_html__("Date format",$themename),
"id" => $shortname."_date_format",
"std" => "M j, Y",
"type" => "text",
"desc" => __("This option allows you to change how your dates are displayed. For more information please refer to the WordPress codex here:<a href='http://codex.wordpress.org/Formatting_Date_and_Time' target='_blank'>Formatting Date and Time</a>",$themename),
"validation_type" => "date_format"
),
array( "type" => "clearfix",),
array( "name" => esc_html__("Use excerpts when defined",$themename),
"id" => $shortname."_use_excerpt",
"type" => "checkbox",
"std" => "false",
"desc" => esc_html__("This will enable the use of excerpts in posts or pages.",$themename)
),
array( "name" => esc_html__("Responsive shortcodes",$themename),
"id" => $shortname."_responsive_shortcodes",
"type" => "checkbox2",
"std" => "on",
"desc" => esc_html__("Enable this option to make shortcodes respond to various screen sizes",$themename)
),
array( "type" => "clearfix",),
array( "name" => esc_html__("Google Fonts subsets",$themename),
"id" => $shortname."_gf_enable_all_character_sets",
"type" => "checkbox",
"std" => "false",
"desc" => esc_html__("This will enable Google Fonts for Non-English languages.",$themename)
),
array( "name" => esc_html__("Back To Top Button",$themename),
"id" => $shortname."_back_to_top",
"type" => "checkbox",
"std" => "false",
"desc" => esc_html__("Enable this option to display Back To Top Button while scrolling",$themename)
),
array( "name" => esc_html__( "Smooth Scrolling", $themename ),
"id" => $shortname . "_smooth_scroll",
"type" => "checkbox2",
"std" => "false",
"desc" => esc_html__( "Enable this option to get the smooth scrolling effect with mouse wheel", $themename )
),
array( "type" => "clearfix",),
array( "name" => esc_html__( "Custom CSS", $themename ),
"id" => $shortname . "_custom_css",
"type" => "textarea",
"std" => "",
"desc" => esc_html__( "Here you can add custom css to override or extend default styles.", $themename ),
"validation_type" => "nohtml"
),
array( "name" => "general-1",
"type" => "subcontent-end",),
array( "name" => "wrap-general",
"type" => "contenttab-wrapend",),
//-------------------------------------------------------------------------------------//
array( "name" => "wrap-navigation",
"type" => "contenttab-wrapstart",),
array( "type" => "subnavtab-start",),
array( "name" => "navigation-1",
"type" => "subnav-tab",
"desc" => esc_html__("Pages",$themename)
),
array( "name" => "navigation-2",
"type" => "subnav-tab",
"desc" => esc_html__("Categories",$themename)
),
array( "name" => "navigation-3",
"type" => "subnav-tab",
"desc" => esc_html__("General Settings",$themename)
),
array( "type" => "subnavtab-end",),
array( "name" => "navigation-1",
"type" => "subcontent-start",),
array( "name" => esc_html__("Exclude pages from the navigation bar",$themename),
"id" => $shortname."_menupages",
"type" => "checkboxes",
"std" => "",
"desc" => esc_html__("Here you can choose to remove certain pages from the navigation menu. All pages marked with an X will not appear in your navigation bar. ",$themename),
"usefor" => "pages",
"options" => $pages_ids),
array( "name" => esc_html__("Show dropdown menus",$themename),
"id" => $shortname."_enable_dropdowns",
"type" => "checkbox",
"std" => "on",
"desc" => esc_html__("If you would like to remove the dropdown menus from the pages navigation bar disable this feature.",$themename)
),
array( "name" => esc_html__("Display Home link",$themename),
"id" => $shortname."_home_link",
"type" => "checkbox2",
"std" => "on",
"desc" => esc_html__("By default the theme creates a Home link that, when clicked, leads back to your blog's homepage. If, however, you are using a static homepage and have already created a page called Home to use, this will result in a duplicate link. In this case you should disable this feature to remove the link.",$themename)
),
array( "type" => "clearfix",),
array( "name" => esc_html__("Sort Pages Links",$themename),
"id" => $shortname."_sort_pages",
"type" => "select",
"std" => "post_title",
"desc" => esc_html__("Here you can choose to sort your pages links.",$themename),
"options" => array("post_title", "menu_order","post_date","post_modified","ID","post_author","post_name")),
array( "name" => esc_html__("Order Pages Links by Ascending/Descending",$themename),
"id" => $shortname."_order_page",
"type" => "select",
"std" => "asc",
"desc" => esc_html__("Here you can choose to reverse the order that your pages links are displayed. You can choose between ascending and descending.",$themename),
"options" => array("asc", "desc")),
array( "name" => esc_html__("Number of dropdown tiers shown",$themename),
"id" => $shortname."_tiers_shown_pages",
"type" => "text",
"std" => "3",
"desc" => esc_html__("This options allows you to control how many teirs your pages dropdown menu has. Increasing the number allows for additional menu items to be shown.",$themename),
"validation_type" => "number"
),
array( "type" => "clearfix",),
array( "name" => "navigation-1",
"type" => "subcontent-end",),
array( "name" => "navigation-2",
"type" => "subcontent-start",),
array( "name" => esc_html__("Exclude categories from the navigation bar",$themename),
"id" => $shortname."_menucats",
"type" => "checkboxes",
"std" => "",
"desc" => esc_html__("Here you can choose to remove certain categories from the navigation menu. All categories marked with an X will not appear in your navigation bar. ",$themename),
"usefor" => "categories",
"options" => $cats_ids),
array( "name" => esc_html__("Show dropdown menus",$themename),
"id" => $shortname."_enable_dropdowns_categories",
"type" => "checkbox",
"std" => "on",
"desc" => esc_html__("If you would like to remove the dropdown menus from the categories navigation bar disable this feature.",$themename)
),
array( "name" => esc_html__("Hide empty categories",$themename),
"id" => $shortname."_categories_empty",
"type" => "checkbox",
"std" => "on",
"desc" => esc_html__("If you would like categories to be displayed in your navigationbar that don't have any posts in them then disable this option. By default empty categories are hidden",$themename)
),
array( "type" => "clearfix",),
array( "name" => esc_html__("Number of dropdown tiers shown",$themename),
"id" => $shortname."_tiers_shown_categories",
"type" => "text",
"std" => "3",
"desc" => esc_html__("This options allows you to control how many teirs your pages dropdown menu has. Increasing the number allows for additional menu items to be shown.",$themename),
"validation_type" => "number"
),
array( "type" => "clearfix",),
array( "name" => esc_html__("Sort Categories Links by Name/ID/Slug/Count/Term Group",$themename),
"id" => $shortname."_sort_cat",
"type" => "select",
"std" => "name",
"desc" => esc_html__("By default pages are sorted by name. However if you would rather have them sorted by ID you can adjust this setting.",$themename),
"options" => array("name", "ID", "slug", "count", "term_group")),
array( "name" => esc_html__("Order Category Links by Ascending/Descending",$themename),
"id" => $shortname."_order_cat",
"type" => "select",
"std" => "asc",
"desc" => esc_html__("Here you can choose to reverse the order that your categories links are displayed. You can choose between ascending and descending.",$themename),
"options" => array("asc", "desc")),
array( "name" => "navigation-2",
"type" => "subcontent-end",),
array( "name" => "navigation-3",
"type" => "subcontent-start",),
array( "name" => esc_html__("Disable top tier dropdown menu links",$themename),
"id" => $shortname."_disable_toptier",
"type" => "checkbox2",
"std" => "false",
"desc" => esc_html__("In some cases users will want to create parent categories or links as placeholders to hold a list of child links or categories. In this case it is not desirable to have the parent links lead anywhere, but instead merely serve an organizational function. Enabling this options will remove the links from all parent pages/categories so that they don't lead anywhere when clicked.",$themename)
),
array( "type" => "clearfix",),
array( "name" => "navigation-3",
"type" => "subcontent-end",),
array( "name" => "wrap-navigation",
"type" => "contenttab-wrapend",),
//-------------------------------------------------------------------------------------//
array( "name" => "wrap-layout",
"type" => "contenttab-wrapstart",),
array( "type" => "subnavtab-start",),
array( "name" => "layout-1",
"type" => "subnav-tab",
"desc" => esc_html__("Single Post Layout",$themename)
),
array( "name" => "layout-2",
"type" => "subnav-tab",
"desc" => esc_html__("Single Page Layout",$themename)
),
array( "name" => "layout-3",
"type" => "subnav-tab",
"desc" => esc_html__("General Settings",$themename)
),
array( "type" => "subnavtab-end",),
array( "name" => "layout-1",
"type" => "subcontent-start",),
array( "name" => esc_html__("Choose which items to display in the postinfo section",$themename),
"id" => $shortname."_postinfo2",
"type" => "different_checkboxes",
"std" => array("author","date","categories","comments"),
"desc" => esc_html__("Here you can choose which items appear in the postinfo section on single post pages. This is the area, usually below the post title, which displays basic information about your post. The highlighted itmes shown below will appear. ",$themename),
"options" => array("author","date","categories","comments")),
array(
"name" => esc_html__("Show comments on posts",$themename),
"id" => $shortname."_show_postcomments",
"type" => "checkbox",
"std" => "on",
"desc" => esc_html__("You can disable this option if you want to remove the comments and comment form from single post pages. ",$themename)
),
array( "name" => esc_html__("Place Thumbs on Posts",$themename),
"id" => $shortname."_thumbnails",
"type" => "checkbox2",
"std" => "on",
"desc" => esc_html__("By default thumbnails are placed at the beginning of your post on single post pages. If you would like to remove this initial thumbnail image to avoid repetition simply disable this option. ",$themename)
),
array( "type" => "clearfix",),
array( "name" => "layout-1",
"type" => "subcontent-end",),
array( "name" => "layout-2",
"type" => "subcontent-start",),
array( "name" => esc_html__("Place Thumbs on Pages",$themename),
"id" => $shortname."_page_thumbnails",
"type" => "checkbox",
"std" => "false",
"desc" => esc_html__("By default thumbnails are not placed on pages (they are only used on posts). However, if you want to use thumbnails on pages you can! Just enable this option. ",$themename)
),
array( "name" => esc_html__("Show comments on pages",$themename),
"id" => $shortname."_show_pagescomments",
"type" => "checkbox2",
"std" => "false",
"desc" => esc_html__("By default comments are not placed on pages, however, if you would like to allow people to comment on your pages simply enable this option. ",$themename)
),
array( "type" => "clearfix",),
array( "name" => "layout-2",
"type" => "subcontent-end",),
array( "name" => "layout-3",
"type" => "subcontent-start",),
array( "name" => esc_html__("Post info section",$themename),
"id" => $shortname."_postinfo1",
"type" => "different_checkboxes",
"std" => array("author","date","categories"),
"desc" => esc_html__("Here you can choose which items appear in the postinfo section on pages. This is the area, usually below the post title, which displays basic information about your post. The highlighted itmes shown below will appear. ",$themename),
"options" => array("author","date","categories","comments")),
array( "type" => "clearfix",),
array( "name" => esc_html__("Show Thumbs on Index pages",$themename),
"id" => $shortname."_thumbnails_index",
"type" => "checkbox",
"std" => "on",
"desc" => esc_html__("Enable this option to show thumbnails on Index Pages.",$themename)
),
array( "type" => "clearfix",),
array( "name" => "layout-3",
"type" => "subcontent-end",),
array( "name" => "wrap-layout",
"type" => "contenttab-wrapend",),
//-------------------------------------------------------------------------------------//
array( "name" => "wrap-seo",
"type" => "contenttab-wrapstart",),
array( "type" => "subnavtab-start",),
array( "name" => "seo-1",
"type" => "subnav-tab",
"desc" => esc_html__("Homepage SEO",$themename)
),
array( "name" => "seo-2",
"type" => "subnav-tab",
"desc" => esc_html__("Single Post Page SEO",$themename)
),
array( "name" => "seo-3",
"type" => "subnav-tab",
"desc" => esc_html__("Index Page SEO",$themename)
),
array( "type" => "subnavtab-end",),
array( "name" => "seo-1",
"type" => "subcontent-start",),
array( "name" => esc_html__(" Enable custom title ",$themename),
"id" => $shortname."_seo_home_title",
"type" => "checkbox",
"std" => "false",
"desc" => esc_html__("By default the theme uses a combination of your blog name and your blog description, as defined when you created your blog, to create your homepage titles. However if you want to create a custom title then simply enable this option and fill in the custom title field below. ",$themename)
),
array( "name" => esc_html__(" Enable meta description",$themename),
"id" => $shortname."_seo_home_description",
"type" => "checkbox",
"std" => "false",
"desc" => esc_html__("By default the theme uses your blog description, as defined when you created your blog, to fill in the meta description field. If you would like to use a different description then enable this option and fill in the custom description field below. ",$themename)
),
array( "name" => esc_html__(" Enable meta keywords",$themename),
"id" => $shortname."_seo_home_keywords",
"type" => "checkbox",
"std" => "false",
"desc" => esc_html__("By default the theme does not add keywords to your header. Most search engines don't use keywords to rank your site anymore, but some people define them anyway just in case. If you want to add meta keywords to your header then enable this option and fill in the custom keywords field below. ",$themename)
),
array( "name" => esc_html__(" Enable canonical URL's",$themename),
"id" => $shortname."_seo_home_canonical",
"type" => "checkbox",
"std" => "false",
"desc" => esc_html__("Canonicalization helps to prevent the indexing of duplicate content by search engines, and as a result, may help avoid duplicate content penalties and pagerank degradation. Some pages may have different URLs all leading to the same place. For example domain.com, domain.com/index.html, and www.domain.com are all different URLs leading to your homepage. From a search engine's perspective these duplicate URLs, which also occur often due to custom permalinks, may be treated individually instead of as a single destination. Defining a canonical URL tells the search engine which URL you would like to use officially. The theme bases its canonical URLs off your permalinks and the domain name defined in the settings tab of wp-admin.",$themename)
),
array( "type" => "clearfix",),
array( "name" => esc_html__("Homepage custom title (if enabled)",$themename),
"id" => $shortname."_seo_home_titletext",
"type" => "text",
"std" => "",
"desc" => esc_html__("If you have enabled custom titles you can add your custom title here. Whatever you type here will be placed between the < title >< /title > tags in header.php",$themename),
"validation_type" => "nohtml"
),
array( "name" => esc_html__("Homepage meta description (if enabled)",$themename),
"id" => $shortname."_seo_home_descriptiontext",
"type" => "textarea",
"std" => "",
"desc" => esc_html__("If you have enabled meta descriptions you can add your custom description here.",$themename),
"validation_type" => "nohtml"
),
array( "name" => esc_html__("Homepage meta keywords (if enabled)",$themename),
"id" => $shortname."_seo_home_keywordstext",
"type" => "text",
"std" => "",
"desc" => esc_html__("If you have enabled meta keywords you can add your custom keywords here. Keywords should be separated by comas. For example: wordpress,themes,templates,elegant",$themename),
"validation_type" => "nohtml"
),
array( "name" => esc_html__("If custom titles are disabled, choose autogeneration method",$themename),
"id" => $shortname."_seo_home_type",
"type" => "select",
"std" => "BlogName | Blog description",
"options" => array("BlogName | Blog description", "Blog description | BlogName", "BlogName only"),
"desc" => esc_html__("If you are not using cutsom post titles you can still have control over how your titles are generated. Here you can choose which order you would like your post title and blog name to be displayed, or you can remove the blog name from the title completely.",$themename)
),
array( "name" => esc_html__("Define a character to separate BlogName and Post title",$themename),
"id" => $shortname."_seo_home_separate",
"type" => "text",
"std" => " | ",
"desc" => esc_html__("Here you can change which character separates your blog title and post name when using autogenerated post titles. Common values are | or -",$themename),
"validation_type" => "nohtml"
),
array( "name" => "seo-1",
"type" => "subcontent-end",),
array( "name" => "seo-2",
"type" => "subcontent-start",),
array( "name" => esc_html__("Enable custom titles",$themename),
"id" => $shortname."_seo_single_title",
"type" => "checkbox",
"std" => "false",
"desc" => esc_html__("By default the theme creates post titles based on the title of your post and your blog name. If you would like to make your meta title different than your actual post title you can define a custom title for each post using custom fields. This option must be enabled for custom titles to work, and you must choose a custom field name for your title below.",$themename)
),
array( "name" => esc_html__("Enable custom description",$themename),
"id" => $shortname."_seo_single_description",
"type" => "checkbox2",
"std" => "false",
"desc" => esc_html__("If you would like to add a meta description to your post you can do so using custom fields. This option must be enabled for descriptions to be displayed on post pages. You can add your meta description using custom fields based off the custom field name you define below.",$themename)
),
array( "type" => "clearfix",),
array( "name" => esc_html__("Enable custom keywords",$themename),
"id" => $shortname."_seo_single_keywords",
"type" => "checkbox",
"std" => "false",
"desc" => esc_html__("If you would like to add meta keywords to your post you can do so using custom fields. This option must be enabled for keywords to be displayed on post pages. You can add your meta keywords using custom fields based off the custom field name you define below.",$themename)
),
array( "name" => esc_html__("Enable canonical URL's",$themename),
"id" => $shortname."_seo_single_canonical",
"type" => "checkbox2",
"std" => "false",
"desc" => esc_html__("Canonicalization helps to prevent the indexing of duplicate content by search engines, and as a result, may help avoid duplicate content penalties and pagerank degradation. Some pages may have different URLs all leading to the same place. For example domain.com, domain.com/index.html, and www.domain.com are all different URLs leading to your homepage. From a search engine's perspective these duplicate URLs, which also occur often due to custom permalinks, may be treated individually instead of as a single destination. Defining a canonical URL tells the search engine which URL you would like to use officially. The theme bases its canonical URLs off your permalinks and the domain name defined in the settings tab of wp-admin.",$themename)
),
array( "type" => "clearfix",),
array( "name" => esc_html__("Custom field Name to be used for title",$themename),
"id" => $shortname."_seo_single_field_title",
"type" => "text",
"std" => "seo_title",
"desc" => esc_html__("When you define your title using custom fields you should use this value for the custom field Name. The Value of your custom field should be the custom title you would like to use.",$themename),
"validation_type" => "nohtml"
),
array( "name" => esc_html__("Custom field Name to be used for description",$themename),
"id" => $shortname."_seo_single_field_description",
"type" => "text",
"std" => "seo_description",
"desc" => esc_html__("When you define your meta description using custom fields you should use this value for the custom field Name. The Value of your custom field should be the custom description you would like to use.",$themename),
"validation_type" => "nohtml"
),
array( "name" => esc_html__("Custom field Name to be used for keywords",$themename),
"id" => $shortname."_seo_single_field_keywords",
"type" => "text",
"std" => "seo_keywords",
"desc" => esc_html__("When you define your keywords using custom fields you should use this value for the custom field Name. The Value of your custom field should be the meta keywords you would like to use, separated by comas.",$themename),
"validation_type" => "nohtml"
),
array( "name" => esc_html__("If custom titles are disabled, choose autogeneration method",$themename),
"id" => $shortname."_seo_single_type",
"type" => "select",
"std" => "Post title | BlogName",
"options" => array("Post title | BlogName", "BlogName | Post title", "Post title only"),
"desc" => esc_html__("If you are not using cutsom post titles you can still have control over hw your titles are generated. Here you can choose which order you would like your post title and blog name to be displayed, or you can remove the blog name from the title completely.",$themename)
),
array( "name" => esc_html__("Define a character to separate BlogName and Post title",$themename),
"id" => $shortname."_seo_single_separate",
"type" => "text",
"std" => " | ",
"desc" => esc_html__("Here you can change which character separates your blog title and post name when using autogenerated post titles. Common values are | or -",$themename),
"validation_type" => "nohtml"
),
array( "name" => "seo-2",
"type" => "subcontent-end",),
array( "name" => "seo-3",
"type" => "subcontent-start",),
array( "name" => esc_html__(" Enable canonical URL's",$themename),
"id" => $shortname."_seo_index_canonical",
"type" => "checkbox",
"std" => "false",
"desc" => esc_html__("Canonicalization helps to prevent the indexing of duplicate content by search engines, and as a result, may help avoid duplicate content penalties and pagerank degradation. Some pages may have different URLs all leading to the same place. For example domain.com, domain.com/index.html, and www.domain.com are all different URLs leading to your homepage. From a search engine's perspective these duplicate URLs, which also occur often due to custom permalinks, may be treated individually instead of as a single destination. Defining a canonical URL tells the search engine which URL you would like to use officially. The theme bases its canonical URLs off your permalinks and the domain name defined in the settings tab of wp-admin.",$themename)
),
array( "name" => esc_html__("Enable meta descriptions",$themename),
"id" => $shortname."_seo_index_description",
"type" => "checkbox2",
"std" => "false",
"desc" => esc_html__("Check this box if you want to display meta descriptions on category/archive pages. The description is based off the category description you choose when creating/edit your category in wp-admin.",$themename)
),
array( "type" => "clearfix",),
array( "name" => esc_html__("Choose title autogeneration method",$themename),
"id" => $shortname."_seo_index_type",
"type" => "select",
"std" => "Category name | BlogName",
"options" => array("Category name | BlogName", "BlogName | Category name", "Category name only"),
"desc" => esc_html__("Here you can choose how your titles on index pages are generated. You can change which order your blog name and index title are displayed, or you can remove the blog name from the title completely.",$themename)
),
array( "name" => esc_html__("Define a character to separate BlogName and Post title",$themename),
"id" => $shortname."_seo_index_separate",
"type" => "text",
"std" => " | ",
"desc" => esc_html__("Here you can change which character separates your blog title and index page name when using autogenerated post titles. Common values are | or -",$themename),
"validation_type" => "nohtml"
),
array( "type" => "clearfix",),
array( "name" => "seo-3",
"type" => "subcontent-end",),
array( "name" => "wrap-seo",
"type" => "contenttab-wrapend",),
//-------------------------------------------------------------------------------------//
array( "name" => "wrap-integration",
"type" => "contenttab-wrapstart",),
array( "type" => "subnavtab-start",),
array( "name" => "integration-1",
"type" => "subnav-tab",
"desc" => esc_html__("Code Integration",$themename)
),
array( "type" => "subnavtab-end",),
array( "name" => "integration-1",
"type" => "subcontent-start",),
array( "name" => esc_html__("Enable header code",$themename),
"id" => $shortname."_integrate_header_enable",
"type" => "checkbox",
"std" => "on",
"desc" => esc_html__("Disabling this option will remove the header code below from your blog. This allows you to remove the code while saving it for later use.",$themename)
),
array( "name" => esc_html__("Enable body code",$themename),
"id" => $shortname."_integrate_body_enable",
"type" => "checkbox2",
"std" => "on",
"desc" => esc_html__("Disabling this option will remove the body code below from your blog. This allows you to remove the code while saving it for later use.",$themename)
),
array( "type" => "clearfix",),
array( "name" => esc_html__("Enable single top code",$themename),
"id" => $shortname."_integrate_singletop_enable",
"type" => "checkbox",
"std" => "on",
"desc" => esc_html__("Disabling this option will remove the single top code below from your blog. This allows you to remove the code while saving it for later use.",$themename)
),
array( "name" => esc_html__("Enable single bottom code",$themename),
"id" => $shortname."_integrate_singlebottom_enable",
"type" => "checkbox2",
"std" => "on",
"desc" => esc_html__("Disabling this option will remove the single bottom code below from your blog. This allows you to remove the code while saving it for later use.",$themename)
),
array( "type" => "clearfix",),
array( "name" => esc_html__("Add code to the < head > of your blog",$themename),
"id" => $shortname."_integration_head",
"type" => "textarea",
"std" => "",
"desc" => esc_html__("Any code you place here will appear in the head section of every page of your blog. This is useful when you need to add javascript or css to all pages.",$themename)
),
array( "name" => esc_html__("Add code to the < body > (good for tracking codes such as google analytics)",$themename),
"id" => $shortname."_integration_body",
"type" => "textarea",
"std" => "",
"desc" => esc_html__("Any code you place here will appear in body section of all pages of your blog. This is usefull if you need to input a tracking pixel for a state counter such as Google Analytics.",$themename)
),
array( "name" => esc_html__("Add code to the top of your posts",$themename),
"id" => $shortname."_integration_single_top",
"type" => "textarea",
"std" => "",
"desc" => esc_html__("Any code you place here will be placed at the top of all single posts. This is useful if you are looking to integrating things such as social bookmarking links.",$themename)
),
array( "name" => esc_html__("Add code to the bottom of your posts, before the comments",$themename),
"id" => $shortname."_integration_single_bottom",
"type" => "textarea",
"std" => "",
"desc" => esc_html__("Any code you place here will be placed at the top of all single posts. This is useful if you are looking to integrating things such as social bookmarking links.",$themename)
),
array( "name" => "integration-1",
"type" => "subcontent-end",),
array( "name" => "wrap-integration",
"type" => "contenttab-wrapend",),
//-------------------------------------------------------------------------------------//
array( "name" => "wrap-support",
"type" => "contenttab-wrapstart",),
array( "type" => "subnavtab-start",),
array( "name" => "support-1",
"type" => "subnav-tab",
"desc" => esc_html__("Documentation",$themename)
),
array( "type" => "subnavtab-end",),
array( "name" => "support-1",
"type" => "subcontent-start",),
array( "name" => "installation",
"type" => "support",),
array( "name" => "support-1",
"type" => "subcontent-end",),
array( "name" => "wrap-support",
"type" => "contenttab-wrapend",),
//-------------------------------------------------------------------------------------//
array( "name" => "wrap-advertisements",
"type" => "contenttab-wrapstart",),
array( "type" => "subnavtab-start",),
array( "name" => "advertisements-1",
"type" => "subnav-tab",
"desc" => esc_html__("Manage Un-widgetized Advertisements",$themename)
),
array( "type" => "subnavtab-end",),
array( "name" => "advertisements-1",
"type" => "subcontent-start",),
array( "name" => esc_html__("Enable Single Post 468x60 banner",$themename),
"id" => $shortname."_468_enable",
"type" => "checkbox2",
"std" => "false",
"desc" => esc_html__("Enabling this option will display a 468x60 banner ad on the bottom of your post pages below the single post content. If enabled you must fill in the banner image and destination url below.",$themename)
),
array( "type" => "clearfix",),
array( "name" => esc_html__("Input 468x60 advertisement banner image",$themename),
"id" => $shortname."_468_image",
"type" => "text",
"std" => "",
"desc" => esc_html__("Here you can provide 468x60 banner image url",$themename),
"validation_type" => "url"
),
array( "name" => esc_html__("Input 468x60 advertisement destination url",$themename),
"id" => $shortname."_468_url",
"type" => "text",
"std" => "",
"desc" => esc_html__("Here you can provide 468x60 banner destination url",$themename),
"validation_type" => "url"
),
array( "name" => esc_html__("Input 468x60 adsense code",$themename),
"id" => $shortname."_468_adsense",
"type" => "textarea",
"std" => "",
"desc" => esc_html__("Place your adsense code here.",$themename)
),
array( "name" => "advertisements-1",
"type" => "subcontent-end",),
array( "name" => "wrap-support",
"type" => "contenttab-wrapend",),
//-------------------------------------------------------------------------------------//
);

View File

@@ -0,0 +1,27 @@
<?php
add_theme_support( 'post-thumbnails' );
global $et_theme_image_sizes;
$et_theme_image_sizes = array(
'400x250' => 'et-pb-post-main-image',
'1080x675' => 'et-pb-post-main-image-fullwidth',
'400x284' => 'et-pb-portfolio-image',
'1080x9999' => 'et-pb-portfolio-image-single',
);
$et_theme_image_sizes = apply_filters( 'et_theme_image_sizes', $et_theme_image_sizes );
$crop = apply_filters( 'et_post_thumbnails_crop', true );
if ( is_array( $et_theme_image_sizes ) ){
foreach ( $et_theme_image_sizes as $image_size_dimensions => $image_size_name ){
$dimensions = explode( 'x', $image_size_dimensions );
if ( in_array( $image_size_name, array( 'et-pb-portfolio-image-single' ) ) )
$crop = false;
add_image_size( $image_size_name, $dimensions[0], $dimensions[1], $crop );
$crop = apply_filters( 'et_post_thumbnails_crop', true );
}
}

View File

@@ -0,0 +1,284 @@
/*------------------------------------------------*/
/*-------------------[SHORTCODES]-----------------*/
/*------------------------------------------------*/
.et-box { margin: 0px 0px 10px; -moz-box-shadow: 0 1px 1px rgba(0,0,0,0.1); -webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.1); box-shadow: 0 1px 1px rgba(0,0,0,0.1); font-size: 14px; position: relative; }
.et-box-content { text-shadow: 1px 1px 1px #ffffff; padding: 27px 43px 17px 66px; min-height: 35px; }
.et-box-content strong { color: #000000; font-weight: bold; }
.et-warning:before, .et-download:before, .et-info:before, .et-bio:before, .et-shadow:before { content: ''; position: absolute; top: 32px; left: 28px; }
.et-info { border: 1px solid #e2e2ba; }
.et-info:before { width: 22px; height: 20px; background: url(../images/shortcodes-sprite.png) no-repeat -97px -2px; }
.et-info .et-box-content { color: #ada771; background: #f9f9dc; border: 1px solid #fbfbef; -moz-box-shadow: inset 0 0 45px #efefc0; -webkit-box-shadow: inset 0 0 45px #efefc0; box-shadow: inset 0 0 45px #efefc0; }
.et-info .et-box-content h1, .et-info .et-box-content h2, .et-info .et-box-content h3, .et-info .et-box-content h4, .et-info .et-box-content h5, .et-info .et-box-content h6 { color: #ada771; }
.et-warning { border: 1px solid #e0b1b1; }
.et-warning:before { width: 17px; height: 17px; background: url(../images/shortcodes-sprite.png) no-repeat -75px -41px; }
.et-warning .et-box-content { color: #ad7676; background: #ffd9d5; border: 1px solid #fceeec; -moz-box-shadow: inset 0 0 45px #f0bfba; -webkit-box-shadow: inset 0 0 45px #f0bfba; box-shadow: inset 0 0 45px #f0bfba; }
.et-warning .et-box-content h1, .et-warning .et-box-content h2, .et-warning .et-box-content h3, .et-warning .et-box-content h4, .et-warning .et-box-content h5, .et-warning .et-box-content h6 { color: #ad7676; }
.et-download { border: 1px solid #b9dbb6; }
.et-download:before { width: 19px; height: 14px; background: url(../images/shortcodes-sprite.png) no-repeat -23px -19px; }
.et-download .et-box-content { color: #7ea57b; background: #dff7dd; border: 1px solid #f1f9f0; -moz-box-shadow: inset 0 0 45px #cbe5c9; -webkit-box-shadow: inset 0 0 45px #cbe5c9; box-shadow: inset 0 0 45px #cbe5c9; }
.et-download .et-box-content h1, .et-download .et-box-content h2, .et-download .et-box-content h3, .et-download .et-box-content h4, .et-download .et-box-content h5, .et-download .et-box-content h6 { color: #7ea57b; }
.et-bio { border: 1px solid #b3d8d3; }
.et-bio:before { width: 19px; height: 15px; background: url(../images/shortcodes-sprite.png) no-repeat -23px -2px; top: 33px; }
.et-bio .et-box-content { color: #80acb0; background: #ddf5f7; border: 1px solid #f1fafb; -moz-box-shadow: inset 0 0 45px #c6edf0; -webkit-box-shadow: inset 0 0 45px #c6edf0; box-shadow: inset 0 0 45px #c6edf0; }
.et-bio .et-box-content h1, .et-bio .et-box-content h2, .et-bio .et-box-content h3, .et-bio .et-box-content h4, .et-bio .et-box-content h5, .et-bio .et-box-content h6 { color: #80acb0; }
.et-shadow { border: 1px solid #ddd; }
.et-shadow .et-box-content { color: #737373; background: #fafafa; border: 1px solid #fafafa; -moz-box-shadow: inset 0 0 45px #e7e7e7; -webkit-box-shadow: inset 0 0 45px #e7e7e7; box-shadow: inset 0 0 45px #e7e7e7; }
.et-shadow .et-box-content h1, .et-shadow .et-box-content h2, .et-shadow .et-box-content h3, .et-shadow .et-box-content h4, .et-shadow .et-box-content h5, .et-shadow .et-box-content h6 { color: #737373; }
.et-tooltip { position: relative; }
.et-tooltip-box { display: none; color: #6d6e6e; line-height: 18px; background: #ffffff; border: 1px solid #dbdbdb; border-radius: 10px; -moz-border-radius: 10px; -webkit-border-radius: 10px; position: absolute; bottom:35px; left: -94px; width: 235px; padding: 20px 25px 22px 25px; -moz-box-shadow:1px 1px 5px 1px rgba(0, 0, 0, 0.1); -webkit-box-shadow: 1px 1px 5px 1px rgba(0, 0, 0, 0.1); box-shadow: 1px 1px 5px 1px rgba(0, 0, 0, 0.1); }
.et-tooltip-arrow { background: url(../images/shortcodes-sprite.png) no-repeat -120px -2px; width: 24px; height: 13px; display: block; position: absolute; bottom: -13px; left: 129px; }
.et-learn-more { background: #fff; border: 1px solid #e7e7e7; margin: 10px 0px; -moz-box-shadow: 1px -1px 0 0 #fff; -webkit-box-shadow: 1px -1px 0 0 #fff; box-shadow: 1px -1px 0 0 #fff; }
.et-learn-more h3.heading-more { cursor: pointer; padding: 16px 50px 16px 22px; font-size: 14px; color: #999; letter-spacing: 0px; text-shadow: 1px 1px 0 #fff; position: relative; border-left: 1px solid #fff; border-top: 1px solid #fff; margin: 0 !important; }
.et-learn-more h3.heading-more span.et_learnmore_arrow { display: block; position: absolute; top: 0; right: 0; width: 48px; height: 100%; border-left: 1px solid #fff; -moz-box-shadow: -1px 0 0 0 #e7e7e7; -webkit-box-shadow: -1px 0 0 0 #e7e7e7; box-shadow: -1px 0 0 0 #e7e7e7; }
.et-learn-more span.et_learnmore_arrow span { display: block; position: absolute; top: 50%; left: 50%; margin-top: -5px; margin-left: -6px; width: 13px; height: 10px; background: url(../images/shortcodes-sprite.png) no-repeat -58px -2px; }
.et-learn-more .open span.et_learnmore_arrow span { background-position: -58px -14px; }
.et-learn-more .learn-more-content { padding: 30px 30px 20px; visibility: hidden; border-top: 1px solid #e7e7e7; }
.et_slidecontent .et-learn-more .learn-more-content { display: block; visibility: hidden; }
.et-open .learn-more-content { display: block; visibility: visible !important; }
.et_shortcodes_controller_nav { border-top: 1px solid #e7e7e7; -moz-box-shadow: inset 1px 1px 0 0 #fff; -webkit-box-shadow: inset 1px 1px 0 0 #fff; box-shadow: inset 1px 1px 0 0 #fff; min-height: 53px; position: relative; }
.et_shortcodes_controls_arrows, .et_shortcodes_controls { list-style: none !important; margin: 0 !important; padding: 0 !important; line-height: 26px !important; }
.et_shortcodes_controls { text-align: center; padding-top: 20px !important; line-height: 0 !important; }
.et_shortcodes_controls li { display: inline-block; margin: 0 3px; }
.et_shortcodes_controls a { background: url(../images/shortcodes-sprite.png) no-repeat -45px -1px; width: 11px; height: 11px; display: inline-block; }
.et_shortcodes_controls .et_shortcodes_active_control a { background-position: -45px -14px; }
.et_shortcodes_controls_arrows a { font-size: 14px; color: #999 !important; text-shadow: 1px 1px 0 #fff; position: absolute; top: 0; }
.et_shortcodes_controls_arrows a:hover { color: #4c4c4c; text-decoration: none; }
.et_shortcodes_controls_arrows .et_sc_nav_prev { padding: 14px 38px 12px 48px; border-right: 1px solid #e7e7e7; -moz-box-shadow: 1px 0 0 0 #fff; -webkit-box-shadow: 1px 0 0 0 #fff; box-shadow: 1px 0 0 0 #fff; left: 0; }
.et_shortcodes_controls_arrows .et_sc_nav_next { padding: 14px 48px 12px 38px; border-left: 1px solid #fff; -moz-box-shadow: -1px 0 0 0 #e7e7e7; -webkit-box-shadow: -1px 0 0 0 #e7e7e7; box-shadow: -1px 0 0 0 #e7e7e7; right: 0; }
.et_shortcodes_controls_arrows .et_sc_nav_next span, .et_shortcodes_controls_arrows .et_sc_nav_prev span { top: 21px; }
.et_shortcodes_controls_arrows .et_sc_nav_next span { right: 30px; }
.et_shortcodes_controls_arrows .et_sc_nav_prev span { left: 30px; }
.et-simple-slider { background: #fff; border: 1px solid #e7e7e7; margin: 10px 0; position: relative; }
.et-simple-slider h1, .et-simple-slider h2, .et-simple-slider h3, .et-simple-slider h4, .et-simple-slider h5, .et-simple-slider h6 { font-family: Century Gothic, Arial, sans-serif; color: #333333; }
.et-simple-slides { overflow: hidden; margin: 30px 30px 20px; }
.et-simple-slider div.et-slide { display: none; width:100% !important; }
.one_half, .one_third, .two_third, .one_fourth , .three_fourth { float:left; margin-right:4%; position:relative; }
.one_half { width: 48%; }
.one_third { width: 30.66%; }
.two_third { width:65.32%; }
.one_fourth { width:22%; }
.three_fourth { width:74%; }
a.small-button, a.big-button, a.icon-button { display: inline-block; text-shadow: 1px 1px 0 rgba(255,255,255,0.3); -moz-box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.4), 1px 1px 1px rgba(0,0,0,0.1); -webkit-box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.4), 1px 1px 1px rgba(0,0,0,0.1); box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.4), 1px 1px 1px rgba(0,0,0,0.1); -moz-border-radius: 10px; -webkit-border-radius: 10px; border-radius: 10px; line-height: 26px; }
a.small-button, a.icon-button { padding: 6px 14px; font-weight: bold !important; font-size: 12px; margin: 0 5px 8px 0; }
a.small-button:hover, a.big-button:hover, a.icon-button:hover { text-decoration: none; }
a.smallblue, a.bigblue { color: #2b63a8 !important; background: #88bdff; background: -moz-linear-gradient(top, #88bdff 0%, #60a7ff 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#88bdff), color-stop(100%,#60a7ff)); background: -webkit-linear-gradient(top, #88bdff 0%,#60a7ff 100%); background: -o-linear-gradient(top, #88bdff 0%,#60a7ff 100%); background: -ms-linear-gradient(top, #88bdff 0%,#60a7ff 100%); background: linear-gradient(to bottom, #88bdff 0%,#60a7ff 100%); border: 1px solid #3e8ff4; }
a.smallblue:hover, a.bigblue:hover { color: #23528c !important; }
a.smalllightblue { color: #348db6 !important; background: #8edbff; background: -moz-linear-gradient(top, #8edbff 0%, #60cdff 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#8edbff), color-stop(100%,#60cdff)); background: -webkit-linear-gradient(top, #8edbff 0%,#60cdff 100%); background: -o-linear-gradient(top, #8edbff 0%,#60cdff 100%); background: -ms-linear-gradient(top, #8edbff 0%,#60cdff 100%); background: linear-gradient(to bottom, #8edbff 0%,#60cdff 100%); border: 1px solid #51b5e4; }
a.smalllightblue:hover { color: #287295 !important; }
a.smallteal, a.bigteal, a.bigturquoise { color: #3da7a9 !important; background: #61eef0; background: -moz-linear-gradient(top, #61eef0 0%, #59dcde 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#61eef0), color-stop(100%,#59dcde)); background: -webkit-linear-gradient(top, #61eef0 0%,#59dcde 100%); background: -o-linear-gradient(top, #61eef0 0%,#59dcde 100%); background: -ms-linear-gradient(top, #61eef0 0%,#59dcde 100%); background: linear-gradient(to bottom, #61eef0 0%,#59dcde 100%); border: 1px solid #48bec0;}
a.smallteal:hover, a.bigteal:hover, a.bigturquoise:hover { color: #309192 !important; }
a.smallgreen, a.biggreen { color: #569d51 !important; background: #94e48d; background: -moz-linear-gradient(top, #94e48d 0%, #82cf7c 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#94e48d), color-stop(100%,#82cf7c)); background: -webkit-linear-gradient(top, #94e48d 0%,#82cf7c 100%); background: -o-linear-gradient(top, #94e48d 0%,#82cf7c 100%); background: -ms-linear-gradient(top, #94e48d 0%,#82cf7c 100%); background: linear-gradient(to bottom, #94e48d 0%,#82cf7c 100%); border: 1px solid #4dab46; }
a.smallgreen:hover, a.biggreen:hover { color: #478542 !important; }
a.smallorange, a.bigorange { color: #c7822f !important; background: #ffcb8c; background: -moz-linear-gradient(top, #ffcb8c 0%, #ffb660 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffcb8c), color-stop(100%,#ffb660)); background: -webkit-linear-gradient(top, #ffcb8c 0%,#ffb660 100%); background: -o-linear-gradient(top, #ffcb8c 0%,#ffb660 100%); background: -ms-linear-gradient(top, #ffcb8c 0%,#ffb660 100%); background: linear-gradient(to bottom, #ffcb8c 0%,#ffb660 100%); border: 1px solid #db9c51; }
a.smallorange:hover, a.bigorange:hover { color: #a96c23 !important; }
a.smallsilver { color: #595a5a !important; background: #f5f5f5; background: -moz-linear-gradient(top, #f5f5f5 0%, #e2e2e2 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f5f5f5), color-stop(100%,#e2e2e2)); background: -webkit-linear-gradient(top, #f5f5f5 0%,#e2e2e2 100%); background: -o-linear-gradient(top, #f5f5f5 0%,#e2e2e2 100%); background: -ms-linear-gradient(top, #f5f5f5 0%,#e2e2e2 100%); background: linear-gradient(to bottom, #f5f5f5 0%,#e2e2e2 100%); border: 1px solid #c3c3c3; text-shadow: 1px 1px 1px #fff; -moz-box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.9), 1px 1px 1px rgba(0,0,0,0.1); -webkit-box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.9), 1px 1px 1px rgba(0,0,0,0.1); box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.9), 1px 1px 1px rgba(0,0,0,0.1); }
a.smallsilver:hover { color: #454545 !important; }
a.smallblack { color: #fff !important; background: #5b5b5b; background: -moz-linear-gradient(top, #5b5b5b 0%, #383838 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#5b5b5b), color-stop(100%,#383838)); background: -webkit-linear-gradient(top, #5b5b5b 0%,#383838 100%); background: -o-linear-gradient(top, #5b5b5b 0%,#383838 100%); background: -ms-linear-gradient(top, #5b5b5b 0%,#383838 100%); background: linear-gradient(to bottom, #5b5b5b 0%,#383838 100%); border: 1px solid #0e0e0e; -moz-box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.2), 1px 1px 1px rgba(0,0,0,0.1); -webkit-box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.2), 1px 1px 1px rgba(0,0,0,0.1); box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.2), 1px 1px 1px rgba(0,0,0,0.1); text-shadow: -1px -1px 0 #000; }
a.smallblack:hover { color: #f7f7f7 !important; }
a.smallred, a.bigred { color: #9a3e3e !important; background: #ff7979; background: -moz-linear-gradient(top, #ff7979 0%, #ff5f5f 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ff7979), color-stop(100%,#ff5f5f)); background: -webkit-linear-gradient(top, #ff7979 0%,#ff5f5f 100%); background: -o-linear-gradient(top, #ff7979 0%,#ff5f5f 100%); background: -ms-linear-gradient(top, #ff7979 0%,#ff5f5f 100%); background: linear-gradient(to bottom, #ff7979 0%,#ff5f5f 100%); border: 1px solid #d85353; }
a.smallred:hover, a.bigred:hover { color: #803030 !important; }
a.smallpink { color: #914d97 !important; background: #e782f1; background: -moz-linear-gradient(top, #e782f1 0%, #d271da 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#e782f1), color-stop(100%,#d271da)); background: -webkit-linear-gradient(top, #e782f1 0%,#d271da 100%); background: -o-linear-gradient(top, #e782f1 0%,#d271da 100%); background: -ms-linear-gradient(top, #e782f1 0%,#d271da 100%); background: linear-gradient(to bottom, #e782f1 0%,#d271da 100%); border: 1px solid #b15cb9; }
a.smallpink:hover { color: #753b7a !important; }
a.smallpurple, a.bigpurple { color: #653e9a !important; background: #b279ff; background: -moz-linear-gradient(top, #b279ff 0%, #a35fff 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#b279ff), color-stop(100%,#a35fff)); background: -webkit-linear-gradient(top, #b279ff 0%,#a35fff 100%); background: -o-linear-gradient(top, #b279ff 0%,#a35fff 100%);background: -ms-linear-gradient(top, #b279ff 0%,#a35fff 100%); background: linear-gradient(to bottom, #b279ff 0%,#a35fff 100%); border: 1px solid #8b53d8; }
a.smallpurple:hover, a.bigpurple:hover { color: #563386 !important; }
a.big-button { font-weight: normal !important; font-size: 20px; padding: 14px 24px; margin: 8px 6px 8px 0; }
a.big-button:hover { text-decoration: none; }
a.icon-button { color: #595a5a !important; background: #f5f5f5; background: -moz-linear-gradient(top, #f5f5f5 0%, #e1e1e1 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f5f5f5), color-stop(100%,#e1e1e1)); background: -webkit-linear-gradient(top, #f5f5f5 0%,#e1e1e1 100%); background: -o-linear-gradient(top, #f5f5f5 0%,#e1e1e1 100%);background: -ms-linear-gradient(top, #f5f5f5 0%,#e1e1e1 100%); background: linear-gradient(to bottom, #f5f5f5 0%,#e1e1e1 100%); border: 1px solid #c3c3c3; text-shadow: 1px 1px 1px #fff; -moz-box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.9), 1px 1px 1px rgba(0,0,0,0.1); -webkit-box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.9), 1px 1px 1px rgba(0,0,0,0.1); box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.9), 1px 1px 1px rgba(0,0,0,0.1); padding-left: 36px; position: relative; }
a.icon-button:hover { color: #404040; }
a.icon-button span.et-icon { position: absolute; top: 10px; left: 12px; width: 18px; height: 16px; }
a.download-icon span.et-icon { background: url(../images/shortcodes-sprite.png) no-repeat -3px -2px; width: 17px; height: 20px; top: 7px; }
a.search-icon span.et-icon { background: url(../images/shortcodes-sprite.png) no-repeat -206px -2px; top: 9px; }
a.refresh-icon span.et-icon { background: url(../images/shortcodes-sprite.png) no-repeat -169px -19px; }
a.question-icon span.et-icon { background: url(../images/shortcodes-sprite.png) no-repeat -164px -2px; }
a.people-icon span.et-icon { background: url(../images/shortcodes-sprite.png) no-repeat -151px -33px; height: 17px; top: 9px; }
a.warning-icon span.et-icon { background: url(../images/shortcodes-sprite.png) no-repeat -188px -19px; width: 15px; }
a.mail-icon span.et-icon { background: url(../images/shortcodes-sprite.png) no-repeat -131px -33px; height: 15px; }
a.heart-icon span.et-icon { background: url(../images/shortcodes-sprite.png) no-repeat -131px -18px; width: 14px; height: 13px; top: 12px; left: 14px; }
a.paper-icon span.et-icon { background: url(../images/shortcodes-sprite.png) no-repeat -147px -17px; width: 15px; height: 15px; }
a.notice-icon span.et-icon { background: url(../images/shortcodes-sprite.png) no-repeat -147px -2px; width: 15px; height: 13px; top: 11px; }
a.stats-icon span.et-icon { background: url(../images/shortcodes-sprite.png) no-repeat -184px -2px; width: 15px; height: 14px; top: 11px; }
a.rss-icon span.et-icon { background: url(../images/shortcodes-sprite.png) no-repeat -171px -36px; width: 15px; top: 9px; }
ul.et_shortcodes_mobile_nav { margin: 0 !important; padding: 0 !important; list-style:none outside none !important; display: none; z-index: 2; }
ul.et_shortcodes_mobile_nav a { position: relative; }
ul.et_shortcodes_mobile_nav span, .et_shortcodes_controls_arrows span { position: absolute; top: 23px; display: block; width: 10px; height: 14px; }
ul.et_shortcodes_mobile_nav .et_sc_nav_prev span, .et_shortcodes_controls_arrows .et_sc_nav_prev span { background: url(../images/shortcodes-sprite.png) no-repeat -3px -24px; }
ul.et_shortcodes_mobile_nav .et_sc_nav_next span, .et_shortcodes_controls_arrows .et_sc_nav_next span { background: url(../images/shortcodes-sprite.png) no-repeat -3px -40px; }
.et-tabs-container { background: #fff; border: 1px solid #e7e7e7; position: relative; margin: 50px 0px 15px; }
.et-learn-more h3.heading-more, .et-tabs-container .et-tabs-control, .et-tabs-container ul.et_shortcodes_mobile_nav, .et_shortcodes_controller_nav, .et-testimonial-author-info, .et-protected-title, .pricing-heading, .pricing-content-bottom { background: #f9f9f9; background: -moz-linear-gradient(top, #f9f9f9 0%, #f5f5f5 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f9f9f9), color-stop(100%,#f5f5f5)); background: -webkit-linear-gradient(top, #f9f9f9 0%,#f5f5f5 100%); background: -o-linear-gradient(top, #f9f9f9 0%,#f5f5f5 100%); background: -ms-linear-gradient(top, #f9f9f9 0%,#f5f5f5 100%); background: linear-gradient(to bottom, #f9f9f9 0%,#f5f5f5 100%); }
.et-tabs-container .et-tabs-control, .et-tabs-container ul.et_shortcodes_mobile_nav { margin: 0px !important; overflow: hidden; border-top: 1px solid #fff; position: relative; }
.et-tabs-container .et-tabs-control:before { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 1px; background: #e7e7e7; }
.et-tabs-container .et-tabs-control li { list-style:none outside none; margin: 0 !important; float: left; padding: 0 !important; border-left: 1px solid #e7e7e7; -moz-box-shadow: -1px 0 0 #fff; -webkit-box-shadow: -1px 0 0 #fff; box-shadow: -1px 0 0 #fff; position: relative; }
.et-tabs-container .et-tabs-control li:first-child { border-left: 1px solid #fff; -moz-box-shadow: none; -webkit-box-shadow: none; box-shadow: none; }
.et-tabs-container .et-tabs-control li a { font-size: 14px; color: #999 !important; text-shadow: 1px 1px 0 #fff !important; display: block; padding: 15px 20px; }
.et-tabs-container .et-tabs-control li a:hover { color: #4c4c4c !important; text-decoration: none; }
.et-tabs-container .et-tabs-control li.active:before { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 1px; background: #fff; }
.et-tabs-container .et-tabs-control li.active a { background: #fff; color: #4c4c4c !important; }
.et-tabs-content-wrapper > div { display: none; }
.et_sliderfx_slide .et-tabs-content-wrapper { width: 1200%; position: relative; left: 0; }
.et_sliderfx_slide .et-tabs-content-wrapper > div { float: left; display: block; height: 1px; visibility: hidden; }
.et_sliderfx_slide .et-tabs-content-wrapper > div, .et_sliderfx_fade .et_slidecontent { word-wrap: break-word; }
.et_sliderfx_slide .et_shortcode_slide_active { height: auto !important; }
.et-tabs-container .et-tabs-content { margin: 30px 30px 20px; }
.et-tabs-container ul.et_shortcodes_mobile_nav { border-bottom: 1px solid #e7e7e7; }
.et-tabs-container ul.et_shortcodes_mobile_nav li { float: right; line-height: 26px; }
.et-tabs-container ul.et_shortcodes_mobile_nav a { display: block; padding: 16px 10px 16px 45px; color: #999 !important; font-size: 14px; text-shadow: 1px 1px 0 #fff !important; }
.et-tabs-container ul.et_shortcodes_mobile_nav a.et_sc_nav_next { padding: 16px 45px 16px 10px; text-align: right; }
.et-tabs-container ul.et_shortcodes_mobile_nav a:hover { text-decoration: none; color: #4c4c4c !important; }
.et-tabs-container ul.et_shortcodes_mobile_nav .et_sc_nav_next:before { position: absolute; content: ''; top: 0; left: 0; width: 1px; height: 100%; background: #e7e7e7; -moz-box-shadow: 1px 0 0 #fff; -webkit-box-shadow: 1px 0 0 #fff; box-shadow: 1px 0 0 #fff; }
.et-tabs-container ul.et_shortcodes_mobile_nav .et_sc_nav_next span { right: 28px; }
.et-tabs-container ul.et_shortcodes_mobile_nav .et_sc_nav_prev span { left: 28px; }
.et-tabs-container, .tabs-left, .et-simple-slider, .et-image-slider, .et-testimonial-box, .author-shortcodes, .et-protected { -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); -webkit-box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.1); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); }
.tabs-left { background: #fff; border: 1px solid #e7e7e7; position: relative; margin-bottom: 15px; }
.tabs-left .et-tabs-control, .tabs-left ul.et_shortcodes_mobile_nav { width: 149px; border-top: 1px solid #fff; float: left; list-style:none outside none !important; margin:0 !important; position: relative; }
.tabs-left ul.et_shortcodes_mobile_nav { position: absolute; top: 0; left: 0; }
.tabs-left .et-tabs-control li, .tabs-left ul.et_shortcodes_mobile_nav li { padding-right: 0 !important; padding-left: 0 !important; background: none !important; list-style: none !important; border-bottom: 1px solid #e7e7e7; -moz-box-shadow: 0 1px 0 0 #fff; -webkit-box-shadow: 0 1px 0 0 #fff; box-shadow: 0 1px 0 0 #fff; }
.tabs-left .et-tabs-control li a { color: #999 !important; font-size: 14px; text-shadow: 1px 1px 0 #fff !important; display: block; padding: 15px 10px 15px 20px; }
.tabs-left .et-tabs-control li.active a { background: #fff; margin-right: -1px; }
.tabs-left .et-tabs-control li a:hover, .tabs-left .et-tabs-control li.active a { text-decoration: none; color: #4c4c4c !important; }
.tabs-left .et-tabs-content { padding: 30px 30px 20px; position: relative; }
.tabs-left.et_sliderfx_slide .et-tabs-content-main-wrap { overflow: hidden; }
.tabs-left .et-tabs-content h3 { padding-bottom: 14px; color: #333333; }
.et_left_tabs_bg { position: absolute; top: 0; left: 0; width: 148px; height: 100%; border-right: 1px solid #e7e7e7; border-left: 1px solid #fff; background: #f5f5f5; background: -moz-linear-gradient(left, #f9f9f9 0%, #f5f5f5 100%); background: -webkit-gradient(linear, left top, right top, color-stop(0%,#f9f9f9), color-stop(100%,#f5f5f5)); background: -webkit-linear-gradient(left, #f9f9f9 0%,#f5f5f5 100%); background: -o-linear-gradient(left, #f9f9f9 0%,#f5f5f5 100%); background: -ms-linear-gradient(left, #f9f9f9 0%,#f5f5f5 100%); background: linear-gradient(to right, #f9f9f9 0%,#f5f5f5 100%); }
.tabs-left ul.et_shortcodes_mobile_nav a { text-indent: -9999px; }
.tabs-left ul.et_shortcodes_mobile_nav a span { top: 50%; margin-top: -7px; }
.tabs-left ul.et_shortcodes_mobile_nav .et_sc_nav_next span { right: 50%; margin-right: -4px; }
.tabs-left ul.et_shortcodes_mobile_nav .et_sc_nav_prev span { left: 50%; margin-left: -4px; }
.author-shortcodes { background: #fff; border: 1px solid #e7e7e7; color: #363636; font-size: 14px; margin-bottom: 10px; }
.author-shortcodes .author-inner { position: relative; padding: 30px 30px 20px 117px; min-height: 60px; }
.author-shortcodes .author-image { position: absolute; top: 32px; left: 30px; width: 60px; height: 60px; }
.author-shortcodes .author-image img { max-width: 100%; height: auto; width: auto; }
.author-shortcodes .author-image .author-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; -webkit-box-shadow: inset 0 0 4px rgba(0,0,0,0.5); -moz-box-shadow: inset 0 0 4px rgba(0,0,0,0.5); box-shadow: inset 0 0 4px rgba(0,0,0,0.5); }
.et-protected { border: 1px solid #e7e7e7; width: 390px; background: #fff; margin-bottom: 10px; }
.et-protected-title { border-left: 1px solid #fff; border-top: 1px solid #fff; border-bottom: 1px solid #e7e7e7; padding: 18px 10px 17px 50px; position: relative; color: #999; text-shadow: 0 1px 0 #fff; font-size: 14px; }
.et-protected-title:before { content: ''; position: absolute; top: 16px; left: 20px; background: url(../images/shortcodes-sprite.png) no-repeat -23px -36px; width: 17px; height: 19px; }
.et-protected-form { padding: 32px 37px 32px 32px; text-align: right; }
.et-protected-form p { padding-bottom: 16px; }
.et-protected-form p label { position: relative; }
.et-protected-form p .et_protected_icon { width: 10px; height: 20px; position: absolute; top: 2px; left: 18px; background: url(../images/shortcodes-sprite.png) no-repeat -190px -37px; display: block; }
.et-protected-form p .et_protected_password { height: 23px; background-position: -275px -2px; }
.et-protected-form label span { display: none; }
.et-protected-form p input { margin: 0 !important; border: 1px solid #e7e7e7; color: #363636; font-size: 14px; background: #f3f3f3; background: -moz-linear-gradient(top, #f3f3f3 1%, #fefefe 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(1%,#f3f3f3), color-stop(100%,#fefefe)); background: -webkit-linear-gradient(top, #f3f3f3 1%,#fefefe 100%); background: -o-linear-gradient(top, #f3f3f3 1%,#fefefe 100%); background: -ms-linear-gradient(top, #f3f3f3 1%,#fefefe 100%); background: linear-gradient(to bottom, #f3f3f3 1%,#fefefe 100%); padding: 20px 20px 20px 40px; width: 100%; -webkit-box-shadow: inset 0 0 1px rgba(0,0,0,0.1); -moz-box-shadow: inset 0 0 1px rgba(0,0,0,0.1); box-shadow: inset 0 0 1px rgba(0,0,0,0.1); -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; position: relative; }
.et-protected-form input.etlogin-button { background: #f9f9f9; background: -moz-linear-gradient(top, #f9f9f9 0%, #f5f5f5 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f9f9f9), color-stop(100%,#f5f5f5)); background: -webkit-linear-gradient(top, #f9f9f9 0%,#f5f5f5 100%); background: -o-linear-gradient(top, #f9f9f9 0%,#f5f5f5 100%); background: -ms-linear-gradient(top, #f9f9f9 0%,#f5f5f5 100%); background: linear-gradient(to bottom, #f9f9f9 0%,#f5f5f5 100%); border: 1px solid #e7e7e7; padding: 14px 24px; color: #999; text-shadow: 0 1px 0 #fff; font-size: 14px; -webkit-box-shadow: inset 1px 1px 0 0 #fff; -moz-box-shadow: inset 1px 1px 0 0 #fff; box-shadow: inset 1px 1px 0 0 #fff; }
.et-simple-slides .et_slidecontent { width: auto; }
.et-image-slides { background: #555; }
.et-image-slider { background: #fff; border: 1px solid #e7e7e7; margin-bottom:25px; }
.et-image-slide { position: relative; }
.et-image-slider img { display: block; width: auto; margin: 0 auto; height: auto; }
.et-image-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.6); -moz-box-shadow: inset 0 0 5px rgba(0,0,0,0.6); box-shadow: inset 0 0 5px rgba(0,0,0,0.6); }
.et-learn-more, .et-tabs-container, .tabs-left, .et-simple-slider, .author-shortcodes, .et-tooltip-box { color:#201F1F !important; text-shadow: none !important; }
.et-learn-more a, .et-tabs-container a, .tabs-left a, .et-simple-slider a, .author-shortcodes a, .et-tooltip-box a { text-shadow: none !important; }
.et-custom-list ul { list-style: none !important; list-style-image: none !important; padding-left: 0 !important; margin: 0 !important; line-height: 26px; }
.et-custom-list ul li { padding-left: 28px !important; margin: 5px 0 !important; list-style: none !important; position: relative; }
.et-custom-list ul li:before { content: ''; position: absolute; top: 5px; left: 0; background: url(../images/shortcodes-sprite.png) no-repeat -74px -2px; width: 22px; height: 18px; }
.etlist-x ul li:before { content: ''; position: absolute; top: 6px; left: 0; background: url(../images/shortcodes-sprite.png) no-repeat -75px -21px; width: 22px; height: 18px; }
.etlist-dot ul li { padding-left: 25px !important; }
.etlist-dot ul li:before { content: ''; position: absolute; top: 9px; left: 0; background: url(../images/shortcodes-sprite.png) no-repeat -230px -3px; width: 10px; height: 9px; }
.et-custom-list ul li ul { padding: 2px 0px !important; margin: 0 !important; }
.et-pricing { margin: 40px 0 10px; }
.pricing-table { float: left; width: 25%; margin-bottom: 22px; position: relative; margin-left: -1px; }
.pricing-table-wrap { border: 1px solid #e7e7e7; border-bottom: none; }
.pricing-heading { border-bottom: 1px solid #e7e7e7; padding: 23px 10px 22px; text-shadow: 1px 1px 0 #fff; font-size: 12px; color: #999; text-align: center; -moz-box-shadow: inset 1px 1px 0 0 #fff; -webkit-box-shadow: inset 1px 1px 0 0 #fff; box-shadow: inset 1px 1px 0 0 #fff; }
.pricing-title { text-transform: uppercase; font-size: 20px; color: #53b4c7 !important; font-weight: bold; text-shadow: none !important; }
.pricing-heading p { padding-bottom: 0 !important; }
.pricing-table ul.pricing { padding: 0 !important; list-style: none !important; margin: 0 !important; list-style-image: none !important; line-height: 26px; }
.pricing-table ul.pricing li { list-style: none !important; border-top: 1px solid #fff; border-bottom: 1px solid #e7e7e7; background: #f5f5f5; background: -moz-linear-gradient(top, #f5f5f5 0%, #fefefe 7%, #ffffff 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f5f5f5), color-stop(7%,#fefefe), color-stop(100%,#ffffff)); background: -webkit-linear-gradient(top, #f5f5f5 0%,#fefefe 7%,#ffffff 100%); background: -o-linear-gradient(top, #f5f5f5 0%,#fefefe 7%,#ffffff 100%); background: -ms-linear-gradient(top, #f5f5f5 0%,#fefefe 7%,#ffffff 100%); background: linear-gradient(to bottom, #f5f5f5 0%,#fefefe 7%,#ffffff 100%); padding: 14px 7px 14px 63px; position: relative; font-size: 12px; color: #363636; text-shadow: none !important; }
.pricing-table ul.pricing li span.pricing-mark { position: absolute; top: 19px; left: 30px; width: 22px; height: 18px; background: url(../images/shortcodes-sprite.png) no-repeat -74px -2px; }
.pricing-table ul.pricing li.x-mark span.pricing-mark { background-position: -74px -20px; }
.pricing-content-bottom { border-top: 1px solid #fff; border-bottom: 1px solid #e7e7e7; -webkit-box-shadow: inset 1px 0 0 0 #fff; -moz-box-shadow: inset 1px 0 0 0 #fff; box-shadow: inset 1px 0 0 0 #fff; padding: 20px 5px 43px; text-align: center; }
span.et-price { font-size: 48px; color: #94c65c; text-shadow: 0 1px 0 #fff; font-family: Georgia, serif; }
span.et-price sup { font-size: 24px; bottom: 13px; left: 1px; }
span.et-price span.dollar-sign { font-size: 36px; }
.pricing-table a.icon-button { margin: 0; padding-left: 15px; position: absolute; bottom: -13px; left: 50%; }
.pricing-table a.icon-button { visibility: hidden; }
.pricing-big { top: -20px; -webkit-box-shadow: 0 0 18px rgba(0,0,0,0.2); -moz-box-shadow: 0 0 18px rgba(0,0,0,0.2); box-shadow: 0 0 18px rgba(0,0,0,0.2); z-index: 2; }
.pricing-big .pricing-table-wrap { border-color: #d6d5d5; }
.pricing-big .pricing-heading { padding-top: 43px; }
.pricing-big .pricing-content-bottom { padding-bottom: 63px; border-bottom: 1px solid #d6d5d5; }
.et-testimonial-box { border: 1px solid #e7e7e7; background: #fff; position: relative; margin: 10px 0 45px; }
.et-testimonial-author-info { border-left: 1px solid #fff; border-top: 1px solid #fff; border-bottom: 1px solid #e7e7e7; padding: 20px 20px 15px; text-shadow: 0 1px 0 #fff; }
.t-img { width: 60px; height: 60px; float: left; margin: 0 25px 5px 0; -moz-box-shadow: 0 1px 0 0 #fff; -webkit-box-shadow: 0 1px 0 0 #fff; box-shadow: 0 1px 0 0 #fff; position: relative; }
.t-img img { max-width: 100%; height: auto; }
.t-overlay { width: 100%; height: 100%; box-shadow: inset 0 0 4px rgba(0,0,0,0.4); display: block; position: absolute; top: 0; left: 0; }
.t-author, .t-position { display: block; }
.t-author { font-size: 18px; color: #999; padding: 10px 0 5px; }
.t-position { color: #595959; }
.t-position, .et-testimonial { font-family: Georgia, serif; font-style: italic; font-size: 14px; }
.et-testimonial { padding: 43px 35px 30px 77px; color: #363636; position: relative; text-shadow: none !important; }
.et-testimonial:before { content: ''; position: absolute; top: 43px; left: 35px; width: 25px; height: 19px; background: url(../images/shortcodes-sprite.png) no-repeat -45px -35px; }
.t-bottom-arrow { background: url(../images/shortcodes-sprite.png) no-repeat -97px -25px; width: 31px; height: 32px; position: absolute; bottom: -32px; right: 40px; }
.et-dropcap { font-size: 48px; float: left; display:block; margin:0 7px 0 0; line-height: 1; }
.et_quote { padding-left: 57px; min-height: 40px; font-family: Georgia, serif; font-size: 14px; font-style: italic; position: relative; line-height: 1.5; margin-bottom: 10px; }
.et_quote .et_quote_sign { background: url(../images/shortcodes-sprite.png) no-repeat -206px -20px; position: absolute; top: 0; left: 0; display: block; width: 40px; height: 34px; }
.quote-center .et_quote_sign { background-position: -251px -2px; width: 20px; height: 16px; top: 3px; }
.quote-center .et_quote_additional_sign { background: url(../images/shortcodes-sprite.png) no-repeat -251px -22px; position: absolute; top: 3px; right: 13px; display: block; width: 20px; height: 16px; }
.et_right_quote { width: 100%; }
.quote-center { font-size: 24px; line-height: 1.2; text-align: center; padding-left: 30px; }
.quote-center .et_right_quote { padding-right: 30px; width: 95%; }
.et-tabs-container .et-tabs-control { padding: 0; }
.tabs-left .et-tabs-control { padding-left: 0; }
.author-info h1, .author-info h2, .author-info h3, .author-info h4, .author-info h5, .author-info h6 { color:#201F1F !important; text-shadow: none !important; }
.et-tabs-container .et-tabs-control li a, .tabs-left .et-tabs-control li a { text-decoration: none !important; }
a.big-button, a.small-button, a.icon-button { cursor: pointer; }
.clearfix:after { visibility: hidden; display: block; font-size: 0; content: " "; clear: both; height: 0; }
* html .clearfix { zoom: 1; } /* IE6 */
*:first-child+html .clearfix { zoom: 1; } /* IE7 */
.et_column_last { margin-right: 0px !important; clear:right; }
.clear { clear:both; }

View File

@@ -0,0 +1,61 @@
/* Responsive Shortcodes */
body.et_right_sidebar .pricing-table, body.et_left_sidebar .pricing-table { width: 50%; }
@media all and ( max-width: 959px ) {
body.et_right_sidebar .one_third, body.et_right_sidebar .one_half, body.et_right_sidebar .one_third, body.et_right_sidebar .two_third, body.et_right_sidebar .one_fourth, body.et_right_sidebar .three_fourth,
body.et_left_sidebar .one_third, body.et_left_sidebar .one_half, body.et_left_sidebar .one_third, body.et_left_sidebar .two_third, body.et_left_sidebar .one_fourth, body.et_left_sidebar .three_fourth { float: none; margin-right: 0; width: auto; margin-bottom: 10px; }
body.et_right_sidebar .et-testimonial-box, body.et_right_sidebar .et-protected,
body.et_left_sidebar .et-testimonial-box, body.et_left_sidebar .et-protected { width: auto !important; }
body.et_right_sidebar .et-protected-form,
body.et_left_sidebar .et-protected-form { padding: 15px !important; }
}
@media all and (min-width: 768px) and (max-width: 959px) {
body.et_full_width_page .pricing-table { width: 50%; }
}
@media all and ( max-width: 767px ) {
.et_left_tabs_bg { width: 50px; }
.tabs-left .et-tabs-control, .et-tabs-container .et-tabs-control { display: none; }
.tabs-left ul.et_shortcodes_mobile_nav { display: block; width: 51px; }
.tabs-left ul.et_shortcodes_mobile_nav a { display: block; height: 49px; width: 100%; }
.tabs-left .et-tabs-content { margin-left: 75px; }
.et-tabs-container ul.et_shortcodes_mobile_nav { display: block; }
.et-tabs-container ul.et_shortcodes_mobile_nav li { width: 50%; }
.et-pricing { margin-top: 0; }
body.et_right_sidebar .pricing-table, body.et_left_sidebar .pricing-table, body.et_full_width_page .pricing-table { width: 100%; margin-bottom: 35px; }
.pricing-big { top: 0; }
body.et_full_width_page .one_third, body.et_full_width_page .one_half, body.et_full_width_page .one_third, body.et_full_width_page .two_third, body.et_full_width_page .one_fourth, body.et_full_width_page .three_fourth { float: none; margin-right: 0; width: auto; margin-bottom: 10px; }
body.et_full_width_page .et-testimonial-box, body.et_full_width_page .et-protected { width: auto !important; }
body.et_full_width_page .et-protected-form { padding: 15px !important; }
body.et_right_sidebar .author-shortcodes .author-inner,
body.et_left_sidebar .author-shortcodes .author-inner { padding: 27px 27px 17px; }
body.et_right_sidebar .author-shortcodes .author-image,
body.et_left_sidebar .author-shortcodes .author-image { position: relative; top: 0; left: 0; margin-bottom: 10px; }
body.et_right_sidebar .quote-center .et_quote_additional_sign,
body.et_left_sidebar .quote-center .et_quote_additional_sign { right: -13px; }
body.et_right_sidebar .et_shortcodes_controls,
body.et_left_sidebar .et_shortcodes_controls { display: none; }
body.et_right_sidebar .et_shortcodes_controls_arrows a,
body.et_left_sidebar .et_shortcodes_controls_arrows a { text-indent: -9999px; }
}
@media all and ( max-width: 479px ) {
.et-tabs-container ul.et_shortcodes_mobile_nav a.et_sc_nav_prev { padding-left: 26px; }
.et-tabs-container ul.et_shortcodes_mobile_nav .et_sc_nav_prev span { left: 10px; }
.et-tabs-container ul.et_shortcodes_mobile_nav a.et_sc_nav_next { padding-right: 26px; }
.et-tabs-container ul.et_shortcodes_mobile_nav .et_sc_nav_next span { right: 10px; }
body.et_full_width_page .author-shortcodes .author-inner { padding: 27px 27px 17px; }
body.et_full_width_page .author-shortcodes .author-image { position: relative; top: 0; left: 0; margin-bottom: 10px; }
body.et_full_width_page .quote-center .et_quote_additional_sign { right: -13px; }
body.et_full_width_page .et_shortcodes_controls { display: none; }
body.et_full_width_page .et_shortcodes_controls_arrows a { text-indent: -9999px; }
.et-box:before, .et-testimonial:before { display: none; }
.et-box-content { padding: 27px 27px 17px 27px; }
.et-testimonial { padding: 25px; }
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 621 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 221 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 165 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 140 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 165 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

View File

@@ -0,0 +1,80 @@
(function(){
tinymce.create('tinymce.plugins.etquicktags', {
/**
* Initializes the plugin, this will be executed after the plugin has been created.
* This call is done before the editor instance has finished it's initialization so use the onInit event
* of the editor instance to intercept that event.
*
* @param {tinymce.Editor} ed Editor instance that the plugin is initialized in.
* @param {string} url Absolute URL to where the plugin is located.
*/
init : function(ed, url) {
ed.addButton('et_learn_more', {
title : et_quicktags_strings.learn_more,
image : url + '/../images/icon-toggle.gif',
onclick : function() {
CustomButtonClick('learn_more');
}
});
ed.addButton('et_box', {
title : et_quicktags_strings.box,
image : url + '/../images/icon-boxes.gif',
onclick : function() {
CustomButtonClick('box');
}
});
ed.addButton('et_button', {
title : et_quicktags_strings.button,
image : url + '/../images/icon-buttons.gif',
onclick : function() {
CustomButtonClick('button');
}
});
ed.addButton('et_tabs', {
title : et_quicktags_strings.tabs,
image : url + '/../images/icon-tabs.gif',
onclick : function() {
CustomButtonClick('tabs');
}
});
ed.addButton('et_author', {
title : et_quicktags_strings.author,
image : url + '/../images/icon-author.gif',
onclick : function() {
CustomButtonClick('author');
}
});
},
/**
* Creates control instances based in the incomming name. This method is normally not
* needed since the addButton method of the tinymce.Editor class is a more easy way of adding buttons
* but you sometimes need to create more complex controls like listboxes, split buttons etc then this
* method can be used to create those.
*
* @param {String} n Name of the control to create.
* @param {tinymce.ControlManager} cm Control manager to use inorder to create new control.
* @return {tinymce.ui.Control} New control instance or null if no control was created.
*/
createControl : function(n, cm) {
return null;
},
/**
* Returns information about the plugin as a name/value array.
* The current keys are longname, author, authorurl, infourl and version.
*
* @return {Object} Name/value array containing information about the plugin.
*/
getInfo : function() {
return {
longname : "Elegant Themes " + et_quicktags_strings.shortcodes,
author : 'Elegant Themes',
authorurl : 'http://www.elegantthemes.com/',
infourl : 'http://www.elegantthemes.com/',
version : "1.0"
};
}
});
tinymce.PluginManager.add('et_quicktags', tinymce.plugins.etquicktags);
})()

View File

@@ -0,0 +1 @@
(function(){tinymce.create("tinymce.plugins.etquicktags",{init:function(e,t){e.addButton("et_learn_more",{title:et_quicktags_strings.learn_more,image:t+"/../images/icon-toggle.gif",onclick:function(){CustomButtonClick("learn_more")}});e.addButton("et_box",{title:et_quicktags_strings.box,image:t+"/../images/icon-boxes.gif",onclick:function(){CustomButtonClick("box")}});e.addButton("et_button",{title:et_quicktags_strings.button,image:t+"/../images/icon-buttons.gif",onclick:function(){CustomButtonClick("button")}});e.addButton("et_tabs",{title:et_quicktags_strings.tabs,image:t+"/../images/icon-tabs.gif",onclick:function(){CustomButtonClick("tabs")}});e.addButton("et_author",{title:et_quicktags_strings.author,image:t+"/../images/icon-author.gif",onclick:function(){CustomButtonClick("author")}})},createControl:function(e,t){return null},getInfo:function(){return{longname:"Elegant Themes "+et_quicktags_strings.shortcodes,author:"Elegant Themes",authorurl:"http://www.elegantthemes.com/",infourl:"http://www.elegantthemes.com/",version:"1.0"}}});tinymce.PluginManager.add("et_quicktags",tinymce.plugins.etquicktags)})()

View File

@@ -0,0 +1,361 @@
// et_switcher plugin v2.2
(function($)
{
$.fn.et_shortcodes_switcher = function(options)
{
var defaults =
{
slides: '>div',
activeClass: 'active',
linksNav: '',
findParent: true, //use parent elements to define active states
lengthElement: 'li', //parent element, used only if findParent is set to true
useArrows: false,
arrowLeft: 'a#prev-arrow',
arrowRight: 'a#next-arrow',
auto: false,
autoSpeed: 5000,
slidePadding: '',
pauseOnHover: true,
fx: 'fade',
sliderType: ''
}
var options = $.extend(defaults, options);
return this.each(function()
{
var slidesContainer = jQuery(this).parent().css('position','relative'),
$slides = jQuery(this).css({'overflow':'hidden','position':'relative'}),
$slides_wrapper_box = slidesContainer.find('.et-tabs-content-wrapper'),
$slides_wrapper = $slides_wrapper_box.parent(),
$slide = $slides.find( '.et-tabs-content-wrapper' + options.slides),
slidesNum = $slide.length,
zIndex = slidesNum,
currentPosition = 1,
slideHeight = 0,
$activeSlide,
$nextSlide,
slides_wrapper_width = $slides_wrapper.width(),
$et_shortcodes_mobile_nav,
$et_shortcodes_mobile_controls;
if (options.fx === 'slide') {
$slides_wrapper_box.width( ( ( slidesNum + 2 ) * 200 ) + '%' );
$slide.css({ 'width' : slides_wrapper_width, 'visibility' : 'visible' });
$slides_wrapper_box.append( $slide.filter(':first').clone().removeClass().addClass('et_slidecontent_cloned') );
$slides_wrapper_box.prepend( $slide.filter(':last').clone().removeClass().addClass('et_slidecontent_cloned') );
$slides_wrapper_box.css( 'left', -slides_wrapper_width );
}
$slide.filter(':first').css({'display':'block'}).addClass('et_shortcode_slide_active');
if (options.slidePadding != '') $slide.css('padding',options.slidePadding);
if (options.linksNav != '') {
var linkSwitcher = jQuery(options.linksNav);
var linkSwitcherTab = '';
if (options.findParent) linkSwitcherTab = linkSwitcher.parent();
else linkSwitcherTab = linkSwitcher;
if (!linkSwitcherTab.filter('.active').length) linkSwitcherTab.filter(':first').addClass('active');
linkSwitcher.click(function(){
var targetElement, orderNum;
if (options.findParent) targetElement = jQuery(this).parent();
else targetElement = jQuery(this);
orderNum = targetElement.prevAll(options.lengthElement).length+1;
if (orderNum > currentPosition) gotoSlide(orderNum, 1);
else gotoSlide(orderNum, -1);
return false;
});
}
if (options.useArrows) {
var $right_arrow = jQuery(options.arrowRight),
$left_arrow = jQuery(options.arrowLeft);
$right_arrow.click( function(){
et_shortcodes_go_to_next_slide();
return false;
} );
$left_arrow.click( function(){
et_shortcodes_go_to_previous_slide();
return false;
} );
}
function changeTab(){
if (linkSwitcherTab != '') {
linkSwitcherTab.siblings().removeClass('active');
linkSwitcherTab.filter(':eq('+(currentPosition-1)+')').addClass('active');
}
}
function gotoSlide(slideNumber,dir){
if ($slide.filter(':animated').length) return;
$activeSlide = $slide.parent().find('.et_slidecontent').filter(':eq('+(currentPosition-1)+')');
if (currentPosition === slideNumber) return;
$activeSlide.removeClass('et_shortcode_slide_active');
$nextSlide = $slide.parent().find('.et_slidecontent').filter(':eq('+(slideNumber-1)+')').addClass('et_shortcode_slide_active');
if ((currentPosition > slideNumber || currentPosition === 1) && (dir === -1)) {
if (options.fx === 'slide') slideBack(500);
if (options.fx === 'fade') slideFade(500);
} else {
if (options.fx === 'slide') slideForward(500);
if (options.fx === 'fade') slideFade(500);
}
currentPosition = $nextSlide.prevAll('.et_slidecontent').length + 1;
if (options.linksNav != '') changeTab();
if ( options.sliderType === 'images' || options.sliderType === 'simple' ){
$et_shortcodes_mobile_controls.find('li').removeClass('et_shortcodes_active_control');
$et_shortcodes_mobile_controls.find('li').eq(currentPosition-1).addClass('et_shortcodes_active_control');
}
return false;
}
if (options.auto) {
auto_rotate();
var pauseSlider = false;
}
if (options.pauseOnHover) {
slidesContainer.hover(function(){
pauseSlider = true;
},function(){
pauseSlider = false;
});
}
function auto_rotate(){
interval_shortcodes = setInterval(function(){
if (!pauseSlider) {
if (currentPosition === slidesNum)
gotoSlide(1,1);
else
gotoSlide(currentPosition+1,1);
if (options.linksNav != '') changeTab();
}
},options.autoSpeed);
}
function slideFade(speed){
$activeSlide.css( { 'display' : 'none', 'opacity' : '0' } );
$nextSlide.css({'opacity' : '0', 'display':'block'}).animate( { opacity : 1 }, 700 );
}
function slideForward(speed){
var next_slide_order = $nextSlide.prevAll('.et_slidecontent').length+1,
go_to_first_slide = false;
if ( $activeSlide.next('.et_slidecontent_cloned').length ) {
next_slide_order = $activeSlide.prevAll().length+1;
go_to_first_slide = true;
}
$slides_wrapper_box.animate( { left : - ( $slides_wrapper.width() * next_slide_order ) }, 500, function(){
if ( go_to_first_slide ) $slides_wrapper_box.css( 'left', - ( $slides_wrapper.width() ) );
} );
}
function slideBack(speed){
var next_slide_order = $nextSlide.prevAll('.et_slidecontent').length+1,
go_to_last_slide = false;
if ( $activeSlide.prev('.et_slidecontent_cloned').length ) {
next_slide_order = 0;
go_to_last_slide = true;
}
$slides_wrapper_box.animate( { left : - ( $slides_wrapper.width() * next_slide_order ) }, 500, function(){
if ( go_to_last_slide ) $slides_wrapper_box.css( 'left', - ( $slides_wrapper.width() * slidesNum ) );
} );
}
if (options.fx === 'slide') {
$(window).resize( function(){
$slides_wrapper_box.find('>div').css({ 'width' : $slides_wrapper.width() });
$slides_wrapper_box.css( 'left', -( $slides_wrapper.width() * currentPosition ) );
} );
}
et_generate_mobile_nav();
function et_generate_mobile_nav(){
var et_shortcodes_slides_num = slidesContainer.find( '.et_slidecontent' ).length,
et_shortcodes_controllers_html = '';
if ( et_shortcodes_slides_num > 1 && ( options.sliderType === 'images' || options.sliderType === 'simple' ) ){
slidesContainer.append( '<div class="et_shortcodes_controller_nav">' + '<ul class="et_shortcodes_controls"></ul>' + '<ul class="et_shortcodes_controls_arrows"><li><a href="#" class="et_sc_nav_next">' + et_shortcodes_strings.next + '<span></span></a></li><li><a href="#" class="et_sc_nav_prev">' + et_shortcodes_strings.previous + '<span></span></a></li></ul>' + '</div>' );
$et_shortcodes_mobile_controls = slidesContainer.find('.et_shortcodes_controls');
for ( var i = 0; i < et_shortcodes_slides_num; i++ ) {
et_shortcodes_controllers_html += '<li><a href="#"></a></li>';
}
$et_shortcodes_mobile_controls.prepend( et_shortcodes_controllers_html );
$et_shortcodes_mobile_controls.find( 'li:first' ).addClass('et_shortcodes_active_control');
$et_shortcodes_mobile_controls.find( 'a' ).click( function(){
var $this_control = $(this),
$this_control_li = $this_control.parent('li'),
this_order = $this_control_li.prevAll().length+1;
if ( this_order == currentPosition ) return false;
if ( this_order > currentPosition ) gotoSlide(this_order, 1);
else gotoSlide(this_order, -1);
return false;
} );
$et_shortcodes_mobile_nav = slidesContainer.find('.et_shortcodes_controls_arrows');
$et_shortcodes_mobile_nav.find('a').click( function(){
var $this_link = jQuery(this),
et_active_slide_order;
if ( $this_link.hasClass( 'et_sc_nav_next' ) )
et_shortcodes_go_to_next_slide();
if ( $this_link.hasClass( 'et_sc_nav_prev' ) )
et_shortcodes_go_to_previous_slide();
$et_shortcodes_mobile_controls.find('li').removeClass('et_shortcodes_active_control');
et_active_slide_order = currentPosition - 1;
$et_shortcodes_mobile_controls.find('li').eq( et_active_slide_order ).addClass('et_shortcodes_active_control');
return false;
} );
} else if ( options.sliderType !== 'images' && options.sliderType !== 'simple' ) {
slidesContainer.prepend( '<ul class="et_shortcodes_mobile_nav"><li><a href="#" class="et_sc_nav_next">' + et_shortcodes_strings.next + '<span></span></a></li><li><a href="#" class="et_sc_nav_prev">' + et_shortcodes_strings.previous + '<span></span></a></li></ul>' );
$et_shortcodes_mobile_nav = slidesContainer.find('.et_shortcodes_mobile_nav');
$et_shortcodes_mobile_nav.find('a').click( function(){
var $this_link = jQuery(this);
if ( $this_link.hasClass( 'et_sc_nav_next' ) )
et_shortcodes_go_to_next_slide();
if ( $this_link.hasClass( 'et_sc_nav_prev' ) )
et_shortcodes_go_to_previous_slide();
return false;
} );
}
}
function et_shortcodes_go_to_next_slide(){
if (currentPosition === slidesNum)
gotoSlide(1,1);
else
gotoSlide(currentPosition+1),1;
if (options.linksNav != '') changeTab();
}
function et_shortcodes_go_to_previous_slide(){
if (currentPosition === 1)
gotoSlide(slidesNum,-1);
else
gotoSlide(currentPosition-1,-1);
if (options.linksNav != '') changeTab();
}
});
}
})(jQuery);
// end et_switcher plugin v2
/////// Shortcodes Javascript ///////
jQuery(document).ready(function($){
var $et_pricing_table_button = $('.pricing-table a.icon-button');
$et_tooltip = $('.et-tooltip');
$et_tooltip.live('mouseover mouseout', function(event){
if (event.type == 'mouseover') {
$(this).find('.et-tooltip-box').stop(true,true).animate({ opacity: 'show', bottom: '25px' }, 300);
} else {
$(this).find('.et-tooltip-box').delay(200).animate({ opacity: 'hide', bottom: '35px' }, 300);
}
});
// learn more
$et_learn_more = $('.et-learn-more .heading-more');
$et_learn_more.live('click', function() {
if ( $(this).hasClass('open') )
$(this).removeClass('open');
else
$(this).addClass('open');
$(this).parent('.et-learn-more').find('.learn-more-content').animate({ opacity: 'toggle', height: 'toggle' }, 300);
});
$('.et-learn-more').not('.et-open').find('.learn-more-content').css( { 'visibility' : 'visible', 'display' : 'none' } );
$et_pricing_table_button.each( function(){
var $this_button = $(this),
this_button_width = $this_button.width(),
this_button_innerwidth = $this_button.innerWidth();
$this_button.css( { width : this_button_width, 'marginLeft' : '-' + ( this_button_innerwidth / 2 ) + 'px', 'visibility' : 'visible' } );
} );
var $et_shortcodes_tabs = $('.et-tabs-container, .tabs-left, .et-simple-slider, .et-image-slider');
$et_shortcodes_tabs.each(function(i){
var et_shortcodes_tab_class = $(this).attr('class'),
et_shortcodes_tab_autospeed_class_value = /et_sliderauto_speed_(\d+)/g,
et_shortcodes_tab_autospeed = et_shortcodes_tab_autospeed_class_value.exec( et_shortcodes_tab_class ),
et_shortcodes_tab_auto_class_value = /et_sliderauto_(\w+)/g,
et_shortcodes_tab_auto = et_shortcodes_tab_auto_class_value.exec( et_shortcodes_tab_class ),
et_shortcodes_tab_type_class_value = /et_slidertype_(\w+)/g,
et_shortcodes_tab_type = et_shortcodes_tab_type_class_value.exec( et_shortcodes_tab_class ),
et_shortcodes_tab_fx_class_value = /et_sliderfx_(\w+)/g,
et_shortcodes_tab_fx = et_shortcodes_tab_fx_class_value.exec( et_shortcodes_tab_class ),
et_shortcodes_tab_apply_to_element = '.et-tabs-content',
et_shortcodes_tab_settings = {};
et_shortcodes_tab_settings.linksNav = $(this).find('.et-tabs-control li a');
et_shortcodes_tab_settings.findParent = true;
et_shortcodes_tab_settings.fx = et_shortcodes_tab_fx[1];
et_shortcodes_tab_settings.auto = 'false' === et_shortcodes_tab_auto[1] ? false : true;
et_shortcodes_tab_settings.autoSpeed = et_shortcodes_tab_autospeed[1];
if ( 'simple' === et_shortcodes_tab_type[1] ){
et_shortcodes_tab_settings = {};
et_shortcodes_tab_settings.fx = et_shortcodes_tab_fx[1];
et_shortcodes_tab_settings.auto = 'false' === et_shortcodes_tab_auto[1] ? false : true;
et_shortcodes_tab_settings.autoSpeed = et_shortcodes_tab_autospeed[1];
et_shortcodes_tab_settings.sliderType = 'simple';
et_shortcodes_tab_apply_to_element = '.et-simple-slides';
} else if ( 'images' === et_shortcodes_tab_type[1] ){
et_shortcodes_tab_settings.sliderType = 'images';
et_shortcodes_tab_settings.linksNav = '#' + $(this).attr('id') + ' .controllers a.switch';
et_shortcodes_tab_settings.findParent = false;
et_shortcodes_tab_settings.lengthElement = '#' + $(this).attr('id') + ' a.switch';
et_shortcodes_tab_apply_to_element = '.et-image-slides';
}
$(this).find(et_shortcodes_tab_apply_to_element).et_shortcodes_switcher( et_shortcodes_tab_settings );
});
});

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff