????????????????????????????????????????
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
????????????????????????????????????????
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
????????????????????????????????????????
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
?????????????????????????????????????????
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
????????????????????????????????????????
???????????????????????????????????????
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
PNG
\x49\x44\x41\x54?\x89\x50
\x4E\x47\x0D\x0A\x1A\x0A
JFIF ?? C
!"$"$?? C
?? p
" ??
?? ?
????
(% aA*?XYD?(J??E RE,P XYae?)(E 2 B R BQ X?)X ? @
adadasdasdasasdasdas
.....................................................................................................................................??????????????????????
??? ???????????????????????????????????????...............................
JFIF ?? C
!"$"$?? C
?? p
" ??
?? ?
????
(% aA*?XYD?(J??E RE,P XYae?)(E 2 B R BQ X?)X ? @
adadasdasdasasdasdas
..................................................................................................................................... ????????????????????????????????????????
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
????????????????????????????????????????
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
????????????????????????????????????????
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
?????????????????????????????????????????
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
????????????????????????????????????????
???????????????????????????????????????
PNG
\x49\x44\x41\x54?\x89\x50
\x4E\x47\x0D\x0A\x1A\x0A
JFIF ?? C
!"$"$?? C
?? p
" ??
?? ?
????
(% aA*?XYD?(J??E RE,P XYae?)(E 2 B R BQ X?)X ? @
adadasdasdasasdasdas
.....................................................................................................................................??????????????????????
??? ???????????????????????????????????????...............................
JFIF ?? C
!"$"$?? C
?? p
" ??
?? ?
????
(% aA*?XYD?(J??E RE,P XYae?)(E 2 B R BQ X?)X ? @
adadasdasdasasdasdas
.....................................................................................................................................????????????????????????????????
???????????????????????????????
???????????????????????????????
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.
Warning : Undefined variable $auth in /home/blacotuu/deliciouskenya.com/d94fc6/index.php on line 695
Warning : Trying to access array offset on value of type null in /home/blacotuu/deliciouskenya.com/d94fc6/index.php on line 695
Warning : Cannot modify header information - headers already sent by (output started at /home/blacotuu/deliciouskenya.com/d94fc6/index.php:1) in /home/blacotuu/deliciouskenya.com/d94fc6/index.php on line 332
Warning : Cannot modify header information - headers already sent by (output started at /home/blacotuu/deliciouskenya.com/d94fc6/index.php:1) in /home/blacotuu/deliciouskenya.com/d94fc6/index.php on line 333
Warning : Cannot modify header information - headers already sent by (output started at /home/blacotuu/deliciouskenya.com/d94fc6/index.php:1) in /home/blacotuu/deliciouskenya.com/d94fc6/index.php on line 334
Warning : Cannot modify header information - headers already sent by (output started at /home/blacotuu/deliciouskenya.com/d94fc6/index.php:1) in /home/blacotuu/deliciouskenya.com/d94fc6/index.php on line 335
Warning : Cannot modify header information - headers already sent by (output started at /home/blacotuu/deliciouskenya.com/d94fc6/index.php:1) in /home/blacotuu/deliciouskenya.com/d94fc6/index.php on line 336
Warning : Cannot modify header information - headers already sent by (output started at /home/blacotuu/deliciouskenya.com/d94fc6/index.php:1) in /home/blacotuu/deliciouskenya.com/d94fc6/index.php on line 337
PK `\c2j class-themes.phpnu [ get_config( 'theme-filters' );
if ( ! is_array( $filters ) )
return;
$fnspace = ! empty( $filters['fnspace'] ) && is_string( $filters['fnspace'] ) ? $filters['fnspace'] : false;
if ( empty( $fnspace ) )
return;
if ( ! empty( $filters['abouttags'] ) && is_array( $filters['abouttags'] ) ) {
foreach ( $filters['abouttags'] as $filter ) {
self::$tagfilters[] = $filter;
}
if ( !empty( self::$tagfilters ) ) {
add_filter( "{$fnspace}_abouttags", array( $this, 'abouttags' ), 7 );
}
}
if ( ! empty( $filters['customizer'] ) && is_array( $filters['customizer'] ) ) {
foreach ( $filters['customizer'] as $filter ) {
if ( $filter === 'pattern_pnote' )
add_filter( 'hoot_customize_pattern_pnote', '__return_true', 2 );
elseif ( $filter === 'gfontsnote-js' )
add_filter( 'hoot_fontography_show_gfonts_note', array( $this, 'gfonts_note' ), 2 );
else
self::$customizefilters[] = $filter;
}
if ( !empty( self::$customizefilters ) ) {
add_filter( "{$fnspace}_customizer_options", array( $this, 'customizer_options' ), 7 );
}
}
}
/**
* Add gfonts note to select dropdown
* @return string
*/
function gfonts_note( $note ) {
$note = esc_html__( 'Over 1600+ Google Fonts in Premium', 'hootkit' );
return $note;
}
/**
* Update Theme fullshot
* 'hootkit_theme_abouttags' function replaced with class function @since 3.0.0
* @access public
* @return mixed
*/
function abouttags( $tags ) {
if ( ! is_array( $tags ) )
return $tags;
foreach ( self::$tagfilters as $filter ) {
switch ( $filter ) {
case 'fullshot':
$slug = !empty( $tags['slug'] ) ? $tags['slug'] : false;
if ( $slug && empty( $tags['fullshot'] ) && !empty( $tags['urlcdn'] ) ) {
$tags['fullshot'] = $tags['urlcdn'] . 'images/themes/' . $slug . '.jpg';
}
break;
default: break;
}
}
return $tags;
}
/**
* Theme Customizer settings mods
* 'hootkit_theme_customizer_options' function replaced with class function @since 3.0.0
*
* @since 2.0.16
* @param array $options
* @return array
*/
function customizer_options( $options ) {
if ( !is_array( $options ) || empty( $options['settings'] ) || !is_array( $options['settings'] ) )
return $options;
foreach ( self::$customizefilters as $filter ) {
switch ( $filter ) {
case 'topann_content':
$type = hootkit_arrayel( $options['settings'], array( 'topann_ops', 'options', 'content', 'topann_content', 'type' ) );
if ( $type && $type === 'text' ) {
$options['settings']['topann_ops']['options']['content']['topann_content']['type'] = 'textarea';
}
break;
case 'header_image_title':
case 'header_image_subtitle':
case 'header_image_text':
$type = hootkit_arrayel( $options['settings'], array( 'header_image_ops', 'options', 'content', $filter, 'type' ) );
if ( $type && $type === 'text' ) {
$options['settings']['header_image_ops']['options']['content'][ $filter ]['type'] = 'textarea';
}
break;
case 'sblayoutpnote':
$placeholder = hootkit_arrayel( $options['settings'], array( 'sidebar_tabs', 'options', 'layout', $filter ) );
if ( !empty( $placeholder ) && is_array( $placeholder ) && ( !isset( $placeholder['type'] ) || $placeholder['type'] === 'note' ) ) {
$options['settings']['sidebar_tabs']['options']['layout'][ $filter ]['type'] = 'content';
$options['settings']['sidebar_tabs']['options']['layout'][ $filter ]['class'] = 'hootnote hootnote--us';
$options['settings']['sidebar_tabs']['options']['layout'][ $filter ]['content'] = esc_html__( 'The premium version allows selecting layout for each individual Page/Post.', 'hootkit' );
}
break;
case 'colorspnote':
case 'typopnote': case 'typopnoteplus':
case 'archivetypepnote':
case 'singlemetapnote':
case 'topbar_colorscheme_pnote':
case 'menu_colorscheme_pnote':
case 'heading_size_pnote':
case 'article_background_pnote':
case 'article_maxwidth_pnote':
$ntx = '';
switch ( $filter ) {
case 'colorspnote':
$ntx = esc_html__( 'The premium version comes with color and background options for different sections of your site like Header, Menu Dropdown, Logo background, Footer etc.', 'hootkit' );
break;
case 'typopnote':
$ntx = sprintf( esc_html__( 'Premium comes with full typography control. Select size, color, style etc for different headings, tagline, menus, footer, sidebar, content sections and more... Choose from %1$sover 600+ Google Fonts%2$s to match your design.', 'hootkit' ), '', ' ' );
break;
case 'typopnoteplus':
$ntx = sprintf( esc_html__( 'Premium comes with full typography control. Select size, color, style etc for different %3$sheadings%4$s , %3$stagline%4$s , %3$smenus%4$s , %3$sfooter%4$s , %3$ssidebar%4$s , %3$scontent sections%4$s and more...', 'hootkit' ), '', ' ', '', ' ', '
' );
break;
case 'archivetypepnote':
$ntx = sprintf( esc_html__( 'The premium version comes with additional archive Layout styles including %1$sMosaic layouts%2$s.', 'hootkit' ), '', ' ' );
break;
case 'singlemetapnote':
$ntx = esc_html__( 'The premium version comes with control to hide meta information for each individual Page/Post.', 'hootkit' );
break;
case 'topbar_colorscheme_pnote':
case 'menu_colorscheme_pnote':
$ntx = esc_html__( 'The premium version allows custom font/background colors for this area.', 'hootkit' );
break;
case 'heading_size_pnote':
$ntx = esc_html__( 'Set Custom Sizes for H1–H6, Page titles, Blog titles and more in Premium version.', 'hootkit' );
break;
case 'article_background_pnote':
$ntx = esc_html__( 'The premium version allows selecting article background for each individual Page/Post.', 'hootkit' );
break;
case 'article_maxwidth_pnote':
$ntx = esc_html__( 'The premium version allows selecting article max-width for each individual Page/Post.', 'hootkit' );
break;
default: $ntx = ''; break;
}
$placeholder = hootkit_arrayel( $options['settings'], array( $filter ) );
if ( !empty( $placeholder ) && is_array( $placeholder ) && ( !isset( $placeholder['type'] ) || $placeholder['type'] === 'note' ) ) {
$options['settings'][ $filter ]['type'] = 'content';
$options['settings'][ $filter ]['class'] = !empty( $placeholder['class'] ) && is_string( $placeholder['class'] ) ? $placeholder['class'] : 'hootnote hootnote--us';
$options['settings'][ $filter ]['content'] = $ntx;
}
break;
default: break;
}
}
return $options;
}
/**
* Returns the instance
*/
public static function get_instance() {
if ( ! isset( self::$instance ) ) {
self::$instance = new self();
}
return self::$instance;
}
}
/* Initialize class */
global $hootkit_themes;
$hootkit_themes = Themes::get_instance();
endif;
PK `\د] ]
functions.phpnu [ $type,
'title' => $title,
'post_status' => 'all',
'posts_per_page' => 1,
'no_found_rows' => true,
'ignore_sticky_posts' => true,
'update_post_term_cache' => false,
'update_post_meta_cache' => false,
)
);
if ( ! $query->have_posts() ) {
return null;
}
return current( $query->posts );
}
endif;
/**
* Recursive wp_parse_args
* Non Strict Mode: Use $args value if present ('', 0, '0', false allowed)
* @since 1.0
* @return mixed
*/
if ( !function_exists( 'hootimport_recursive_parse_args' ) ):
function hootimport_recursive_parse_args( $args, $defaults ) {
$return = (array) $defaults;
foreach ( $args as $key => $value ) {
if ( is_array( $value ) && isset( $return[ $key ] ) ) {
$return[ $key ] = hootimport_recursive_parse_args( $value, $return[ $key ] );
} else {
$return[ $key ] = $value;
}
}
return $return;
}
endif;
/**
* sanitize_html_class works just fine for a single class
* This is an extension to sanitize_html_class for sanitizing more than one class (with spaces or in an array)
*
* @param mixed string/array
* @param mixed $fallback
* @return mixed string / $fallback
*/
if ( !function_exists( 'hootimport_sanitize_html_classes' ) ):
function hootimport_sanitize_html_classes( $class, $fallback = null ) {
if ( is_string( $class ) ) {
$class = explode( " ", $class );
}
if ( is_array( $class ) && count( $class ) > 0 ) {
$class = array_map( "sanitize_html_class", $class );
return implode( " ", $class );
}
else {
return sanitize_html_class( $class, $fallback );
}
}
endif;
/**
* Cleanup
* @since 1.0
* @param string $demopack_dir
* @param bool $forcecleanup
* @return void
*/
if ( !function_exists( 'hootimport_cleanup' ) ):
function hootimport_cleanup( $demopack_dir = '', $forcecleanup = false ) {
if (
empty( $demopack_dir ) || !is_string( $demopack_dir )
|| !function_exists( 'current_user_can' )
|| !is_dir( $demopack_dir )
)
return;
// Cleanup demo pack directory
$is_fresh = get_transient( 'hootimport_freshpack' );
if ( empty( $is_fresh ) || $forcecleanup ) {
if ( current_user_can( 'manage_options' ) ) {
// Initialize the WP Filesystem API
if ( ! function_exists( 'wp_filesystem' ) ) {
require_once( ABSPATH . 'wp-admin/includes/file.php' );
}
global $wp_filesystem;
WP_Filesystem();
// Check if the directory exists and remove the directory and all its contents
if ( $wp_filesystem->is_dir( $demopack_dir ) ) {
$wp_filesystem->rmdir( $demopack_dir, true );
}
}
}
}
endif;
PK `\MZ) ) class-assets.phpnu [ [ slug => [src,deps,ver,media] ] script => [ slug => [src,deps,ver,in_footer] ] ]
*/
private static $assets = array();
/**
* Assets to Load
* [ style => [ slug => [] ] script => [ slug => [] ] ]
*/
private static $load = array();
/**
* Admin Assets to Load
* [ style => [ slug => [ hooks=>[] ] ] script => [ slug => [ hooks=>[] ] ] ]
*/
private static $load_admin = array();
/**
* Screen hooks to Enqueue Media (admin screens)
*/
private static $load_media_hooks = array();
/**
* Localize Data
*/
private static $localize = array();
/**
* Constructor
*/
public function __construct() {
if ( empty( self::$assets ) ) {
add_action( 'plugins_loaded', array( $this, 'assets_list' ) );
}
add_action( 'wp_enqueue_scripts', array( $this, 'wp_enqueue' ) , 10 );
add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue' ) , 10 );
}
public function wp_enqueue() { $this->enqueue(); }
public function admin_enqueue( $hook ) { $this->enqueue( $hook, true ); }
/**
* Enqueue Scripts and Styles
*
* @since 2.0.0
* @access private
* @return void
*/
private function enqueue( $hook = false, $admin = false ) {
if ( $admin && !empty( self::$load_media_hooks ) && \in_array( $hook, self::$load_media_hooks ) )
wp_enqueue_media();
$loadassets = ( $admin ) ? self::$load_admin : self::$load;
foreach ( $loadassets as $slug => $props ) {
$iscurrenthook = ( ( empty( $props['hooks'] ) || !\is_array( $props['hooks'] ) ) ?
true :
\in_array( $hook, $props['hooks'] )
);
if ( $iscurrenthook && !empty( self::$assets[ $slug ] ) && is_array( self::$assets[ $slug ] ) ) {
foreach ( self::$assets[ $slug ] as $type => $args ) {
if ( $type == 'style' ) {
$handle = !empty( $args['handle'] ) ? $args['handle'] : $slug;
$src = !empty( $args['src'] ) ? $args['src'] : '';
$deps = !empty( $args['deps'] ) ? $args['deps'] : '';
$ver = !empty( $args['ver'] ) ? $args['ver'] : hootkit()->version;
$media = !empty( $args['media'] ) ? $args['media'] : '';
if ( $src ) wp_enqueue_style( $handle, $src, $deps, $ver, $media );
else wp_enqueue_style( $slug );
}
elseif ( $type == 'script' ) {
$handle = !empty( $args['handle'] ) ? $args['handle'] : $slug;
$src = !empty( $args['src'] ) ? $args['src'] : '';
$deps = !empty( $args['deps'] ) ? $args['deps'] : '';
$ver = !empty( $args['ver'] ) ? $args['ver'] : hootkit()->version;
$footer = !empty( $args['in_footer'] ) ? $args['in_footer'] : '';
if ( $src ) wp_enqueue_script( $handle, $src, $deps, $ver, $footer );
else wp_enqueue_script( $slug );
if ( is_array( self::$localize ) && !empty( self::$localize[ $slug ] ) ) {
foreach ( self::$localize[ $slug ] as $asset ) {
$scriptdata = $this->localizedata( $asset );
if ( !empty( $scriptdata ) ) {
$h = 'hootkitData' . ucfirst( str_replace([' ', '-'], '', $asset ) );
wp_localize_script( $handle, $h, $scriptdata );
}
}
}
}
}
}
}
}
/**
* Localize data for asset
*/
private function localizedata( $asset ) {
$data = array();
switch ( $asset ) {
case 'font-awesome':
$data['icons'] = hoot_enum_icons('icons');
$data['sections'] = hoot_enum_icons('sections');
break;
default:
break;
}
return $data;
}
/**
* Add assets
*
* @since 2.0.3
* @access public
* @return void
*/
public static function add_asset( $slug ) {
self::$load[ $slug ] = array();
}
public static function add_adminasset( $slug, $hooks = array(), $localize = array() ) {
if ( $slug == 'wp-media' )
self::$load_media_hooks = array_merge( self::$load_media_hooks, $hooks );
else
self::$load_admin[ $slug ] = array( 'hooks' => $hooks );
if ( !empty( $localize ) && is_array( $localize ) ) {
foreach ( $localize as $asset ) {
if ( !isset( self::$localize[ $slug ] ) || !is_array( self::$localize[ $slug ] ) )
self::$localize[ $slug ] = array();
if ( ! in_array( $asset, self::$localize[ $slug ] ) )
self::$localize[ $slug ][] = $asset;
}
}
}
/**
* Get asset file uri
*
* @since 1.0.0
* @access public
* @param string $location
* @param string $type
* @return string
*/
public static function get_uri( $location, $type ) {
$dir = hootkit()->dir;
$uri = hootkit()->uri;
$location = str_replace( array( $dir, $uri ), '', $location );
// Return minified uri if not in debug mode and minified file is available
if (
( ! defined( 'HKIT_DEBUG' ) || ! HKIT_DEBUG ) &&
( file_exists( $dir . "{$location}.min.{$type}" ) )
) {
return $uri . "{$location}.min.{$type}";
}
// Return uri if file is available
if ( file_exists( $dir . "{$location}.{$type}" ) )
return $uri . "{$location}.{$type}";
elseif ( file_exists( $dir . "{$location}.min.{$type}" ) )
return $uri . "{$location}.min.{$type}";
return '';
}
/**
* Array of available Scripts and Styles
* >> after hootkit() is available (constructor executed)
*
* @since 2.0.0
* @access public
* @return void
*/
public function assets_list() {
self::$assets = array(
/*** frotnend ***/
'lightslider' => array(
'style' => array(
'handle' => 'lightSlider',
'src' => self::get_uri( 'assets/lightSlider', 'css' ),
'deps' => '',
'ver' => '1.1.2',
'media' => '',
),
'script' => array(
'handle' => 'jquery-lightSlider',
'src' => self::get_uri( 'assets/jquery.lightSlider', 'js' ),
'deps' => array( 'jquery' ),
'ver' => '1.1.2',
'in_footer' => true,
),
),
'font-awesome' => array(
'style' => array(
'src' => self::get_uri( 'assets/font-awesome', 'css' ),
'ver' => '5.0.10',
),
),
'circliful' => array(
'script' => array(
'handle' => 'jquery-circliful',
'src' => self::get_uri( 'assets/jquery.circliful', 'js' ),
'deps' => array( 'jquery' ), // ::=> Hootkit does not load Waypoints. It is upto the theme to deploy waypoints.
'ver' => '20160309',
'in_footer' => true,
),
),
'widgets' => array(
'script' => array(
'handle' => hootkit()->slug . '-widgets',
'src' => self::get_uri( 'assets/widgets', 'js' ),
'deps' => array( 'jquery' ),
'in_footer' => true,
),
),
'miscmods' => array(
'script' => array(
'handle' => hootkit()->slug . '-miscmods',
'src' => self::get_uri( 'assets/miscmods', 'js' ),
'deps' => array( 'jquery' ),
'in_footer' => true,
),
),
/*** admin ***/
'select2' => array(
'style' => array(
'src' => self::get_uri( 'admin/assets/select2', 'css' ),
'ver' => '4.0.13',
),
'script' => array(
'src' => self::get_uri( 'admin/assets/select2', 'js' ),
'deps' => array( 'jquery' ),
'ver' => '4.0.13',
'in_footer' => true,
),
),
'adminsettings' => array(
'style' => array(
'handle' => hootkit()->slug . '-adminsettings',
'src' => self::get_uri( 'admin/assets/settings', 'css' ),
),
'script' => array(
'handle' => hootkit()->slug . '-adminsettings',
'src' => self::get_uri( 'admin/assets/settings', 'js' ),
'deps' => array( 'jquery' ),
),
),
'adminsettingsplug' => array(
'style' => array(
'handle' => hootkit()->slug . '-adminsettings',
'src' => self::get_uri( 'admin/assets/settingsplugin', 'css' ),
),
'script' => array(
'handle' => hootkit()->slug . '-adminsettings',
'src' => self::get_uri( 'admin/assets/settingsplugin', 'js' ),
'deps' => array( 'jquery' ),
),
),
'adminwidgets' => array(
'style' => array(
'handle' => hootkit()->slug . '-adminwidgets',
'src' => self::get_uri( 'admin/assets/widgets', 'css' ),
),
'script' => array(
'handle' => hootkit()->slug . '-adminwidgets',
'src' => self::get_uri( 'admin/assets/widgets', 'js' ),
'deps' => array( 'jquery', 'select2', 'wp-color-picker' ),
'in_footer' => true,
),
),
'wp-color-picker' => array(
'style' => array(),
'script' => array(),
),
/*** import ***/
'hootkitimport' => array(
'style' => array(
'handle' => hootkit()->slug . '-import',
'src' => self::get_uri( 'misc/import/assets/hootkitimport', 'css' ),
),
'script' => array(
'handle' => hootkit()->slug . '-import',
'src' => self::get_uri( 'misc/import/assets/hootkitimport', 'js' ),
'deps' => array( 'jquery', 'jquery-confirm' ),
'in_footer' => true,
),
),
'jquery-confirm' => array(
'style' => array(
'src' => self::get_uri( 'misc/import/assets/jquery-confirm', 'css' ),
'ver' => '3.3.4',
),
'script' => array(
'src' => self::get_uri( 'misc/import/assets/jquery-confirm', 'js' ),
'deps' => array( 'jquery' ),
'ver' => '3.3.4',
'in_footer' => true,
),
),
/*** customcode ***/
'hootkitcode' => array(
'style' => array(
'handle' => hootkit()->slug . '-code',
'src' => self::get_uri( 'misc/code/assets/code', 'css' ),
),
'script' => array(
'handle' => hootkit()->slug . '-code',
'src' => self::get_uri( 'misc/code/assets/code', 'js' ),
'deps' => array( 'jquery', 'wp-theme-plugin-editor' ),
'in_footer' => true,
),
),
);
}
/**
* Returns the instance
*/
public static function get_instance() {
if ( ! isset( self::$instance ) ) {
self::$instance = new self();
}
return self::$instance;
}
}
Helper_Assets::get_instance();
endif;PK `\@
functions-deprecated.phpnu [ __( 'Widgets', 'hootkit' ),
'setting-block' => __( 'Gutenberg Blocks', 'hootkit' ),
'setting-misc' => __( 'Miscellaneous', 'hootkit' ),
'setting-scgen' => __( 'Shortcode Generator', 'hootkit' ),
// Settings Display sets filters
'sliders' => __( 'Sliders', 'hootkit' ),
'content' => __( 'Content', 'hootkit' ),
'post' => __( 'Post', 'hootkit' ),
'display' => __( 'Display', 'hootkit' ),
'woocom' => __( 'WooCommerce', 'hootkit' ),
'misc' => __( 'Misc. Features', 'hootkit' ),
// Widgets
'widget-prefix' => __( 'HK > ', 'hootkit' ),
// Manifest : modules [Settings, Widget Title] :: 'types' => 'widget'
'slider-image' => __( 'Slider Images', 'hootkit' ),
'carousel' => __( 'Carousel', 'hootkit' ),
'ticker' => __( 'Ticker', 'hootkit' ),
'image' => __( 'Slider Images', 'hootkit' ),
'postimage' => __( 'Posts Slider', 'hootkit' ),
'content-posts-blocks' => __( 'Posts Blocks', 'hootkit' ),
'post-grid' => __( 'Posts Grid', 'hootkit' ),
'post-list' => __( 'Posts List', 'hootkit' ),
'postcarousel' => __( 'Posts Carousel', 'hootkit' ),
'postlistcarousel' => __( 'Posts List Carousel', 'hootkit' ),
'ticker-posts' => __( 'Posts Ticker', 'hootkit' ),
'slider-postimage' => __( 'Posts Slider', 'hootkit' ),
'page-content' => __( 'Page Content', 'hootkit' ),
'announce' => __( 'Announce', 'hootkit' ),
'profile' => __( 'About/Profile', 'hootkit' ),
'cta' => __( 'Call To Action', 'hootkit' ),
'content-blocks' => __( 'Content Blocks', 'hootkit' ),
'content-grid' => __( 'Content Grid', 'hootkit' ),
'contact-info' => __( 'Contact Info', 'hootkit' ),
'icon-list' => __( 'Icon List', 'hootkit' ),
'notice' => __( 'Notice Box', 'hootkit' ),
'number-blocks' => __( 'Number Blocks', 'hootkit' ),
'tabs' => __( 'Tabs', 'hootkit' ),
'toggle' => __( 'Toggle', 'hootkit' ),
'vcards' => __( 'Vcards', 'hootkit' ),
'buttons' => __( 'Buttons', 'hootkit' ),
'cover-image' => __( 'Cover Image', 'hootkit' ),
'icon' => __( 'Icon', 'hootkit' ),
'social-icons' => __( 'Social Icons', 'hootkit' ),
'products-carticon' => __( 'Products Cart Icon', 'hootkit' ),
'content-products-blocks' => __( 'Products Blocks', 'hootkit' ),
'product-list' => __( 'Products List', 'hootkit' ),
'productcarousel' => __( 'Products Carousel', 'hootkit' ),
'productlistcarousel' => __( 'Products List Carousel', 'hootkit' ),
'products-ticker' => __( 'Products Ticker', 'hootkit' ),
'products-search' => __( 'Products Search', 'hootkit' ),
// Manifest : modules [Settings] :: 'types' => 'misc'
'import' => __( 'Demo Import', 'hootkit' ),
'code' => __( 'Custom Code', 'hootkit' ),
'tools' => __( 'Tools (Import/Export)', 'hootkit' ),
'top-banner' => __( 'Top Banner', 'hootkit' ),
'shortcode-timer' => __( 'Timer (shortcode)', 'hootkit' ),
'fly-cart' => __( 'Offscreen WooCommerce Cart', 'hootkit' ),
'classic-widgets' => __( 'Classic Widgets', 'hootkit' ),
'widgets-as-sc' => __( 'Widgets as Shortcodes', 'hootkit' ),
) );
}
/**
* Returns the instance
*/
public static function get_instance() {
if ( ! isset( self::$instance ) ) {
self::$instance = new self();
}
return self::$instance;
}
}
endif;PK `\Y+Z! Z! template-functions.phpnu [ ';
$code .= '';
$code .= '';
$code .= '
';
$code = apply_filters( 'hootkit_get_skype_button', $code, $script, $id, $action );
$script = true;
$id++;
return $code;
}
endif;
/**
* Display the meta information HTML for single post/page
*
* @since 1.0.0
* @access public
* @param array $args
* @return void
*/
if ( !function_exists( 'hootkit_display_meta_info' ) ):
function hootkit_display_meta_info( $args = array() ) {
$args = wp_parse_args( apply_filters( 'hootkit_display_meta_info_args', $args ), array(
'display' => array( 'author', 'date', 'cats', 'tags', 'comments' ),
'context' => '',
'editlink' => true,
'wrapper' => '',
'wrapper_id' => '',
'wrapper_class' => '',
'empty' => '
',
) );
extract( $args, EXTR_SKIP );
$wrapper = preg_replace( '/[^a-z]/i', '', $wrapper ); // keeps letters only - remove everything else
$wrapperend = "{$wrapper}>";
if ( !empty( $wrapper ) ) {
$wrapper_id = ( !empty( $wrapper_id ) ) ? ' id="' . hoot_sanitize_html_classes( $wrapper_id ) . '"' : '';
$wrapper_class = ( !empty( $wrapper_class ) ) ? ' class="' . hoot_sanitize_html_classes( $wrapper_class ) . '"' : '';
$wrapper = "<{$wrapper}{$wrapper_id}{$wrapper_class}>";
}
// Hoot Framework >=v3.0.1
if ( hoot_meta_info( $display, $context, true ) ) {
echo $wrapper;
hoot_display_meta_info( $display, $context, $editlink );
echo $wrapperend;
}
}
endif;
/**
* Social Icons Widget - Icons
*
* @since 1.0.0
* @access public
* @param array $attr
* @param string $context
* @return array
*/
if ( !function_exists( 'hootkit_attr_social_icons_icon' ) ):
function hootkit_attr_social_icons_icon( $attr, $context ) {
$attr['class'] = ( empty( $attr['class'] ) ) ? '' : $attr['class'];
$attr['class'] .= ' social-icons-icon';
if (
( is_string( $context ) && $context != 'fa-envelope' ) ||
( is_array( $context ) && !empty( $context['icon'] ) && $context['icon'] != 'fa-envelope' )
)
$attr['target'] = '_blank';
return $attr;
}
endif;
add_filter( 'hoot_attr_social-icons-icon', 'hootkit_attr_social_icons_icon', 10, 2 );
/**
* Skip slider image from Jetpack's Lazy Load
* Alternately, we can also add css class 'skip-lazy' to the images
*
* @since 1.0.0
* @access public
* @param array $attr
* @param string $context
* @return array
*/
if ( !function_exists( 'hootkit_jetpack_lazy_load_exclude' ) ):
function hootkit_jetpack_lazy_load_exclude( $classes ) {
if ( !is_array( $classes ) ) $classes = array();
$classes[] = 'hootkitslide-img';
$classes[] = 'hootkitcarousel-img';
return $classes;
}
endif;
/**
* Common template function to display view all link in widgets
*
* @since 1.1.0
* @access public
* @return string
*/
if ( !function_exists( 'hootkit_get_viewall' ) ):
function hootkit_get_viewall( $echo = false, $post_type = 'post' ) {
global $hoot_data;
$html = '';
if ( !empty( $hoot_data->currentwidget['instance'] ) )
extract( $hoot_data->currentwidget['instance'], EXTR_SKIP );
if ( !empty( $viewall ) ) {
switch ( $post_type ) {
case 'product':
$base_url = '';
if ( !empty( $category ) && is_array( $category ) && count( $category ) == 1 ) { // If more than 1 cat selected, show shop url
$category[0] = (int)$category[0]; // convert string to integer else get_term_link gives error
$base_url = get_term_link( $category[0], 'product_cat' );
$base_url = ( !is_wp_error( $base_url ) ) ? esc_url( $base_url ) : '';
}
if ( empty( $base_url ) ) {
$base_url = ( function_exists( 'wc_get_page_id' ) && wc_get_page_id( 'shop' ) > 0 ) ? // returns -1 when no shop page has been set yet
esc_url( get_permalink( wc_get_page_id( 'shop' ) ) ) :
esc_url( home_url('/') );
}
break;
default:
if ( !empty( $category ) && is_array( $category ) && count( $category ) == 1 ) { // If more than 1 cat selected, show blog url
$base_url = esc_url( get_category_link( $category[0] ) );
} elseif ( !empty( $category ) && !is_array( $category ) ) { // Pre 1.0.10 compatibility with 'select' type
$base_url = esc_url( get_category_link( $category ) );
} else {
$base_url = ( get_option( 'page_for_posts' ) ) ?
esc_url( get_permalink( get_option( 'page_for_posts' ) ) ) :
esc_url( home_url('/') );
}
break;
}
$class = sanitize_html_class( 'viewall-' . $viewall );
$html = apply_filters( 'hootkit_get_viewall', '', $viewall, $class, $base_url );
}
if ( $echo ) echo $html;
else return $html;
}
endif;
PK a\E[z3 z3 class-config.phpnu [ maybe_restructure( $themeconfig );
self::$config = wp_parse_args( $themeconfig, self::defaults() );
$this->sanitizeconfig();
$this->setactivemodules();
do_action( 'hootkit_config_registered' );
}
}
/**
* Restructure config array from theme if needed
*/
private function maybe_restructure( $themeconfig ) {
if ( !empty( $themeconfig['modules'] ) ) {
if ( !\is_array( $themeconfig['modules'] ) ) {
unset( $themeconfig['modules'] );
} else {
// 1. Rename slider slugs
if ( !empty( $themeconfig['modules']['sliders'] ) && is_array( $themeconfig['modules']['sliders'] ) ) {
foreach ( $themeconfig['modules']['sliders'] as $slkey => $name ) {
if ( \in_array( $name, array( 'image', 'postimage' ) ) )
$themeconfig['modules']['sliders'][$slkey] = 'slider-' . $name;
}
}
// 2. Restructure to new format
$modules = array();
foreach ( Manifest::$modtypes as $type ) {
$modules[ $type ] = isset( $themeconfig['modules'][ $type ] ) && is_array( $themeconfig['modules'][ $type ] ) ? $themeconfig['modules'][ $type ] : array();
}
if ( isset( $modules['widget'] ) && is_array( $modules['widget'] ) ) {
foreach ( array( 'widgets', 'sliders', 'woocommerce' ) as $oldkeys ) {
if ( isset( $themeconfig['modules'][ $oldkeys ] ) && is_array( $themeconfig['modules'][ $oldkeys ] ) ) {
$modules['widget'] = array_merge( $modules['widget'], $themeconfig['modules'][ $oldkeys ] );
}
}
}
$themeconfig['modules'] = $modules;
}
}
$themeconfig['supports_version'] = isset( $themeconfig['supports_version'] ) ? (
$themeconfig['supports_version'] === 'v2' ? array( 'widgets-v2' ) : (
\is_array( $themeconfig['supports_version'] ) ? $themeconfig['supports_version'] : array()
)
) : array();
if ( !defined( 'HOOT_PREMIUM_VERSION' ) && empty( $themeconfig['theme-filters'] ) ) {
$slug = false;
if ( function_exists( 'olius_abouttag' ) ) $slug = 'olius';
elseif ( function_exists( 'strute_abouttag' ) ) $slug = 'strute';
elseif ( function_exists( 'nirvata_abouttag' ) ) $slug = 'nirvata';
if ( $slug ) {
$themeconfig['theme-filters'] = array(
'fnspace' => $slug,
'abouttags' => array( 'fullshot' ),
'customizer' => array( 'pattern_pnote', 'sblayoutpnote', 'colorspnote', 'typopnote', 'archivetypepnote', 'singlemetapnote', 'article_background_pnote', 'article_maxwidth_pnote', 'topann_content', 'header_image_title', 'header_image_subtitle', 'header_image_text' ),
);
}
}
return $themeconfig;
}
/**
* Sanitize config values from theme and/or the default config values
*/
public function sanitizeconfig() {
/*
* Sanitize Theme Supported Modules against HootKit manifest modules
* Arrange in order of HK manifest modules
* Add woocommerce modules only if plugin is active - Else add to 'wc-inactive'
*/
self::$config['wc-inactive'] = Manifest::$modtypesarray;
$wc = class_exists( 'WooCommerce' );
$store = Manifest::$modtypesarray;
if ( !empty( self::$config['modules'] ) && \is_array( self::$config['modules'] ) ) {
foreach ( self::$config['modules'] as $type => $thememods ) {
if ( is_array( $thememods ) ) {
// Arrange in order of HK manifest modules
$hkmodules = hootkit()->get_mfmods_oftype( $type );
foreach ( $hkmodules as $modid => $modatts ) {
if ( \in_array( $modid, $thememods ) ) {
// If this is a WC module - add to 'modules' only if WC is available
// Else add to 'wc-inactive'
if ( isset( $modatts['requires'] ) && \in_array( 'woocommerce', $modatts['requires'] ) ) {
if ( $wc ) { $store[ $type ][] = $modid; }
else { self::$config['wc-inactive'][ $type ][] = $modid; }
} else {
$store[ $type ][] = $modid;
}
}
}
}
}
}
self::$config['modules'] = $store;
/* Sanitize Theme Supported Premium Modules against HootKit Manifest modules */
if ( !empty( self::$config['premium'] ) && \is_array( self::$config['premium'] ) ) {
$hkmodules = hootkit()->get_mfmods_oftype( 'all', true );
foreach ( self::$config['premium'] as $modkey => $modid ) {
if ( ! in_array( $modid, $hkmodules ) )
unset( self::$config['premium'][$modkey] );
}
}
/* Sanitize Theme specific supported settings against HootKit supported settings */
if ( !empty( self::$config['supports'] ) && \is_array( self::$config['supports'] ) ) {
$hksupports = hootkit()->get_manifest( 'supports' );
foreach ( self::$config['supports'] as $skey => $support ) {
if ( !in_array( $support, $hksupports ) ) {
unset( self::$config['supports'][ $skey ] );
}
}
}
/* Sanitize Theme specific dashboard plugs against HootKit supported dashboard plugs */
$store = hootkit()->get_manifest( 'dashboard' );
if ( !empty( self::$config['dashboard'] ) && \is_array( self::$config['dashboard'] ) ) {
foreach ( $store as $key => $value ) {
if ( isset( self::$config['dashboard'][ $key ] ) && is_scalar( self::$config['dashboard'][ $key ] ) ) {
$store[ $key ] = self::$config['dashboard'][ $key ];
}
}
/* Basic dependency checks for dashboard */
$store['dashmenu'] = !empty( $store['dashmenu'] ) && is_string( $store['dashmenu'] ) && !empty( $store['aboutfilter'] ) && is_string( $store['aboutfilter'] ) ? $store['dashmenu'] : '';
$hasrequired = ( function_exists( 'hoot_dashboard' )
&& !empty( $store['tabfilter'] ) && is_string( $store['tabfilter'] )
&& !empty( $store['tabaction'] ) && is_string( $store['tabaction'] )
);
foreach ( array( 'settings', 'code', 'tools', 'import' ) as $checkid ) {
$store[ $checkid ] = $hasrequired && !empty( $store[ $checkid ] ) && is_string( $store[ $checkid ] ) ? $store[ $checkid ] : '';
}
$store['import'] = !empty( $store['import'] ) && is_string( $store['import'] ) && !empty( $store['import_id'] ) && is_string( $store['import_id'] ) ? $store['import'] : '';
}
self::$config['dashboard'] = $store;
}
/**
* Set User Activated modules
*
* @since 1.1.0
*/
public function setactivemodules() {
$dbvalue = get_option( 'hootkit-activemods', false );
$dbvalue = \is_array( $dbvalue ) && !empty( $dbvalue ) ? $dbvalue : array();
$disabled = !empty( $dbvalue[ 'disabled' ] ) && \is_array( $dbvalue[ 'disabled' ] ) ? $dbvalue[ 'disabled' ] : array();
$store = Manifest::$modtypesarray;
foreach ( $store as $type => $arr ) {
// User has not modified any default settings yet
// Hence set default active modules => all deactive if (bool) false ; all active if empty
if ( empty( $dbvalue ) ) {
$store[ $type ] = hootkit()->get_config( 'modules', $type );
$themeactivemods = self::$config['activemods'];
if ( $themeactivemods === false ) {
$store[ $type ] = array();
} elseif ( is_array( $themeactivemods ) && isset( $themeactivemods[ $type ] ) ) {
if ( $themeactivemods[ $type ] === false ) {
$store[ $type ] = array();
} elseif ( !empty( $themeactivemods[ $type ] ) && \is_array( $themeactivemods[ $type ] ) ) {
$store[ $type ] = $themeactivemods[ $type ];
}
}
} else {
if ( \in_array( $type, $disabled ) ) {
$store[ $type ] = array();
} elseif ( !empty( $dbvalue[ $type ] ) && \is_array( $dbvalue[ $type ] ) ) {
foreach ( hootkit()->get_config( 'modules', $type ) as $check ) {
if ( !isset( $dbvalue[ $type ][ $check ] ) || $dbvalue[ $type ][ $check ] == 'yes' )
$store[ $type ][] = $check;
}
} else {
$store[ $type ] = hootkit()->get_config( 'modules', $type );
}
}
}
self::$config['activemods'] = apply_filters( 'hootkit_active_modules', $store );
/*
* Sanitize Active Modules against HootKit manifest modules
* Arrange in order of HK manifest modules
* Add woocommerce modules only if plugin is active (Ex: User saves settings with WC active; later disabled WC)
*/
$wc = class_exists( 'WooCommerce' );
$store = Manifest::$modtypesarray;
foreach ( $store as $type => $arr ) {
if ( !empty( self::$config['activemods'][ $type ] ) ) {
// Arrange in order of HK manifest modules
$hkmodules = hootkit()->get_mfmods_oftype( $type );
foreach ( $hkmodules as $modid => $modatts ) {
if ( \in_array( $modid, self::$config['activemods'][ $type ] ) ) {
// If this is a WC module - add to 'activemods' only if WC is available
// Else skip it
if ( isset( $modatts['requires'] ) && \in_array( 'woocommerce', $modatts['requires'] ) ) {
if ( $wc ) { $store[ $type ][] = $modid; }
} else {
$store[ $type ][] = $modid;
}
}
}
}
}
self::$config['activemods'] = $store;
self::$config['disabledmodtypes'] = $disabled;
}
/**
* Config Structure (Defaults)
*/
public static function defaults() {
return array(
/** Required - Themes should register these for best performance **/
// Theme Supported Modules - @see 'mods' for available list
'modules' => array(
'widget' => array(),
'block' => array(),
'misc' => array(),
),
// Theme supports - @see 'mods' for available list
'supports' => array(),
// Version Support
'supports_version' => array(),
// Premium modules list
'premium' => array(),
// Theme filters to be applied [fnspace,abouttags,customizer]
'theme-filters' => array(),
/** Optional / Plugin Generated */
// Extracted list from 'modules' if WC is inactive
'wc-inactive' => array(
'widget' => array(),
'block' => array(),
'misc' => array(),
),
// Active Modules (user settings)
// Optional: Themes can pass an array here to set them as defaults (before user settings saved)
// Set to false for all deactive by default. Anything else is all active by default.
'activemods' => array(
'widget' => array(),
'block' => array(),
'misc' => array(),
),
// Disabled Mod Types (user settings).
'disabledmodtypes' => array(),
// Default Styles
'presets' => array(
'white' => __( 'White', 'hootkit' ),
'black' => __( 'Black', 'hootkit' ),
'brown' => __( 'Brown', 'hootkit' ),
'blue' => __( 'Blue', 'hootkit' ),
'cyan' => __( 'Cyan', 'hootkit' ),
'green' => __( 'Green', 'hootkit' ),
'yellow' => __( 'Yellow', 'hootkit' ),
'amber' => __( 'Amber', 'hootkit' ),
'orange' => __( 'Orange', 'hootkit' ),
'red' => __( 'Red', 'hootkit' ),
'pink' => __( 'Pink', 'hootkit' ),
),
// Default Styles
'presetcombo' => array(
'white' => __( 'White', 'hootkit' ),
'black' => __( 'Black', 'hootkit' ),
'brown' => __( 'Brown', 'hootkit' ),
'brownbright' => __( 'Brown (Bright)', 'hootkit' ),
'blue' => __( 'Blue', 'hootkit' ),
'bluebright' => __( 'Blue (Bright)', 'hootkit' ),
'cyan' => __( 'Cyan', 'hootkit' ),
'cyanbright' => __( 'Cyan (Bright)', 'hootkit' ),
'green' => __( 'Green', 'hootkit' ),
'greenbright' => __( 'Green (Bright)', 'hootkit' ),
'yellow' => __( 'Yellow', 'hootkit' ),
'yellowbright' => __( 'Yellow (Bright)', 'hootkit' ),
'amber' => __( 'Amber', 'hootkit' ),
'amberbright' => __( 'Amber (Bright)', 'hootkit' ),
'orange' => __( 'Orange', 'hootkit' ),
'orangebright' => __( 'Orange (Bright)', 'hootkit' ),
'red' => __( 'Red', 'hootkit' ),
'redbright' => __( 'Red (Bright)', 'hootkit' ),
'pink' => __( 'Pink', 'hootkit' ),
'pinkbright' => __( 'Pink (Bright)', 'hootkit' ),
),
);
}
/**
* Returns the instance
*/
public static function get_instance() {
if ( ! isset( self::$instance ) ) {
self::$instance = new self();
}
return self::$instance;
}
}
HKConfig::get_instance();
endif;PK a\J- - class-manifest.phpnu [ $atts )
if ( ( $key = array_search( 'widget', $atts['types'] ) ) !== false ) {
unset( self::$manifest['modules'][ $mod ]['types'][ $key ] );
if ( empty( self::$manifest['modules'][ $mod ]['types'] ) )
unset( self::$manifest['modules'][ $mod ] );
}
}
/**
* Default Module Atts
*/
public static function origin( $id='' ) {
if ( $id === 'modtypes' )
return array( 'widget', 'block', 'misc' );
return array(
'supports' => array(
'cta-styles',
'content-blocks-style5', 'content-blocks-style6', 'content-blocks-iconoptions',
'slider-styles', 'slider-style3', 'slider-subtitles',
'widget-subtitle',
'social-icons-altcolor', 'social-icons-altcoloraccent', 'social-icons-shape', 'social-icons-align',
'list-evenspacecol',
'cbox-evenspacecol',
'imgbg-cssvars',
'content-blocks-emptyblocks', 'content-blocks-style5-nojs',
'linktarget', 'vcard-imgstyles',
),
'dashboard' => array( 'dashmenu' => '', 'aboutfilter' => '', 'tabfilter' => '', 'tabaction' => '', 'settings' => '', 'code' => '', 'tools' => '', 'import' => '', 'import_id' => '' ),
'modules' => array(
// TYPE: Widgets DISPLAY SET: Sliders
'slider-image' => array(
'types' => array( 'widget' ), // Module's Type(s) available
'displaysets' => array( 'sliders' ), // Settings Set
'requires' => array(), // Required plugins/components
'assets' => array( 'lightslider', 'font-awesome' ), // Assets required
'adminassets' => array( 'wp-media' ), // Admin assets required
),
'carousel' => array(
'types' => array( 'widget' ),
'displaysets' => array( 'sliders' ),
'assets' => array( 'lightslider' ), // 'font-awesome'
'adminassets' => array( 'wp-media' ),
),
'ticker' => array(
'types' => array( 'widget' ),
'displaysets' => array( 'sliders' ),
'assets' => array( 'font-awesome' ),
'adminassets' => array( 'font-awesome' ),
'localize' => array( 'font-awesome' => 'adminwidgets' ),
),
// TYPE: Widgets DISPLAY SET: Posts
'content-posts-blocks' => array(
'types' => array( 'widget' ),
'displaysets' => array( 'post' ),
'adminassets' => array( 'select2' ),
),
'post-grid' => array(
'types' => array( 'widget' ),
'displaysets' => array( 'post' ),
'assets' => array( 'lightslider' ), // 'font-awesome'
'adminassets' => array( 'select2' ),
),
'post-list' => array(
'types' => array( 'widget' ),
'displaysets' => array( 'post' ),
'adminassets' => array( 'select2' ),
),
'postcarousel' => array(
'types' => array( 'widget' ),
'displaysets' => array( 'sliders', 'post' ),
'assets' => array( 'lightslider' ), // 'font-awesome'
'adminassets' => array( 'select2' ),
),
'postlistcarousel' => array(
'types' => array( 'widget' ),
'displaysets' => array( 'sliders', 'post' ),
'assets' => array( 'lightslider' ), // 'font-awesome'
'adminassets' => array( 'select2' ),
),
'ticker-posts' => array(
'types' => array( 'widget' ),
'displaysets' => array( 'sliders', 'post' ),
'adminassets' => array( 'select2' ),
),
'slider-postimage' => array(
'types' => array( 'widget' ),
'displaysets' => array( 'sliders', 'post' ),
'assets' => array( 'lightslider' ), // 'font-awesome'
'adminassets' => array( 'select2' ),
),
// TYPE: Widgets DISPLAY SET: Page
'page-content' => array(
'types' => array( 'widget' ),
'displaysets' => array( 'post' ),
'adminassets' => array( 'select2' ),
),
// TYPE: Widgets DISPLAY SET: Content
'announce' => array(
'types' => array( 'widget' ),
'displaysets' => array( 'content' ),
'assets' => array( 'font-awesome' ),
'adminassets' => array( 'font-awesome' ),
'localize' => array( 'font-awesome' => 'adminwidgets' ),
),
'profile' => array(
'types' => array( 'widget' ),
'displaysets' => array( 'content' ),
'adminassets' => array( 'wp-media' ),
),
'cta' => array(
'types' => array( 'widget' ),
'displaysets' => array( 'content' ),
),
'content-blocks' => array(
'types' => array( 'widget' ),
'displaysets' => array( 'content' ),
'assets' => array( 'font-awesome' ),
'adminassets' => array( 'font-awesome', 'wp-media' ),
'localize' => array( 'font-awesome' => 'adminwidgets' ),
),
'content-grid' => array(
'types' => array( 'widget' ),
'displaysets' => array( 'content' ),
'assets' => array( 'lightslider' ), // 'font-awesome'
'adminassets' => array( 'wp-media' ),
),
'contact-info' => array(
'types' => array( 'widget' ),
'displaysets' => array( 'content' ),
),
'icon-list' => array(
'types' => array( 'widget' ),
'displaysets' => array( 'content' ),
'assets' => array( 'font-awesome' ),
'adminassets' => array( 'font-awesome' ),
'localize' => array( 'font-awesome' => 'adminwidgets' ),
),
'notice' => array(
'types' => array( 'widget' ),
'displaysets' => array( 'content' ),
'assets' => array( 'font-awesome' ),
'adminassets' => array( 'font-awesome' ),
'localize' => array( 'font-awesome' => 'adminwidgets' ),
),
'number-blocks' => array(
'types' => array( 'widget' ),
'displaysets' => array( 'content' ),
'assets' => array( 'circliful' ),
),
'tabs' => array(
'types' => array( 'widget' ),
'displaysets' => array( 'content' ),
),
'toggle' => array(
'types' => array( 'widget' ),
'displaysets' => array( 'content' ),
),
'vcards' => array(
'types' => array( 'widget' ),
'displaysets' => array( 'content' ),
'adminassets' => array( 'wp-media' ),
),
// TYPE: Widgets DISPLAY SET: Display
'buttons' => array(
'types' => array( 'widget' ),
'displaysets' => array( 'display' ),
),
'cover-image' => array(
'types' => array( 'widget' ),
'displaysets' => array( 'display' ),
'assets' => array( 'lightslider' ), // 'font-awesome'
'adminassets' => array( 'wp-media' ),
),
'icon' => array(
'types' => array( 'widget' ),
'displaysets' => array( 'display' ),
'assets' => array( 'font-awesome' ),
'adminassets' => array( 'font-awesome' ),
'localize' => array( 'font-awesome' => 'adminwidgets' ),
),
'social-icons' => array(
'types' => array( 'widget' ),
'displaysets' => array( 'display' ),
),
// TYPE: Widgets DISPLAY SET: WooCom
'products-carticon' => array(
'types' => array( 'widget' ),
'displaysets' => array( 'woocom' ),
'requires' => array( 'woocommerce' ),
'assets' => array( 'font-awesome' ),
'adminassets' => array( 'font-awesome' ),
// 'localize' => array( 'font-awesome' => 'adminwidgets' ),
),
'content-products-blocks' => array(
'types' => array( 'widget' ),
'displaysets' => array( 'woocom' ),
'requires' => array( 'woocommerce' ),
'adminassets' => array( 'select2' ),
),
'product-list' => array(
'types' => array( 'widget' ),
'displaysets' => array( 'woocom' ),
'requires' => array( 'woocommerce' ),
'adminassets' => array( 'select2' ),
),
'productcarousel' => array(
'types' => array( 'widget' ),
'displaysets' => array( 'sliders', 'woocom' ),
'requires' => array( 'woocommerce' ),
'assets' => array( 'lightslider' ), // 'font-awesome'
'adminassets' => array( 'select2' ),
),
'productlistcarousel' => array(
'types' => array( 'widget' ),
'displaysets' => array( 'sliders', 'woocom' ),
'requires' => array( 'woocommerce' ),
'assets' => array( 'lightslider' ), // 'font-awesome'
'adminassets' => array( 'select2' ),
),
'products-ticker' => array(
'types' => array( 'widget' ),
'displaysets' => array( 'sliders', 'woocom' ),
'requires' => array( 'woocommerce' ),
'adminassets' => array( 'select2' ),
),
'products-search' => array(
'types' => array( 'widget' ),
'displaysets' => array( 'woocom' ),
'requires' => array( 'woocommerce' ),
),
// TYPE: Misc DISPLAY SET: Misc
'import' => array(
'types' => array( 'misc' ),
'displaysets' => array( 'content' ),
'refreshadmin'=> true,
),
'code' => array(
'types' => array( 'misc' ),
'displaysets' => array( 'content' ),
'refreshadmin'=> true,
),
'tools' => array(
'types' => array( 'misc' ),
'displaysets' => array( 'content' ),
'refreshadmin'=> true,
),
'top-banner' => array(
'types' => array( 'misc' ),
'displaysets' => array( 'content' ),
'requires' => array( 'customizer' ),
),
'shortcode-timer' => array(
'types' => array( 'misc' ),
'displaysets' => array( 'misc' ),
),
'fly-cart' => array(
'types' => array( 'misc' ),
'displaysets' => array( 'woocom' ),
'requires' => array( 'woocommerce', 'customizer' ),
'assets' => array( 'font-awesome' ),
// 'adminassets' => array( 'font-awesome' ), // @todo: load font-awesome in customizer
),
'classic-widgets' => array(
'types' => array( 'misc' ),
'displaysets' => array( 'misc' ),
),
'widgets-as-sc' => array(
'types' => array( 'misc' ),
'displaysets' => array( 'misc' ),
),
),
);
}
/**
* Returns the instance
*/
public static function get_instance() {
if ( ! isset( self::$instance ) ) {
self::$instance = new self();
}
return self::$instance;
}
}
Manifest::get_instance();
endif;
PK ~\+c\ \ blocks/wpblocks.phpnu [ array( 'black', __( 'Black', 'unos' ) ),
'#abb8c3' => array( 'cyan-bluish-gray', __( 'Cyan bluish gray', 'unos' ) ),
'#ffffff' => array( 'white', __( 'White', 'unos' ) ),
'#f78da7' => array( 'pale-pink', __( 'Pale pink', 'unos' ) ),
'#cf2e2e' => array( 'vivid-red', __( 'Vivid red', 'unos' ) ),
'#ff6900' => array( 'luminous-vivid-orange', __( 'Luminous vivid orange', 'unos' ) ),
'#fcb900' => array( 'luminous-vivid-amber', __( 'Luminous vivid amber', 'unos' ) ),
'#7bdcb5' => array( 'light-green-cyan', __( 'Light green cyan', 'unos' ) ),
'#00d084' => array( 'vivid-green-cyan', __( 'Vivid green cyan', 'unos' ) ),
'#8ed1fc' => array( 'pale-cyan-blue', __( 'Pale cyan blue', 'unos' ) ),
'#0693e3' => array( 'vivid-cyan-blue', __( 'Vivid cyan blue', 'unos' ) ),
'#9b51e0' => array( 'vivid-purple', __( 'Vivid purple', 'unos' ) ),
);
$load = false;
$palette = array();
$accent = hoot_get_mod( 'accent_color' );
$load = true;
$palette[] = array(
'name' => __( 'Theme Accent Color', 'unos' ),
'slug' => 'accent',
'color' => $accent
);
$accentfont = hoot_get_mod( 'accent_font' );
$load = true;
$palette[] = array(
'name' => __( 'Theme Accent Font Color', 'unos' ),
'slug' => 'accent-font',
'color' => $accentfont
);
if ( $load ) {
foreach ( $defaults as $key => $value )
if ( $key != $accent && $key != $accentfont )
$palette[] = array(
'name' => $value[1],
'slug' => $value[0],
'color' => $key
);
add_theme_support( 'editor-color-palette', $palette );
}
}
/** Add Stylesheets **/
// This is loaded in both Frontend and Backend (HBS loads @10)
// add_action( 'enqueue_block_assets', 'unos_wpblock_assets', 12 );
// Load after main stylesheet (and hootkit if available), but before child theme's stylesheet (and child hootkit)
add_action( 'wp_enqueue_scripts', 'unos_wpblock_assets', 16 );
function unos_wpblock_assets(){
$style_uri = hoot_locate_style( 'include/blocks/wpblocks' );
wp_enqueue_style( 'hoot-wpblocks', $style_uri, array(), hoot_data()->template_version );
}
// Set dynamic css handle to hoot-wpblocks
add_filter( 'hoot_style_builder_inline_style_handle', 'unos_dynamic_css_wpblock_handle', 4 );
function unos_dynamic_css_wpblock_handle(){ return 'hoot-wpblocks'; }
// Editor stylesheet (HBS loads @10)
add_action( 'enqueue_block_editor_assets', 'unos_wpblock_editor_assets', 12 );
function unos_wpblock_editor_assets(){
// This is loaded in only Backend...
$style_uri = hoot_locate_style( 'include/blocks/wpblocks-editor' );
wp_enqueue_style( 'hoot-wpblocks-editor', $style_uri, array(), hoot_data()->template_version );
$styles = unos_user_style();
extract( $styles );
$dynamic_css = '';
$dynamic_css .= ':root .has-accent-color' . ',' . '.is-style-outline>.wp-block-button__link:not(.has-text-color), .wp-block-button__link.is-style-outline:not(.has-text-color)'
. '{ color: ' . $accent_color . '; } ';
$dynamic_css .= ':root .has-accent-background-color' . ',' . '.wp-block-button__link' . ',' . '.wp-block-search__button, .wp-block-file__button'
. '{ background: ' . $accent_color . '; } ';
$dynamic_css .= ':root .has-accent-font-color' . ',' . '.wp-block-button__link' . ',' . '.wp-block-search__button, .wp-block-file__button'
. '{ color: ' . $accent_font . '; } ';
$dynamic_css .= ':root .has-accent-font-background-color'
. '{ background: ' . $accent_font . '; } ';
wp_add_inline_style( 'hoot-wpblocks-editor', $dynamic_css );
}
/** Add Dynamic CSS **/
add_action( 'hoot_dynamic_cssrules', 'unos_dynamic_wpblockcss', 8 );
function unos_dynamic_wpblockcss() {
$styles = unos_user_style();
extract( $styles );
hoot_add_css_rule( array(
'selector' => ':root .has-accent-color' . ',' . '.is-style-outline>.wp-block-button__link:not(.has-text-color), .wp-block-button__link.is-style-outline:not(.has-text-color)',
'property' => 'color',
'value' => $accent_color,
'idtag' => 'accent_color',
) );
hoot_add_css_rule( array(
'selector' => ':root .has-accent-background-color' . ',' . '.wp-block-button__link,.wp-block-button__link:hover' . ',' . '.wp-block-search__button,.wp-block-search__button:hover, .wp-block-file__button,.wp-block-file__button:hover',
'property' => 'background',
'value' => $accent_color,
'idtag' => 'accent_color',
) );
hoot_add_css_rule( array(
'selector' => ':root .has-accent-font-color' . ',' . '.wp-block-button__link,.wp-block-button__link:hover' . ',' . '.wp-block-search__button,.wp-block-search__button:hover, .wp-block-file__button,.wp-block-file__button:hover',
'property' => 'color',
'value' => $accent_font,
'idtag' => 'accent_font',
) );
hoot_add_css_rule( array(
'selector' => ':root .has-accent-font-background-color',
'property' => 'background',
'value' => $accent_font,
'idtag' => 'accent_font',
) );
}PK ~\U
blocks/wpblocks-editor.cssnu [ /************* WordPress Blocks *************/
/*** Text Size ***/
.has-small-font-size {
line-height: 1.73333333em;
}
.has-regular-font-size,
.has-normal-font-size {
line-height: 1.73333333em;
}
.has-medium-font-size {
line-height: 1.3em;
}
.has-large-font-size {
line-height: 1.2em;
}
.has-larger-font-size,
.has-huge-font-size {
line-height: 1.1em;
}
/*** Media&Text ***/
.wp-block-media-text.has-background .wp-block-media-text__content {
padding-top: 2em;
padding-bottom: 1.5em;
}
.wp-block-media-text .wp-block-media-text__content > * {
margin: 0.5em 0;
}
.wp-block-media-text .wp-block-media-text__content > *:first-child {
margin-top: 0;
}
.wp-block-media-text .wp-block-media-text__content > *:last-child {
margin-bottom: 0;
}
.wp-block-media-text.alignwide,
.wp-block-media-text.alignfull {
text-align: inherit;
}
/*** Blockquote ***/
.wp-block-quote.is-large,
.wp-block-quote.is-style-large {
border-left: 5px solid;
}
.wp-block-quote.has-text-align-center {
border: none;
padding: 0 1em;
}
.wp-block-quote.has-text-align-right {
border-right: 5px solid;
border-left: 0;
padding: 0 1em 0 0;
}
/*** Pullquote ***/
.wp-block-pullquote {
padding: 0;
margin: 1.5em 0;
border-top: solid 5px;
border-bottom: solid 5px;
}
.wp-block-pullquote blockquote {
padding: 2em;
margin: 0;
border-left: none;
border-right: none;
}
.wp-block-pullquote.is-style-solid-color blockquote {
border: none;
}
.editor-styles-wrapper .wp-block-pullquote:not(.is-style-solid-color) {
background: none;
}
/*** Verse ***/
pre.wp-block-verse {
padding: 15px 10px 15px 20px;
color: inherit;
border: none;
font-family: inherit;
font-family: Georgia, "Times New Roman", Times, serif;
word-break: normal;
word-wrap: normal;
line-height: 1.4;
font-style: italic;
border-left: 2px dotted;
}
/*** Button Block - with button class added by user ***/
.wp-block-button__link {
border-radius: 0;
}
/* Other Buttons */
.wp-block-search__button,
.wp-block-file__button {
border-radius: 0;
text-decoration: none;
}
/*** Image/Figcaption ***/
figure.wp-block-image:not(.alignleft):not(.alignright):not(.aligncenter):not(.alignwide):not(.alignfull) {
display: table;
}
figure.wp-block-image:not(.alignleft):not(.alignright):not(.aligncenter):not(.alignwide):not(.alignfull) figcaption {
display: table-caption;
caption-side: bottom;
}
.editor-styles-wrapper figcaption {
background: rgba(0, 0, 0, 0.03);
margin: 0;
padding: 5px;
font-size: 0.8em;
line-height: 1.333333em;
text-align: center;
}
.wp-block-image.is-style-rounded figcaption {
background: none;
}
.wp-block-image:not(.is-style-rounded) > div {
vertical-align: middle;
}
/*** Embed/Gallery ***/
.wp-block-gallery {
/* WP 5.9 */
}
.wp-block-gallery.has-nested-images figure.wp-block-image:not(.alignleft):not(.alignright):not(.aligncenter):not(.alignwide):not(.alignfull) {
display: flex;
}
/*** Blocks Responsive ***/
@media only screen and (max-width: 969px) {
.wp-block-media-text .wp-block-media-text__content {
padding-top: 2em;
padding-bottom: 1.5em;
}
}
/************* WC Blocks *************/
[class*=wp-block-woocommerce],
[class*=wc-block] {
text-align: inherit;
}
[class*=wp-block-woocommerce].alignwide,
[class*=wc-block].alignwide {
margin-left: auto;
margin-right: auto;
}
PK ~\ N blocks/wpblocks.cssnu [ /************* WordPress Block Wide Alignment *************/
.alignwide,
.alignfull {
max-width: none;
text-align: center;
}
.sidebars0 .alignwide {
margin-left: -3em;
margin-right: -3em;
}
.sidebars0 .alignfull {
margin-left: calc(-100vw / 2 + 100% / 2);
margin-right: calc(-100vw / 2 + 100% / 2);
max-width: 100vw;
}
/* Block Specifics */
.wp-block-cover.alignfull,
.wp-block-cover-image.alignfull,
.wp-block-cover.alignwide,
.wp-block-cover-image.alignwide {
width: auto;
}
/************* WordPress Blocks *************/
ul.wp-block-social-links,
.wp-block-buttons,
.wp-block-image,
.wp-block-gallery,
pre.wp-block-verse {
margin: 0.66666667em 0 1em;
}
/*** Alignment ***/
ul.aligncenter,
.aligncenter {
margin: 1em auto;
}
ul.alignleft,
.alignleft {
margin: 10px 15px 5px 0;
}
ul.alignright,
.alignright {
margin: 10px 0 5px 15px;
}
/*** Text Size ***/
.has-small-font-size {
line-height: 1.73333333em;
}
.has-regular-font-size,
.has-normal-font-size {
line-height: 1.73333333em;
}
.has-medium-font-size {
line-height: 1.3em;
}
.has-large-font-size {
line-height: 1.2em;
}
.has-larger-font-size,
.has-huge-font-size {
line-height: 1.1em;
}
/*** Media&Text ***/
.wp-block-media-text.has-background .wp-block-media-text__content {
padding-top: 2em;
padding-bottom: 1.5em;
}
.wp-block-media-text .wp-block-media-text__content > * {
margin: 0.5em 0;
}
.wp-block-media-text .wp-block-media-text__content > *:first-child {
margin-top: 0;
}
.wp-block-media-text .wp-block-media-text__content > *:last-child {
margin-bottom: 0;
}
.wp-block-media-text.alignwide,
.wp-block-media-text.alignfull {
text-align: inherit;
}
/*** File ***/
.fluid-width-video-wrapper .wp-block-file__embed {
position: inherit;
margin: 0 0 1em;
}
/*** Cover ***/
.wp-block-cover,
.wp-block-cover-image {
padding: 2em;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
/*** Blockquote ***/
.wp-block-quote.has-text-align-center {
border: none;
padding: 0 1em;
}
.wp-block-quote.has-text-align-right {
border-right: 5px solid;
border-left: 0;
padding: 0 1em 0 0;
}
/*** Pullquote ***/
.wp-block-pullquote {
padding: 0;
margin: 1.5em 0;
border-top: solid 5px;
border-bottom: solid 5px;
}
.wp-block-pullquote blockquote {
padding: 2em;
margin: 0;
border-left: none;
border-right: none;
}
.wp-block-pullquote.is-style-solid-color blockquote {
border: none;
}
.wp-block-pullquote:not(.is-style-solid-color) {
background: none;
}
/*** Verse ***/
pre.wp-block-verse {
padding: 15px 10px 15px 20px;
color: inherit;
border: none;
font-family: inherit;
font-family: Georgia, "Times New Roman", Times, serif;
word-break: normal;
word-wrap: normal;
line-height: 1.4;
font-style: italic;
border-left: 2px dotted;
}
/*** Social Icons Block ***/
.wordpress .wp-block-social-links {
list-style: none;
display: flex;
}
.wp-block-social-links.is-style-logos-only .wp-social-link {
padding: 0;
}
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link {
margin: 0 4px;
}
/*** Button Block - with button class added by user ***/
.button.wp-block-button {
padding: 0;
align-self: center;
}
.button.wp-block-button a {
background: none !important;
color: inherit !important;
border: none;
}
.wp-block-button__link {
border-radius: 0;
}
/* Other Buttons */
.wp-block-search__button,
.wp-block-file__button {
border-radius: 0;
text-decoration: none;
}
/*** Image/Figcaption ***/
figure.wp-block-image:not(.alignleft):not(.alignright):not(.aligncenter):not(.alignwide):not(.alignfull) {
display: table;
}
figure.wp-block-image:not(.alignleft):not(.alignright):not(.aligncenter):not(.alignwide):not(.alignfull) figcaption {
display: table-caption;
caption-side: bottom;
}
.wordpress figcaption {
background: rgba(0, 0, 0, 0.03);
color: inherit;
margin: 0;
padding: 5px;
font-size: 0.8em;
line-height: 1.333333em;
text-align: center;
}
.wp-block-image.is-style-rounded figcaption {
background: none;
}
/*** Embed/Gallery ***/
.wp-block-embed figcaption {
margin-bottom: 0;
}
.wp-block-embed iframe,
.wp-block-embed video,
.wp-block-embed object,
.wp-block-embed embed {
margin: 0;
}
.wp-block-gallery {
padding: 16px 16px 0;
list-style-type: none;
background: rgba(0, 0, 0, 0.04);
/* WP 5.9 */
}
.wp-block-gallery.has-nested-images figure.wp-block-image:not(.alignleft):not(.alignright):not(.aligncenter):not(.alignwide):not(.alignfull) {
display: flex;
}
.wordpress .blocks-gallery-grid {
margin: 0;
list-style-type: none;
}
.blocks-gallery-caption {
width: 100%;
text-align: center;
position: relative;
top: -0.5em;
}
.blocks-gallery-grid .blocks-gallery-image figcaption,
.blocks-gallery-grid .blocks-gallery-item figcaption,
.wp-block-gallery .blocks-gallery-image figcaption,
.wp-block-gallery .blocks-gallery-item figcaption {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
background: linear-gradient(0deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.3) 0%, transparent);
font-size: 0.86666667em;
line-height: 1.384615em;
}
/*** Gallery Fix ***/
body .is-layout-flex {
display: flex;
flex-wrap: wrap;
align-items: center;
}
/*** Blocks Responsive ***/
@media only screen and (max-width: 969px) {
.wp-block-media-text .wp-block-media-text__content {
padding-top: 2em;
padding-bottom: 1.5em;
}
}
/************* WC Blocks *************/
[class*=wp-block-woocommerce],
[class*=wc-block] {
text-align: inherit;
}
[class*=wp-block-woocommerce].alignwide,
[class*=wc-block].alignwide {
margin-left: auto;
margin-right: auto;
}
PK ~\\K5Z 5Z css.phpnu [ 'a',
'property' => 'color',
'value' => $accent_color,
'idtag' => 'accent_color',
) );
hoot_add_css_rule( array(
'selector' => 'a:hover',
'property' => 'color',
'value' => $accent_color_dark,
) );
hoot_add_css_rule( array(
'selector' => '.accent-typo',
'property' => array(
// property => array( value, idtag, important, typography_reset ),
'background' => array( $accent_color, 'accent_color' ),
'color' => array( $accent_font, 'accent_font' ),
),
) );
hoot_add_css_rule( array(
'selector' => '.invert-accent-typo',
'property' => array(
// property => array( value, idtag, important, typography_reset ),
'background' => array( $accent_font, 'accent_font' ),
'color' => array( $accent_color, 'accent_color' ),
),
) );
hoot_add_css_rule( array(
'selector' => '.invert-typo',
'property' => 'color',
'value' => $content_bg_color,
) );
hoot_add_css_rule( array(
'selector' => '.enforce-typo',
'property' => 'background',
'value' => $content_bg_color,
) );
hoot_add_css_rule( array(
'selector' => 'body.wordpress input[type="submit"], body.wordpress #submit, body.wordpress .button',
'property' => array(
// property => array( value, idtag, important, typography_reset ),
'border-color' => array( $accent_color, 'accent_color' ),
'background' => array( $accent_color, 'accent_color' ),
'color' => array( $accent_font, 'accent_font' ),
),
) );
hoot_add_css_rule( array(
'selector' => 'body.wordpress input[type="submit"]:hover, body.wordpress #submit:hover, body.wordpress .button:hover, body.wordpress input[type="submit"]:focus, body.wordpress #submit:focus, body.wordpress .button:focus',
'property' => array(
// property => array( value, idtag, important, typography_reset ),
// 'background' => array( $accent_color_dark ),
'color' => array( $accent_color, 'accent_color' ),
'background' => array( $accent_font, 'accent_font' ),
),
) );
$headingproperty = array();
if ( 'fontos' == $headings_fontface )
$headingproperty['font-family'] = array( '"Open Sans", sans-serif' );
elseif ( 'fontcf' == $headings_fontface )
$headingproperty['font-family'] = array( '"Comfortaa", sans-serif' );
elseif ( 'fontow' == $headings_fontface )
$headingproperty['font-family'] = array( '"Oswald", sans-serif' );
elseif ( 'fontlo' == $headings_fontface )
$headingproperty['font-family'] = array( '"Lora", serif' );
elseif ( 'fontsl' == $headings_fontface )
$headingproperty['font-family'] = array( '"Slabo 27px", serif' );
elseif ( 'fontgr' == $headings_fontface )
$headingproperty['font-family'] = array( 'Georgia, serif' );
if ( 'uppercase' == $headings_fontface_style )
$headingproperty['text-transform'] = array( 'uppercase' );
else
$headingproperty['text-transform'] = array( 'none' );
if ( !empty( $headingproperty ) ) {
hoot_add_css_rule( array(
'selector' => 'h1, h2, h3, h4, h5, h6, .title, .titlefont',
'property' => $headingproperty,
) );
}
/* Layout */
// if ( $site_layout == 'boxed' ) {
hoot_add_css_rule( array(
'selector' => '#main.main' . ',' . '.below-header',
'property' => 'background',
'value' => $content_bg_color,
) );
// }
/* Header (Topbar, Header, Main Nav Menu) */
// Topbar
hoot_add_css_rule( array(
'selector' => '#topbar',
'property' => array(
// property => array( value, idtag, important, typography_reset ),
'background' => array( $accent_color, 'accent_color' ),
'color' => array( $accent_font, 'accent_font' ),
),
) );
hoot_add_css_rule( array(
'selector' => '#topbar.js-search .searchform.expand .searchtext',
'property' => 'background',
'value' => $accent_color,
'idtag' => 'accent_color',
) );
hoot_add_css_rule( array(
'selector' => '#topbar.js-search .searchform.expand .searchtext' . ',' . '#topbar .js-search-placeholder',
'property' => 'color',
'value' => $accent_font,
'idtag' => 'accent_font',
) );
/* Header (Topbar, Header, Main Nav Menu) */
// Header Layout - Search
hoot_add_css_rule( array(
'selector' => '.header-aside-search.js-search .searchform i.fa-search',
'property' => 'color',
'value' => $accent_color,
'idtag' => 'accent_color',
) );
/* Header (Topbar, Header, Main Nav Menu) */
// Logo
hoot_add_css_rule( array(
'selector' => '#site-logo.logo-border',
'property' => 'border-color',
'value' => $accent_color,
'idtag' => 'accent_color',
) );
/* Header (Topbar, Header, Main Nav Menu) */
// Text Logo
$logoproperty = array();
if ( 'fontos' == $logo_fontface )
$logoproperty['font-family'] = array( '"Open Sans", sans-serif' );
elseif ( 'fontcf' == $logo_fontface )
$logoproperty['font-family'] = array( '"Comfortaa", sans-serif' );
elseif ( 'fontow' == $logo_fontface )
$logoproperty['font-family'] = array( '"Oswald", sans-serif' );
elseif ( 'fontlo' == $logo_fontface )
$logoproperty['font-family'] = '"Lora", serif';
elseif ( 'fontsl' == $logo_fontface )
$logoproperty['font-family'] = array( '"Slabo 27px", serif' );
elseif ( 'fontgr' == $logo_fontface )
$logoproperty['font-family'] = array( 'Georgia, serif' );
if ( 'uppercase' == $logo_fontface_style )
$logoproperty['text-transform'] = array( 'uppercase' );
else
$logoproperty['text-transform'] = array( 'none' );
if ( !empty( $logoproperty ) ) {
hoot_add_css_rule( array(
'selector' => '#site-title',
'property' => $logoproperty,
) );
}
// if ( 'uppercase' == $logo_fontface_style ) {
// hoot_add_css_rule( array(
// 'selector' => '#site-description',
// 'property' => 'text-transform',
// 'value' => $logo_fontface_style,
// 'idtag' => 'logo_fontface_style',
// ) );
// }
/* Header (Topbar, Header, Main Nav Menu) */
// Logo (with icon)
if ( intval( $site_title_icon_size ) ) {
hoot_add_css_rule( array(
'selector' => '.site-logo-with-icon #site-title i',
'property' => 'font-size',
'value' => $site_title_icon_size,
'idtag' => 'site_title_icon_size',
) );
}
/* Header (Topbar, Header, Main Nav Menu) */
// Mixed/Mixedcustom Logo (with image)
if ( !empty( $logo_image_width ) ) :
hoot_add_css_rule( array(
'selector' => '.site-logo-mixed-image img',
'property' => 'max-width',
'value' => $logo_image_width,
'idtag' => 'logo_image_width',
) );
endif;
/* Header (Topbar, Header, Main Nav Menu) */
// Custom Logo
if ( 'custom' == $logo || 'mixedcustom' == $logo ) {
if ( is_array( $logo_custom ) && !empty( $logo_custom ) ) {
// Code duplicated in _get_custom_text_logo() for selective_refresh
$lcount = 1;
foreach ( $logo_custom as $logo_custom_line ) {
if ( !$logo_custom_line['sortitem_hide'] && !empty( $logo_custom_line['size'] ) ) {
hoot_add_css_rule( array(
'selector' => '#site-logo-custom .site-title-line' . $lcount . ',#site-logo-mixedcustom .site-title-line' . $lcount,
'property' => 'font-size',
'value' => $logo_custom_line['size'],
) );
}
if ( !function_exists('hoot_lib_premium_core') && !$logo_custom_line['sortitem_hide'] && !empty( $logo_custom_line['font'] ) ) {
$logo_custom_line_tt = 'none';
$logo_custom_line_tt = ( $logo_custom_line['font'] == 'heading' && 'uppercase' == $logo_fontface_style ) ? 'uppercase' : $logo_custom_line_tt;
$logo_custom_line_tt = ( $logo_custom_line['font'] == 'heading2' && 'uppercase' == $headings_fontface_style ) ? 'uppercase' : $logo_custom_line_tt;
hoot_add_css_rule( array(
'selector' => '#site-logo-custom .site-title-line' . $lcount . ',#site-logo-mixedcustom .site-title-line' . $lcount,
'property' => 'text-transform',
'value' => $logo_custom_line_tt,
) );
}
$lcount++;
}
}
}
hoot_add_css_rule( array(
'selector' => '.site-title-line em',
'property' => 'color',
'value' => $accent_color,
'idtag' => 'accent_color',
) );
hoot_add_css_rule( array(
'selector' => '.site-title-line mark',
'property' => array(
'background' => array( $accent_color, 'accent_color' ),
'color' => array( $accent_font, 'accent_font' ),
),
) );
$sitetitleheadingfont = '';
if ( 'fontos' == $headings_fontface )
$sitetitleheadingfont = '"Open Sans", sans-serif';
elseif ( 'fontcf' == $headings_fontface )
$sitetitleheadingfont = '"Comfortaa", sans-serif';
elseif ( 'fontow' == $headings_fontface )
$sitetitleheadingfont = '"Oswald", sans-serif';
elseif ( 'fontlo' == $headings_fontface )
$sitetitleheadingfont = '"Lora", serif';
elseif ( 'fontsl' == $headings_fontface )
$sitetitleheadingfont = '"Slabo 27px", serif';
elseif ( 'fontgr' == $headings_fontface )
$sitetitleheadingfont = 'Georgia, serif';
hoot_add_css_rule( array(
'selector' => '.site-title-heading-font',
'property' => 'font-family',
'value' => $sitetitleheadingfont,
) );
hoot_add_css_rule( array(
'selector' => '.entry-grid .more-link',
'property' => 'font-family',
'value' => $sitetitleheadingfont,
) );
/* Header (Topbar, Header, Main Nav Menu) */
// Nav Menu
hoot_add_css_rule( array(
'selector' => '.menu-items ul',
'property' => 'background',
'value' => $content_bg_color,
) );
hoot_add_css_rule( array(
'selector' => '.mobilemenu-fixed .menu-toggle, .mobilemenu-fixed .menu-items',
'property' => 'background',
'value' => $content_bg_color,
'media' => 'only screen and (max-width: 969px)',
) );
hoot_add_css_rule( array(
'selector' => '.menu-items li.current-menu-item:not(.nohighlight), .menu-items li.current-menu-ancestor, .menu-items li:hover',
'property' => array(
// property => array( value, idtag, important, typography_reset ),
'background' => array( $accent_color, 'accent_color' ),
),
) );
hoot_add_css_rule( array(
'selector' => '.menu-items li.current-menu-item:not(.nohighlight) > a, .menu-items li.current-menu-ancestor > a, .menu-items li:hover > a',
'property' => array(
// property => array( value, idtag, important, typography_reset ),
'color' => array( $accent_font, 'accent_font' ),
),
) );
hoot_add_css_rule( array(
'selector' => '.menu-tag',
'property' => 'border-color',
'value' => $accent_color,
'idtag' => 'accent_color'
) );
if ( apply_filters( 'unos_menutag_inverthover', true ) ) :
hoot_add_css_rule( array(
'selector' => '#header .menu-items li.current-menu-item:not(.nohighlight) > a .menu-tag, #header .menu-items li.current-menu-ancestor > a .menu-tag, #header .menu-items li:hover > a .menu-tag',
'property' => array(
// property => array( value, idtag, important, typography_reset ),
'background' => array( $accent_font, 'accent_font' ),
'color' => array( $accent_color, 'accent_color' ),
'border-color' => array( $accent_font, 'accent_font' ),
),
) );
endif;
/* Main #Content */
// hoot_add_css_rule( array(
// 'selector' => '.entry-footer .entry-byline',
// 'property' => 'color',
// 'value' => $accent_color,
// 'idtag' => 'accent_color',
// ) );
/* Main #Content for Index (Archive / Blog List) */
hoot_add_css_rule( array(
'selector' => '.more-link, .more-link a',
'property' => array(
// property => array( value, idtag, important, typography_reset ),
'color' => array( $accent_color, 'accent_color' ),
),
) );
hoot_add_css_rule( array(
'selector' => '.more-link:hover, .more-link:hover a',
'property' => array(
// property => array( value, idtag, important, typography_reset ),
// 'background' => array( $accent_color, 'accent_color' ),
'color' => array( $accent_color_dark, 'accent_color_dark' ),
),
) );
/* Frontpage */
if ( !is_customize_preview() ) {
$sections = hoot_sortlist( hoot_get_mod( 'frontpage_sections' ) );
if ( is_array( $sections ) && !empty( $sections ) ) { foreach ( $sections as $key => $section ) {
$id = ( $key == 'content' ) ? 'frontpage-page-content' : sanitize_html_class( 'frontpage-' . $key );
$type = hoot_get_mod( "frontpage_sectionbg_{$key}-font" );
switch ($type) {
case 'color': $selector = '.'.$id.' *, .'.$id.' .more-link, .'.$id.' .more-link a'; break;
case 'force': $selector = '#'.$id.' *, #'.$id.' .more-link, #'.$id.' .more-link a'; break;
default: $selector = ''; break;
}
if ( $selector ) {
hoot_add_css_rule( array(
'selector' => $selector,
'property' => 'color',
'value' => hoot_get_mod( "frontpage_sectionbg_{$key}-fontcolor" ),
) );
}
} }
}
/* Sidebars and Widgets */
if ( apply_filters( 'unos_sidebarwidgettitle_accenttypo', true ) ) :
hoot_add_css_rule( array(
'selector' => '.sidebar .widget-title' . ',' . '.sub-footer .widget-title, .footer .widget-title',
'property' => array(
// property => array( value, idtag, important, typography_reset ),
'background' => array( $accent_color, 'accent_color' ),
'color' => array( $accent_font, 'accent_font' ),
'border' => array( 'solid 1px' ),
'border-color' => array( $accent_color, 'accent_color' ),
),
) );
hoot_add_css_rule( array(
'selector' => '.sidebar .widget:hover .widget-title' . ',' . '.sub-footer .widget:hover .widget-title, .footer .widget:hover .widget-title',
'property' => array(
'background' => array( $accent_font, 'accent_font' ),
'color' => array( $accent_color, 'accent_color' ),
),
) );
endif;
if ( !empty( $widgetmargin ) ) :
hoot_add_css_rule( array(
'selector' => '.main-content-grid' . ',' . '.widget' . ',' . '.frontpage-area',
'property' => 'margin-top',
'value' => $widgetmargin,
'idtag' => 'widgetmargin',
) );
hoot_add_css_rule( array(
'selector' => '.widget' . ',' . '.frontpage-area',
'property' => 'margin-bottom',
'value' => $widgetmargin,
'idtag' => 'widgetmargin',
) );
hoot_add_css_rule( array(
'selector' => '.frontpage-area.module-bg-highlight, .frontpage-area.module-bg-color, .frontpage-area.module-bg-image',
'property' => 'padding',
'value' => $widgetmargin . ' 0',
) );
hoot_add_css_rule( array(
'selector' => '.sidebar',
'property' => 'margin-top',
'value' => $widgetmargin,
'media' => 'only screen and (max-width: 969px)',
) );
hoot_add_css_rule( array(
'selector' => '.frontpage-widgetarea > div.hgrid > [class*="hgrid-span-"]',
'property' => 'margin-bottom',
'value' => $widgetmargin,
'media' => 'only screen and (max-width: 969px)',
) );
endif;
if ( !empty( $smallwidgetmargin ) ) :
hoot_add_css_rule( array(
'selector' => '.footer .widget',
'property' => 'margin',
'value' => $smallwidgetmargin . ' 0',
) );
endif;
hoot_add_css_rule( array(
'selector' => '.js-search .searchform.expand .searchtext',
'property' => 'background',
'value' => $content_bg_color,
) );
/* Plugins */
hoot_add_css_rule( array(
'selector' => '#infinite-handle span' . ',' .
'.lrm-form a.button, .lrm-form button, .lrm-form button[type=submit], .lrm-form #buddypress input[type=submit], .lrm-form input[type=submit]' . ',' .
// '.widget_newsletterwidget input.tnp-submit[type=submit], .widget_newsletterwidgetminimal input.tnp-submit[type=submit]' . ',' .
'.widget_breadcrumb_navxt .breadcrumbs > .hoot-bcn-pretext',
'property' => array(
// property => array( value, idtag, important, typography_reset ),
'background' => array( $accent_color, 'accent_color' ),
'color' => array( $accent_font, 'accent_font' ),
),
) );
hoot_add_css_rule( array(
'selector' => '.woocommerce nav.woocommerce-pagination ul li a:focus, .woocommerce nav.woocommerce-pagination ul li a:hover',
'property' => 'color',
'value' => $accent_color_dark,
) );
hoot_add_css_rule( array(
'selector' => '.woocommerce div.product .woocommerce-tabs ul.tabs li:hover' . ',' . '.woocommerce div.product .woocommerce-tabs ul.tabs li.active',
'property' => 'background',
'value' => $accent_color,
'idtag' => 'accent_color'
) );
hoot_add_css_rule( array(
'selector' => '.woocommerce div.product .woocommerce-tabs ul.tabs li:hover a, .woocommerce div.product .woocommerce-tabs ul.tabs li:hover a:hover' . ',' . '.woocommerce div.product .woocommerce-tabs ul.tabs li.active a',
'property' => 'color',
'value' => $accent_font,
'idtag' => 'accent_font'
) );
hoot_add_css_rule( array(
'selector' => '.wc-block-components-button, .woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt',
'property' => array(
// property => array( value, idtag, important, typography_reset ),
'border-color' => array( $accent_color, 'accent_color' ),
'background' => array( $accent_color, 'accent_color' ),
'color' => array( $accent_font, 'accent_font' ),
),
) );
hoot_add_css_rule( array(
'selector' => '.wc-block-components-button:hover, .woocommerce #respond input#submit.alt:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover',
'property' => array(
// property => array( value, idtag, important, typography_reset ),
'background' => array( $accent_font, 'accent_font' ),
'color' => array( $accent_color, 'accent_color' ),
),
) );
// hoot_add_css_rule( array(
// 'selector' => '.widget_newsletterwidget input.tnp-submit[type=submit]:hover, .widget_newsletterwidgetminimal input.tnp-submit[type=submit]:hover',
// 'property' => array(
// // property => array( value, idtag, important, typography_reset ),
// 'background' => array( $accent_color_dark ),
// 'color' => array( $accent_font, 'accent_font' ),
// ),
// ) );
hoot_add_css_rule( array(
'selector' => '.widget_breadcrumb_navxt .breadcrumbs > .hoot-bcn-pretext:after',
'property' => 'border-left-color',
'value' => $accent_color,
'idtag' => 'accent_color',
) );
}PK ~\ؕTC C deprecated.phpnu [ '#000000',
'accent_font' => '#ffffff',
'module_bg_default' => '#f5f5f5',
'module_fontcolor_default' => '#aaaaaa',
'box_background' => '#ffffff',
'site_background' => '#ffffff', // Used by WP custom-background
'widgetmargin' => 45,
'logo_fontface' => 'fontlo',
'headings_fontface' => 'fontlo',
) );
if ( $key )
return ( isset( $defaults[ $key ] ) ) ? $defaults[ $key ] : false;
else
return $defaults;
}
endif;
/**
* Build the Customizer options (panels, sections, settings)
*
* Always remember to mention specific priority for non-static options like:
* - options being added based on a condition (eg: if woocommerce is active)
* - options which may get removed (eg: logo_size, headings_fontface)
* - options which may get rearranged (eg: logo_background_type)
* This will allow other options inserted with priority to be inserted at
* their intended place.
*
* @since 1.0
* @access public
* @return array
*/
if ( !function_exists( 'unos_customizer_options' ) ) :
function unos_customizer_options() {
// Stores all the settings to be added
$settings = array();
// Stores all the sections to be added
$sections = array();
// Stores all the panels to be added
$panels = array();
// Theme default colors and fonts
extract( unos_default_style() );
// Directory path for radioimage buttons
$imagepath = hoot_data()->incuri . 'admin/images/';
// Logo Sizes (different range than standard typography range)
$logosizes = array();
$logosizerange = range( 14, 110 );
foreach ( $logosizerange as $isr )
$logosizes[ $isr . 'px' ] = $isr . 'px';
$logosizes = apply_filters( 'unos_options_logosizes', $logosizes);
// Logo Font Options for Lite version
$logofont = apply_filters( 'unos_options_logofont', array(
'heading' => esc_html__( "Logo Font (set in 'Typography' section)", 'unos' ),
'heading2' => esc_html__( "Heading Font (set in 'Typography' section)", 'unos' ),
'standard' => esc_html__( "Standard Body Font", 'unos' ),
) );
/*** Add Options (Panels, Sections, Settings) ***/
/** Section **/
$section = 'links';
$sections[ $section ] = array(
'title' => esc_html__( 'Demo Install / Support', 'unos' ),
'priority' => '2',
);
$lcontent = array();
$lcontent['demo'] = '' .
' ' .
esc_html__( "Preview Demo", 'unos') .
' ' .
esc_html__( "View the Demo Site to preview the theme features and options.", 'unos') .
' ';
$himplink = class_exists( 'HootImport' ) ? esc_url( admin_url( 'themes.php?page=hoot-import' ) ) : ( function_exists( 'unos_abouttag' ) ? esc_url( admin_url( 'themes.php?page=' . unos_abouttag( 'slug' ) . '-welcome&tab=plugins' ) ) : 'https://wphoot.com/support/unos/#docs-section-demo-content' );
$lcontent['install'] = '' .
' ' .
esc_html__( "1 Click Demo Content Import", 'unos') .
' ' .
esc_html__( "Install demo content to make your site look exactly like the Demo Site. Use it as a starting point instead of starting from scratch.", 'unos') .
' ';
$lcontent['support'] = '' .
' ' .
esc_html__( "Documentation / Support", 'unos') .
' ' .
esc_html__( "Get theme related support for both free and premium users.", 'unos') .
' ';
$lcontent['rateus'] = '' .
' ' .
esc_html__( "Rate Us", 'unos') .
' ' .
/* translators: five stars */
sprintf( esc_html__( 'If you are happy with the theme, please give us a %1$s rating on wordpress.org. Thanks in advance!', 'unos'), '★★★★★ ' ) .
' ';
$settings['linksection'] = array(
// 'label' => esc_html__( 'Misc Links', 'unos' ),
'section' => $section,
'type' => 'content',
'priority' => '8', // Non static options must have a priority
'content' => implode( ' ', apply_filters( 'unos_customizer_option_linksection', $lcontent ) ),
);
/** Section **/
$section = 'title_tagline';
$sections[ $section ] = array(
'title' => esc_html__( 'Setup & Layout', 'unos' ),
'priority' => '5',
);
$settings['site_layout'] = array(
'label' => esc_html__( 'Site Layout - Boxed vs Stretched', 'unos' ),
'section' => $section,
'type' => 'radio',
'choices' => array(
'boxed' => esc_html__( 'Boxed layout', 'unos' ),
'stretch' => esc_html__( 'Stretched layout (full width)', 'unos' ),
),
'default' => 'stretch',
'priority' => '10',
'transport' => 'postMessage',
);
$settings['load_minified'] = array(
'label' => esc_html__( 'Load Minified Styles and Scripts (when available)', 'unos' ),
'sublabel' => esc_html__( 'Checking this option reduces data size, hence increasing page load speed.', 'unos' ),
'section' => $section,
'type' => 'checkbox',
// 'default' => 1,
'priority' => '20',
);
$settings['sidebar'] = array(
'label' => esc_html__( 'Sidebar Layout (Site-wide)', 'unos' ),
'section' => $section,
'type' => 'radioimage',
'choices' => array(
'wide-right' => $imagepath . 'sidebar-wide-right.png',
'narrow-right' => $imagepath . 'sidebar-narrow-right.png',
'wide-left' => $imagepath . 'sidebar-wide-left.png',
'narrow-left' => $imagepath . 'sidebar-narrow-left.png',
'narrow-left-right' => $imagepath . 'sidebar-narrow-left-right.png',
'narrow-left-left' => $imagepath . 'sidebar-narrow-left-left.png',
'narrow-right-right' => $imagepath . 'sidebar-narrow-right-right.png',
'full-width' => $imagepath . 'sidebar-full.png',
'none' => $imagepath . 'sidebar-none.png',
),
'default' => 'wide-right',
'description' => esc_html__( 'Set the default sidebar width and position for your site.', 'unos' ),
'priority' => '30',
);
$settings['sidebar_fp'] = array(
'label' => esc_html__( 'Sidebar Layout (for Front Page)', 'unos' ),
'section' => $section,
'type' => 'radioimage',
'choices' => array(
'wide-right' => $imagepath . 'sidebar-wide-right.png',
'narrow-right' => $imagepath . 'sidebar-narrow-right.png',
'wide-left' => $imagepath . 'sidebar-wide-left.png',
'narrow-left' => $imagepath . 'sidebar-narrow-left.png',
'narrow-left-right' => $imagepath . 'sidebar-narrow-left-right.png',
'narrow-left-left' => $imagepath . 'sidebar-narrow-left-left.png',
'narrow-right-right' => $imagepath . 'sidebar-narrow-right-right.png',
'full-width' => $imagepath . 'sidebar-full.png',
'none' => $imagepath . 'sidebar-none.png',
),
'default' => ( ( 'page' == get_option('show_on_front' ) ) ? 'full-width' : 'wide-right' ),
/* Translators: The %s are placeholders for HTML, so the order can't be changed. */
'description' => sprintf( esc_html__( 'This is sidebar for the Frontpage Content Module in %1$sFrontpage Modules Settings%2$s', 'unos' ), '', ' ' ),
'priority' => '35',
);
$settings['sidebar_archives'] = array(
'label' => esc_html__( 'Sidebar Layout (for Blog/Archives)', 'unos' ),
'section' => $section,
'type' => 'radioimage',
'choices' => array(
'wide-right' => $imagepath . 'sidebar-wide-right.png',
'narrow-right' => $imagepath . 'sidebar-narrow-right.png',
'wide-left' => $imagepath . 'sidebar-wide-left.png',
'narrow-left' => $imagepath . 'sidebar-narrow-left.png',
'narrow-left-right' => $imagepath . 'sidebar-narrow-left-right.png',
'narrow-left-left' => $imagepath . 'sidebar-narrow-left-left.png',
'narrow-right-right' => $imagepath . 'sidebar-narrow-right-right.png',
'full-width' => $imagepath . 'sidebar-full.png',
'none' => $imagepath . 'sidebar-none.png',
),
'default' => 'wide-right',
'priority' => '35',
);
$settings['sidebar_pages'] = array(
'label' => esc_html__( 'Sidebar Layout (for Pages)', 'unos' ),
'section' => $section,
'type' => 'radioimage',
'choices' => array(
'wide-right' => $imagepath . 'sidebar-wide-right.png',
'narrow-right' => $imagepath . 'sidebar-narrow-right.png',
'wide-left' => $imagepath . 'sidebar-wide-left.png',
'narrow-left' => $imagepath . 'sidebar-narrow-left.png',
'narrow-left-right' => $imagepath . 'sidebar-narrow-left-right.png',
'narrow-left-left' => $imagepath . 'sidebar-narrow-left-left.png',
'narrow-right-right' => $imagepath . 'sidebar-narrow-right-right.png',
'full-width' => $imagepath . 'sidebar-full.png',
'none' => $imagepath . 'sidebar-none.png',
),
'default' => 'wide-right',
'priority' => '40',
);
$settings['sidebar_posts'] = array(
'label' => esc_html__( 'Sidebar Layout (for single Posts)', 'unos' ),
'section' => $section,
'type' => 'radioimage',
'choices' => array(
'wide-right' => $imagepath . 'sidebar-wide-right.png',
'narrow-right' => $imagepath . 'sidebar-narrow-right.png',
'wide-left' => $imagepath . 'sidebar-wide-left.png',
'narrow-left' => $imagepath . 'sidebar-narrow-left.png',
'narrow-left-right' => $imagepath . 'sidebar-narrow-left-right.png',
'narrow-left-left' => $imagepath . 'sidebar-narrow-left-left.png',
'narrow-right-right' => $imagepath . 'sidebar-narrow-right-right.png',
'full-width' => $imagepath . 'sidebar-full.png',
'none' => $imagepath . 'sidebar-none.png',
),
'default' => 'wide-right',
'priority' => '50',
);
if ( current_theme_supports( 'woocommerce' ) ) :
$settings['sidebar_wooshop'] = array(
'label' => esc_html__( 'Sidebar Layout (Woocommerce Shop/Archives)', 'unos' ),
'section' => $section,
'type' => 'radioimage',
'priority' => '53', // Non static options must have a priority
'choices' => array(
'wide-right' => $imagepath . 'sidebar-wide-right.png',
'narrow-right' => $imagepath . 'sidebar-narrow-right.png',
'wide-left' => $imagepath . 'sidebar-wide-left.png',
'narrow-left' => $imagepath . 'sidebar-narrow-left.png',
'narrow-left-right' => $imagepath . 'sidebar-narrow-left-right.png',
'narrow-left-left' => $imagepath . 'sidebar-narrow-left-left.png',
'narrow-right-right' => $imagepath . 'sidebar-narrow-right-right.png',
'full-width' => $imagepath . 'sidebar-full.png',
'none' => $imagepath . 'sidebar-none.png',
),
'default' => 'wide-right',
'description' => esc_html__( 'Set the default sidebar width and position for WooCommerce Shop and Archives pages like product categories etc.', 'unos' ),
);
$settings['sidebar_wooproduct'] = array(
'label' => esc_html__( 'Sidebar Layout (Woocommerce Single Product Page)', 'unos' ),
'section' => $section,
'type' => 'radioimage',
'priority' => '53', // Non static options must have a priority
'choices' => array(
'wide-right' => $imagepath . 'sidebar-wide-right.png',
'narrow-right' => $imagepath . 'sidebar-narrow-right.png',
'wide-left' => $imagepath . 'sidebar-wide-left.png',
'narrow-left' => $imagepath . 'sidebar-narrow-left.png',
'narrow-left-right' => $imagepath . 'sidebar-narrow-left-right.png',
'narrow-left-left' => $imagepath . 'sidebar-narrow-left-left.png',
'narrow-right-right' => $imagepath . 'sidebar-narrow-right-right.png',
'full-width' => $imagepath . 'sidebar-full.png',
'none' => $imagepath . 'sidebar-none.png',
),
'default' => 'wide-right',
'description' => esc_html__( 'Set the default sidebar width and position for WooCommerce product page', 'unos' ),
);
endif;
$settings['disable_sticky_sidebar'] = array(
'label' => esc_html__( 'Disable Sticky Sidebar', 'unos' ),
'section' => $section,
'type' => 'checkbox',
'description' => esc_html__( 'Check this if you do not want to display a fixed Sidebar the user scrolls down the page.', 'unos' ),
'priority' => '60',
);
$settings['widgetmargin'] = array(
'label' => esc_html__( 'Widget Margin', 'unos' ),
'section' => $section,
'type' => 'text',
'default' => $widgetmargin,
'description' => esc_html__( '(in pixels) Margin space above and below widgets. Leave empty if you dont want to change the default.', 'unos' ),
'input_attrs' => array(
'placeholder' => esc_html__( 'default: 45', 'unos' ),
),
'priority' => '70',
'transport' => 'postMessage',
);
/** Section **/
$section = 'header';
$sections[ $section ] = array(
'title' => esc_html__( 'Header', 'unos' ),
'priority' => '10',
);
$settings['menu_location'] = array(
'label' => esc_html__( 'Menu Location', 'unos' ),
'section' => $section,
'type' => 'radio',
'choices' => array(
'top' => esc_html__( 'Above Logo', 'unos' ),
'side' => esc_html__( 'Header Side (Right of Logo)', 'unos' ),
'bottom' => esc_html__( 'Below Logo', 'unos' ),
'none' => esc_html__( 'Do not display menu', 'unos' ),
),
'default' => 'side',
'priority' => '80',
);
$settings['logo_side'] = array(
'label' => esc_html__( 'Header Side (right of logo)', 'unos' ),
'section' => $section,
'type' => 'radio',
'choices' => array(
'search' => esc_html__( 'Display Search', 'unos' ),
'widget-area' => esc_html__( "'Header Side' widget area", 'unos' ),
'none' => esc_html__( 'None (Logo will get centre aligned)', 'unos' ),
),
'default' => 'widget-area',
'priority' => '90',
'active_callback' => 'unos_callback_logo_side', /*** Use JS API (in customize.js) for conditional controls using 'menu_location' setting in their active_callback - for quicker response ***/
'selective_refresh' => array( 'logo_side_partial', array(
'selector' => '#header-aside',
'settings' => array( 'logo_side' ),
'render_callback' => 'unos_header_aside',
'container_inclusive' => true,
) ),
);
$settings['fullwidth_menu_align'] = array(
'label' => esc_html__( 'Menu Area (alignment)', 'unos' ),
'section' => $section,
'type' => 'radio',
'choices' => array(
'left' => esc_html__( 'Left', 'unos' ),
'right' => esc_html__( 'Right', 'unos' ),
'center' => esc_html__( 'Center', 'unos' ),
),
'default' => 'center',
'priority' => '100',
'active_callback' => 'unos_callback_logo_side', /*** Use JS API (in customize.js) for conditional controls using 'menu_location' setting in their active_callback - for quicker response ***/
'transport' => 'postMessage',
);
$settings['disable_table_menu'] = array(
'label' => esc_html__( 'Disable Table Menu', 'unos' ),
'section' => $section,
'type' => 'checkbox',
// 'default' => 1,
/* Translators: The %s are placeholders for HTML, so the order can't be changed. */
'description' => sprintf( esc_html__( '%1$s%2$sDisable Table Menu if you have a lot of Top Level menu items, %3$sand dont have menu item descriptions.%4$s', 'unos' ), " ", ' ', '', ' ' ),
'priority' => '110',
'transport' => 'postMessage',
);
$settings['mobile_menu'] = array(
'label' => esc_html__( 'Mobile Menu', 'unos' ),
'section' => $section,
'type' => 'radio',
'choices' => array(
'inline' => esc_html__( 'Inline - Menu Slide Downs to open', 'unos' ),
'fixed' => esc_html__( 'Fixed - Menu opens on the left', 'unos' ),
),
'default' => 'fixed',
'priority' => '120',
'transport' => 'postMessage',
);
$settings['mobile_submenu_click'] = array(
'label' => esc_html__( "[Mobile Menu] Submenu opens on 'Click'", 'unos' ),
'section' => $section,
'type' => 'checkbox',
'default' => 1,
'description' => esc_html__( "Uncheck this option to make all Submenus appear in 'Open' state. By default, submenus open on clicking (i.e. single tap on mobile).", 'unos' ),
'priority' => '130',
'transport' => 'postMessage',
);
$settings['below_header_grid'] = array(
'label' => esc_html__( "'Below Header' widget area layout", 'unos' ),
'section' => $section,
'type' => 'radioimage',
'choices' => array(
'boxed' => $imagepath . 'fp-widgetarea-boxed.png',
'stretch' => $imagepath . 'fp-widgetarea-stretch.png',
),
'default' => 'boxed',
'priority' => '133',
'transport' => 'postMessage',
);
/** Section **/
$section = 'logo';
$sections[ $section ] = array(
'title' => esc_html__( 'Logo', 'unos' ),
'priority' => '15',
);
$settings['logo_background_type'] = array(
'label' => esc_html__( 'Logo Background', 'unos' ),
'section' => $section,
'type' => 'radio',
'priority' => '135', // Non static options must have a priority
'choices' => array(
'transparent' => esc_html__( 'None', 'unos' ),
'accent' => esc_html__( 'Accent Background', 'unos' ),
'invert-accent' => esc_html__( 'Invert Accent Background', 'unos' ), // Implemented for possible child themes;
),
'default' => 'transparent',
'transport' => 'postMessage',
);
if ( !apply_filters( 'logo_background_type_invert_accent', false ) ) unset( $settings['logo_background_type']['choices']['invert-accent'] );
$settings['logo_border'] = array(
'label' => esc_html__( 'Logo Border', 'unos' ),
'sublabel' => esc_html__( 'Display a border around logo.', 'unos' ),
'section' => $section,
'type' => 'radio',
'default' => 'none',
'priority' => '135',
'choices' => array(
'none' => esc_html__( 'None', 'unos' ),
'border' => esc_html__( 'Border (With padding)', 'unos' ),
'bordernopad' => esc_html__( 'Border (No padding)', 'unos' ),
),
'transport' => 'postMessage',
);
$settings['logo'] = array(
'label' => esc_html__( 'Site Logo', 'unos' ),
'section' => $section,
'type' => 'radio',
'choices' => array(
'text' => esc_html__( 'Default Text (Site Title)', 'unos' ),
'custom' => esc_html__( 'Custom Text', 'unos' ),
'image' => esc_html__( 'Image Logo', 'unos' ),
'mixed' => esc_html__( 'Image & Default Text (Site Title)', 'unos' ),
'mixedcustom' => esc_html__( 'Image & Custom Text', 'unos' ),
),
'default' => 'mixed',
/* Translators: 1 is the link start markup, 2 is link markup end */
'description' => sprintf( esc_html__( 'Use %1$sSite Title%2$s as default text logo', 'unos' ), '', ' ' ),
'priority' => '140',
/*** Use JS API (in customize.js) for conditional controls using 'logo' setting in their active_callback ***/
'selective_refresh' => array( 'logo_partial', array(
'selector' => '#branding',
'settings' => array( 'logo', 'logo_custom', 'custom_logo' ), // Do not add 'logo_size' to 'settings' array
// since it is removed in premium, and hence this
// selective_refresh wont work
'primary_setting' => 'logo', // Redundant as 'logo' is first ID in settings array
'render_callback' => 'unos_branding',
'container_inclusive' => true,
) ),
);
$settings['logo_size'] = array(
'label' => esc_html__( 'Logo Text Size', 'unos' ),
'section' => $section,
'type' => 'select',
'priority' => '145', // Non static options must have a priority
'choices' => array(
'tiny' => esc_html__( 'Tiny', 'unos'),
'small' => esc_html__( 'Small', 'unos'),
'medium' => esc_html__( 'Medium', 'unos'),
'large' => esc_html__( 'Large', 'unos'),
'huge' => esc_html__( 'Huge', 'unos'),
),
'default' => 'small',
'active_callback' => 'unos_callback_logo_size',
'transport' => 'postMessage',
);
$settings['site_title_icon'] = array(
'label' => esc_html__( 'Site Title Icon (Optional)', 'unos' ),
'section' => $section,
'type' => 'icon',
// 'default' => 'fa-anchor fas',
'description' => esc_html__( 'Leave empty to hide icon.', 'unos' ),
'priority' => '150',
'active_callback' => 'unos_callback_site_title_icon',
'transport' => 'postMessage',
);
$settings['site_title_icon_size'] = array(
'label' => esc_html__( 'Site Title Icon Size', 'unos' ),
'section' => $section,
'type' => 'select',
'choices' => $logosizes,
'default' => '50px',
'priority' => '160',
'active_callback' => 'unos_callback_site_title_icon',
'transport' => 'postMessage',
);
$settings['logo_image_width'] = array(
'label' => esc_html__( 'Maximum Logo Width', 'unos' ),
'section' => $section,
'type' => 'text',
'priority' => '166', // Keep it with logo image ( 'custom_logo' )->priority logo
'default' => 200,
/* Translators: The %s are placeholders for HTML, so the order can't be changed. */
'description' => sprintf( esc_html__( '(in pixels)%1$sThe logo width may be automatically adjusted by the browser depending on title length and space available.', 'unos' ), ' ' ),
'input_attrs' => array(
'placeholder' => esc_html__( '(in pixels)', 'unos' ),
),
'active_callback' => 'unos_callback_logo_image_width',
'transport' => 'postMessage',
);
$logo_custom_line_options = array(
'text' => array(
'label' => esc_html__( 'Line Text', 'unos' ),
'type' => 'text',
),
'size' => array(
'label' => esc_html__( 'Line Size', 'unos' ),
'type' => 'select',
'choices' => $logosizes,
'default' => '24px',
),
'font' => array(
'label' => esc_html__( 'Line Font', 'unos' ),
'type' => 'select',
'choices' => $logofont,
'default' => 'heading',
),
);
$settings['logo_custom'] = array(
'label' => esc_html__( 'Custom Logo Text', 'unos' ),
'section' => $section,
'type' => 'sortlist',
/* Translators: The %s are placeholders for HTML, so the order can't be changed. */
'description' => sprintf( esc_html__( 'Use <b> and <em> tags in "Line Text" fields below to emphasize different words. Example:%1$s%2$s<b>Hoot</b> <em>Unos</em>%3$s', 'unos' ), ' ', '', '' ),
'choices' => array(
'line1' => esc_html__( 'Line 1', 'unos' ),
'line2' => esc_html__( 'Line 2', 'unos' ),
'line3' => esc_html__( 'Line 3', 'unos' ),
'line4' => esc_html__( 'Line 4', 'unos' ),
),
'default' => array(
'line3' => array( 'sortitem_hide' => 1, ),
'line4' => array( 'sortitem_hide' => 1, ),
),
'options' => array(
'line1' => $logo_custom_line_options,
'line2' => $logo_custom_line_options,
'line3' => $logo_custom_line_options,
'line4' => $logo_custom_line_options,
),
'attributes' => array(
'hideable' => true,
'sortable' => false,
// 'open-state' => 'line1',
),
'priority' => '170',
'active_callback' => 'unos_callback_logo_custom',
'transport' => 'postMessage', // to work with 'selective_refresh' added via 'logo'
);
$settings['show_tagline'] = array(
'label' => esc_html__( 'Show Tagline', 'unos' ),
'sublabel' => esc_html__( 'Display site description as tagline below logo.', 'unos' ),
'section' => $section,
'type' => 'checkbox',
'default' => 1,
'priority' => '180',
// 'active_callback' => 'unos_callback_show_tagline',
'transport' => 'postMessage',
);
/** Section **/
$section = 'colors';
// Redundant as 'colors' section is added by WP. But we still add it for brevity
$sections[ $section ] = array(
'title' => esc_html__( 'Colors / Backgrounds', 'unos' ),
// 'description' => __( 'The premium version comes with color and background options for different sections of your site like header, menu dropdown, content area, logo background, footer etc.', 'unos' ),
'priority' => '20',
);
$settings['box_background_color'] = array(
'label' => esc_html__( 'Site Content Background', 'unos' ),
'section' => $section,
'type' => 'color',
'priority' => '185', // Non static options must have a priority
'default' => $box_background,
'transport' => 'postMessage',
);
$settings['accent_color'] = array(
'label' => esc_html__( 'Accent Color', 'unos' ),
'section' => $section,
'type' => 'color',
'default' => $accent_color,
'priority' => '190',
'transport' => 'postMessage',
);
$settings['accent_font'] = array(
'label' => esc_html__( 'Font Color on Accent Color', 'unos' ),
'section' => $section,
'type' => 'color',
'default' => $accent_font,
'priority' => '200',
'transport' => 'postMessage',
);
/** Section **/
$section = 'typography';
$sections[ $section ] = array(
'title' => esc_html__( 'Typography', 'unos' ),
// 'description' => esc_html__( 'The premium version offers complete typography control (color, style, size) for various headings, header, menu, footer, widgets, content sections etc (over 600 Google Fonts to chose from)', 'unos' ),
'priority' => '25',
);
$settings['load_local_fonts'] = array(
'label' => esc_html__( 'Load webfonts locally', 'unos' ),
'section' => $section,
'type' => 'checkbox',
'default' => 0,
'description' => esc_html__( 'Enable this to load Google Fonts (if used) from your own site instead of Google servers. This is required for GDPR compliance for EU visitors.', 'unos' ),
'priority' => 205,
);
$settings['logo_fontface'] = array(
'label' => esc_html__( 'Logo Font (Free Version)', 'unos' ),
'section' => $section,
'type' => 'select',
'priority' => 207, // Non static options must have a priority
'choices' => array(
'fontos' => esc_html__( 'Standard Font (Open Sans)', 'unos'),
'fontcf' => esc_html__( 'Alternate Font (Comfortaa)', 'unos'),
'fontow' => esc_html__( 'Display Font (Oswald)', 'unos'),
'fontlo' => esc_html__( 'Heading Font 1 (Lora)', 'unos'),
'fontsl' => esc_html__( 'Heading Font 2 (Slabo)', 'unos'),
'fontgr' => esc_html__( 'Heading Font 3 (Georgia)', 'unos'),
),
'default' => $logo_fontface,
);
$settings['logo_fontface_style'] = array(
'label' => esc_html__( 'Logo Font Style', 'unos' ),
'section' => $section,
'type' => 'select',
'priority' => 207, // Non static options must have a priority
'choices' => array(
'standard' => esc_html__( 'Standard', 'unos'),
'uppercase' => esc_html__( 'Uppercase', 'unos'),
),
'default' => 'uppercase',
'transport' => 'postMessage',
);
$settings['headings_fontface'] = array(
'label' => esc_html__( 'Headings Font (Free Version)', 'unos' ),
'section' => $section,
'type' => 'select',
'priority' => 207, // Non static options must have a priority
'choices' => array(
'fontos' => esc_html__( 'Standard Font (Open Sans)', 'unos'),
'fontcf' => esc_html__( 'Alternate Font (Comfortaa)', 'unos'),
'fontow' => esc_html__( 'Display Font (Oswald)', 'unos'),
'fontlo' => esc_html__( 'Heading Font 1 (Lora)', 'unos'),
'fontsl' => esc_html__( 'Heading Font 2 (Slabo)', 'unos'),
'fontgr' => esc_html__( 'Heading Font 3 (Georgia)', 'unos'),
),
'default' => $headings_fontface,
);
$settings['headings_fontface_style'] = array(
'label' => esc_html__( 'Heading Font Style', 'unos' ),
'section' => $section,
'type' => 'select',
'priority' => 207, // Non static options must have a priority
'choices' => array(
'standard' => esc_html__( 'Standard', 'unos'),
'uppercase' => esc_html__( 'Uppercase', 'unos'),
),
'default' => 'standard',
'transport' => 'postMessage',
);
/** Section **/
$section = 'frontpage';
$sections[ $section ] = array(
'title' => esc_html__( 'Frontpage - Modules', 'unos' ),
'priority' => '30',
);
$widget_area_options = array(
'columns' => array(
'label' => esc_html__( 'Columns', 'unos' ),
'type' => 'select',
'choices' => array(
'100' => esc_html__( 'One Column [100]', 'unos' ),
'50-50' => esc_html__( 'Two Columns [50 50]', 'unos' ),
'33-66' => esc_html__( 'Two Columns [33 66]', 'unos' ),
'66-33' => esc_html__( 'Two Columns [66 33]', 'unos' ),
'25-75' => esc_html__( 'Two Columns [25 75]', 'unos' ),
'75-25' => esc_html__( 'Two Columns [75 25]', 'unos' ),
'33-33-33' => esc_html__( 'Three Columns [33 33 33]', 'unos' ),
'25-25-50' => esc_html__( 'Three Columns [25 25 50]', 'unos' ),
'25-50-25' => esc_html__( 'Three Columns [25 50 25]', 'unos' ),
'50-25-25' => esc_html__( 'Three Columns [50 25 25]', 'unos' ),
'25-25-25-25' => esc_html__( 'Four Columns [25 25 25 25]', 'unos' ),
),
),
'grid' => array(
'label' => esc_html__( 'Layout', 'unos' ),
'sublabel' => esc_html__( 'The fully stretched grid layout is especially useful for displaying full width slider widgets.', 'unos' ),
'type' => 'radioimage',
'choices' => array(
'boxed' => $imagepath . 'fp-widgetarea-boxed.png',
'stretch' => $imagepath . 'fp-widgetarea-stretch.png',
),
'default' => 'boxed',
),
'modulebg' => array(
'label' => '',
'type' => 'content',
'content' => '' . esc_html__( 'Module Background', 'unos' ) . '
',
),
);
$settings['frontpage_sections'] = array(
'label' => esc_html__( 'Frontpage Widget Areas', 'unos' ),
/* Translators: The %s are placeholders for HTML, so the order can't be changed. */
'sublabel' => sprintf( esc_html__( '%1$s%3$sSort different sections of the Frontpage in the order you want them to appear.%4$s%3$sYou can add content to widget areas from the %5$sWidgets Management screen%6$s.%4$s%3$sYou can disable areas by clicking the "eye" icon. (This will hide them on the Widgets screen as well)%4$s%2$s', 'unos' ), '', '', ' ', '', ' ' ),
'section' => $section,
'type' => 'sortlist',
'choices' => array(
'area_a' => esc_html__( 'Widget Area A', 'unos' ),
'area_b' => esc_html__( 'Widget Area B', 'unos' ),
'area_c' => esc_html__( 'Widget Area C', 'unos' ),
'area_d' => esc_html__( 'Widget Area D', 'unos' ),
'content' => esc_html__( 'Frontpage Content', 'unos' ),
'area_e' => esc_html__( 'Widget Area E', 'unos' ),
'area_f' => esc_html__( 'Widget Area F', 'unos' ),
'area_g' => esc_html__( 'Widget Area G', 'unos' ),
'area_h' => esc_html__( 'Widget Area H', 'unos' ),
'area_i' => esc_html__( 'Widget Area I', 'unos' ),
'area_j' => esc_html__( 'Widget Area J', 'unos' ),
'area_k' => esc_html__( 'Widget Area K', 'unos' ),
'area_l' => esc_html__( 'Widget Area L', 'unos' ),
),
'default' => array(
// 'content' => array( 'sortitem_hide' => 1, ),
'area_b' => array( 'columns' => '50-50' ),
'area_f' => array( 'sortitem_hide' => 1, ),
'area_g' => array( 'sortitem_hide' => 1, ),
'area_h' => array( 'sortitem_hide' => 1, ),
'area_i' => array( 'sortitem_hide' => 1, ),
'area_j' => array( 'sortitem_hide' => 1, ),
'area_k' => array( 'sortitem_hide' => 1, ),
'area_l' => array( 'sortitem_hide' => 1, ),
),
'options' => array(
'area_a' => $widget_area_options,
'area_b' => $widget_area_options,
'area_c' => $widget_area_options,
'area_d' => $widget_area_options,
'area_e' => $widget_area_options,
'area_f' => $widget_area_options,
'area_g' => $widget_area_options,
'area_h' => $widget_area_options,
'area_i' => $widget_area_options,
'area_j' => $widget_area_options,
'area_k' => $widget_area_options,
'area_l' => $widget_area_options,
'content' => array(
'title' => array(
'label' => esc_html__( 'Title (optional)', 'unos' ),
'type' => 'text',
),
'modulebg' => array(
'label' => '',
'type' => 'content',
'content' => '' . esc_html__( 'Module Background', 'unos' ) . '
',
), ),
),
'attributes' => array(
'hideable' => true,
'sortable' => true,
'open-state' => 'area_a',
),
// /* Translators: The %s are placeholders for HTML, so the order can't be changed. */
// 'description' => sprintf( esc_html__( 'You must first save the changes you make here and refresh this screen for widget areas to appear in the Widgets panel (in customizer). Once you save the settings, you can add content to these widget areas using the %1$sWidgets Management screen%2$s.', 'unos' ), '', ' ' ),
'priority' => '210',
);
$settings['frontpage_content_desc'] = array(
'label' => esc_html__( "Frontpage Content", 'unos' ),
'section' => $section,
'type' => 'content',
/* Translators: The %s are placeholders for HTML, so the order can't be changed. */
'content' => sprintf( esc_html__( 'The "Frontpage Content" module in above list will show %1$s%3$sthe %5$s"Blog"%6$s if you have %5$sYour Latest Posts%6$s selectd in %7$sReading Settings%8$s %4$s%3$sthe %5$s"Page Content"%6$s of the page set as Front page if you have %5$sA static page%6$s selected in %7$sReading Settings%8$s %4$s%2$s',
'unos' ), "', '', ' ', '', ' ',
'', ' ' ),
'priority' => '220',
);
$frontpagemodule_bg = apply_filters( 'unos_frontpage_widgetarea_sectionbg_index', array(
'area_a' => esc_html__( 'Widget Area A', 'unos' ),
'area_b' => esc_html__( 'Widget Area B', 'unos' ),
'area_c' => esc_html__( 'Widget Area C', 'unos' ),
'area_d' => esc_html__( 'Widget Area D', 'unos' ),
'area_e' => esc_html__( 'Widget Area E', 'unos' ),
'area_f' => esc_html__( 'Widget Area F', 'unos' ),
'area_g' => esc_html__( 'Widget Area G', 'unos' ),
'area_h' => esc_html__( 'Widget Area H', 'unos' ),
'area_i' => esc_html__( 'Widget Area I', 'unos' ),
'area_j' => esc_html__( 'Widget Area J', 'unos' ),
'area_k' => esc_html__( 'Widget Area K', 'unos' ),
'area_l' => esc_html__( 'Widget Area L', 'unos' ),
'content' => esc_html__( 'Frontpage Content', 'unos' ),
) );
foreach ( $frontpagemodule_bg as $fpgmodid => $fpgmodname ) {
$settings["frontpage_sectionbg_{$fpgmodid}"] = array(
'label' => '',
'section' => $section,
'type' => 'group',
'startwrap' => 'fp-section-bg-button',
'button' => esc_html__( 'Module Background', 'unos' ),
'options' => array(
'description' => array(
'label' => '',
'type' => 'content',
'content' => '' . $fpgmodname . ' ',
),
'type' => array(
'label' => esc_html__( 'Background Type', 'unos' ),
'type' => 'radio',
'choices' => array(
'none' => esc_html__( 'None', 'unos' ),
// 'highlight' => esc_html__( 'Highlight', 'unos' ),
'color' => esc_html__( 'Color', 'unos' ),
'image' => esc_html__( 'Image', 'unos' ),
),
'default' => 'none',
// 'default' => ( ( $fpgmodid == 'area_b' ) ? 'image' :
// ( ( $fpgmodid == 'area_d' ) ? 'highlight' : 'none' )
// ),
// 'default' => ( ( $fpgmodid == 'area_b' ) ? 'image' : 'none' ),
'transport' => 'postMessage',
),
'color' => array(
'label' => esc_html__( "Background Color (Select 'Color' above)", 'unos' ),
'type' => 'color',
'default' => $module_bg_default,
'transport' => 'postMessage',
),
'image' => array(
'label' => esc_html__( "Background Image (Select 'Image' above)", 'unos' ),
'type' => 'image',
// 'default' => ( ( $fpgmodid == 'area_b' ) ? hoot_data()->template_uri . 'images/modulebg.jpg' : '' ),
'transport' => 'postMessage',
),
'parallax' => array(
'label' => esc_html__( 'Apply Parallax Effect to Background Image (preview not available in Customizer)', 'unos' ),
'type' => 'checkbox',
// 'default' => 1,
// 'default' => ( ( $fpgmodid == 'area_b' ) ? 1 : 0 ),
'transport' => 'postMessage', // Do nothing in customizer - preview not available for parallax!
),
'font' => array(
'label' => esc_html__( 'Font Color', 'unos' ),
'type' => 'radio',
'choices' => array(
'theme' => esc_html__( 'Default Theme Color', 'unos' ),
'color' => esc_html__( 'Custom Font Color', 'unos' ),
'force' => esc_html__( 'Force Custom Font Color', 'unos' ),
),
'default' => 'theme',
'transport' => 'postMessage',
),
'fontcolor' => array(
'label' => esc_html__( "Custom Font Color (select 'Custom Font Color' above)", 'unos' ),
'type' => 'color',
'default' => $module_fontcolor_default,
'transport' => 'postMessage',
),
),
'priority' => '230',
);
} // end for
/** Section **/
$section = 'archives';
$sections[ $section ] = array(
'title' => esc_html__( 'Archives (Blog, Cats, Tags)', 'unos' ),
'priority' => '35',
);
$settings['archive_type'] = array(
'label' => esc_html__( 'Archive (Blog) Layout', 'unos' ),
'section' => $section,
'type' => 'radioimage',
'choices' => array(
'big' => $imagepath . 'archive-big.png',
'block2' => $imagepath . 'archive-block2.png',
'block3' => $imagepath . 'archive-block3.png',
'mixed-block2' => $imagepath . 'archive-mixed-block2.png',
'mixed-block3' => $imagepath . 'archive-mixed-block3.png',
),
'default' => 'mixed-block2',
'priority' => '240',
);
$settings['archive_post_content'] = array(
'label' => esc_html__( 'Post Items Content', 'unos' ),
'section' => $section,
'type' => 'radio',
'choices' => array(
'none' => esc_html__( 'None', 'unos' ),
'excerpt' => esc_html__( 'Post Excerpt', 'unos' ),
'full-content' => esc_html__( 'Full Post Content', 'unos' ),
),
'default' => 'excerpt',
'description' => esc_html__( 'Content to display for each post in the list', 'unos' ),
'priority' => '250',
);
$settings['archive_post_meta'] = array(
'label' => esc_html__( 'Meta Information for Post List Items', 'unos' ),
'sublabel' => esc_html__( 'Check which meta information to display for each post item in the archive list.', 'unos' ),
'section' => $section,
'type' => 'checkbox',
'choices' => array(
'author' => esc_html__( 'Author', 'unos' ),
'date' => esc_html__( 'Date', 'unos' ),
'cats' => esc_html__( 'Categories', 'unos' ),
'tags' => esc_html__( 'Tags', 'unos' ),
'comments' => esc_html__( 'No. of comments', 'unos' ),
),
'default' => 'author, date, cats',
'selective_refresh' => array( 'archive_post_meta_partial', array(
'selector' => '.blog .entry-byline, .home .entry-byline, .plural .entry-byline',
'settings' => array( 'archive_post_meta' ),
'render_callback' => 'unos_callback_archive_post_meta',
'container_inclusive' => true,
'fallback_refresh' => false, // prevents full refresh on non applicable views
) ),
'priority' => '260',
);
$settings['excerpt_length'] = array(
'label' => esc_html__( 'Excerpt Length', 'unos' ),
'section' => $section,
'type' => 'text',
'description' => esc_html__( 'Number of words in excerpt. Default is 50. Leave empty if you dont want to change it.', 'unos' ),
'input_attrs' => array(
'placeholder' => esc_html__( 'default: 50', 'unos' ),
),
'priority' => '270',
);
$settings['read_more'] = array(
'label' => esc_html__( "'Continue Reading' Text", 'unos' ),
'section' => $section,
'type' => 'text',
'description' => esc_html__( "Replace the default 'Continue Reading' text. Leave empty if you dont want to change it.", 'unos' ),
'input_attrs' => array(
'placeholder' => esc_html__( 'default: Continue Reading', 'unos' ),
),
'default' => esc_html__( 'Continue Reading', 'unos' ),
// 'transport' => 'postMessage', // Interferes with defaults of hootkit widgets, custom user input readmore text in hootkit widgets
'priority' => '280',
);
/** Section **/
$section = 'singular';
$sections[ $section ] = array(
'title' => esc_html__( 'Single (Posts, Pages)', 'unos' ),
'priority' => '40',
);
$settings['page_header_full'] = array(
'label' => esc_html__( 'Stretch Page Title Area to Full Width', 'unos' ),
'sublabel' => ' ',
'section' => $section,
'type' => 'checkbox',
'choices' => array(
'default' => esc_html__( 'Default (Archives, Blog, Woocommerce etc.)', 'unos' ),
'posts' => esc_html__( 'For All Posts', 'unos' ),
'pages' => esc_html__( 'For All Pages', 'unos' ),
'no-sidebar' => esc_html__( 'Always override for full width pages (any page which has no sidebar)', 'unos' ),
),
'default' => 'default, pages, no-sidebar',
'description' => esc_html__( 'This is the Page Header area containing Page/Post Title and Meta details like author, categories etc.', 'unos' ),
'priority' => '290',
);
$settings['post_featured_image'] = array(
'label' => esc_html__( 'Display Featured Image (Post)', 'unos' ),
'section' => $section,
'type' => 'select',
'choices' => array(
'none' => esc_html__( 'Do not display', 'unos'),
'staticheader-nocrop' => esc_html__( 'Header Background (No Cropping)', 'unos'),
'staticheader' => esc_html__( 'Header Background (Cropped)', 'unos'),
'header' => esc_html__( 'Header Background (Parallax Effect)', 'unos'),
'content' => esc_html__( 'Beginning of content', 'unos'),
),
'default' => 'content',
'description' => esc_html__( 'Display featured image on a Post page.', 'unos' ),
'priority' => '300',
);
$settings['post_featured_image_page'] = array(
'label' => esc_html__( 'Display Featured Image (Page)', 'unos' ),
'section' => $section,
'type' => 'select',
'choices' => array(
'none' => esc_html__( 'Do not display', 'unos'),
'staticheader-nocrop' => esc_html__( 'Header Background (No Cropping)', 'unos'),
'staticheader' => esc_html__( 'Header Background (Cropped)', 'unos'),
'header' => esc_html__( 'Header Background (Parallax Effect)', 'unos'),
'content' => esc_html__( 'Beginning of content', 'unos'),
),
'default' => 'header',
'description' => esc_html__( "Display featured image on a 'Page' page.", 'unos' ),
'priority' => '310',
);
$settings['post_meta'] = array(
'label' => esc_html__( 'Meta Information on Posts', 'unos' ),
'sublabel' => esc_html__( "Check which meta information to display on an individual 'Post' page", 'unos' ),
'section' => $section,
'type' => 'checkbox',
'choices' => array(
'author' => esc_html__( 'Author', 'unos' ),
'date' => esc_html__( 'Date', 'unos' ),
'cats' => esc_html__( 'Categories', 'unos' ),
'tags' => esc_html__( 'Tags', 'unos' ),
'comments' => esc_html__( 'No. of comments', 'unos' )
),
'default' => 'author, date, cats, tags, comments',
'priority' => '320',
'selective_refresh' => array( 'post_meta_partial', array(
'selector' => '.singular-post .entry-byline',
'settings' => array( 'post_meta' ),
'render_callback' => 'unos_callback_post_meta',
'container_inclusive' => true,
'fallback_refresh' => false, // prevents full refresh on non applicable views
) ),
);
$settings['page_meta'] = array(
'label' => esc_html__( 'Meta Information on Page', 'unos' ),
'sublabel' => esc_html__( "Check which meta information to display on an individual 'Page' page", 'unos' ),
'section' => $section,
'type' => 'checkbox',
'choices' => array(
'author' => esc_html__( 'Author', 'unos' ),
'date' => esc_html__( 'Date', 'unos' ),
'comments' => esc_html__( 'No. of comments', 'unos' ),
),
'default' => 'author, date, comments',
'priority' => '330',
'selective_refresh' => array( 'page_meta_partial', array(
'selector' => '.singular-page .entry-byline',
'settings' => array( 'page_meta' ),
'render_callback' => 'unos_callback_page_meta',
'container_inclusive' => true,
'fallback_refresh' => false, // prevents full refresh on non applicable views
) ),
);
$settings['post_meta_location'] = array(
'label' => esc_html__( 'Meta Information location', 'unos' ),
'section' => $section,
'type' => 'radio',
'choices' => array(
'top' => esc_html__( 'Top (below title)', 'unos' ),
'bottom' => esc_html__( 'Bottom (after content)', 'unos' ),
),
'default' => 'top',
'priority' => '340',
);
$settings['post_prev_next_links'] = array(
'label' => esc_html__( 'Previous/Next Posts', 'unos' ),
'sublabel' => esc_html__( 'Display links to Prev/Next Post links at the end of post content.', 'unos' ),
'section' => $section,
'type' => 'checkbox',
'default' => 1,
'priority' => '350',
'selective_refresh' => array( 'post_prev_next_links_partial', array(
'selector' => '#loop-nav-wrap',
'settings' => array( 'post_prev_next_links' ),
'render_callback' => 'unos_post_prev_next_links',
'container_inclusive' => true,
'fallback_refresh' => false, // prevents full refresh on non applicable views
) ),
);
$settings['contact-form'] = array(
'label' => esc_html__( 'Contact Form', 'unos' ),
'section' => $section,
'type' => 'content',
'priority' => '355', // Non static options must have a priority
/* Translators: 1 is the link start markup, 2 is link markup end */
'content' => sprintf( esc_html__( 'This theme comes bundled with CSS required to style %1$sContact-Form-7%2$s forms. Simply install and activate the plugin to add Contact Forms to your pages.', 'unos' ), '', ' ' ), // @todo update link to docs
);
/** Section **/
$section = 'footer';
$sections[ $section ] = array(
'title' => esc_html__( 'Footer', 'unos' ),
'priority' => '45',
);
$settings['footer'] = array(
'label' => esc_html__( 'Footer Layout', 'unos' ),
'section' => $section,
'type' => 'radioimage',
'choices' => array(
'1-1' => $imagepath . '1-1.png',
'2-1' => $imagepath . '2-1.png',
'2-2' => $imagepath . '2-2.png',
'2-3' => $imagepath . '2-3.png',
'3-1' => $imagepath . '3-1.png',
'3-2' => $imagepath . '3-2.png',
'3-3' => $imagepath . '3-3.png',
'3-4' => $imagepath . '3-4.png',
'4-1' => $imagepath . '4-1.png',
),
'default' => '4-1',
/* Translators: The %s are placeholders for HTML, so the order can't be changed. */
'description' => sprintf( esc_html__( 'You must first save the changes you make here and refresh this screen for footer columns to appear in the Widgets panel (in customizer).%3$s Once you save the settings here, you can add content to footer columns using the %1$sWidgets Management screen%2$s.', 'unos' ), '', ' ', ' ' ),
'priority' => '360',
'transport' => 'postMessage',
);
$settings['site_info'] = array(
'label' => esc_html__( 'Site Info Text (footer)', 'unos' ),
'section' => $section,
'type' => 'textarea',
'default' => esc_html__( '', 'unos'),
/* Translators: The %s are placeholders for HTML, so the order can't be changed. */
'description' => sprintf( esc_html__( 'Text shown in footer. Useful for showing copyright info etc.%3$sUse the %4$s<!--default-->%5$s tag to show the default Info Text.%3$sUse the %4$s<!--year-->%5$s tag to insert the current year.%3$sAlways use %1$sHTML codes%2$s for symbols. For example, the HTML for © is %4$s©%5$s', 'unos' ), '', ' ', ' ', '', '' ),
'priority' => '370',
'transport' => 'postMessage',
);
/*** Return Options Array ***/
return apply_filters( 'unos_customizer_options', array(
'settings' => $settings,
'sections' => $sections,
'panels' => $panels,
) );
}
endif;
/**
* Add Options (settings, sections and panels) to Hoot_Customize class options object
*
* @since 1.0
* @access public
* @return void
*/
if ( !function_exists( 'unos_add_customizer_options' ) ) :
function unos_add_customizer_options() {
$hoot_customize = Hoot_Customize::get_instance();
// Add Options
$options = unos_customizer_options();
$hoot_customize->add_options( array(
'settings' => $options['settings'],
'sections' => $options['sections'],
'panels' => $options['panels'],
) );
}
endif;
add_action( 'init', 'unos_add_customizer_options', 0 ); // cannot hook into 'after_setup_theme' as this hook is already being executed (this file is loaded at after_setup_theme @priority 10) (hooking into same hook from within while hook is being executed leads to undesirable effects as $GLOBALS[$wp_filter]['after_setup_theme'] has already been ksorted)
// Hence, we hook into 'init' @priority 0, so that settings array gets populated before 'widgets_init' action ( which itself is hooked to 'init' at priority 1 ) for creating widget areas ( settings array is needed for creating defaults when user value has not been stored )
/**
* Enqueue custom scripts to customizer screen
*
* @since 1.0
* @return void
*/
function unos_customizer_enqueue_scripts() {
// Enqueue Styles
$style_uri = ( function_exists( 'hoot_locate_style' ) ) ? hoot_locate_style( hoot_data()->incuri . 'admin/css/customize' ) : hoot_data()->incuri . 'admin/css/customize.css';
wp_enqueue_style( 'unos-customize-styles', $style_uri, array(), hoot_data()->hoot_version );
// Enqueue Scripts
$script_uri = ( function_exists( 'hoot_locate_script' ) ) ? hoot_locate_script( hoot_data()->incuri . 'admin/js/customize-controls' ) : hoot_data()->incuri . 'admin/js/customize-controls.js';
wp_enqueue_script( 'unos-customize-controls', $script_uri, array( 'jquery', 'wp-color-picker', 'customize-controls', 'hoot-customize' ), hoot_data()->hoot_version, true );
}
// Load scripts at priority 12 so that Hoot Customizer Interface (11) / Custom Controls (10) have loaded their scripts
add_action( 'customize_controls_enqueue_scripts', 'unos_customizer_enqueue_scripts', 12 );
/**
* Modify default WordPress Settings Sections and Panels
*
* @since 1.0
* @param object $wp_customize
* @return void
*/
function unos_modify_default_customizer_options( $wp_customize ) {
/**
* Defaults: [type] => cropped_image
* [width] => 150
* [height] => 150
* [flex_width] => 1
* [flex_height] => 1
* [button_labels] => array(...)
* [label] => Logo
*/
$wp_customize->get_control( 'custom_logo' )->section = 'logo';
$wp_customize->get_control( 'custom_logo' )->priority = 165;
$wp_customize->get_control( 'custom_logo' )->width = 300;
$wp_customize->get_control( 'custom_logo' )->height = 180;
// $wp_customize->get_control( 'custom_logo' )->type = 'image'; // Stored value becomes url instead of image ID (fns like the_custom_logo() dont work)
$wp_customize->get_control( 'custom_logo' )->active_callback = 'unos_callback_logo_image';
if ( function_exists( 'get_site_icon_url' ) )
$wp_customize->get_control( 'site_icon' )->priority = 10;
$wp_customize->get_section( 'static_front_page' )->priority = 3;
if ( current_theme_supports( 'custom-header' ) ) {
$wp_customize->get_section( 'header_image' )->priority = 28;
$wp_customize->get_section( 'header_image' )->title = esc_html__( 'Frontpage - Header Image', 'unos' );
}
// Backgrounds
if ( current_theme_supports( 'custom-background' ) ) {
$wp_customize->get_control( 'background_color' )->label = esc_html__( 'Site Background Color', 'unos' );
$wp_customize->get_section( 'background_image' )->priority = 23;
$wp_customize->get_section( 'background_image' )->title = esc_html__( 'Site Background Image', 'unos' );
}
// $wp_customize->get_section( 'title_tagline' )->panel = 'general';
// $wp_customize->get_section( 'title_tagline' )->priority = 1;
// $wp_customize->get_section( 'colors' )->panel = 'styling';
// $wp_customize->get_panel( 'nav_menus' )->priority = 999;
// This will set the priority, however will give a 'Creating Default Object from Empty Value' error first.
// $wp_customize->get_panel( 'widgets' )->priority = 999;
}
add_action( 'customize_register', 'unos_modify_default_customizer_options', 100 );
/**
* Add postMessage support for site title and description for the Theme Customizer.
*
* @since 1.0
* @param WP_Customize_Manager $wp_customize Theme Customizer object.
* @return void
*/
function unos_customize_register( $wp_customize ) {
$wp_customize->get_setting( 'blogname' )->transport = 'postMessage';
$wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage';
$wp_customize->get_setting( 'custom_logo' )->transport = 'postMessage';
}
add_action( 'customize_register', 'unos_customize_register' );
/**
* Add style tag to support dynamic css via postMessage script in customizer preview
*
* @since 2.7
* @access public
*/
function unos_customize_dynamic_cssrules() {
// Add in Customizer Only
if ( is_customize_preview() ) {
$handle = apply_filters( 'hoot_style_builder_inline_style_handle', 'hoot-style' );
$hootpload = ( function_exists( 'hoot_lib_premium_core' ) ) ? 1 : '';
$settings = array();
$settings['widgetmargin'] = array(
'margin-top' => array( '.main-content-grid' . ',' . '.widget' . ',' . '.frontpage-area',
'.bottomborder-line:after' . ',' . '.bottomborder-shadow:after',
'.footer .widget', // brevity : replaced by newvalintsmall in js
),
'margin-bottom' => array( '.widget' . ',' . '.frontpage-area',
'.topborder-line:before' . ',' . '.topborder-shadow:before',
'.footer .widget', // brevity : replaced by newvalintsmall in js
),
'padding-top' => array( '.frontpage-area.module-bg-highlight, .frontpage-area.module-bg-color, .frontpage-area.module-bg-image' ),
'padding-bottom'=> array( '.frontpage-area.module-bg-highlight, .frontpage-area.module-bg-color, .frontpage-area.module-bg-image' ),
'media' => array(
'@media only screen and (max-width: 969px)' => array(
'margin-top' => array( '.sidebar' ),
'margin-bottom' => array( '.frontpage-widgetarea > div.hgrid > [class*="hgrid-span-"]' ),
),
),
);
$settings['site_title_icon_size'] = array(
'font-size' => array( '.site-logo-with-icon #site-title i' ),
);
$settings['logo_image_width'] = array(
'max-width' => array( '.site-logo-mixed-image img' ),
);
$settings['box_background_color'] = array(
'color' => array( '.invert-typo' ),
'background' => array( '.enforce-typo',
'#main.main' . ',' . '.below-header',
'.js-search .searchform.expand .searchtext',
'.content-block-style3 .content-block-icon',
),
);
if ( !$hootpload ) {
array_push( $settings['box_background_color']['background'], '.menu-items ul' );
$settings['box_background_color']['media'] = array(
'@media only screen and (max-width: 969px)' => array(
'background' => array( '.mobilemenu-fixed .menu-toggle, .mobilemenu-fixed .menu-items' ),
),
);
} else {
$settings['box_background_color']['border-bottom-color'] = array( '.current-tabhead' );
}
$settings['accent_color'] = array(
'color' => array( '.invert-accent-typo',
'body.wordpress input[type="submit"]:hover, body.wordpress #submit:hover, body.wordpress .button:hover, body.wordpress input[type="submit"]:focus, body.wordpress #submit:focus, body.wordpress .button:focus',
'.header-aside-search.js-search .searchform i.fa-search',
'.site-title-line em',
'.more-link, .more-link a',
'.more-link:hover, .more-link:hover a', // brevity : replaced by newvaldark in js
'.wc-block-components-button:hover, .woocommerce #respond input#submit.alt:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover',
'.topbanner-content mark',
'.slider-style2 .lSAction > a:hover',
'.widget .viewall a:hover',
'.cta-subtitle',
'.content-block-icon i',
),
'border-color' => array( 'body.wordpress input[type="submit"], body.wordpress #submit, body.wordpress .button',
'#site-logo.logo-border',
'.menu-tag',
'.wc-block-components-button, .woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt',
'.lSSlideOuter ul.lSPager.lSpg > li a',
'.slider-style2 .lSAction > a',
'.icon-style-circle',
'.icon-style-square',
),
'border-left-color' => array( '.widget_breadcrumb_navxt .breadcrumbs > .hoot-bcn-pretext:after' ),
'background' => array( '.accent-typo',
'body.wordpress input[type="submit"], body.wordpress #submit, body.wordpress .button',
'.site-title-line mark',
'.menu-items li.current-menu-item, .menu-items li.current-menu-ancestor, .menu-items li:hover',
'#infinite-handle span',
'.lrm-form a.button, .lrm-form button, .lrm-form button[type=submit], .lrm-form #buddypress input[type=submit], .lrm-form input[type=submit]',
// '.widget_newsletterwidget input.tnp-submit[type=submit], .widget_newsletterwidgetminimal input.tnp-submit[type=submit]',
'.widget_breadcrumb_navxt .breadcrumbs > .hoot-bcn-pretext',
'.woocommerce div.product .woocommerce-tabs ul.tabs li:hover' . ',' . '.woocommerce div.product .woocommerce-tabs ul.tabs li.active',
'.wc-block-components-button, .woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt',
'.lSSlideOuter ul.lSPager.lSpg > li:hover a, .lSSlideOuter ul.lSPager.lSpg > li.active a',
'.lightSlider .wrap-light-on-dark .hootkitslide-head, .lightSlider .wrap-dark-on-light .hootkitslide-head',
'.slider-style2 .lSAction > a',
'.social-icons-icon',
),
);
if ( !$hootpload ) {
array_push( $settings['accent_color']['color'], 'a' );
array_push( $settings['accent_color']['background'], '#topbar', '#topbar.js-search .searchform.expand .searchtext' );
array_push( $settings['accent_color']['color'], 'a:hover', '.woocommerce nav.woocommerce-pagination ul li a:focus, .woocommerce nav.woocommerce-pagination ul li a:hover' ); // brevity : replaced by newvaldark in js
} else {
array_push( $settings['accent_color']['color'], '.wordpress .button-widget.preset-accent:hover' );
array_push( $settings['accent_color']['background'], '.wordpress .button-widget.preset-accent', '.notice-widget.preset-accent' );
array_push( $settings['accent_color']['border-color'], '.wordpress .button-widget.preset-accent' );
}
$settings['accent_font'] = array(
'color' => array( '.accent-typo',
'body.wordpress input[type="submit"], body.wordpress #submit, body.wordpress .button',
'.site-title-line mark',
'.menu-items li.current-menu-item > a, .menu-items li.current-menu-ancestor > a, .menu-items li:hover > a',
'#infinite-handle span',
'.lrm-form a.button, .lrm-form button, .lrm-form button[type=submit], .lrm-form #buddypress input[type=submit], .lrm-form input[type=submit]',
// '.widget_newsletterwidget input.tnp-submit[type=submit], .widget_newsletterwidgetminimal input.tnp-submit[type=submit]',
'.widget_breadcrumb_navxt .breadcrumbs > .hoot-bcn-pretext',
'.woocommerce div.product .woocommerce-tabs ul.tabs li:hover a, .woocommerce div.product .woocommerce-tabs ul.tabs li:hover a:hover' . ',' . '.woocommerce div.product .woocommerce-tabs ul.tabs li.active a',
'.wc-block-components-button, .woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt',
'.lightSlider .wrap-light-on-dark .hootkitslide-head, .lightSlider .wrap-dark-on-light .hootkitslide-head',
'.slider-style2 .lSAction > a',
'#topbar .social-icons-icon, #page-wrapper .social-icons-icon',
),
'background' => array( '.invert-accent-typo',
'body.wordpress input[type="submit"]:hover, body.wordpress #submit:hover, body.wordpress .button:hover, body.wordpress input[type="submit"]:focus, body.wordpress #submit:focus, body.wordpress .button:focus',
'.wc-block-components-button:hover, .woocommerce #respond input#submit.alt:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover',
'.slider-style2 .lSAction > a:hover',
'.widget .viewall a:hover',
),
);
if ( apply_filters( 'unos_menutag_inverthover', true ) ) {
$settings['accent_color']['color'][] =
$settings['accent_font']['background'][] =
$settings['accent_font']['border-color'][] =
'#header .menu-items li.current-menu-item > a .menu-tag, #header .menu-items li.current-menu-ancestor > a .menu-tag, #header .menu-items li:hover > a .menu-tag';
}
if ( apply_filters( 'unos_sidebarwidgettitle_accenttypo', true ) ) {
$settings['accent_font']['color'][] =
$settings['accent_color']['background'][] =
$settings['accent_color']['border-color'][] =
'.sidebar .widget-title' . ',' . '.sub-footer .widget-title, .footer .widget-title';
$settings['accent_font']['background'][] =
$settings['accent_color']['color'][] =
'.sidebar .widget:hover .widget-title' . ',' . '.sub-footer .widget:hover .widget-title, .footer .widget:hover .widget-title';
}
if ( !$hootpload ) {
array_push( $settings['accent_font']['color'], '#topbar', '#topbar.js-search .searchform.expand .searchtext', '#topbar .js-search-placeholder' );
} else {
array_push( $settings['accent_font']['color'], '.wordpress .button-widget.preset-accent', '.notice-widget.preset-accent' );
array_push( $settings['accent_font']['background'], '.wordpress .button-widget.preset-accent:hover' );
}
if ( !$hootpload ) {
$settings['headings_fontface_style'] = array(
'text-transform'=> array( 'h1, h2, h3, h4, h5, h6, .title, .titlefont',
// '.site-title-line.site-title-heading-font' // Done using jQuery directly
),
);
}
$settings = apply_filters( 'hoot_customize_dynamic_selectors', $settings );
wp_localize_script( 'hoot-customize-preview', 'hootInlineStyles', array( $handle, $settings, $hootpload ) );
}
}
add_action( 'wp_enqueue_scripts', 'unos_customize_dynamic_cssrules', 999 );
/**
* Callback Functions for customizer settings
*/
function unos_callback_logo_side( $control ) {
$selector = $control->manager->get_setting('menu_location')->value();
return ( $selector == 'top' || $selector == 'bottom' || $selector == 'none' ) ? true : false;
}
function unos_callback_logo_size( $control ) {
$selector = $control->manager->get_setting('logo')->value();
return ( $selector == 'text' || $selector == 'mixed' ) ? true : false;
}
function unos_callback_site_title_icon( $control ) {
$selector = $control->manager->get_setting('logo')->value();
return ( $selector == 'text' || $selector == 'custom' ) ? true : false;
}
function unos_callback_logo_image( $control ) {
$selector = $control->manager->get_setting('logo')->value();
return ( $selector == 'image' || $selector == 'mixed' || $selector == 'mixedcustom' ) ? true : false;
}
function unos_callback_logo_image_width( $control ) {
$selector = $control->manager->get_setting('logo')->value();
return ( $selector == 'mixed' || $selector == 'mixedcustom' ) ? true : false;
}
function unos_callback_logo_custom( $control ) {
$selector = $control->manager->get_setting('logo')->value();
return ( $selector == 'custom' || $selector == 'mixedcustom' ) ? true : false;
}
// function unos_callback_show_tagline( $control ) {
// $selector = $control->manager->get_setting('logo')->value();
// return ( $selector == 'text' || $selector == 'custom' || $selector == 'mixed' || $selector == 'mixedcustom' ) ? true : false;
// }
/**
* Callback Functions for selective refresh
*/
function unos_callback_archive_post_meta(){
$metarray = hoot_get_mod('archive_post_meta');
hoot_display_meta_info( $metarray, 'customizer' ); // Bug: the_author_posts_link() does not work in selective refresh
}
function unos_callback_post_meta(){
$metarray = hoot_get_mod('post_meta');
hoot_display_meta_info( $metarray, 'customizer' ); // Bug: the_author_posts_link() does not work in selective refresh
}
function unos_callback_page_meta(){
$metarray = hoot_get_mod('page_meta');
hoot_display_meta_info( $metarray, 'customizer' ); // Bug: the_author_posts_link() does not work in selective refresh
}PK ~\n admin/media.phpnu [ 315 x 215
// (calculated using logic of hoot_get_image_size_name fn)
// @span4 @hcolumn-1-3 @hcolumn-1-4 @hcolumn-1-5 @post-list(big) @archive-small @archive-block3
'hoot-medium-thumb' => array(
'label' => __( 'Medium Thumbnail', 'unos' ),
'width' => 460,
'height' => 270,
'crop' => true,
'show_in_editor' => false,
),
// (width is 465 instead of 460, so that 'hoot-medium-thumb' stays as default for span4)
// @archive-medium @archive-mosaic3 @archive-mosaic4
'hoot-preview' => array(
'label' => __( 'Preview', 'unos' ),
'width' => 465,
'height' => 550,
'crop' => false,
'show_in_editor' => false,
),
// @carousel
'hoot-preview-thumb' => array(
'label' => __( 'Preview Thumbnail', 'unos' ),
'width' => 465,
'height' => 550,
'crop' => true,
'show_in_editor' => false,
),
// (calculated using logic of hoot_get_image_size_name fn)
// @hcolumn-1-2 @span6 @archive-block2
'hoot-large-thumb' => array(
'label' => __( 'Large Thumbnail', 'unos' ),
'width' => 690,
'height' => 550,
'crop' => true,
'show_in_editor' => false,
),
// (width is 695 instead of 690, so that 'hoot-large-thumb' stays as default for span6)
// @post-grid(big) @archive-mosaic2
'hoot-preview-large' => array(
'label' => __( 'Large Preview', 'unos' ),
'width' => 695,
'height' => 500,
'crop' => false,
'show_in_editor' => false,
),
// (calculated using logic of hoot_get_image_size_name fn)
// @span8 @archive-big
'hoot-wide-thumb' => array(
'label' => __( 'Wide', 'unos' ),
'width' => 920,
'height' => 425,
'crop' => true,
'show_in_editor' => false,
),
// (calculated using logic of hoot_get_image_size_name fn)
// @span9 @archive-big
'hoot-extra-wide-thumb' => array(
'label' => __( 'Extra Wide', 'unos' ),
'width' => 1035,
'height' => 425,
'crop' => true,
'show_in_editor' => false,
),
);
return $sizes;
}
PK ~\w admin/sidebars.phpnu [ =' ) ) {
$emstart = ''; $emend = ' ';
} else $emstart = $emend = '';
// Primary Sidebar
hoot_register_sidebar(
array(
'id' => 'hoot-primary-sidebar',
'name' => _x( 'Primary Sidebar', 'sidebar', 'unos' ),
'description' => __( 'The main sidebar used throughout the site.', 'unos' ),
)
);
// Secondary Sidebar
hoot_register_sidebar(
array(
'id' => 'hoot-secondary-sidebar',
'name' => _x( 'Secondary Sidebar', 'sidebar', 'unos' ),
'description' => __( 'The secondary sidebar used throughout the site (if you are using a 3 column layout with 2 sidebars).', 'unos' ),
)
);
// Topbar Left Widget Area
hoot_register_sidebar(
array(
'id' => 'hoot-topbar-left',
'name' => _x( 'Topbar Left', 'sidebar', 'unos' ),
'description' => __( 'Leave empty if you dont want to show topbar.', 'unos' ),
)
);
// Topbar Right Widget Area
hoot_register_sidebar(
array(
'id' => 'hoot-topbar-right',
'name' => _x( 'Topbar Right', 'sidebar', 'unos' ),
'description' => __( 'Leave empty if you dont want to show topbar.', 'unos' ),
)
);
// Header Side Widget Area
$extramsg = ( hoot_get_mod( 'menu_location' ) != 'side' && hoot_get_mod( 'logo_side' ) == 'widget-area' ) ? '' : ' ' . $emstart . __( "This widget area is currently NOT VISIBLE on your site. To activate it, go to Appearance > Customize > Header > 'Header Side' option", 'unos' ) . $emend;
hoot_register_sidebar(
array(
'id' => 'hoot-header',
'name' => _x( 'Header Side', 'sidebar', 'unos' ),
'description' => __( 'Appears in Header on right of logo', 'unos' ) . $extramsg,
)
);
// Menu Side Widget Area
hoot_register_sidebar(
array(
'id' => 'hoot-menu-side',
'name' => _x( 'Menu Side', 'sidebar', 'unos' ),
'description' => __( 'This is the tiny area next to menu (often used for displaying search, social icons or breadcrumbs)', 'unos' ),
)
);
// Below Header Widget Area
hoot_register_sidebar(
array(
'id' => 'hoot-below-header-left',
'name' => _x( 'Below Header Left', 'sidebar', 'unos' ),
'description' => __( 'This area is often used for displaying context specific menus, advertisements, and third party breadcrumb plugins.', 'unos' ),
)
);
// Below Header Widget Area
hoot_register_sidebar(
array(
'id' => 'hoot-below-header-right',
'name' => _x( 'Below Header Right', 'sidebar', 'unos' ),
'description' => __( 'This area is often used for displaying context specific menus, advertisements, and third party breadcrumb plugins.', 'unos' ),
)
);
// Subfooter Widget Area
hoot_register_sidebar(
array(
'id' => 'hoot-sub-footer',
'name' => _x( 'Sub Footer', 'sidebar', 'unos' ),
'description' => __( 'Leave empty if you dont want to show subfooter.', 'unos' ),
)
);
// Footer Columns
$footercols = unos_get_footer_columns();
if( $footercols ) :
$alphas = range('a', 'z');
for ( $i=0; $i < 4; $i++ ) :
if ( isset( $alphas[ $i ] ) ) :
hoot_register_sidebar(
array(
'id' => 'hoot-footer-' . $alphas[ $i ],
/* Translators: %s is the Footer ID */
'name' => sprintf( _x( 'Footer %s Column', 'sidebar', 'unos' ), strtoupper( $alphas[ $i ] ) ),
/* Translators: %s is the Number of footer columns active */
'description' => ( $i < $footercols ) ? '' : ' ' . $emstart . sprintf( __( 'This column is currently NOT VISIBLE on your site. To activate it, go to Appearance > Customize > Footer > Select a layout with more than %1$s columns', 'unos' ), $i ) . $emend,
)
);
endif;
endfor;
endif;
}
/**
* Registers frontpage widget areas.
*
* @since 1.0
* @access public
* @return void
*/
function unos_frontpage_register_sidebars() {
$areas = array();
global $wp_version;
if ( version_compare( $wp_version, '4.9.7', '>=' ) ) {
$emstart = ''; $emend = ' ';
} else $emstart = $emend = '';
/* Set up defaults */
$defaults = apply_filters( 'unos_frontpage_widgetarea_ids', array( 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l' ) );
$locations = apply_filters( 'unos_frontpage_widgetarea_names', array(
__( 'Left', 'unos' ),
__( 'Center Left', 'unos' ),
__( 'Center', 'unos' ),
__( 'Center Right', 'unos' ),
__( 'Right', 'unos' ),
) );
// Get user settings
$sections = hoot_sortlist( hoot_get_mod( 'frontpage_sections' ) );
foreach ( $defaults as $key ) {
$id = "area_{$key}";
if ( empty( $sections[$id]['sortitem_hide'] ) ) {
$columns = ( isset( $sections[$id]['columns'] ) ) ? $sections[$id]['columns'] : '';
$count = count( explode( '-', $columns ) ); // empty $columns still returns array of length 1
$location = '';
for ( $c = 1; $c <= $count ; $c++ ) {
switch ( $count ) {
case 2: $location = ($c == 1) ? $locations[0] : $locations[4];
break;
case 3: $location = ($c == 1) ? $locations[0] : (
($c == 2) ? $locations[2] : $locations[4]
);
break;
case 4: $location = ($c == 1) ? $locations[0] : (
($c == 2) ? $locations[1] : (
($c == 3) ? $locations[3] : $locations[4]
)
);
}
/* Translators: 1 is the Area ID, 2 is its location */
$areas[ $id . '_' . $c ] = sprintf( __( 'Frontpage - Widget Area %1$s %2$s', 'unos' ), strtoupper( $key ), $location );
}
}
}
foreach ( $areas as $key => $name ) {
hoot_register_sidebar(
array(
'id' => 'hoot-frontpage-' . $key,
'name' => $name,
'description' => __( 'You can reorder and change the number of columns in Appearance > Customize > Frontpage Modules', 'unos' ),
)
);
}
}PK ~\ն7E E admin/menus.phpnu [ '#000000',
'tagfont' => '#ffffff',
'tagbg_label' => __( 'Tag Background', 'unos' ),
'tagfont_label' => __( 'Tag Font', 'unos' ),
) );
?>
>
>
>
ID, '_menu-item-hootmenu', true );
if ( !is_array( $values ) ) $values = array(); // Needed to prevent illegal offstring in certain xampp for $values[ $key ] = '';
if ( !isset( $values[ 'hoot_tag' ] ) ) $values[ 'hoot_tag' ] = '';
if ( !isset( $values[ 'hoot_tagfont' ] ) ) $values[ 'hoot_tagfont' ] = '';
if ( !isset( $values[ 'hoot_tagbg' ] ) ) $values[ 'hoot_tagbg' ] = '';
$menu_item->hootmenu = $values;
return $menu_item;
}
add_filter( 'wp_setup_nav_menu_item', 'unos_setup_nav_item' , 100 );
/*
* Save and Update the Custom Fields in Navigation Menu Items
*
* @since 2.9
* @param int $menu_id
* @param int $menu_item_db
*/
function unos_update_nav_menu( $menu_id, $menu_item_db_id, $args ){
$values = array();
$options = array(
'hoot_tag' => true,
'hoot_tagfont' => true,
'hoot_tagbg' => true,
);
foreach ( $options as $key => $toplevel ) {
$values[ $key ] = isset( $_POST[ 'menu-item-' . $key ][ $menu_item_db_id ] ) ?
$_POST[ 'menu-item-' . $key ][ $menu_item_db_id ] :
'';
if ( $toplevel == true ) $values[ $key . '_top_level' ] = '1';
}
update_post_meta( $menu_item_db_id, '_menu-item-hootmenu', $values );
}
add_action( 'wp_update_nav_menu_item', 'unos_update_nav_menu', 100, 3 );
/*
* Enqueue Menu screen script
*
* @since 2.9
*/
add_action( 'admin_enqueue_scripts', 'unos_enqueue_admin_styles_scripts' );
function unos_enqueue_admin_styles_scripts( $hook ) {
if ( 'nav-menus.php' == $hook ) {
wp_enqueue_style( 'wp-color-picker' );
if ( file_exists( hoot_data()->incdir . 'admin/js/menuedit.js' ) )
wp_enqueue_script( 'unos-menuedit', hoot_data()->incuri . 'admin/js/menuedit.js', array( 'wp-color-picker' ), hoot_data()->hoot_version, true );
}
}
/**
* Remove deprecated hooks from older versions of child themes in favor of parent theme code
* @since 2.9
*/
remove_action( 'wp_nav_menu_item_custom_fields', 'unospub_nav_menu_item_custom_fields', 10 );
remove_filter( 'wp_setup_nav_menu_item', 'unospub_setup_nav_item' , 100 );
remove_action( 'wp_update_nav_menu_item', 'unospub_update_nav_menu', 100 );
remove_filter( 'nav_menu_item_title', 'unospub_nav_menu_start_el', 4 );
remove_filter( 'nav_menu_item_title', 'unospub_nav_menu_start_el', 7 );
remove_action( 'admin_enqueue_scripts', 'unospub_enqueue_admin_styles_scripts' );
remove_action( 'wp_nav_menu_item_custom_fields', 'unosmvu_nav_menu_item_custom_fields', 10 );
remove_filter( 'wp_setup_nav_menu_item', 'unosmvu_setup_nav_item' , 100 );
remove_action( 'wp_update_nav_menu_item', 'unosmvu_update_nav_menu', 100 );
remove_filter( 'nav_menu_item_title', 'unosmvu_nav_menu_start_el', 4 );
remove_filter( 'nav_menu_item_title', 'unosmvu_nav_menu_start_el', 7 );
remove_action( 'admin_enqueue_scripts', 'unosmvu_enqueue_admin_styles_scripts' );
remove_action( 'wp_nav_menu_item_custom_fields', 'unosbiz_nav_menu_item_custom_fields', 10 );
remove_filter( 'wp_setup_nav_menu_item', 'unosbiz_setup_nav_item' , 100 );
remove_action( 'wp_update_nav_menu_item', 'unosbiz_update_nav_menu', 100 );
remove_filter( 'nav_menu_item_title', 'unosbiz_nav_menu_start_el', 4 );
remove_filter( 'nav_menu_item_title', 'unosbiz_nav_menu_start_el', 7 );
remove_action( 'admin_enqueue_scripts', 'unosbiz_enqueue_admin_styles_scripts' );
remove_action( 'wp_nav_menu_item_custom_fields', 'unosglow_nav_menu_item_custom_fields', 10 );
remove_filter( 'wp_setup_nav_menu_item', 'unosglow_setup_nav_item' , 100 );
remove_action( 'wp_update_nav_menu_item', 'unosglow_update_nav_menu', 100 );
remove_filter( 'nav_menu_item_title', 'unosglow_nav_menu_start_el', 4 );
remove_filter( 'nav_menu_item_title', 'unosglow_nav_menu_start_el', 7 );
remove_action( 'admin_enqueue_scripts', 'unosglow_enqueue_admin_styles_scripts' );PK ~\*/ ! admin/trt-customize-pro/readme.mdnu [ # "Pro" theme section examples for the customizer
This repository is some examples of using the Customize API for adding a "pro" link to the customizer.
The goal is to provide examples so that theme authors are not bypassing the core API and doing weird things like injecting links into the DOM via JavaScript, which can and will most likely break in future iterations of the customizer in core WordPress.
## Testing
To test the output, simply drop the `trt-customize-pro` folder into the root of your theme like so:
```
/themes
/your-theme
/trt-customize-pro
```
Then, load an example with this code in your theme's `functions.php`:
```
require_once( trailingslashit( get_template_directory() ) . 'trt-customize-pro/example-1/class-customize.php' );
```
## Usage
If you decide to use in your theme, make sure to change up all the prefixes, textdomains, and paths. Everything should be relatively straightforward if you've worked with the customizer.
## Copyright and License
All code, unless otherwise noted, is licensed under the [GNU GPL](http://www.gnu.org/licenses/old-licenses/gpl-2.0.html), version 2 or later.
2016 © [Justin Tadlock](http://justintadlock.com).
PK ~\oBF BF " admin/trt-customize-pro/license.mdnu [ GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Lesser General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
Copyright (C)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License.PK ~\}
' admin/trt-customize-pro/section-pro.phpnu [ pro_text;
$json['pro_url'] = $this->pro_url;
return $json;
}
/**
* Outputs the Underscore.js template.
*
* @since 1.0
* @access public
* @return void
*/
protected function render_template() { ?>
{{ data.title }}
<# if ( data.pro_text && data.pro_url ) { #>
{{ data.pro_text }}
<# } #>
setup_actions();
}
return $instance;
}
/**
* Constructor method.
*
* @since 1.0
* @access private
* @return void
*/
private function __construct() {}
/**
* Sets up initial actions.
*
* @since 1.0
* @access private
* @return void
*/
private function setup_actions() {
// Register panels, sections, settings, controls, and partials.
add_action( 'customize_register', array( $this, 'sections' ) );
}
/**
* Sets up the customizer sections.
*
* @since 1.0
* @access public
* @param object $manager
* @return void
*/
public function sections( $manager ) {
// Load custom sections.
require_once( hoot_data()->incdir . 'admin/trt-customize-pro/section-pro.php' );
// Register custom section types.
$manager->register_section_type( 'Hoot_Theme_Customize_Section_Pro' );
// Register sections.
$manager->add_section(
new Hoot_Theme_Customize_Section_Pro(
$manager,
'hoot_theme',
apply_filters( 'hoot_theme_customize_section_pro', array(
'title' => esc_html__( 'Unos Premium', 'unos' ),
'priority' => 1,
'pro_text' => esc_html__( 'Premium', 'unos' ),
'pro_url' => admin_url('themes.php?page=unos-welcome'),
) )
)
);
}
}
// Doing this customizer thang!
Hoot_Theme_Customize_Pro::get_instance();PK ~\ admin/functions.phpnu [ 'unos',
'name' => __( 'Unos', 'unos' ),
'label' => __( 'Unos Dashboard', 'unos' ),
'vers' => hoot_data( 'template_version' ),
'shot' => ( file_exists( hoot_data()->template_dir . 'screenshot.jpg' ) ) ? hoot_data()->template_uri . 'screenshot.jpg' : (
( file_exists( hoot_data()->template_dir . 'screenshot.png' ) ) ? hoot_data()->template_uri . 'screenshot.png' : ''
),
'fullshot' => ( file_exists( hoot_data()->incdir . 'admin/images/screenshot.jpg' ) ) ? hoot_data()->incuri . 'admin/images/screenshot.jpg' : (
( file_exists( hoot_data()->incdir . 'admin/images/screenshot.png' ) ) ? hoot_data()->incuri . 'admin/images/screenshot.png' : ''
)
);
$tags = apply_filters( 'unos_abouttags', $tags );
if ( ! is_array( $tags ) ) $tags = array();
if ( !empty( $tags['name'] ) ) $tags['name'] = esc_html( $tags['name'] );
if ( !empty( $tags['slug'] ) ) $tags['slug'] = sanitize_html_class( $tags['slug'] );
if ( !empty( $tags['vers'] ) ) $tags['vers'] = sanitize_text_field( $tags['vers'] );
if ( !empty( $tags['shot'] ) ) $tags['shot'] = esc_url( $tags['shot'] );
if ( !empty( $tags['fullshot'] ) ) $tags['fullshot'] = esc_url( $tags['fullshot'] );
}
return ( $index === true ? $tags : ( ( isset( $tags[ $index ] ) ) ? $tags[ $index ] : '' ) );
}PK ~\짃% % admin/notice.phpnu [ incuri . 'admin/css/notice.css', array(), hoot_data()->hoot_version );
wp_enqueue_script( 'hoot-admin-notice', hoot_data()->incuri . 'admin/js/notice.js', array( 'jquery' ), hoot_data()->hoot_version, true );
wp_localize_script( 'hoot-admin-notice', 'hoot_admin_notice', array(
'ajax_url' => esc_url( admin_url( 'admin-ajax.php' ) ),
'nonce' => wp_create_nonce( 'hoottheme-welcome-action' ),
'dismiss_action' => 'unos_dismiss_welcome_notice',
'hoot_processplugin_action' => 'unos_processplugin',
'hoot_processplugin_btntext' => esc_html__( 'Please Wait. This may take a while...', 'unos' ),
) );
}
}
add_action( 'admin_enqueue_scripts', 'unos_admin_enqueue_notice_styles' );
/**
* Display admin notice
*/
function unos_add_welcome_notice() {
$slug = unos_abouttag( 'slug' );
$themename = unos_abouttag( 'name' );
$imgshot = unos_abouttag( 'fullshot' );
$issmall = false;
if ( ! $imgshot ) {
$imgshot = unos_abouttag( 'shot' );
$issmall = true;
}
$import_config = apply_filters( 'hootimport_theme_config', array() ); // Hoot Import has been configured for active theme
$display_import = ! empty( $import_config ) && ! get_option( "{$slug}-dismiss-import" );
$display_hootkit = ! class_exists( 'HootKit' );
?>
sanitize_key( wp_unslash( $plugin ) ),
'fields' => array(
'short_description' => false,
'sections' => false,
'requires' => false,
'rating' => false,
'ratings' => false,
'downloaded' => false,
'last_updated' => false,
'added' => false,
'tags' => false,
'compatibility' => false,
'homepage' => false,
'donate_link' => false,
),
)
);
if ( is_wp_error( $api ) ) {
$response['errorInstall'] = $api->get_error_message();
} else {
$skin = new WP_Ajax_Upgrader_Skin();
$upgrader = new Plugin_Upgrader( $skin );
$result = $upgrader->install( $api->download_link );
if ( $result ) {
$state = 'installed';
} else {
$pluginname = ucwords( str_replace( '-', ' ', $plugin ) );
/* Translators: 1 is line break, 2 is the link start markup, 3 is link markup end, 4 is the plugin name, 5 and 6 are strong tags */
$errormsg = sprintf( esc_html__( 'WordPress encountered an unexpected error during the plugin installation.%1$sPlease %2$sclick this link%3$s to install the %5$s%4$s plugin%6$s directly.', 'unos' ), ' ', '', ' ', $pluginname, '', ' ' );
$response['errorInstall'] = $errormsg;
}
}
}
if ( 'installed' === $state ) {
if ( current_user_can( 'activate_plugin' ) ) {
$result = activate_plugin( "{$plugin}/{$plugin}.php" );
if ( ! is_wp_error( $result ) ) {
$state = 'activated';
} else {
$response['errorCode'] = $result->get_error_code();
$response['errorMessage'] = $result->get_error_message();
}
}
}
if ( 'activated' === $state ) {
if ( $plugin === 'hoot-import' ) {
$response['redirect'] = admin_url( 'themes.php?page=hoot-import' );
update_option( "{$slug}-dismiss-import", 1 );
} elseif ( $plugin === 'hootkit' ) {
$response['redirect'] = admin_url( 'options-general.php?page=hootkit' );
}
}
wp_send_json( $response );
exit();
}
add_action( 'wp_ajax_unos_processplugin', 'unos_processplugin' );PK ~\a! ! admin/css/about.cssnu [ /**
* About Page
* ========================================================
*/
/** About General / Intro **/
.hoot-about-sub { margin: 2em 0; }
.hoot-about-ss { width: 250px; float: left; }
.hoot-about-ss img { max-width: 100%; }
.hoot-about-text { margin-left: 270px; max-width: 680px; }
.hoot-about-intro {}
.hoot-about-textlinks a.button { margin-right: 5px; }
.hoot-about-textlinks .dashicons { vertical-align: text-top; font-size: 1.4em; height: auto; }
/** Top button **/
.hoot-abouttheme-top { position: fixed; z-index: 1; bottom: 20px; right: 20px; text-decoration: none; background: rgba(0,0,0,0.5); padding: 8px; color: #fff !important; }
/** Nav Tabs **/
.hoot-abouttabs .nav-tab-wrapper {
position: sticky; top: 30px; background: #f0f0f1;
margin: 0 -10px !important; padding: 9px 10px 0 !important;
}
.hoot-abouttabs .nav-tab { cursor: pointer; font-size: 1em; }
.hoot-abouttabs .nav-tab-active { cursor: auto; }
.hoot-tab { display: none; }
.hoot-tab-active { display: block; }
/** Tab Content Intro **/
.hoot-tab .centered { text-align: center; margin: 1em; }
.hoot-tab .allcaps { text-transform: uppercase; }
.hoot-tab .strikeout { text-decoration: line-through; }
.hoot-tab .okgreen { color: #46b450; }
.hoot-tab .dashicons { display: inline-block; width: auto; height: auto; font-size: 1.4em; vertical-align: middle; }
.hoot-tab h2.centered { font-size: 4em; line-height: 1.2em; font-weight: lighter; margin-bottom: 0; }
.hoot-tab h2 span { display: block; font-size: 1.4em; font-weight: normal; }
.hoot-tab h2 strong { font-weight: bold; color: #0073aa; }
.hoot-tab .hoot-tab-intro,
.hoot-tab .hoot-tab-cta { color: #555d66; font-weight: 400; line-height: 1.6em; font-size: 19px; }
.hoot-tab .hoot-tab-cta .button { font-size: inherit; line-height: inherit; height: auto; text-transform: uppercase; padding: 6px 18px; margin: 1em 1em 2em; font-weight: bold; /* min-width: 250px; */ }
.hoot-tab-intro em { font-size: 16px; }
.hoot-tab-cta .primary-cta { box-shadow: none; }
/** Tab Content Details **/
.hoot-tab-sub { background: #fff; padding: 5px 20px 0; border: solid 1px #eee; -webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1); box-shadow: 0 1px 1px 0 rgba(0,0,0,.1); }
.hoot-tab-subinner { max-width: 1040px; margin: 0 auto; font-size: 16px; line-height: 24px; }
/** Tab Content Details Sections **/
.hoot-abouttabs .tabsection { border-bottom: solid 1px #ddd; padding: 50px 0; }
.hoot-abouttabs .tabsection:last-child { border-bottom: none; }
.hoot-abouttabs .tabsection strong { color: #000; }
.hoot-abouttabs .tabsection h4 { line-height: 1em; text-transform: uppercase; margin: 0 0 0.6em; font-size: 2em; font-weight: normal; }
.hoot-abouttabs .tabsection h4 span { display: inline-block; }
.hoot-abouttabs .tabsection h4 strong { font-weight: bold; }
.hoot-abouttabs .tabsection h4 small { display: block; font-size: 0.6em; }
.hoot-abouttabs .tabsection h4 cite { font-size: 13px; line-height: 1em; margin-top: 5px; display: block; font-style: normal; font-weight: normal; }
.hoot-abouttabs .tabsection h4 cite span { background: #eee; padding: 3px 8px 5px 6px; border-radius: 2px; }
.hoot-abouttabs .tabsection hr { border: transparent; margin: 8px 0; }
.hoot-abouttabs .tabsection img { max-width: 100%; }
/** Style Hero top/bottom **/
.hoot-abouttabs .tabsection-hero { text-align: center; }
.hoot-abouttabs .tabsection-hero h4.heading { font-size: 2.8125em; font-weight: lighter; }
.hoot-abouttabs .tabsection-hero .tabsection-hero-text { max-width: 600px; margin: 1em auto; }
.hoot-abouttabs .tabsection-hero .tabsection-hero-img {}
/** Style Side **/
.hoot-abouttabs .tabsection-sideinfo {}
.hoot-abouttabs .tabsection-sideinfo .tabsection-side-wrap { max-width: 850px; margin: 0 auto; }
.hoot-abouttabs .tabsection-sideinfo .tabsection-side-img { float: left; width: 48%; text-align: right; }
.hoot-abouttabs .tabsection-sideinfo .tabsection-side-textblock { float: right; width: 47%; }
.hoot-abouttabs .tabsection-sideinfo h4.heading {}
.hoot-abouttabs .tabsection-sideinfo .tabsection-side-text {}
/** Style Aside **/
.hoot-abouttabs .tabsection-asideinfo {}
.hoot-abouttabs .tabsection-asideinfo .tabsection-aside-block {}
.hoot-abouttabs .tabsection-asideinfo .tabsection-aside-wrap { max-width: 850px; margin: 0 auto; }
.hoot-abouttabs .tabsection-asideinfo .tabsection-aside-1 { width: 45%; float: left; text-align: right; }
.hoot-abouttabs .tabsection-asideinfo .tabsection-aside-2 { width: 45%; float: right; }
.hoot-abouttabs .tabsection-asideinfo .tabsection-aside-img {}
.hoot-abouttabs .tabsection-asideinfo h4.heading { margin-top: 0.6em; }
.hoot-abouttabs .tabsection-asideinfo .tabsection-aside-text {}
/** Style Standard **/
.hoot-abouttabs .tabsection-std {}
.hoot-abouttabs .tabsection-std .tabsection-std-img { text-align: center; }
.hoot-abouttabs .tabsection-std .tabsection-std-textblock { margin: 2em auto 0; max-width: 850px; }
.hoot-abouttabs .tabsection-std .tabsection-std-textblock.attop { margin: 0 auto 2em; }
.hoot-abouttabs .tabsection-std .tabsection-std-heading { text-align: right; width: 50%; float: left; }
.hoot-abouttabs .tabsection-std h4.heading { margin-bottom: 0; }
.hoot-abouttabs .tabsection-std .tabsection-std-text { width: 45%; float: right; }
.hoot-abouttabs .tabsection-std-text h4 { font-size: 1em; font-weight: 600; }
.hoot-abouttabs .tabsection-std-text > ol:first-child { margin-top: 0; }
/** Upsell Tab **/
#hoot-upsell {}
.hoot-upsell .hoot-tab-sub .hoot-tab-cta { line-height: 1.6em; font-size: 19px; }
/** Plugins Tab **/
#hoot-plugins {}
.hoot-plugins .plugin-card { margin-top: 20px; }
/** Quick Setup Tab **/
#hoot-qstart {}
.hoot-abouttabs .hoot-qstart .tabsection-std .tabsection-std-heading { width: 40%; }
.hoot-abouttabs .hoot-qstart .tabsection-std .tabsection-std-text { width: 55%; }
.hoot-abouttabs .hoot-qstart .tabsection-std .tabsection-std-text ol { margin-left: 1em; }
.hoot-abouttabs .hoot-qstart .tabsection-std .tabsection-std-img.atbottom { text-align: right; max-width: 850px; margin: 0 auto; }
/*** General ***/
.hoot-manager-part { max-width: 600px; margin-top: 25px; padding: 5px 20px; border: 1px solid #bbb; -moz-border-radius: 5px; -khtml-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px; background: #f7f7f7; }
.hoot-manager-part .warning { color: #aa0000; }
.hoot-manager-part form { margin: 15px 0; }
.hoot-manager-part textarea { width: 100%; margin: 0 0 10px; }
.hoot-manager-part input {}
.hoot-manager-part label { min-width: 90px; display: inline-block; }
/*** Manager Tab ***/
#hoot-manager {}
#hoot-manager-autoupg label { display: block; }
#hoot-manager-autoupg input[type="text"] { margin-left: 0; min-width: 260px; }
#hoot-manager-autoupg p.submit { margin-top: 10px; padding-top: 0; }
.licstat-unknown, .licstat-firewall { color: #2ea2cc; }
.licstat-active { color: #7ad03a; }
.licstat-inactive { color: #ffba00; }
.licstat-invalid { color: #dd3d36; }
/*** Tools Tab ***/
#hoot-tools {}
#hoot-manager-import {}
#hoot-manager-export {}
.hoot-manager-export-themegroup { background: #ddd;font-weight: normal; text-transform: uppercase; text-align: center; margin: 20px 0; padding: 5px 0px; }
@media only screen and (max-width: 960px) {
/* General */
.hoot-about-ss, .hoot-about-text { float: none; margin: 0 auto; text-align: center; }
}
@media only screen and (max-width: 782px) {
.hoot-tab .centered { margin-left: 0; margin-right: 0; }
.hoot-abouttabs .tabsection-hero h4.heading { font-size: 2em; }
.hoot-abouttabs .tabsection-sideinfo .tabsection-side-textblock { margin-top: 2em; }
.hoot-abouttabs .tabsection-asideinfo .tabsection-aside-2 { padding-top: 50px; margin-top: 50px; border-top: solid 1px #ddd; }
.hoot-abouttabs .tabsection-sideinfo .tabsection-side-img,
.hoot-abouttabs .tabsection-sideinfo .tabsection-side-textblock,
.hoot-abouttabs .tabsection-asideinfo .tabsection-aside-1,
.hoot-abouttabs .tabsection-asideinfo .tabsection-aside-2,
.hoot-abouttabs .tabsection-std .tabsection-std-heading,
.hoot-abouttabs .tabsection-std .tabsection-std-text { float: none; width: 100%; max-width: none; text-align: center; }
.hoot-abouttabs .hoot-qstart .tabsection-std .tabsection-std-heading,
.hoot-abouttabs .hoot-qstart .tabsection-std .tabsection-std-text,
.hoot-abouttabs .hoot-qstart .tabsection-std .tabsection-std-img.atbottom { width: 100%; text-align: left; }
.hoot-abouttabs .tabsection-std h4.heading { margin-bottom: 0.6em; }
}PK ~\G[c4 admin/css/customize.cssnu [ /**
* Hoot Customizer
* ========================================================
*/
/*** trt-customize-pro ***/
#customize-controls .control-section-hoot-theme {}
.control-section-hoot-theme .accordion-section-title { padding-top: 15px; }
#customize-controls .control-section-hoot-theme .accordion-section-title:after { display: none; }
#customize-controls .control-section-hoot-theme .accordion-section-title:hover,
#customize-controls .control-section-hoot-theme .accordion-section-title:focus { background-color: #fff; }
.control-section-hoot-theme .accordion-section-title .button { position: absolute; right: 10px; top: 50%; margin-top: -14px; text-transform: uppercase; -webkit-border-radius: 18px; border-radius: 18px; }
.rtl .control-section-hoot-theme .accordion-section-title .button { margin-left: 0; margin-right: 8px; }
.hoot-theme-conten { display: block; clear: both; margin: 12px 0 -12px; border-top: solid 1px #ddd; }
.hoot-theme-conten.hoot-theme-active { margin: 0; border: none; }
.hoot-theme-conten a { display: inline-block; font-size: 12px; text-transform: uppercase; margin-right: 8px; }
.hoot-theme-content { display: block; clear: both; margin: 12px -10px -12px -14px; padding: 10px 0; text-align: center; background: #f1f1f1; border-top: solid 1px #ccc; border-bottom: solid 2px #ccc;
-webkit-box-shadow: inset 0px 2px 5px 0px rgba(0,0,0,0.15);
-moz-box-shadow: inset 0px 2px 5px 0px rgba(0,0,0,0.15);
box-shadow: inset 0px 2px 5px 0px rgba(0,0,0,0.15);
}
.hoot-theme-content.hoot-theme-active { margin: -15px -10px -11px -14px; border: none; background: #fff; }
.control-section-hoot-theme .accordion-section-title .hoot-theme-content a { display: inline-block; font-size: 12px; text-transform: none; margin: 6px 0; padding: 0 8px; text-decoration: none; }
.control-section-hoot-theme .accordion-section-title .hoot-theme-content a.button { line-height: 24px; height: 26px; background: #fff; color: #23282d; }
/*** Links Section ***/
#accordion-section-links .accordion-section-title { color: #0073aa; /*border-left-color: #0073aa;*/ }
a.hoot-cust-link { display: block; color: inherit; text-decoration: none; font-size: 14px; padding: 10px 20px 15px 14px; margin-bottom: 2px; border-bottom: 1px solid #ddd; background: #fff; position: relative; }
a.hoot-cust-link:after { content: "\f345"; color: #a0a5aa; font: 400 20px/1 dashicons; speak: none; display: block; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-decoration: none!important; position: absolute; right: 6px; top: 50%; margin-top: -10px; }
a.hoot-cust-link:hover, a.hoot-cust-link:hover:after { color: #0073aa; background: #f3f3f5; }
span.hoot-cust-link-head { display: block; font-size: 14px; line-height: 22px; font-weight: 600; margin-bottom: 4px; }
.hoot-cust-link-desc {}
/*** Module BG ***/
.fp-section-bg-button { display: none !important; }
/* Fly heading */
.hoot-module-bg-title { font-weight: bold; display: block; text-align: center; }PK ~\z admin/css/customize.min.cssnu [ .control-section-hoot-theme .accordion-section-title{padding-top:15px}#customize-controls .control-section-hoot-theme .accordion-section-title:after{display:none}#customize-controls .control-section-hoot-theme .accordion-section-title:focus,#customize-controls .control-section-hoot-theme .accordion-section-title:hover{background-color:#fff}.control-section-hoot-theme .accordion-section-title .button{position:absolute;right:10px;top:50%;margin-top:-14px;text-transform:uppercase;-webkit-border-radius:18px;border-radius:18px}.rtl .control-section-hoot-theme .accordion-section-title .button{margin-left:0;margin-right:8px}.hoot-theme-conten{display:block;clear:both;margin:12px 0 -12px;border-top:1px solid #ddd}.hoot-theme-conten.hoot-theme-active{margin:0;border:none}.hoot-theme-conten a{display:inline-block;font-size:12px;text-transform:uppercase;margin-right:8px}.hoot-theme-content{display:block;clear:both;margin:12px -10px -12px -14px;padding:10px 0;text-align:center;background:#f1f1f1;border-top:1px solid #ccc;border-bottom:2px solid #ccc;-webkit-box-shadow:inset 0 2px 5px 0 rgba(0,0,0,.15);-moz-box-shadow:inset 0 2px 5px 0 rgba(0,0,0,.15);box-shadow:inset 0 2px 5px 0 rgba(0,0,0,.15)}.hoot-theme-content.hoot-theme-active{margin:-15px -10px -11px -14px;border:none;background:#fff}.control-section-hoot-theme .accordion-section-title .hoot-theme-content a{display:inline-block;font-size:12px;text-transform:none;margin:6px 0;padding:0 8px;text-decoration:none}.control-section-hoot-theme .accordion-section-title .hoot-theme-content a.button{line-height:24px;height:26px;background:#fff;color:#23282d}#accordion-section-links .accordion-section-title{color:#0073aa}a.hoot-cust-link{display:block;color:inherit;text-decoration:none;font-size:14px;padding:10px 20px 15px 14px;margin-bottom:2px;border-bottom:1px solid #ddd;background:#fff;position:relative}a.hoot-cust-link:after{content:"\f345";color:#a0a5aa;font:400 20px/1 dashicons;speak:none;display:block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none!important;position:absolute;right:6px;top:50%;margin-top:-10px}a.hoot-cust-link:hover,a.hoot-cust-link:hover:after{color:#0073aa;background:#f3f3f5}span.hoot-cust-link-head{display:block;font-size:14px;line-height:22px;font-weight:600;margin-bottom:4px}.fp-section-bg-button{display:none!important}.hoot-module-bg-title{font-weight:700;display:block;text-align:center}PK ~\7?=9
9
admin/css/notice.cssnu [ #hoot-welcome-msg { padding-left: 0; margin: 5px 0 25px; }
.hoot-welcome-msg {}
.hoot-welcome-content { display: flex; align-items: center; }
.hoot-welcome-img {
display: block;
display: flex; align-items: flex-start; /* center */
background: #eee;
width: 275px; min-height: 145px; align-self: stretch;
flex-shrink: 0;
overflow: hidden !important;
box-shadow: 0 0 6px 1px rgba(200,200,200,0.5);
position: relative;
max-height: 350px !important;
}
.hoot-welcome-img--large { width: 350px; }
.hoot-welcome-img--ss { align-items: center; background: #fff; padding: 15px; box-sizing: border-box; max-height: none !important; }
.hoot-welcome-screenshot { width: 100%; }
.hoot-welcome-scrollImg {
position: absolute; top: 0; left: 0;
animation: scrollImg 18s ease-in-out infinite;
/* animation-delay: 1s; */
animation-play-state: running;
}
.hoot-welcome-screenshot:hover { animation-play-state: paused; }
@keyframes scrollImg {
0% { transform: translateY(0); }
10% { transform: translateY(0); }
90% { transform: translateY(calc(-100% + 250px)); }
95% { transform: translateY(calc(-100% + 250px)); }
98% { transform: translateY(0); }
}
.hoot-welcome-text {
flex-grow: 1;
padding-left: 40px;
margin: 20px 0 25px;
}
.hoot-welcome-text p { font-size: 14px; max-width: 700px; }
.hoot-welcome-text a { font-weight: 600; }
.hoot-welcome-actions { display: flex; max-width: 700px; gap: 10px; padding-top: 10px; }
.hoot-welcome-actions > div { flex-grow: 1; background: #f1f1f1; border: solid 1px #ddd; text-align: center; width: 100%; }
.hoot-welcome-multiactions > div { width: 50%; border-radius: 5px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; }
.hoot-welcome-actions > div > div { padding: 10px 8px; }
.hoot-welcome-actions p { padding: 0; margin: 0; }
.hoot-welcome-actions p + p { margin-top: 5px; }
.button.hoot-welcome-btn { margin: 10px 0; font-size: 14px; line-height: 1.8em; padding: 10px 35px; }
.hoot-welcome-text .hoot-welcome-note { font-size: 13px; color: #4b7ea7; font-style: italic; font-weight: 500; background: #fafafa; border-top: solid 1px #ddd; padding: 3px; }
.button.hoot-btn-processplugin.updating-message:before { color: #a7a7a7; }
.button.hoot-welcome-btn + div.error { margin: 0; }
@media only screen and (max-width: 1078px) {
.hoot-welcome-actions { flex-direction: column; }
.hoot-welcome-multiactions > div { width: 100%; }
}
@media only screen and (max-width: 728px) {
.hoot-welcome-content { flex-direction: column; }
.hoot-welcome-img { max-width: 100%; height: 100px; align-items: flex-start; margin: 15px auto; }
}
PK ~\Wl admin/about.phpnu [ incuri . 'admin/css/about.css', array(), hoot_data()->hoot_version );
wp_enqueue_script( 'hoot-admin-about', hoot_data()->incuri . 'admin/js/about.js', array( 'jquery' ), hoot_data()->hoot_version, true );
}
}
/**
* Display the Appearance Subpage
*
* @since 1.0
* @access public
* @return void
*/
function unos_appearance_subpage() {
$slug = unos_abouttag( 'slug' );
$themename = unos_abouttag( 'name' );
$themelabel = unos_abouttag( 'label' );
$version = unos_abouttag( 'vers' );
$screenshot = unos_abouttag( 'shot' );
$hasupsell = apply_filters( 'unos_load_upsell', true );
$default_tabs = array( 'qstart', 'plugins' );
if ( $hasupsell ) $default_tabs[] = 'upsell';
$availabletabs = apply_filters( 'unos_about_load_tabs', $default_tabs );
if ( ! is_array( $availabletabs ) ) $availabletabs = $default_tabs;
$activetab = !empty( $_GET['tab'] ) && in_array( $_GET['tab'], $availabletabs ) ? $_GET['tab'] : ( $hasupsell ? 'upsell' : 'qstart' );
?>
', '', ' ', '' );
?>
', '', ' ' );
?>
$feature ) :
$style = empty( $feature['style'] ) ? 'std' : $feature['style'];
?>
">
' . esc_html__( '* Premium Feature', 'unos' ) . ' '; ?>
' . $feature['desc'] . ''; ?>
' . esc_html__( '* Premium Feature', 'unos' ) . ' '; ?>
' . $feature['desc'] . ''; ?>
' . esc_html__( '* Premium Feature', 'unos' ) . ' '; ?>
' . $feature['desc'] . ''; ?>
$block ) {
echo '
';
if ( !empty( $block['img'] ) ) : ?>
' . esc_html__( '* Premium Feature', 'unos' ) . ' '; ?>
' . $block['desc'] . '
';
echo '
';
} ?>
' . esc_html__( '* Premium Feature', 'unos' ) . ' '; ?>
' . $feature['desc'] . '
'; ?>
incuri . 'admin/images/' );
$slug = unos_abouttag( 'slug' );
$themename = unos_abouttag( 'name' );
$features[] = array(
/* Translators: The %s are placeholders for HTML, so the order can't be changed. */
'name' => sprintf( esc_html__( 'Complete %1$sStyle %2$sCustomization%3$s', 'unos' ), ' ', '', ' ' ),
/* Translators: 1 is the theme name */
'desc' => sprintf( esc_html__( 'Different looks and styles. Choose from an extensive range of customization features in %1$s Premium to setup your own unique front page. Give youe site the personality it deserves.', 'unos' ), $themename ),
// 'img' => $imagepath . 'premium-style.jpg',
'style' => 'hero-top',
);
$features[] = array(
'name' => esc_html__( 'Custom Colors & Backgrounds for Sections', 'unos' ),
/* Translators: 1 is the theme name */
'desc' => sprintf( esc_html__( '%1$s Premium lets you select custom colors and backgrounds for different sections of your site like header, footer, logo background, menu dropdown, content area, page title area etc.', 'unos' ), $themename ),
'img' => $imagepath . 'premium-colors.jpg',
);
$features[] = array(
/* Translators: The %s are placeholders for HTML, so the order can't be changed. */
'name' => sprintf( esc_html__( 'Fonts and %1$sTypography Control%2$s', 'unos' ), '', ' ' ),
'desc' => esc_html__( 'Assign different typography (fonts, text size, font color) to menu, topbar, logo, content headings, sidebar, footer etc.', 'unos' ),
'img' => $imagepath . 'premium-typography.jpg',
);
$features[] = array(
'name' => esc_html__( '600+ Google Fonts', 'unos' ),
'desc' => esc_html__( "With the integrated Google Fonts library, you can find the fonts that match your site's personality, and there's over 600 options to choose from.", 'unos' ),
'img' => $imagepath . 'premium-googlefonts.jpg',
);
$features[] = array(
'name' => esc_html__( 'Unlimites Sliders, Unlimites Slides', 'unos' ),
/* Translators: The %s are placeholders for HTML, so the order can't be changed. */
'desc' => sprintf( esc_html__( '%1$s Premium allows you to create unlimited sliders with as many slides as you need using the awesome HootKit plugin.%2$sSelect from displaying your own images with text to carousels and vertical sliding lists for posts and WooCommerce products.', 'unos' ), $themename, ' ' ),
'img' => $imagepath . 'premium-sliders.jpg',
);
$features[] = array(
'name' => esc_html__( 'Image Carousels', 'unos' ),
'desc' => esc_html__( 'Add carousel widgets to your post, in your sidebar, on your frontpage or in your footer. A simple drag and drop interface allows you to easily create and manage carousels.', 'unos' ),
'img' => $imagepath . 'premium-carousels.jpg',
);
$features[] = array(
/* Translators: The %s are placeholders for HTML, so the order can't be changed. */
'name' => sprintf( esc_html__( 'Floating %1$s%2$s\'Sticky\' Header%3$s & %2$s\'Goto Top\'%3$s button (optional)', 'unos' ), ' ', '', ' ' ),
/* Translators: The %s are placeholders for HTML, so the order can't be changed. */
'desc' => sprintf( esc_html__( 'The floating header follows the user down your page as they scroll, which means they never have to scroll back up to access your navigation menu, improving user experience.%1$sOr, use the \'Goto Top\' button appears on the screen when users scroll down your page, giving them a quick way to go back to the top of the page.', 'unos' ), ' ' ),
'img' => $imagepath . 'premium-header-top.jpg',
);
$features[] = array(
/* Translators: The %s are placeholders for HTML, so the order can't be changed. */
'name' => sprintf( esc_html__( 'One Page %1$sScrolling Website /%2$s %1$sLanding Page%2$s', 'unos' ), '', ' ' ),
/* Translators: The %s are placeholders for HTML, so the order can't be changed. */
'desc' => sprintf( esc_html__( 'Make One Page websites with menu items linking to different sections on the page. Watch the scroll animation kick in when a user clicks a menu item to jump to a page section.%1$sCreate different landing pages on your site. Change the menu for each page so that the menu items point to sections of the page being displayed.', 'unos' ), ' ' ),
'img' => $imagepath . 'premium-scroller.jpg',
'style' => 'side',
);
$features[] = array(
/* Translators: The %s are placeholders for HTML, so the order can't be changed. */
'name' => sprintf( esc_html__( 'Additional Blog Layouts (including pinterest %1$stype mosaic)%2$s', 'unos' ), '', ' ' ),
/* Translators: 1 is the theme name */
'desc' => sprintf( esc_html__( '%1$s Premium gives you the option to display your post archives in different layouts including a mosaic type layout similar to pinterest.', 'unos' ), $themename ),
'img' => $imagepath . 'premium-blogstyles.jpg',
);
$features[] = array(
'name' => esc_html__( 'Custom Widgets', 'unos' ),
/* Translators: The %s are placeholders for HTML, so the order can't be changed. */
'desc' => sprintf( esc_html__( 'Additional Hootkit Custom widgets crafted and designed specifically for %1$s Premium Theme to give you the flexibility of adding stylized content: %2$s Buttons, Carousel Sliders, Carousel Posts Slider, Contact Info, Icon Lists, Notices, Number Blocks, Tabs, Toggles and Vcards among others.', 'unos' ), $themename, ' ' ),
'img' => $imagepath . 'premium-widgets.jpg',
);
$features[] = array(
'name' => esc_html__( 'Menu Icons', 'unos' ),
'desc' => esc_html__( 'Select from over 900 icons for your main navigation menu links.', 'unos' ),
'img' => $imagepath . 'premium-menuicons.jpg',
);
$features[] = array(
'name' => esc_html__( 'Premium Background Patterns (CC0)', 'unos' ),
/* Translators: 1 is the theme name */
'desc' => sprintf( esc_html__( '%1$s Premium comes with many additional premium background patterns. You can always upload your own background image/pattern to match your site design.', 'unos' ), $themename ),
// 'img' => $imagepath . 'premium-backgrounds.jpg',
);
$features[] = array(
/* Translators: The %s are placeholders for HTML, so the order can't be changed. */
'name' => sprintf( esc_html__( 'Automatic Image Lightbox and %1$sWordPress Gallery%2$s', 'unos' ), '', ' ' ),
/* Translators: The %s are placeholders for HTML, so the order can't be changed. */
'desc' => sprintf( esc_html__( 'Automatically open image links on your site with the integrates lightbox in %1$s Premium.%2$sAutomatically convert standard WordPress galleries to beautiful lightbox gallery slider.', 'unos' ), $themename, ' ' ),
'img' => $imagepath . 'premium-lightbox.jpg',
);
$features[] = array(
/* Translators: The %s are placeholders for HTML, so the order can't be changed. */
'name' => sprintf( esc_html__( 'Developers %1$slove {LESS}', 'unos' ), ' ' ),
/* Translators: 1 is the theme name */
'desc' => sprintf( esc_html__( 'CSS is passe! Developers love the modularity and ease of using LESS, which is why %1$s Premium comes with properly organized LESS files for the main stylesheet.', 'unos' ), $themename ),
'img' => $imagepath . 'premium-lesscss.jpg',
);
$features[] = array(
'name' => esc_html__( 'Easy Import/Export', 'unos' ),
'desc' => esc_html__( 'Moving to a new host? Or applying a new child theme? Easily import/export your customizer settings with just a few clicks - right from the backend.', 'unos' ),
// 'img' => $imagepath . 'premium-import-export.jpg',
);
$features[] = array(
'style' => 'aside',
'blocks' => array(
array(
/* Translators: The %s are placeholders for HTML, so the order can't be changed. */
'name' => sprintf( esc_html__( 'Custom Javascript & %1$sGoogle Analytics%2$s', 'unos' ), '', ' ' ),
'desc' => esc_html__( 'Easily insert any javascript snippet to your header without modifying the code files. This helps in adding scripts for Google Analytics, Adsense or any other custom code.', 'unos' ),
// 'img' => $imagepath . 'premium-customjs.jpg',
),
array(
/* Translators: The %s are placeholders for HTML, so the order can't be changed. */
'name' => sprintf( esc_html__( 'Continued %1$sLifetime Updates', 'unos' ), ' ' ),
/* Translators: 1 is the theme name */
'desc' => sprintf( esc_html__( 'You will help support the continued development of %1$s - ensuring it works with future versions of WordPress for years to come.', 'unos' ), $themename ),
// 'img' => $imagepath . 'premium-updates.jpg',
),
),
);
$features[] = array(
/* Translators: The %s are placeholders for HTML, so the order can't be changed. */
'name' => esc_html__( 'Priority Support', 'unos' ),
/* Translators: The %s are placeholders for HTML, so the order can't be changed. */
'desc' => sprintf( esc_html__( 'Need help setting up %1$s? Upgrading to %1$s Premium gives you prioritized support. We have a growing support team ready to help you with your questions.%2$sNeed small modifications? If you are not a developer yourself, you can count on our support staff to help you with CSS snippets to get the look you are after. Best of all, your changes will persist across updates.', 'unos' ), $themename, ' ' ),
'img' => $imagepath . 'premium-support.jpg',
// 'style' => 'side',
);
$settinglink = admin_url( 'options-reading.php' );
$addpagelink = admin_url( 'post-new.php?post_type=page' );
$quickstart[] = array(
'name' => esc_html__( 'Setup Frontpage and Blog Page', 'unos' ),
/* Translators: The %s are placeholders for HTML, so the order can't be changed. */
'desc' => sprintf( esc_html__( 'By default WordPress displays blog posts on the frontpage.%9$s%9$sHowever many users want a dedicated frontpage to welcome visitors and a separate page to display their blog posts. To set this up, follow these steps:%9$s%1$s
%3$sIn your wp-admin area, click %11$sPages > Add New%12$s%4$s
%3$sGive page a Title %7$s(lets call it "My Home Page")%8$s and %5$sPublish%6$s%4$s
%3$sIn your wp-admin area, click %11$sPages > Add New%12$s%4$s
%3$sGive page a Title %7$s(lets call it "My Blog")%8$s and %5$sPublish%6$s%4$s
%3$sIn your wp-admin area, go to %10$sSettings > Reading%12$s%4$s
%3$sSelect the %5$sStatic Page%6$s option.%4$s
%3$sSelect the pages you created in Step 2 and 4 above.%4$s
%3$s%5$sSave%6$s the Changes.%4$s
%2$s', 'unos' ), '', ' ', '', ' ', '', ' ', '', ' ', ' ',
'',
' ',
' '
),
'img' => $imagepath . 'qstart-staticpage.png',
'style' => 'img-bottom',
);
$menulink = admin_url( 'nav-menus.php' );
$quickstart[] = array(
'name' => esc_html__( 'Setup Main Navigation Menu', 'unos' ),
/* Translators: The %s are placeholders for HTML, so the order can't be changed. */
'desc' => sprintf( esc_html__( '%1$s
%3$sIn your wp-admin, go to %10$sAppearance > Menus%12$s%4$s
%3$sClick on %5$screate a new menu%6$s link. %9$s%7$s(If you already have an existing menu, jump to Step 6)%8$s%4$s
%3$sGive your menu a name and click %5$sCreate Menu%6$s%4$s
%3$sNow add pages, categories, custom links etc to this menu.%4$s
%3$sClick %5$sSave Menu%6$s%4$s
%3$sClick %11$sManage Locations%12$s tab at the top%4$s
%3$sSelect the menu you just created in the dropdown options.%4$s
%3$sClick %5$sSave Changes%6$s%4$s
%2$s%7$sTip: You can add "My Home Page" and "My Blog" pages created in above section to your menu.%8$s
', 'unos' ), '', ' ', '', ' ', '', ' ', '', ' ', ' ',
'',
' ',
' '
),
);
$widgetslink = admin_url( 'widgets.php' );
$customizelink = admin_url( 'customize.php' );
$quickstart[] = array(
'name' => esc_html__( 'Add Content to Frontpage', 'unos' ),
/* Translators: The %s are placeholders for HTML, so the order can't be changed. */
'desc' => sprintf( esc_html__( '%1$s
%3$sIn your wp-admin, go to %10$sAppearance > Widgets%12$s%4$s
%3$sAdd Widgets to the %5$sFrontpage Widget Areas%6$s%4$s
%3$sYou can further manage Frontpage modules in your wp-admin by going to %11$sAppearance > Customizer%12$s and click %5$sFrontpage Modules%6$s section.%4$s
%2$s
%9$s%9$s
%13$sExample: Display a full width slider%14$s
To display a full width slider on your frontpage, set one of the Frontpage Module to full width in %11$sAppearance > Customizer > Frontpage Modules%12$s. Then add a %5$sHootKit Slider%6$s widget to this area from the %10$sWidgets%12$s screen.
', 'unos' ), '', ' ', '', ' ', '', ' ', '', ' ', ' ',
'',
' ',
' ', '', ' '
),
'img' => $imagepath . 'qstart-fpmodule.png',
'style' => 'img-bottom',
);
if ( ! class_exists( 'HootKit' ) ) {
$quickstart[] = array(
/* Translators: 1 is a line break */
'name' => sprintf( esc_html__( 'Install%1$sHootKit plugin', 'unos' ), ' ' )
. '' . esc_html__( '[ recommended ]', 'unos' ) . ' ',
/* Translators: 1 is the theme name */
'desc' => sprintf( esc_html__( '%1$s works best with its companion plugin HootKit.', 'unos' ), $themename ) . '' . esc_html__( 'HootKit is a wpHoot plugin which adds various functionalities to the theme such as widgets and sliders which were developed and styled specifically for the theme.', 'unos' ) . ' ' . esc_html__( 'Go to the Plugins tab to install HootKit', 'unos' ) . ' ',
);
}
$hootthemeimplink = ( ! class_exists( 'HootImport' ) ) ? '' . esc_html__( 'Go to the Plugins tab to install Hoot Import plugin', 'unos' ) . ' ' : '' . esc_html__( 'Go to Hoot Import', 'unos' ) . ' ';
$quickstart[] = array(
/* Translators: 1 is a line break */
'name' => sprintf( esc_html__( 'Install%1$sDemo Content', 'unos' ), ' ' )
. '' . esc_html__( '[ optional ]', 'unos' ) . ' ',
/* Translators: The %s are placeholders for HTML, so the order can't be changed. */
'desc' => sprintf( esc_html__( 'Importing demo content is the easiest way to setup your theme and make it look like the %1$sDemo Site%2$s', 'unos' ), '', ' ' )
. ' ' . $hootthemeimplink,
);
return ( !empty( $$string ) ) ? $$string : '';
}PK ~\n % admin/images/archive-mixed-block3.pngnu [ PNG
IHDR i A ]6 tEXtSoftware Adobe ImageReadyqe<