hitmag theme + authorbox fix
|
|
@ -0,0 +1,24 @@
|
|||
<?php
|
||||
/**
|
||||
* Plugin Name: Hitmag Addon
|
||||
* Plugin URI:
|
||||
* Description: Hitmag Addon
|
||||
* Author:
|
||||
* Version: 1.0
|
||||
* Author URI:
|
||||
* License:
|
||||
* Text Domain:
|
||||
* Requires at least: 6.0
|
||||
* Requires PHP: 5.6
|
||||
*/
|
||||
|
||||
|
||||
function hitmag_author() {
|
||||
if (is_author()) {
|
||||
get_template_part( 'template-parts/authorbox' );
|
||||
}
|
||||
}
|
||||
|
||||
add_filter('hitmag_before_archive_posts', 'hitmag_author');
|
||||
|
||||
?>
|
||||
|
|
@ -0,0 +1,38 @@
|
|||
<?php
|
||||
/**
|
||||
* The template for displaying 404 pages (not found)
|
||||
*
|
||||
* @link https://codex.wordpress.org/Creating_an_Error_404_Page
|
||||
*
|
||||
* @package HitMag
|
||||
*/
|
||||
|
||||
get_header(); ?>
|
||||
|
||||
<?php do_action( 'hitmag_before_content' ); ?>
|
||||
|
||||
<div id="primary" class="content-area">
|
||||
<main id="main" class="site-main" role="main">
|
||||
|
||||
<section class="error-404 not-found">
|
||||
<header class="page-header">
|
||||
<h1 class="page-title"><?php esc_html_e( 'Oops! That page can’t be found.', 'hitmag' ); ?></h1>
|
||||
</header><!-- .page-header -->
|
||||
|
||||
<div class="page-content">
|
||||
<p><?php esc_html_e( 'It looks like nothing was found at this location. Maybe try a search?', 'hitmag' ); ?></p>
|
||||
|
||||
<?php
|
||||
get_search_form();
|
||||
?>
|
||||
</div><!-- .page-content -->
|
||||
</section><!-- .error-404 -->
|
||||
|
||||
</main><!-- #main -->
|
||||
</div><!-- #primary -->
|
||||
|
||||
<?php
|
||||
|
||||
do_action( 'hitmag_after_content' );
|
||||
|
||||
get_footer();
|
||||
|
|
@ -0,0 +1,67 @@
|
|||
<?php
|
||||
/**
|
||||
* The template for displaying archive pages
|
||||
*
|
||||
* @link https://codex.wordpress.org/Template_Hierarchy
|
||||
*
|
||||
* @package HitMag
|
||||
*/
|
||||
|
||||
get_header(); ?>
|
||||
|
||||
<?php do_action( 'hitmag_before_content' ); ?>
|
||||
|
||||
<div id="primary" class="content-area">
|
||||
<main id="main" class="site-main" role="main">
|
||||
|
||||
<?php do_action( 'hitmag_before_archive_posts' ); ?>
|
||||
|
||||
<?php
|
||||
if ( have_posts() ) : ?>
|
||||
|
||||
<header class="page-header">
|
||||
|
||||
<?php
|
||||
the_archive_title( '<h1 class="page-title arc-page-title">', '</h1>' );
|
||||
if ( ! is_author() ) { the_archive_description( '<div class="archive-description">', '</div>' ); }
|
||||
?>
|
||||
</header><!-- .page-header -->
|
||||
|
||||
<?php
|
||||
|
||||
$archive_content_layout = get_option( 'archive_content_layout', 'th-grid-2' );
|
||||
echo '<div class="posts-wrap ' . esc_attr( $archive_content_layout ) . '">';
|
||||
|
||||
/* Start the Loop */
|
||||
while ( have_posts() ) : the_post();
|
||||
|
||||
/*
|
||||
* Include the Post-Format-specific template for the content.
|
||||
* If you want to override this in a child theme, then include a file
|
||||
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
|
||||
*/
|
||||
get_template_part( 'template-parts/content', get_post_format() );
|
||||
|
||||
endwhile;
|
||||
|
||||
echo '</div><!-- .posts-wrap -->';
|
||||
|
||||
the_posts_pagination();
|
||||
|
||||
else :
|
||||
|
||||
get_template_part( 'template-parts/content', 'none' );
|
||||
|
||||
endif; ?>
|
||||
|
||||
<?php do_action( 'hitmag_after_archive_posts' ); ?>
|
||||
|
||||
</main><!-- #main -->
|
||||
</div><!-- #primary -->
|
||||
|
||||
<?php
|
||||
get_sidebar();
|
||||
|
||||
do_action( 'hitmag_after_content' );
|
||||
|
||||
get_footer();
|
||||
|
|
@ -0,0 +1,102 @@
|
|||
<?php
|
||||
/**
|
||||
* The template for displaying comments
|
||||
*
|
||||
* This is the template that displays the area of the page that contains both the current comments
|
||||
* and the comment form.
|
||||
*
|
||||
* @link https://codex.wordpress.org/Template_Hierarchy
|
||||
*
|
||||
* @package HitMag
|
||||
*/
|
||||
|
||||
/*
|
||||
* If the current post is protected by a password and
|
||||
* the visitor has not yet entered the password we will
|
||||
* return early without loading the comments.
|
||||
*/
|
||||
if ( post_password_required() ) {
|
||||
return;
|
||||
}
|
||||
?>
|
||||
|
||||
<div id="comments" class="comments-area">
|
||||
|
||||
<?php
|
||||
// You can start editing here -- including this comment!
|
||||
if ( have_comments() ) : ?>
|
||||
<h3 class="comments-title">
|
||||
<?php
|
||||
$comments_number = get_comments_number();
|
||||
if ( '1' === $comments_number ) {
|
||||
/* translators: %s: post title */
|
||||
printf( esc_html( _x( 'One Comment on “%s”', 'comments title', 'hitmag' ) ), get_the_title() );
|
||||
} else {
|
||||
printf(
|
||||
/* translators: 1: number of comments, 2: post title */
|
||||
esc_html(
|
||||
_nx(
|
||||
'%1$s Comment on “%2$s”',
|
||||
'%1$s Comments on “%2$s”',
|
||||
$comments_number,
|
||||
'comments title',
|
||||
'hitmag'
|
||||
)
|
||||
),
|
||||
number_format_i18n( $comments_number ),
|
||||
get_the_title()
|
||||
);
|
||||
}
|
||||
?>
|
||||
|
||||
</h3><!-- .comments-title -->
|
||||
|
||||
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
|
||||
<nav id="comment-nav-above" class="navigation comment-navigation" role="navigation">
|
||||
<h2 class="screen-reader-text"><?php esc_html_e( 'Comment navigation', 'hitmag' ); ?></h2>
|
||||
<div class="nav-links">
|
||||
|
||||
<div class="nav-previous"><?php previous_comments_link( esc_html__( 'Older Comments', 'hitmag' ) ); ?></div>
|
||||
<div class="nav-next"><?php next_comments_link( esc_html__( 'Newer Comments', 'hitmag' ) ); ?></div>
|
||||
|
||||
</div><!-- .nav-links -->
|
||||
</nav><!-- #comment-nav-above -->
|
||||
<?php endif; // Check for comment navigation. ?>
|
||||
|
||||
<ol class="comment-list">
|
||||
<?php
|
||||
wp_list_comments( array(
|
||||
'style' => 'ol',
|
||||
'short_ping' => true,
|
||||
'avatar_size' => 50,
|
||||
) );
|
||||
?>
|
||||
</ol><!-- .comment-list -->
|
||||
|
||||
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
|
||||
<nav id="comment-nav-below" class="navigation comment-navigation" role="navigation">
|
||||
<h2 class="screen-reader-text"><?php esc_html_e( 'Comment navigation', 'hitmag' ); ?></h2>
|
||||
<div class="nav-links">
|
||||
|
||||
<div class="nav-previous"><?php previous_comments_link( esc_html__( 'Older Comments', 'hitmag' ) ); ?></div>
|
||||
<div class="nav-next"><?php next_comments_link( esc_html__( 'Newer Comments', 'hitmag' ) ); ?></div>
|
||||
|
||||
</div><!-- .nav-links -->
|
||||
</nav><!-- #comment-nav-below -->
|
||||
<?php
|
||||
endif; // Check for comment navigation.
|
||||
|
||||
endif; // Check for have_comments().
|
||||
|
||||
|
||||
// If comments are closed and there are comments, let's leave a little note, shall we?
|
||||
if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) : ?>
|
||||
|
||||
<p class="no-comments"><?php esc_html_e( 'Comments are closed.', 'hitmag' ); ?></p>
|
||||
<?php
|
||||
endif;
|
||||
|
||||
comment_form();
|
||||
?>
|
||||
|
||||
</div><!-- #comments -->
|
||||
|
|
@ -0,0 +1,43 @@
|
|||
li#customize-control-archive_sidebar_align img,
|
||||
li#customize-control-page_sidebar_align img,
|
||||
li#customize-control-post_sidebar_align img {
|
||||
width: 45px;
|
||||
margin: 5px;
|
||||
padding: 3px;
|
||||
}
|
||||
|
||||
li#customize-control-archive_sidebar_align img:last-child,
|
||||
li#customize-control-page_sidebar_align img:last-child,
|
||||
li#customize-control-post_sidebar_align img:last-child {
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.customize-control-kirki .description {
|
||||
font-weight: 400 !important;
|
||||
}
|
||||
|
||||
#customize-controls .control-section-hitmag-upsell .accordion-section-title:hover,
|
||||
#customize-controls .control-section-hitmag-upsell .accordion-section-title:focus {
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
.control-section-hitmag-upsell .accordion-section-title .button {
|
||||
margin-top: -3px;
|
||||
margin-left: 8px;
|
||||
}
|
||||
|
||||
.rtl .control-section-hitmag-upsell .accordion-section-title .button {
|
||||
margin-left: 0;
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
#accordion-section-hitmag_upsell a.button.button-secondary {
|
||||
background: #00A388;
|
||||
color: #fff;
|
||||
border: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
#customize-control-theme_documentation {
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
|
@ -0,0 +1,205 @@
|
|||
/*--------------------------------------------------------------
|
||||
## Block Styles.
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
/* Main column width */
|
||||
.wp-block {
|
||||
max-width: 735px;
|
||||
}
|
||||
|
||||
ul.wp-block-gallery,
|
||||
ol.wp-block-gallery {
|
||||
margin: 0 !important;
|
||||
padding-left: 0 !important;
|
||||
}
|
||||
|
||||
.wp-block-pullquote {
|
||||
border-top: none;
|
||||
border-bottom: none;
|
||||
color: inherit;
|
||||
padding: 0;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
text-align: none;
|
||||
}
|
||||
|
||||
.wp-block-pullquote.alignleft {
|
||||
margin-right: 25px;
|
||||
}
|
||||
|
||||
.wp-block-pullquote.alignright {
|
||||
margin-left: 25px;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor h1,
|
||||
.edit-post-visual-editor h2,
|
||||
.edit-post-visual-editor h3,
|
||||
.edit-post-visual-editor h4,
|
||||
.edit-post-visual-editor h5,
|
||||
.edit-post-visual-editor h6,
|
||||
.wp-block-heading h1.editor-rich-text__tinymce,
|
||||
.wp-block-heading h2.editor-rich-text__tinymce,
|
||||
.wp-block-heading h3.editor-rich-text__tinymce,
|
||||
.wp-block-heading h4.editor-rich-text__tinymce,
|
||||
.wp-block-heading h5.editor-rich-text__tinymce,
|
||||
.wp-block-heading h6.editor-rich-text__tinymce {
|
||||
line-height: 1.3 !important;
|
||||
margin: 0.9em 0;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.editor-styles-wrapper table,
|
||||
.editor-styles-wrapper th,
|
||||
.editor-styles-wrapper td {
|
||||
padding: 8px 15px;
|
||||
}
|
||||
|
||||
.editor-default-block-appender textarea.editor-default-block-appender__content {
|
||||
font-family: "Lato", sans-serif;
|
||||
}
|
||||
|
||||
.editor-post-title__block .editor-post-title__input {
|
||||
font-family: "Lato", sans-serif;
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
/* Quote Blocks */
|
||||
|
||||
/* Quote */
|
||||
|
||||
.wp-block-quote {
|
||||
font-size: 18px;
|
||||
font-size: 1.125rem;
|
||||
padding: 1.5em;
|
||||
margin-bottom: 1em;
|
||||
font-style: italic;
|
||||
background: #f8f8f8;
|
||||
border-left: 3px solid #e74c3c;
|
||||
}
|
||||
|
||||
.wp-block-quote:not(.is-large):not(.is-style-large) {
|
||||
border-left: 3px solid #e74c3c;
|
||||
padding-left: 1.5em;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor.editor-styles-wrapper .editor-block-list__block .wp-block-quote:not(.is-large):not(.is-style-large) p {
|
||||
font-size: 18px !important;
|
||||
font-size: 1.125rem !important;
|
||||
}
|
||||
|
||||
.wp-block-quote.is-large p {
|
||||
font-size: 21px;
|
||||
}
|
||||
|
||||
.editor-block-list__block .wp-block-quote .wp-block-quote__citation {
|
||||
color: inherit;
|
||||
display: block;
|
||||
font-size: inherit;
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
margin-top: 0.5em;
|
||||
}
|
||||
|
||||
.editor-block-list__block .wp-block-quote:not(.is-large):not(.is-style-large) .wp-block-quote__citation {
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.editor-block-list__block .wp-block-quote.is-large .wp-block-quote__citation {
|
||||
margin-top: 1em;
|
||||
font-size: 18px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.editor-block-list__block .wp-block-quote.alignleft p,
|
||||
.editor-block-list__block .wp-block-quote.alignright p,
|
||||
.editor-block-list__block .wp-block-quote.alignleft .wp-block-quote__citation,
|
||||
.editor-block-list__block .wp-block-quote.alignright .wp-block-quote__citation {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.editor-block-list__block .wp-block-quote.alignleft p:last-of-type,
|
||||
.editor-block-list__block .wp-block-quote.alignright p:last-of-type {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
/* Pullquote */
|
||||
|
||||
.wp-block-pullquote {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.wp-block-pullquote.alignleft blockquote > .editor-rich-text p,
|
||||
.wp-block-pullquote.alignright blockquote > .editor-rich-text p {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
|
||||
.wp-block-pullquote .wp-block-pullquote__citation {
|
||||
font-size: 14px;
|
||||
font-weight: bold;
|
||||
text-transform: none;
|
||||
margin-top: 1em;
|
||||
}
|
||||
|
||||
/* Cover Image */
|
||||
.wp-block-cover p {
|
||||
font-size: 2em;
|
||||
padding: 1em;
|
||||
}
|
||||
|
||||
[data-align=left] .wp-block-cover p,
|
||||
[data-align=right] .wp-block-cover p {
|
||||
font-size: 1.4em;
|
||||
padding: 1em;
|
||||
}
|
||||
|
||||
/* Widget title */
|
||||
.editor-styles-wrapper .is-style-hitmag-widget-title,
|
||||
.is-style-hitmag-widget-title {
|
||||
font-size: 18px;
|
||||
border-bottom: 2px solid #e74c3c;
|
||||
font-family: "Ubuntu", sans-serif;
|
||||
font-weight: bold;
|
||||
line-height: 1.3;
|
||||
text-transform: uppercase;
|
||||
display: inline-block;
|
||||
margin-top: 0;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
/* Search Block */
|
||||
.wp-block-search .wp-block-search__input {
|
||||
border: 1px solid #ddd;
|
||||
height: 45px;
|
||||
padding: 10px;
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
-webkit-appearance: none;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
.wp-block-search .wp-block-search__button {
|
||||
height: 45px;
|
||||
border: none;
|
||||
padding: 10px 15px;
|
||||
cursor: pointer;
|
||||
font-size: 12px;
|
||||
font-size: 0.75rem;
|
||||
text-transform: uppercase;
|
||||
font-weight: bold;
|
||||
background: #e74c3c;
|
||||
margin-left: 0;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.wp-block-search .wp-block-search__button:hover {
|
||||
background-color: #222222;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.blocks-widgets-container .editor-styles-wrapper,
|
||||
.wp-block[data-type="core/widget-area"] {
|
||||
max-width: 820px;
|
||||
}
|
||||
|
|
@ -0,0 +1,616 @@
|
|||
/*--------------------------------------------------------------
|
||||
# Normalize
|
||||
--------------------------------------------------------------*/
|
||||
html {
|
||||
font-family: sans-serif;
|
||||
-webkit-text-size-adjust: 100%;
|
||||
-ms-text-size-adjust: 100%;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 9px 25px;
|
||||
}
|
||||
|
||||
article,
|
||||
aside,
|
||||
details,
|
||||
figcaption,
|
||||
figure,
|
||||
footer,
|
||||
header,
|
||||
main,
|
||||
menu,
|
||||
nav,
|
||||
section,
|
||||
summary {
|
||||
display: block;
|
||||
}
|
||||
|
||||
audio,
|
||||
canvas,
|
||||
progress,
|
||||
video {
|
||||
display: inline-block;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
audio:not([controls]) {
|
||||
display: none;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
[hidden],
|
||||
template {
|
||||
display: none;
|
||||
}
|
||||
|
||||
a {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
a:active,
|
||||
a:hover {
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
abbr[title] {
|
||||
border-bottom: 1px dotted;
|
||||
}
|
||||
|
||||
b,
|
||||
strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
dfn {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 2em;
|
||||
margin: 0.67em 0;
|
||||
}
|
||||
|
||||
mark {
|
||||
background: #ff0;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
small {
|
||||
font-size: 80%;
|
||||
}
|
||||
|
||||
sub,
|
||||
sup {
|
||||
font-size: 75%;
|
||||
line-height: 0;
|
||||
position: relative;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
sup {
|
||||
top: -0.5em;
|
||||
}
|
||||
|
||||
sub {
|
||||
bottom: -0.25em;
|
||||
}
|
||||
|
||||
img {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
svg:not(:root) {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
figure {
|
||||
margin: 1em 40px;
|
||||
}
|
||||
|
||||
hr {
|
||||
box-sizing: content-box;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
pre {
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
code,
|
||||
kbd,
|
||||
pre,
|
||||
samp {
|
||||
font-family: monospace, monospace;
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
button,
|
||||
input,
|
||||
optgroup,
|
||||
select,
|
||||
textarea {
|
||||
color: inherit;
|
||||
font: inherit;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
button,
|
||||
select {
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
button,
|
||||
html input[type="button"],
|
||||
input[type="reset"],
|
||||
input[type="submit"] {
|
||||
-webkit-appearance: button;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
button[disabled],
|
||||
html input[disabled] {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
button::-moz-focus-inner,
|
||||
input::-moz-focus-inner {
|
||||
border: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
input {
|
||||
line-height: normal;
|
||||
}
|
||||
|
||||
input[type="checkbox"],
|
||||
input[type="radio"] {
|
||||
box-sizing: border-box;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
input[type="number"]::-webkit-inner-spin-button,
|
||||
input[type="number"]::-webkit-outer-spin-button {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
input[type="search"]::-webkit-search-cancel-button,
|
||||
input[type="search"]::-webkit-search-decoration {
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
|
||||
fieldset {
|
||||
border: 1px solid #c0c0c0;
|
||||
margin: 0 2px;
|
||||
padding: 0.35em 0.625em 0.75em;
|
||||
}
|
||||
|
||||
legend {
|
||||
border: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
textarea {
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
optgroup {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
}
|
||||
|
||||
td,
|
||||
th {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
# Typography
|
||||
--------------------------------------------------------------*/
|
||||
body,
|
||||
button,
|
||||
input,
|
||||
select,
|
||||
textarea {
|
||||
color: #404040;
|
||||
font-family: "Lato", sans-serif;
|
||||
font-size: 16px;
|
||||
font-size: 1rem;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
clear: both;
|
||||
margin: 0.9em 0;
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 36px;
|
||||
font-size: 2.25rem;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 32px;
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 28px;
|
||||
font-size: 1.75rem;
|
||||
}
|
||||
|
||||
h4 {
|
||||
font-size: 24px;
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
h5 {
|
||||
font-size: 20px;
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
|
||||
h6 {
|
||||
font-size: 16px;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 0 0 1.5em;
|
||||
}
|
||||
|
||||
dfn, cite, em, i {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
margin: 0 1.5em;
|
||||
}
|
||||
|
||||
address {
|
||||
margin: 0 0 1.5em;
|
||||
}
|
||||
|
||||
pre {
|
||||
background: #eeeeee;
|
||||
font-family: "Courier 10 Pitch", Courier, monospace;
|
||||
font-size: 15px;
|
||||
font-size: 0.9375rem;
|
||||
line-height: 1.6;
|
||||
margin-bottom: 1.6em;
|
||||
max-width: 100%;
|
||||
overflow: auto;
|
||||
padding: 1.6em;
|
||||
}
|
||||
|
||||
code, kbd, tt, var {
|
||||
font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
|
||||
font-size: 15px;
|
||||
font-size: 0.9375rem;
|
||||
}
|
||||
|
||||
abbr, acronym {
|
||||
border-bottom: 1px dotted #666666;
|
||||
cursor: help;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
mark, ins {
|
||||
background: #fff9c0;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
big {
|
||||
font-size: 125%;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
# Elements
|
||||
--------------------------------------------------------------*/
|
||||
html {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
*,
|
||||
*:before,
|
||||
*:after {
|
||||
/* Inherit box-sizing to make it easier to change the property for components that leverage other behavior; see http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
|
||||
box-sizing: inherit;
|
||||
}
|
||||
|
||||
body {
|
||||
background: white;
|
||||
/* Fallback for when there is no custom background color defined. */
|
||||
}
|
||||
|
||||
blockquote, q {
|
||||
quotes: "" "";
|
||||
padding: 1.5em;
|
||||
margin: 0 0 1em 0;
|
||||
font-size: 18px;
|
||||
font-style: italic;
|
||||
background: #f8f8f8;
|
||||
border-left: 3px solid #e74c3c;
|
||||
}
|
||||
blockquote:before, blockquote:after, q:before, q:after {
|
||||
content: "";
|
||||
}
|
||||
blockquote p, q p {
|
||||
margin: 0;
|
||||
}
|
||||
blockquote cite, q cite {
|
||||
margin-top: 1em;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
hr {
|
||||
background-color: #cccccc;
|
||||
border: 0;
|
||||
height: 1px;
|
||||
margin-bottom: 1.5em;
|
||||
}
|
||||
|
||||
ul, ol {
|
||||
margin: 0 0 1.5em 1.5em;
|
||||
padding-left: 2em;
|
||||
}
|
||||
|
||||
ul {
|
||||
list-style: disc;
|
||||
}
|
||||
|
||||
ol {
|
||||
list-style: decimal;
|
||||
}
|
||||
|
||||
li {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
li > ul,
|
||||
li > ol {
|
||||
margin-bottom: 0;
|
||||
margin-left: 1.5em;
|
||||
}
|
||||
|
||||
dt {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
dd {
|
||||
margin: 0 1.5em 1.5em;
|
||||
}
|
||||
|
||||
img {
|
||||
height: auto;
|
||||
/* Make sure images are scaled correctly. */
|
||||
max-width: 100%;
|
||||
/* Adhere to container width. */
|
||||
}
|
||||
|
||||
figure {
|
||||
margin: 1em 0;
|
||||
/* Extra wide images within figure tags don't overflow the content area. */
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
margin: 0 0 1.5em;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
table, th, td {
|
||||
border: 1px solid #ededed;
|
||||
}
|
||||
|
||||
th {
|
||||
background: #f8f8f8;
|
||||
font-weight: bold;
|
||||
padding: 8px 15px;
|
||||
}
|
||||
|
||||
.site-footer table, .site-footer th, .site-footer td {
|
||||
border: 1px solid #555;
|
||||
}
|
||||
.site-footer th {
|
||||
background: #222;
|
||||
}
|
||||
|
||||
td {
|
||||
padding: 5px 15px;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
## Links
|
||||
--------------------------------------------------------------*/
|
||||
a {
|
||||
color: #3498db;
|
||||
text-decoration: none;
|
||||
}
|
||||
a:visited {
|
||||
color: #2980b9;
|
||||
}
|
||||
a:hover, a:focus, a:active {
|
||||
color: #e74c3c;
|
||||
text-decoration: none;
|
||||
}
|
||||
a:focus {
|
||||
outline: thin dotted;
|
||||
}
|
||||
a:hover, a:active {
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
# Accessibility
|
||||
--------------------------------------------------------------*/
|
||||
/* Text meant only for screen readers. */
|
||||
.screen-reader-text {
|
||||
clip: rect(1px, 1px, 1px, 1px);
|
||||
position: absolute !important;
|
||||
height: 1px;
|
||||
width: 1px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.screen-reader-text:focus {
|
||||
background-color: #f1f1f1;
|
||||
border-radius: 3px;
|
||||
box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
|
||||
clip: auto !important;
|
||||
color: #21759b;
|
||||
display: block;
|
||||
font-size: 14px;
|
||||
font-size: 0.875rem;
|
||||
font-weight: bold;
|
||||
height: auto;
|
||||
left: 5px;
|
||||
line-height: normal;
|
||||
padding: 15px 23px 14px;
|
||||
text-decoration: none;
|
||||
top: 5px;
|
||||
width: auto;
|
||||
z-index: 100000;
|
||||
/* Above WP toolbar. */
|
||||
}
|
||||
|
||||
/* Do not show the outline on the skip link target. */
|
||||
#content[tabindex="-1"]:focus {
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
# Alignments
|
||||
--------------------------------------------------------------*/
|
||||
.alignleft {
|
||||
display: inline;
|
||||
float: left;
|
||||
margin-right: 1.5em;
|
||||
}
|
||||
|
||||
.alignright {
|
||||
display: inline;
|
||||
float: right;
|
||||
margin-left: 1.5em;
|
||||
}
|
||||
|
||||
.aligncenter {
|
||||
clear: both;
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
# Clearings
|
||||
--------------------------------------------------------------*/
|
||||
.clear:before,
|
||||
.clear:after,
|
||||
.entry-content:before,
|
||||
.entry-content:after,
|
||||
.comment-content:before,
|
||||
.comment-content:after,
|
||||
.site-header:before,
|
||||
.site-header:after,
|
||||
.site-content:before,
|
||||
.site-content:after,
|
||||
.site-footer:before,
|
||||
.site-footer:after {
|
||||
content: "";
|
||||
display: table;
|
||||
table-layout: fixed;
|
||||
}
|
||||
|
||||
.clear:after,
|
||||
.entry-content:after,
|
||||
.comment-content:after,
|
||||
.site-header:after,
|
||||
.site-content:after,
|
||||
.site-footer:after {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
# Media
|
||||
--------------------------------------------------------------*/
|
||||
.page-content .wp-smiley,
|
||||
.entry-content .wp-smiley,
|
||||
.comment-content .wp-smiley {
|
||||
border: none;
|
||||
margin-bottom: 0;
|
||||
margin-top: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* Make sure embeds and iframes fit their containers. */
|
||||
embed,
|
||||
iframe,
|
||||
object {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
## Captions
|
||||
--------------------------------------------------------------*/
|
||||
.wp-caption {
|
||||
margin-bottom: 1.5em;
|
||||
max-width: 100%;
|
||||
}
|
||||
.wp-caption img[class*="wp-image-"] {
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
.wp-caption .wp-caption-text {
|
||||
margin: 0.8075em 0;
|
||||
}
|
||||
|
||||
.wp-caption-text {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
## Galleries
|
||||
--------------------------------------------------------------*/
|
||||
.gallery {
|
||||
margin-bottom: 1.5em;
|
||||
}
|
||||
|
||||
.gallery-item {
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
vertical-align: top;
|
||||
width: 100%;
|
||||
}
|
||||
.gallery-columns-2 .gallery-item {
|
||||
max-width: 50%;
|
||||
}
|
||||
.gallery-columns-3 .gallery-item {
|
||||
max-width: 33.33%;
|
||||
}
|
||||
.gallery-columns-4 .gallery-item {
|
||||
max-width: 25%;
|
||||
}
|
||||
.gallery-columns-5 .gallery-item {
|
||||
max-width: 20%;
|
||||
}
|
||||
.gallery-columns-6 .gallery-item {
|
||||
max-width: 16.66%;
|
||||
}
|
||||
.gallery-columns-7 .gallery-item {
|
||||
max-width: 14.28%;
|
||||
}
|
||||
.gallery-columns-8 .gallery-item {
|
||||
max-width: 12.5%;
|
||||
}
|
||||
.gallery-columns-9 .gallery-item {
|
||||
max-width: 11.11%;
|
||||
}
|
||||
|
||||
.gallery-caption {
|
||||
display: block;
|
||||
}
|
||||
|
|
@ -0,0 +1,270 @@
|
|||
/*
|
||||
* jQuery FlexSlider v2.6.3
|
||||
* http://www.woothemes.com/flexslider/
|
||||
*
|
||||
* Copyright 2012 WooThemes
|
||||
* Free to use under the GPLv2 and later license.
|
||||
* http://www.gnu.org/licenses/gpl-2.0.html
|
||||
*
|
||||
* Contributing author: Tyler Smith (@mbmufffin)
|
||||
*
|
||||
*/
|
||||
/* ====================================================================================================================
|
||||
* RESETS
|
||||
* ====================================================================================================================*/
|
||||
.flex-container a:hover,
|
||||
.flex-slider a:hover {
|
||||
outline: none;
|
||||
}
|
||||
.slides,
|
||||
.slides > li,
|
||||
.flex-control-nav,
|
||||
.flex-direction-nav {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
.flex-pauseplay span {
|
||||
text-transform: capitalize;
|
||||
}
|
||||
/* ====================================================================================================================
|
||||
* BASE STYLES
|
||||
* ====================================================================================================================*/
|
||||
.flexslider {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
.flexslider .slides > li {
|
||||
display: none;
|
||||
-webkit-backface-visibility: hidden;
|
||||
}
|
||||
.flexslider .slides img {
|
||||
width: 100%;
|
||||
display: block;
|
||||
}
|
||||
.flexslider .slides:after {
|
||||
content: "\0020";
|
||||
display: block;
|
||||
clear: both;
|
||||
visibility: hidden;
|
||||
line-height: 0;
|
||||
height: 0;
|
||||
}
|
||||
html[xmlns] .flexslider .slides {
|
||||
display: block;
|
||||
}
|
||||
* html .flexslider .slides {
|
||||
height: 1%;
|
||||
}
|
||||
.no-js .flexslider .slides > li:first-child {
|
||||
display: block;
|
||||
}
|
||||
/* ====================================================================================================================
|
||||
* DEFAULT THEME
|
||||
* ====================================================================================================================*/
|
||||
.flexslider {
|
||||
margin: 0;
|
||||
background: #fff;
|
||||
position: relative;
|
||||
zoom: 1;
|
||||
}
|
||||
#hm-slider {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.flexslider .slides {
|
||||
zoom: 1;
|
||||
}
|
||||
.flexslider .slides img {
|
||||
height: auto;
|
||||
-moz-user-select: none;
|
||||
}
|
||||
.flex-viewport {
|
||||
max-height: 2000px;
|
||||
-webkit-transition: all 1s ease;
|
||||
-moz-transition: all 1s ease;
|
||||
-ms-transition: all 1s ease;
|
||||
-o-transition: all 1s ease;
|
||||
transition: all 1s ease;
|
||||
}
|
||||
.loading .flex-viewport {
|
||||
max-height: 300px;
|
||||
}
|
||||
.carousel li {
|
||||
margin-right: 5px;
|
||||
}
|
||||
.flex-direction-nav {
|
||||
*height: 0;
|
||||
}
|
||||
.flex-direction-nav a {
|
||||
text-decoration: none;
|
||||
display: block;
|
||||
font-size: 0;
|
||||
height: 70px;
|
||||
line-height: 70px;
|
||||
text-align: center;
|
||||
margin: -35px 0 0;
|
||||
position: absolute;
|
||||
padding: 0 25px;
|
||||
top: 50%;
|
||||
z-index: 10;
|
||||
overflow: hidden;
|
||||
opacity: 0;
|
||||
cursor: pointer;
|
||||
color: rgba(255, 255, 255, 0.8);
|
||||
text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
|
||||
-webkit-transition: all 0.3s ease-in-out;
|
||||
-moz-transition: all 0.3s ease-in-out;
|
||||
-ms-transition: all 0.3s ease-in-out;
|
||||
-o-transition: all 0.3s ease-in-out;
|
||||
transition: all 0.3s ease-in-out;
|
||||
}
|
||||
.flex-direction-nav a:before {
|
||||
font-family: "FontAwesome";
|
||||
font-size: 44px;
|
||||
display: inline-block;
|
||||
content: '\f104';
|
||||
text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
|
||||
}
|
||||
.flex-direction-nav a.flex-next:before {
|
||||
content: '\f105';
|
||||
}
|
||||
.flex-direction-nav .flex-prev:focus,
|
||||
.flex-direction-nav .flex-next:focus {
|
||||
color: #fff;
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
.flex-direction-nav .flex-prev {
|
||||
left: 0;
|
||||
}
|
||||
.flex-direction-nav .flex-next {
|
||||
right: 0;
|
||||
text-align: right;
|
||||
}
|
||||
.flexslider:hover .flex-direction-nav .flex-prev {
|
||||
opacity: 0.7;
|
||||
left: 0;
|
||||
}
|
||||
.flexslider:hover .flex-direction-nav .flex-prev:hover {
|
||||
opacity: 1;
|
||||
color: #fff;
|
||||
}
|
||||
.flexslider:hover .flex-direction-nav .flex-next {
|
||||
opacity: 0.7;
|
||||
}
|
||||
.flexslider:hover .flex-direction-nav .flex-next:hover {
|
||||
opacity: 1;
|
||||
color:#fff;
|
||||
}
|
||||
.flex-direction-nav .flex-disabled {
|
||||
opacity: 0!important;
|
||||
filter: alpha(opacity=0);
|
||||
cursor: default;
|
||||
z-index: -1;
|
||||
}
|
||||
.flex-pauseplay a {
|
||||
display: block;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
position: absolute;
|
||||
bottom: 5px;
|
||||
left: 10px;
|
||||
opacity: 0.8;
|
||||
z-index: 10;
|
||||
overflow: hidden;
|
||||
cursor: pointer;
|
||||
color: #000;
|
||||
}
|
||||
.flex-pauseplay a:before {
|
||||
font-family: "flexslider-icon";
|
||||
font-size: 20px;
|
||||
display: inline-block;
|
||||
content: '\f004';
|
||||
}
|
||||
.flex-pauseplay a:hover {
|
||||
opacity: 1;
|
||||
}
|
||||
.flex-pauseplay a.flex-play:before {
|
||||
content: '\f003';
|
||||
}
|
||||
.hitmag-featured-slider .flex-control-nav {
|
||||
display: none !important;
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
bottom: -40px;
|
||||
text-align: center;
|
||||
}
|
||||
.flex-control-nav li {
|
||||
margin: 0 6px;
|
||||
display: inline-block;
|
||||
zoom: 1;
|
||||
*display: inline;
|
||||
}
|
||||
.flex-control-paging li a {
|
||||
width: 11px;
|
||||
height: 11px;
|
||||
display: block;
|
||||
background: #666;
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
cursor: pointer;
|
||||
text-indent: -9999px;
|
||||
-webkit-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3);
|
||||
-moz-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3);
|
||||
-o-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3);
|
||||
box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3);
|
||||
-webkit-border-radius: 20px;
|
||||
-moz-border-radius: 20px;
|
||||
border-radius: 20px;
|
||||
}
|
||||
.flex-control-paging li a:hover {
|
||||
background: #333;
|
||||
background: rgba(0, 0, 0, 0.7);
|
||||
}
|
||||
.flex-control-paging li a.flex-active {
|
||||
background: #000;
|
||||
background: rgba(0, 0, 0, 0.9);
|
||||
cursor: default;
|
||||
}
|
||||
.flex-control-thumbs {
|
||||
margin: 5px 0 0;
|
||||
position: static;
|
||||
overflow: hidden;
|
||||
}
|
||||
.flex-control-thumbs li {
|
||||
width: 25%;
|
||||
float: left;
|
||||
margin: 0;
|
||||
}
|
||||
.flex-control-thumbs img {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
display: block;
|
||||
opacity: .7;
|
||||
cursor: pointer;
|
||||
-moz-user-select: none;
|
||||
-webkit-transition: all 1s ease;
|
||||
-moz-transition: all 1s ease;
|
||||
-ms-transition: all 1s ease;
|
||||
-o-transition: all 1s ease;
|
||||
transition: all 1s ease;
|
||||
}
|
||||
.flex-control-thumbs img:hover {
|
||||
opacity: 1;
|
||||
}
|
||||
.flex-control-thumbs .flex-active {
|
||||
opacity: 1;
|
||||
cursor: default;
|
||||
}
|
||||
/* ====================================================================================================================
|
||||
* RESPONSIVE
|
||||
* ====================================================================================================================*/
|
||||
@media screen and (max-width: 860px) {
|
||||
.flex-direction-nav .flex-prev {
|
||||
opacity: 1;
|
||||
left: 0;
|
||||
}
|
||||
.flex-direction-nav .flex-next {
|
||||
opacity: 1;
|
||||
right: 0;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,106 @@
|
|||
/* latin-ext */
|
||||
@font-face {
|
||||
font-family: 'Lato';
|
||||
font-style: italic;
|
||||
font-weight: 400;
|
||||
src: url(../fonts/lato-regular-latin-ext-italic.woff2) format('woff2');
|
||||
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
/* latin */
|
||||
@font-face {
|
||||
font-family: 'Lato';
|
||||
font-style: italic;
|
||||
font-weight: 400;
|
||||
src: url(../fonts/lato-regular-latin-italic.woff2) format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
/* latin-ext */
|
||||
@font-face {
|
||||
font-family: 'Lato';
|
||||
font-style: italic;
|
||||
font-weight: 700;
|
||||
src: url(../fonts/lato-bold-latin-ext-italic.woff2) format('woff2');
|
||||
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
/* latin */
|
||||
@font-face {
|
||||
font-family: 'Lato';
|
||||
font-style: italic;
|
||||
font-weight: 700;
|
||||
src: url(../fonts/lato-bold-latin-italic.woff2) format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
/* latin-ext */
|
||||
@font-face {
|
||||
font-family: 'Lato';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: url(../fonts/lato-regular-latin-ext.woff2) format('woff2');
|
||||
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
/* latin */
|
||||
@font-face {
|
||||
font-family: 'Lato';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: url(../fonts/lato-regular-latin.woff2) format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
/* latin-ext */
|
||||
@font-face {
|
||||
font-family: 'Lato';
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
src: url(../fonts/lato-bold-latin-ext.woff2) format('woff2');
|
||||
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
/* latin */
|
||||
@font-face {
|
||||
font-family: 'Lato';
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
src: url(../fonts/lato-bold-latin.woff2) format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
@font-face {
|
||||
font-family: "Ubuntu";
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
src: url(../fonts/ubuntu-regular-webfont.woff2) format("woff2");
|
||||
}
|
||||
@font-face {
|
||||
font-family: "Ubuntu";
|
||||
font-weight: 500;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
src: url(../fonts/ubuntu-medium-webfont.woff2) format("woff2");
|
||||
}
|
||||
@font-face {
|
||||
font-family: "Ubuntu";
|
||||
font-weight: 700;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
src: url(../fonts/ubuntu-bold-webfont.woff2) format("woff2");
|
||||
}
|
||||
@font-face {
|
||||
font-family: "Open Sans";
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
src: url(../fonts/opensans-regular-webfont.woff2) format("woff2");
|
||||
}
|
||||
@font-face {
|
||||
font-family: "Open Sans";
|
||||
font-weight: 400;
|
||||
font-style: italic;
|
||||
font-display: swap;
|
||||
src: url(../fonts/opensans-italic-webfont.woff2) format("woff2");
|
||||
}
|
||||
@font-face {
|
||||
font-family: "Open Sans";
|
||||
font-weight: 700;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
src: url(../fonts/opensans-bold-webfont.woff2) format("woff2");
|
||||
}
|
||||
|
|
@ -0,0 +1,351 @@
|
|||
/* Magnific Popup CSS */
|
||||
.mfp-bg {
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 1042;
|
||||
overflow: hidden;
|
||||
position: fixed;
|
||||
background: #0b0b0b;
|
||||
opacity: 0.8; }
|
||||
|
||||
.mfp-wrap {
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 1043;
|
||||
position: fixed;
|
||||
outline: none !important;
|
||||
-webkit-backface-visibility: hidden; }
|
||||
|
||||
.mfp-container {
|
||||
text-align: center;
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
left: 0;
|
||||
top: 0;
|
||||
padding: 0 8px;
|
||||
box-sizing: border-box; }
|
||||
|
||||
.mfp-container:before {
|
||||
content: '';
|
||||
display: inline-block;
|
||||
height: 100%;
|
||||
vertical-align: middle; }
|
||||
|
||||
.mfp-align-top .mfp-container:before {
|
||||
display: none; }
|
||||
|
||||
.mfp-content {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
margin: 0 auto;
|
||||
text-align: left;
|
||||
z-index: 1045; }
|
||||
|
||||
.mfp-inline-holder .mfp-content,
|
||||
.mfp-ajax-holder .mfp-content {
|
||||
width: 100%;
|
||||
cursor: auto; }
|
||||
|
||||
.mfp-ajax-cur {
|
||||
cursor: progress; }
|
||||
|
||||
.mfp-zoom-out-cur, .mfp-zoom-out-cur .mfp-image-holder .mfp-close {
|
||||
cursor: -moz-zoom-out;
|
||||
cursor: -webkit-zoom-out;
|
||||
cursor: zoom-out; }
|
||||
|
||||
.mfp-zoom {
|
||||
cursor: pointer;
|
||||
cursor: -webkit-zoom-in;
|
||||
cursor: -moz-zoom-in;
|
||||
cursor: zoom-in; }
|
||||
|
||||
.mfp-auto-cursor .mfp-content {
|
||||
cursor: auto; }
|
||||
|
||||
.mfp-close,
|
||||
.mfp-arrow,
|
||||
.mfp-preloader,
|
||||
.mfp-counter {
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
user-select: none; }
|
||||
|
||||
.mfp-loading.mfp-figure {
|
||||
display: none; }
|
||||
|
||||
.mfp-hide {
|
||||
display: none !important; }
|
||||
|
||||
.mfp-preloader {
|
||||
color: #CCC;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
width: auto;
|
||||
text-align: center;
|
||||
margin-top: -0.8em;
|
||||
left: 8px;
|
||||
right: 8px;
|
||||
z-index: 1044; }
|
||||
.mfp-preloader a {
|
||||
color: #CCC; }
|
||||
.mfp-preloader a:hover {
|
||||
color: #FFF; }
|
||||
|
||||
.mfp-s-ready .mfp-preloader {
|
||||
display: none; }
|
||||
|
||||
.mfp-s-error .mfp-content {
|
||||
display: none; }
|
||||
|
||||
button.mfp-close,
|
||||
button.mfp-arrow {
|
||||
overflow: visible;
|
||||
cursor: pointer;
|
||||
background: transparent;
|
||||
border: 0;
|
||||
-webkit-appearance: none;
|
||||
display: block;
|
||||
outline: none;
|
||||
padding: 0;
|
||||
z-index: 1046;
|
||||
box-shadow: none;
|
||||
touch-action: manipulation; }
|
||||
|
||||
button::-moz-focus-inner {
|
||||
padding: 0;
|
||||
border: 0; }
|
||||
|
||||
.mfp-close {
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
line-height: 44px;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
text-decoration: none;
|
||||
text-align: center;
|
||||
opacity: 0.65;
|
||||
padding: 0 0 18px 10px;
|
||||
color: #FFF;
|
||||
font-style: normal;
|
||||
font-size: 28px;
|
||||
font-family: Arial, Baskerville, monospace; }
|
||||
.mfp-close:hover,
|
||||
.mfp-close:focus {
|
||||
opacity: 1; }
|
||||
.mfp-close:active {
|
||||
top: 1px; }
|
||||
|
||||
.mfp-close-btn-in .mfp-close {
|
||||
color: #333; }
|
||||
|
||||
.mfp-image-holder .mfp-close,
|
||||
.mfp-iframe-holder .mfp-close {
|
||||
color: #FFF;
|
||||
right: -6px;
|
||||
text-align: right;
|
||||
padding-right: 6px;
|
||||
width: 100%; }
|
||||
|
||||
.mfp-counter {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
color: #CCC;
|
||||
font-size: 12px;
|
||||
line-height: 18px;
|
||||
white-space: nowrap; }
|
||||
|
||||
.mfp-arrow {
|
||||
position: absolute;
|
||||
opacity: 0.65;
|
||||
margin: 0;
|
||||
top: 50%;
|
||||
margin-top: -55px;
|
||||
padding: 0;
|
||||
width: 90px;
|
||||
height: 110px;
|
||||
-webkit-tap-highlight-color: transparent; }
|
||||
.mfp-arrow:active {
|
||||
margin-top: -54px; }
|
||||
.mfp-arrow:hover,
|
||||
.mfp-arrow:focus {
|
||||
opacity: 1; }
|
||||
.mfp-arrow:before,
|
||||
.mfp-arrow:after {
|
||||
content: '';
|
||||
display: block;
|
||||
width: 0;
|
||||
height: 0;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
margin-top: 35px;
|
||||
margin-left: 35px;
|
||||
border: medium inset transparent; }
|
||||
.mfp-arrow:after {
|
||||
border-top-width: 13px;
|
||||
border-bottom-width: 13px;
|
||||
top: 8px; }
|
||||
.mfp-arrow:before {
|
||||
border-top-width: 21px;
|
||||
border-bottom-width: 21px;
|
||||
opacity: 0.7; }
|
||||
|
||||
.mfp-arrow-left {
|
||||
left: 0; }
|
||||
.mfp-arrow-left:after {
|
||||
border-right: 17px solid #FFF;
|
||||
margin-left: 31px; }
|
||||
.mfp-arrow-left:before {
|
||||
margin-left: 25px;
|
||||
border-right: 27px solid #3F3F3F; }
|
||||
|
||||
.mfp-arrow-right {
|
||||
right: 0; }
|
||||
.mfp-arrow-right:after {
|
||||
border-left: 17px solid #FFF;
|
||||
margin-left: 39px; }
|
||||
.mfp-arrow-right:before {
|
||||
border-left: 27px solid #3F3F3F; }
|
||||
|
||||
.mfp-iframe-holder {
|
||||
padding-top: 40px;
|
||||
padding-bottom: 40px; }
|
||||
.mfp-iframe-holder .mfp-content {
|
||||
line-height: 0;
|
||||
width: 100%;
|
||||
max-width: 900px; }
|
||||
.mfp-iframe-holder .mfp-close {
|
||||
top: -40px; }
|
||||
|
||||
.mfp-iframe-scaler {
|
||||
width: 100%;
|
||||
height: 0;
|
||||
overflow: hidden;
|
||||
padding-top: 56.25%; }
|
||||
.mfp-iframe-scaler iframe {
|
||||
position: absolute;
|
||||
display: block;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
|
||||
background: #000; }
|
||||
|
||||
/* Main image in popup */
|
||||
img.mfp-img {
|
||||
width: auto;
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
display: block;
|
||||
line-height: 0;
|
||||
box-sizing: border-box;
|
||||
padding: 40px 0 40px;
|
||||
margin: 0 auto; }
|
||||
|
||||
/* The shadow behind the image */
|
||||
.mfp-figure {
|
||||
line-height: 0; }
|
||||
.mfp-figure:after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 40px;
|
||||
bottom: 40px;
|
||||
display: block;
|
||||
right: 0;
|
||||
width: auto;
|
||||
height: auto;
|
||||
z-index: -1;
|
||||
box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
|
||||
background: #444; }
|
||||
.mfp-figure small {
|
||||
color: #BDBDBD;
|
||||
display: block;
|
||||
font-size: 12px;
|
||||
line-height: 14px; }
|
||||
.mfp-figure figure {
|
||||
margin: 0; }
|
||||
|
||||
.mfp-bottom-bar {
|
||||
margin-top: -36px;
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
cursor: auto; }
|
||||
|
||||
.mfp-title {
|
||||
text-align: left;
|
||||
line-height: 18px;
|
||||
color: #F3F3F3;
|
||||
word-wrap: break-word;
|
||||
padding-right: 36px; }
|
||||
|
||||
.mfp-image-holder .mfp-content {
|
||||
max-width: 100%; }
|
||||
|
||||
.mfp-gallery .mfp-image-holder .mfp-figure {
|
||||
cursor: pointer; }
|
||||
|
||||
@media screen and (max-width: 800px) and (orientation: landscape), screen and (max-height: 300px) {
|
||||
/**
|
||||
* Remove all paddings around the image on small screen
|
||||
*/
|
||||
.mfp-img-mobile .mfp-image-holder {
|
||||
padding-left: 0;
|
||||
padding-right: 0; }
|
||||
.mfp-img-mobile img.mfp-img {
|
||||
padding: 0; }
|
||||
.mfp-img-mobile .mfp-figure:after {
|
||||
top: 0;
|
||||
bottom: 0; }
|
||||
.mfp-img-mobile .mfp-figure small {
|
||||
display: inline;
|
||||
margin-left: 5px; }
|
||||
.mfp-img-mobile .mfp-bottom-bar {
|
||||
background: rgba(0, 0, 0, 0.6);
|
||||
bottom: 0;
|
||||
margin: 0;
|
||||
top: auto;
|
||||
padding: 3px 5px;
|
||||
position: fixed;
|
||||
box-sizing: border-box; }
|
||||
.mfp-img-mobile .mfp-bottom-bar:empty {
|
||||
padding: 0; }
|
||||
.mfp-img-mobile .mfp-counter {
|
||||
right: 5px;
|
||||
top: 3px; }
|
||||
.mfp-img-mobile .mfp-close {
|
||||
top: 0;
|
||||
right: 0;
|
||||
width: 35px;
|
||||
height: 35px;
|
||||
line-height: 35px;
|
||||
background: rgba(0, 0, 0, 0.6);
|
||||
position: fixed;
|
||||
text-align: center;
|
||||
padding: 0; } }
|
||||
|
||||
@media all and (max-width: 900px) {
|
||||
.mfp-arrow {
|
||||
-webkit-transform: scale(0.75);
|
||||
transform: scale(0.75); }
|
||||
.mfp-arrow-left {
|
||||
-webkit-transform-origin: 0;
|
||||
transform-origin: 0; }
|
||||
.mfp-arrow-right {
|
||||
-webkit-transform-origin: 100%;
|
||||
transform-origin: 100%; }
|
||||
.mfp-container {
|
||||
padding-left: 6px;
|
||||
padding-right: 6px; } }
|
||||
|
After Width: | Height: | Size: 434 KiB |
|
|
@ -0,0 +1,80 @@
|
|||
<?php
|
||||
/**
|
||||
* The template for displaying the footer
|
||||
*
|
||||
* Contains the closing of the #content div and all content after.
|
||||
*
|
||||
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
|
||||
*
|
||||
* @package HitMag
|
||||
*/
|
||||
|
||||
?>
|
||||
</div><!-- .hm-container -->
|
||||
</div><!-- #content -->
|
||||
|
||||
<?php do_action( 'hitmag_before_footer' ); ?>
|
||||
|
||||
<footer id="colophon" class="site-footer" role="contentinfo">
|
||||
<div class="hm-container">
|
||||
|
||||
<?php do_action( 'hitmag_before_footer_widget_area' ); ?>
|
||||
|
||||
<div class="footer-widget-area">
|
||||
<div class="footer-sidebar" role="complementary">
|
||||
<?php if ( ! dynamic_sidebar( 'footer-left' ) ) : ?>
|
||||
|
||||
<?php endif; // end sidebar widget area ?>
|
||||
</div><!-- .footer-sidebar -->
|
||||
|
||||
<div class="footer-sidebar" role="complementary">
|
||||
<?php if ( ! dynamic_sidebar( 'footer-mid' ) ) : ?>
|
||||
|
||||
<?php endif; // end sidebar widget area ?>
|
||||
</div><!-- .footer-sidebar -->
|
||||
|
||||
<div class="footer-sidebar" role="complementary">
|
||||
<?php if ( ! dynamic_sidebar( 'footer-right' ) ) : ?>
|
||||
|
||||
<?php endif; // end sidebar widget area ?>
|
||||
</div><!-- .footer-sidebar -->
|
||||
</div><!-- .footer-widget-area -->
|
||||
|
||||
<?php do_action( 'hitmag_after_footer_widget_area' ); ?>
|
||||
|
||||
</div><!-- .hm-container -->
|
||||
|
||||
<div class="site-info">
|
||||
<div class="hm-container">
|
||||
<div class="site-info-owner">
|
||||
<?php
|
||||
$footer_copyright_text = get_theme_mod( 'footer_copyright_text', '' );
|
||||
|
||||
if ( ! empty ( $footer_copyright_text ) ) {
|
||||
echo wp_kses_post( $footer_copyright_text );
|
||||
} else {
|
||||
$site_link = '<a href="' . esc_url( home_url( '/' ) ) . '" title="' . esc_attr( get_bloginfo( 'name' ) ) . '" >' . esc_attr( get_bloginfo( 'name' ) ) . '</a>';
|
||||
printf( esc_html__( 'Copyright © %1$s %2$s.', 'hitmag' ), date_i18n( 'Y' ), $site_link );
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<div class="site-info-designer">
|
||||
<?php
|
||||
printf( esc_html__( 'Powered by %1$s and %2$s.', 'hitmag' ),
|
||||
'<a href="https://wordpress.org" target="_blank" title="WordPress">WordPress</a>',
|
||||
'<a href="https://themezhut.com/themes/hitmag/" target="_blank" title="HitMag WordPress Theme">HitMag</a>'
|
||||
);
|
||||
?>
|
||||
</div>
|
||||
</div><!-- .hm-container -->
|
||||
</div><!-- .site-info -->
|
||||
</footer><!-- #colophon -->
|
||||
|
||||
<?php do_action( 'hitmag_after_footer' ); ?>
|
||||
|
||||
</div><!-- #page -->
|
||||
|
||||
|
||||
<?php wp_footer(); ?>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,416 @@
|
|||
<?php
|
||||
/**
|
||||
* HitMag functions and definitions
|
||||
*
|
||||
* @link https://developer.wordpress.org/themes/basics/theme-functions/
|
||||
*
|
||||
* @package HitMag
|
||||
*/
|
||||
|
||||
if ( ! function_exists( 'hitmag_setup' ) ) :
|
||||
/**
|
||||
* Sets up theme defaults and registers support for various WordPress features.
|
||||
*
|
||||
* Note that this function is hooked into the after_setup_theme hook, which
|
||||
* runs before the init hook. The init hook is too late for some features, such
|
||||
* as indicating support for post thumbnails.
|
||||
*/
|
||||
function hitmag_setup() {
|
||||
/*
|
||||
* Make theme available for translation.
|
||||
* Translations can be filed in the /languages/ directory.
|
||||
* If you're building a theme based on HitMag, use a find and replace
|
||||
* to change 'hitmag' to the name of your theme in all the template files.
|
||||
*/
|
||||
load_theme_textdomain( 'hitmag', get_template_directory() . '/languages' );
|
||||
|
||||
// Add default posts and comments RSS feed links to head.
|
||||
add_theme_support( 'automatic-feed-links' );
|
||||
|
||||
/*
|
||||
* Let WordPress manage the document title.
|
||||
* By adding theme support, we declare that this theme does not use a
|
||||
* hard-coded <title> tag in the document head, and expect WordPress to
|
||||
* provide it for us.
|
||||
*/
|
||||
add_theme_support( 'title-tag' );
|
||||
|
||||
/*
|
||||
* Enable support for Post Thumbnails on posts and pages.
|
||||
*
|
||||
* @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/
|
||||
*/
|
||||
add_theme_support( 'post-thumbnails' );
|
||||
add_image_size( 'hitmag-landscape', 1120, 450, true );
|
||||
add_image_size( 'hitmag-featured', 735, 400, true );
|
||||
add_image_size( 'hitmag-grid', 348, 215, true );
|
||||
add_image_size( 'hitmag-list', 290, 220, true );
|
||||
add_image_size( 'hitmag-thumbnail', 135, 93, true );
|
||||
|
||||
// This theme uses wp_nav_menu() in one location.
|
||||
register_nav_menus( array(
|
||||
'menu-1' => esc_html__( 'Main Menu', 'hitmag' ),
|
||||
'menu-2' => esc_html__( 'Top Menu', 'hitmag' ),
|
||||
'menu-social' => esc_html__( 'Social Media Menu', 'hitmag' )
|
||||
) );
|
||||
|
||||
/*
|
||||
* Switch default core markup for search form, comment form, and comments
|
||||
* to output valid HTML5.
|
||||
*/
|
||||
add_theme_support( 'html5', array(
|
||||
'search-form',
|
||||
'comment-form',
|
||||
'comment-list',
|
||||
'gallery',
|
||||
'caption',
|
||||
) );
|
||||
|
||||
// Add theme support for custom logo upload.
|
||||
add_theme_support( 'custom-logo', array(
|
||||
'height' => 100,
|
||||
'width' => 380,
|
||||
'flex-height' => true,
|
||||
'flex-width' => true,
|
||||
'header-text' => array( 'site-title', 'site-description' ),
|
||||
) );
|
||||
|
||||
// Set up the WordPress core custom background feature.
|
||||
add_theme_support( 'custom-background', apply_filters( 'hitmag_custom_background_args', array(
|
||||
'default-color' => 'dddddd',
|
||||
'default-image' => '',
|
||||
) ) );
|
||||
|
||||
// Declare WooCommerce support.
|
||||
add_theme_support( 'woocommerce' );
|
||||
add_theme_support( 'wc-product-gallery-zoom' );
|
||||
add_theme_support( 'wc-product-gallery-lightbox' );
|
||||
add_theme_support( 'wc-product-gallery-slider' );
|
||||
|
||||
// Add theme support for selective refresh for widgets.
|
||||
add_theme_support( 'customize-selective-refresh-widgets' );
|
||||
|
||||
// Add editor style.
|
||||
add_editor_style( array( 'css/editor-style.css', hitmag_fonts_url() ) );
|
||||
|
||||
// Load regular editor styles into the new block-based editor.
|
||||
add_theme_support( 'editor-styles' );
|
||||
|
||||
// Load default block styles.
|
||||
add_theme_support( 'wp-block-styles' );
|
||||
|
||||
// Add support for responsive embeds.
|
||||
add_theme_support( 'responsive-embeds' );
|
||||
|
||||
// Define and register starter content to showcase the theme on new sites.
|
||||
$starter_content = array(
|
||||
'widgets' => array(
|
||||
|
||||
'sidebar-1' => array(
|
||||
'search',
|
||||
'text_about',
|
||||
'custom_popular_widget' => array( 'hitmag_tabbed_widget', array(
|
||||
'nop' => 5,
|
||||
'noc' => 5
|
||||
)
|
||||
),
|
||||
'recent-posts'
|
||||
),
|
||||
|
||||
'magazine' => array(
|
||||
'magazine_posts_style_1' => array( 'hitmag_single_category_posts', array(
|
||||
'title' => 'Fashion'
|
||||
)
|
||||
),
|
||||
'magazine_posts_style_2' => array( 'hitmag_dual_category_posts', array(
|
||||
'title1' => 'Lifestyle',
|
||||
'number_posts1' => 4,
|
||||
'title2' => 'Technology',
|
||||
'number_posts2' => 4
|
||||
)
|
||||
),
|
||||
'magazine_posts_style_3' => array( 'hitmag_grid_category_posts', array(
|
||||
'title' => 'Sports',
|
||||
'number_posts' => 6
|
||||
)
|
||||
)
|
||||
),
|
||||
|
||||
'footer-left' => array(
|
||||
'text_business_info',
|
||||
),
|
||||
|
||||
'footer-mid' => array(
|
||||
'text_about',
|
||||
),
|
||||
|
||||
'footer-right' => array(
|
||||
'recent-posts',
|
||||
'search',
|
||||
),
|
||||
|
||||
),
|
||||
|
||||
'posts' => array(
|
||||
// Add pages.
|
||||
'home' => array(
|
||||
'template' => 'template-magazine.php'
|
||||
),
|
||||
'blog'
|
||||
),
|
||||
|
||||
// Default to a static front page and assign the front and posts pages.
|
||||
'options' => array(
|
||||
'show_on_front' => 'page',
|
||||
'page_on_front' => '{{home}}',
|
||||
'page_for_posts' => '{{blog}}',
|
||||
),
|
||||
|
||||
// Set up nav menus for each of the three areas registered in the theme.
|
||||
'nav_menus' => array(
|
||||
// Assign a menu to the "main menu" location.
|
||||
'menu-1' => array(
|
||||
'name' => esc_html__( 'Main Menu', 'hitmag' ),
|
||||
'items' => array(
|
||||
'link_home', // Note that the core "home" page is actually a link in case a static front page is not used.
|
||||
'page_blog',
|
||||
),
|
||||
),
|
||||
|
||||
// Assign a menu to the "top menu" location.
|
||||
'menu-2' => array(
|
||||
'name' => esc_html__( 'Top Menu', 'hitmag' ),
|
||||
'items' => array(
|
||||
'link_home',
|
||||
'page_blog',
|
||||
),
|
||||
),
|
||||
|
||||
// Assign a menu to the "menu-social" location.
|
||||
'menu-social' => array(
|
||||
'name' => esc_html__( 'Social Links Menu', 'hitmag' ),
|
||||
'items' => array(
|
||||
'link_facebook',
|
||||
'link_twitter',
|
||||
'link_instagram',
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
);
|
||||
|
||||
$starter_content = apply_filters( 'hitmag_starter_content', $starter_content );
|
||||
|
||||
add_theme_support( 'starter-content', $starter_content );
|
||||
|
||||
}
|
||||
endif;
|
||||
add_action( 'after_setup_theme', 'hitmag_setup' );
|
||||
|
||||
/**
|
||||
* Set the content width in pixels, based on the theme's design and stylesheet.
|
||||
*
|
||||
* Priority 0 to make it available to lower priority callbacks.
|
||||
*
|
||||
* @global int $content_width
|
||||
*/
|
||||
function hitmag_content_width() {
|
||||
$GLOBALS['content_width'] = apply_filters( 'hitmag_content_width', 735 );
|
||||
}
|
||||
add_action( 'after_setup_theme', 'hitmag_content_width', 0 );
|
||||
|
||||
/**
|
||||
* Register widget area.
|
||||
*
|
||||
* @link https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar
|
||||
*/
|
||||
function hitmag_widgets_init() {
|
||||
register_sidebar( array(
|
||||
'name' => esc_html__( 'Main Sidebar', 'hitmag' ),
|
||||
'id' => 'sidebar-1',
|
||||
'description' => esc_html__( 'Add widgets here.', 'hitmag' ),
|
||||
'before_widget' => '<section id="%1$s" class="widget %2$s">',
|
||||
'after_widget' => '</section>',
|
||||
'before_title' => '<h4 class="widget-title">',
|
||||
'after_title' => '</h4>',
|
||||
) );
|
||||
register_sidebar( array(
|
||||
'name' => esc_html__( 'Magazine Homepage', 'hitmag' ),
|
||||
'id' => 'magazine',
|
||||
'description' => esc_html__( 'Appearas on Magazine Homepage template only. Add magazine posts widgets to this widget area.', 'hitmag' ),
|
||||
'before_widget' => '<div id="%1$s" class="widget %2$s">',
|
||||
'after_widget' => '</div>',
|
||||
'before_title' => '<h4 class="widget-title">',
|
||||
'after_title' => '</h4>',
|
||||
) );
|
||||
register_sidebar( array(
|
||||
'name' => esc_html__( 'Header Advertisement Area', 'hitmag' ),
|
||||
'id' => 'sidebar-header',
|
||||
'description' => esc_html__( 'You can add advertisement widget to this widget area.', 'hitmag' ),
|
||||
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
|
||||
'after_widget' => '</aside>',
|
||||
'before_title' => '<h4 class="widget-title">',
|
||||
'after_title' => '</h4>',
|
||||
) );
|
||||
register_sidebar( array(
|
||||
'name' => esc_html__( 'Footer Left Sidebar', 'hitmag' ),
|
||||
'id' => 'footer-left',
|
||||
'description' => '',
|
||||
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
|
||||
'after_widget' => '</aside>',
|
||||
'before_title' => '<h4 class="footer-widget-title">',
|
||||
'after_title' => '</h4>',
|
||||
) );
|
||||
register_sidebar( array(
|
||||
'name' => esc_html__( 'Footer Mid Sidebar', 'hitmag' ),
|
||||
'id' => 'footer-mid',
|
||||
'description' => '',
|
||||
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
|
||||
'after_widget' => '</aside>',
|
||||
'before_title' => '<h4 class="footer-widget-title">',
|
||||
'after_title' => '</h4>',
|
||||
) );
|
||||
register_sidebar( array(
|
||||
'name' => esc_html__( 'Footer Right Sidebar', 'hitmag' ),
|
||||
'id' => 'footer-right',
|
||||
'description' => '',
|
||||
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
|
||||
'after_widget' => '</aside>',
|
||||
'before_title' => '<h4 class="footer-widget-title">',
|
||||
'after_title' => '</h4>',
|
||||
) );
|
||||
}
|
||||
add_action( 'widgets_init', 'hitmag_widgets_init' );
|
||||
|
||||
/**
|
||||
* Load Google Fonts
|
||||
*/
|
||||
function hitmag_fonts_url() {
|
||||
$fonts_url = get_theme_file_uri( '/css/fonts.css' );
|
||||
return $fonts_url;
|
||||
}
|
||||
/**
|
||||
* Enqueue Google fonts.
|
||||
*/
|
||||
function hitmag_font_styles() {
|
||||
wp_enqueue_style( 'hitmag-fonts', hitmag_fonts_url(), array(), null );
|
||||
}
|
||||
add_action( 'wp_enqueue_scripts', 'hitmag_font_styles' );
|
||||
|
||||
/**
|
||||
* Enqueue scripts and styles.
|
||||
*/
|
||||
function hitmag_scripts() {
|
||||
|
||||
wp_enqueue_style( 'hitmag-font-awesome', get_template_directory_uri() . '/css/font-awesome.min.css', array(), '4.7.0' );
|
||||
|
||||
wp_enqueue_style( 'hitmag-style', get_stylesheet_uri() );
|
||||
|
||||
wp_enqueue_script( 'hitmag-navigation', get_template_directory_uri() . '/js/navigation.js', array('jquery'), '20151215', true );
|
||||
|
||||
wp_enqueue_script( 'hitmag-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20151215', true );
|
||||
|
||||
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
|
||||
wp_enqueue_script( 'comment-reply' );
|
||||
}
|
||||
|
||||
if ( ! is_home() && is_front_page() && ( true == get_theme_mod( 'show_slider', true ) ) ) {
|
||||
wp_enqueue_script( 'jquery-flexslider', get_template_directory_uri() . '/js/jquery.flexslider-min.js', array('jquery'), '', true );
|
||||
wp_enqueue_style( 'jquery-flexslider', get_template_directory_uri() . '/css/flexslider.css', '', '', 'screen' );
|
||||
}
|
||||
|
||||
wp_enqueue_script( 'hitmag-scripts', get_template_directory_uri() . '/js/scripts.js', array( 'jquery' ), '', true );
|
||||
|
||||
if ( ! is_front_page() && is_singular() && ( true == get_theme_mod( 'use_lightbox', true ) ) ) {
|
||||
wp_enqueue_script( 'jquery-magnific-popup', get_template_directory_uri() . '/js/jquery.magnific-popup.min.js', array( 'jquery' ), '', true );
|
||||
wp_enqueue_style( 'jquery-magnific-popup', get_template_directory_uri() . '/css/magnific-popup.css', array(), '' );
|
||||
}
|
||||
|
||||
wp_enqueue_script( 'html5shiv',get_template_directory_uri().'/js/html5shiv.min.js');
|
||||
wp_script_add_data( 'html5shiv', 'conditional', 'lt IE 9' );
|
||||
|
||||
}
|
||||
add_action( 'wp_enqueue_scripts', 'hitmag_scripts' );
|
||||
|
||||
/**
|
||||
* Enqueue editor styles for Gutenberg
|
||||
*
|
||||
* @since HitMag 1.3.1
|
||||
*/
|
||||
function hitmag_block_editor_styles() {
|
||||
// Block styles.
|
||||
wp_enqueue_style( 'hitmag-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css' );
|
||||
// Add custom fonts.
|
||||
wp_enqueue_style( 'hitmag-fonts', hitmag_fonts_url(), array(), null );
|
||||
}
|
||||
add_action( 'enqueue_block_editor_assets', 'hitmag_block_editor_styles' );
|
||||
|
||||
/**
|
||||
* custom logo.
|
||||
*/
|
||||
function hitmag_the_custom_logo() {
|
||||
if ( function_exists( 'the_custom_logo' ) ) {
|
||||
the_custom_logo();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Embed kirki plugin.
|
||||
*/
|
||||
if ( ! class_exists( 'Kirki' ) ) {
|
||||
include_once( get_template_directory() . '/inc/kirki/kirki.php' );
|
||||
}
|
||||
require get_template_directory() . '/inc/customizer/kirki-config.php';
|
||||
require get_template_directory() . '/inc/customizer/styles.php';
|
||||
|
||||
require_once( trailingslashit( get_template_directory() ) . '/inc/customizer/custom-controls/class-upsell-customize.php' );
|
||||
|
||||
/**
|
||||
* Custom block styles.
|
||||
*/
|
||||
require get_template_directory() . '/inc/block-styles.php';
|
||||
|
||||
/**
|
||||
* Customizer additions.
|
||||
*/
|
||||
require get_template_directory() . '/inc/customizer/customizer.php';
|
||||
|
||||
/**
|
||||
* Custom meta boxes.
|
||||
*/
|
||||
require get_template_directory() . '/inc/class-meta-boxes.php';
|
||||
|
||||
/**
|
||||
* Implement the Custom Header feature.
|
||||
*/
|
||||
require get_template_directory() . '/inc/custom-header.php';
|
||||
|
||||
/**
|
||||
* Custom template tags for this theme.
|
||||
*/
|
||||
require get_template_directory() . '/inc/template-tags.php';
|
||||
|
||||
/**
|
||||
* Custom functions that act independently of the theme templates.
|
||||
*/
|
||||
require get_template_directory() . '/inc/extras.php';
|
||||
|
||||
/**
|
||||
* Load Jetpack compatibility file.
|
||||
*/
|
||||
require get_template_directory() . '/inc/jetpack.php';
|
||||
|
||||
/**
|
||||
* Load all widgets.
|
||||
*/
|
||||
require get_template_directory() . '/inc/widgets/block-posts-single.php';
|
||||
require get_template_directory() . '/inc/widgets/block-posts-dual.php';
|
||||
require get_template_directory() . '/inc/widgets/block-posts-grid.php';
|
||||
require get_template_directory() . '/inc/widgets/sidebar-posts.php';
|
||||
require get_template_directory() . '/inc/widgets/popular-tags-comments.php';
|
||||
|
||||
|
||||
/**
|
||||
* Theme Info Page.
|
||||
*/
|
||||
require get_template_directory() . '/inc/dashboard/theme-info.php';
|
||||
|
|
@ -0,0 +1,147 @@
|
|||
<?php
|
||||
/**
|
||||
* The header for our theme
|
||||
*
|
||||
* This is the template that displays all of the <head> section and everything up until <div id="content">
|
||||
*
|
||||
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
|
||||
*
|
||||
* @package HitMag
|
||||
*/
|
||||
|
||||
?><!DOCTYPE html>
|
||||
<html <?php language_attributes(); ?>>
|
||||
<head>
|
||||
<meta charset="<?php bloginfo( 'charset' ); ?>">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="profile" href="http://gmpg.org/xfn/11">
|
||||
|
||||
<?php wp_head(); ?>
|
||||
</head>
|
||||
|
||||
<body <?php body_class(); ?>>
|
||||
|
||||
<?php
|
||||
/**
|
||||
* WordPress function to load custom scripts after body.
|
||||
*
|
||||
* Introduced in WordPress 5.2.0
|
||||
*
|
||||
* @since HitMag 1.2.6
|
||||
*/
|
||||
if ( function_exists( 'wp_body_open' ) ) {
|
||||
wp_body_open();
|
||||
}
|
||||
?>
|
||||
|
||||
<?php do_action( 'hitmag_before_site' ); ?>
|
||||
|
||||
<div id="page" class="site hitmag-wrapper">
|
||||
<a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'hitmag' ); ?></a>
|
||||
|
||||
<?php do_action( 'hitmag_before_header' ); ?>
|
||||
|
||||
<header id="masthead" class="site-header" role="banner">
|
||||
|
||||
<?php if ( true == get_theme_mod( 'display_topbar', 'true' ) ) : ?>
|
||||
|
||||
<?php if ( has_nav_menu( 'menu-2' ) ) : ?>
|
||||
<div class="hm-topnavbutton">
|
||||
<div class="hm-nwrap">
|
||||
<a href="#" class="navbutton" id="top-nav-button"><?php esc_html_e( 'Top Menu', 'hitmag' ); ?></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="responsive-topnav"></div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="hm-top-bar">
|
||||
<div class="hm-container">
|
||||
|
||||
<?php if ( true == get_theme_mod( 'show_topbar_date', 'true' ) ) : ?>
|
||||
<div class="hm-date"><?php echo date_i18n( get_option( 'date_format' ) ); ?></div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ( has_nav_menu( 'menu-2' ) ) : ?>
|
||||
<div id="top-navigation" class="top-navigation">
|
||||
<?php wp_nav_menu( array( 'theme_location' => 'menu-2', 'menu_id' => 'top-menu' ) ); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php get_template_part( 'template-parts/menu', 'social' ); ?>
|
||||
|
||||
</div><!-- .hm-container -->
|
||||
</div><!-- .hm-top-bar -->
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ( get_theme_mod( 'header_image_position', 'after-site-title' ) == 'before-site-title' ) { hitmag_header_image(); } ?>
|
||||
|
||||
<div class="header-main-area <?php hitmag_header_bg_image_class(); ?>">
|
||||
<div class="hm-container">
|
||||
<div class="site-branding">
|
||||
<div class="site-branding-content">
|
||||
<div class="hm-logo">
|
||||
<?php hitmag_the_custom_logo(); ?>
|
||||
</div><!-- .hm-logo -->
|
||||
|
||||
<div class="hm-site-title">
|
||||
<?php
|
||||
if ( is_front_page() || is_home() ) : ?>
|
||||
<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
|
||||
<?php else : ?>
|
||||
<p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p>
|
||||
<?php
|
||||
endif;
|
||||
|
||||
$description = get_bloginfo( 'description', 'display' );
|
||||
if ( $description || is_customize_preview() ) : ?>
|
||||
<p class="site-description"><?php echo $description; /* WPCS: xss ok. */ ?></p>
|
||||
<?php
|
||||
endif; ?>
|
||||
</div><!-- .hm-site-title -->
|
||||
</div><!-- .site-branding-content -->
|
||||
</div><!-- .site-branding -->
|
||||
|
||||
<?php do_action( 'hitmag_after_site_logo' ); ?>
|
||||
|
||||
<?php
|
||||
if ( is_active_sidebar( 'sidebar-header' ) ) {
|
||||
echo '<div class="hm-header-sidebar">';
|
||||
dynamic_sidebar( 'sidebar-header' );
|
||||
echo '</div>';
|
||||
}
|
||||
?>
|
||||
</div><!-- .hm-container -->
|
||||
</div><!-- .header-main-area -->
|
||||
|
||||
<?php if ( get_theme_mod( 'header_image_position', 'after-site-title' ) == 'after-site-title' ) { hitmag_header_image(); } ?>
|
||||
|
||||
<div class="hm-nav-container">
|
||||
<nav id="site-navigation" class="main-navigation" role="navigation">
|
||||
<div class="hm-container">
|
||||
<?php wp_nav_menu( array( 'theme_location' => 'menu-1', 'menu_id' => 'primary-menu' ) ); ?>
|
||||
|
||||
<?php if ( true == get_theme_mod( 'show_nav_search', true ) ) : ?>
|
||||
<div class="hm-search-button-icon"></div>
|
||||
<div class="hm-search-box-container">
|
||||
<div class="hm-search-box">
|
||||
<?php get_search_form(); ?>
|
||||
</div><!-- th-search-box -->
|
||||
</div><!-- .th-search-box-container -->
|
||||
<?php endif; ?>
|
||||
</div><!-- .hm-container -->
|
||||
</nav><!-- #site-navigation -->
|
||||
<div class="hm-nwrap">
|
||||
<a href="#" class="navbutton" id="main-nav-button"><?php esc_html_e( 'Main Menu', 'hitmag' ); ?></a>
|
||||
</div>
|
||||
<div class="responsive-mainnav"></div>
|
||||
</div><!-- .hm-nav-container -->
|
||||
|
||||
<?php if ( get_theme_mod( 'header_image_position', 'after-site-title' ) == 'after-main-nav' ) { hitmag_header_image(); } ?>
|
||||
|
||||
</header><!-- #masthead -->
|
||||
|
||||
<?php do_action( 'hitmag_after_header' ); ?>
|
||||
|
||||
<div id="content" class="site-content">
|
||||
<div class="hm-container">
|
||||
|
After Width: | Height: | Size: 19 KiB |
|
After Width: | Height: | Size: 23 KiB |
|
|
@ -0,0 +1,33 @@
|
|||
<?php
|
||||
/**
|
||||
* Block Styles
|
||||
*
|
||||
* @link https://developer.wordpress.org/reference/functions/register_block_style/
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage HitMag
|
||||
* @since HitMag 1.3.0
|
||||
*/
|
||||
|
||||
if ( function_exists( 'register_block_style' ) ) {
|
||||
|
||||
/**
|
||||
* Register block styles.
|
||||
*
|
||||
* @since HitMag 1.3.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function hitmag_register_block_styles() {
|
||||
register_block_style(
|
||||
'core/heading',
|
||||
array(
|
||||
'name' => 'hitmag-widget-title',
|
||||
'label' => esc_html__( 'Widget title style', 'hitmag' ),
|
||||
)
|
||||
);
|
||||
}
|
||||
add_action( 'init', 'hitmag_register_block_styles' );
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,134 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Calls the class on the post edit screen.
|
||||
*/
|
||||
function hitmag_metaboxes_call() {
|
||||
new HitMag_Metaboxes();
|
||||
}
|
||||
|
||||
if ( is_admin() ) {
|
||||
add_action( 'load-post.php', 'hitmag_metaboxes_call' );
|
||||
add_action( 'load-post-new.php', 'hitmag_metaboxes_call' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a Layout select meta box to posts and pages.
|
||||
*/
|
||||
class HitMag_Metaboxes {
|
||||
|
||||
/**
|
||||
* Hook into the appropriate actions when the class is constructed.
|
||||
*/
|
||||
public function __construct() {
|
||||
add_action( 'add_meta_boxes', array( $this, 'add_meta_box' ) );
|
||||
add_action( 'save_post', array( $this, 'save' ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds the meta box container.
|
||||
*/
|
||||
public function add_meta_box( $post_type ) {
|
||||
// Limit meta box to certain post types.
|
||||
$post_types = array( 'post', 'page' );
|
||||
|
||||
if ( in_array( $post_type, $post_types ) ) {
|
||||
add_meta_box(
|
||||
'hitmag_layout_meta',
|
||||
esc_html__( 'Select Layout', 'hitmag' ),
|
||||
array( $this, 'render_meta_box_content' ),
|
||||
$post_type,
|
||||
'side',
|
||||
'default'
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Save the meta when the post is saved.
|
||||
*
|
||||
* @param int $post_id The ID of the post being saved.
|
||||
*/
|
||||
public function save( $post_id ) {
|
||||
|
||||
/*
|
||||
* We need to verify this came from the our screen and with proper authorization,
|
||||
* because save_post can be triggered at other times.
|
||||
*/
|
||||
|
||||
// Check if our nonce is set.
|
||||
if ( ! isset( $_POST['hitmag_layout_metabox_nonce'] ) ) {
|
||||
return $post_id;
|
||||
}
|
||||
|
||||
$nonce = $_POST['hitmag_layout_metabox_nonce'];
|
||||
|
||||
// Verify that the nonce is valid.
|
||||
if ( ! wp_verify_nonce( $nonce, 'hitmag_layout_metabox' ) ) {
|
||||
return $post_id;
|
||||
}
|
||||
|
||||
/*
|
||||
* If this is an autosave, our form has not been submitted,
|
||||
* so we don't want to do anything.
|
||||
*/
|
||||
if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {
|
||||
return $post_id;
|
||||
}
|
||||
|
||||
// Check the user's permissions.
|
||||
if ( 'page' == $_POST['post_type'] ) {
|
||||
if ( ! current_user_can( 'edit_page', $post_id ) ) {
|
||||
return $post_id;
|
||||
}
|
||||
} else {
|
||||
if ( ! current_user_can( 'edit_post', $post_id ) ) {
|
||||
return $post_id;
|
||||
}
|
||||
}
|
||||
|
||||
/* OK, it's safe for us to save the data now. */
|
||||
|
||||
// Sanitize the user input.
|
||||
$selected_layout = sanitize_text_field( $_POST['hitmag_layout'] );
|
||||
|
||||
// Update the meta field.
|
||||
update_post_meta( $post_id, '_hitmag_layout_meta', $selected_layout );
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Render Meta Box content.
|
||||
*
|
||||
* @param WP_Post $post The post object.
|
||||
*/
|
||||
public function render_meta_box_content( $post ) {
|
||||
|
||||
// Add an nonce field so we can check for it later.
|
||||
wp_nonce_field( 'hitmag_layout_metabox', 'hitmag_layout_metabox_nonce' );
|
||||
|
||||
// Use get_post_meta to retrieve an existing value from the database.
|
||||
$selected_layout = get_post_meta( $post->ID, '_hitmag_layout_meta', true );
|
||||
|
||||
// Display the form, using the current value.
|
||||
if( empty( $selected_layout) ) { $selected_layout = 'th-default-layout'; }
|
||||
?>
|
||||
|
||||
<input type="radio" id="th-default-layout" name="hitmag_layout" value="th-default-layout" <?php checked( 'th-default-layout', $selected_layout ); ?> />
|
||||
<label for="th-default-layout" class="post-format-icon"><?php esc_html_e( 'Default Layout', 'hitmag' ); ?></label><br/>
|
||||
|
||||
<input type="radio" id="th-right-sidebar" name="hitmag_layout" value="th-right-sidebar" <?php checked( 'th-right-sidebar', $selected_layout ); ?> />
|
||||
<label for="th-right-sidebar" class="post-format-icon"><?php esc_html_e( 'Right Sidebar', 'hitmag' ); ?></label><br/>
|
||||
|
||||
<input type="radio" id="th-left-sidebar" name="hitmag_layout" value="th-left-sidebar" <?php checked( 'th-left-sidebar', $selected_layout ); ?> />
|
||||
<label for="th-left-sidebar" class="post-format-icon"><?php esc_html_e( 'Left Sidebar', 'hitmag' ); ?></label><br/>
|
||||
|
||||
<input type="radio" id="th-no-sidebar" name="hitmag_layout" value="th-no-sidebar" <?php checked( 'th-no-sidebar', $selected_layout ); ?> />
|
||||
<label for="th-no-sidebar" class="post-format-icon"><?php esc_html_e( 'Full Width', 'hitmag' ); ?></label><br/>
|
||||
|
||||
<input type="radio" id="th-content-centered" name="hitmag_layout" value="th-content-centered" <?php checked( 'th-content-centered', $selected_layout ); ?> />
|
||||
<label for="th-content-centered" class="post-format-icon"><?php esc_html_e( 'Full Width Content Centered.', 'hitmag' ); ?></label><br/>
|
||||
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,110 @@
|
|||
<?php
|
||||
/**
|
||||
* Sample implementation of the Custom Header feature
|
||||
*
|
||||
* You can add an optional custom header image to header.php like so ...
|
||||
*
|
||||
<?php the_header_image_tag(); ?>
|
||||
*
|
||||
* @link https://developer.wordpress.org/themes/functionality/custom-headers/
|
||||
*
|
||||
* @package HitMag
|
||||
*/
|
||||
|
||||
/**
|
||||
* Set up the WordPress core custom header feature.
|
||||
*
|
||||
* @uses hitmag_header_style()
|
||||
*/
|
||||
function hitmag_custom_header_setup() {
|
||||
add_theme_support( 'custom-header', apply_filters( 'hitmag_custom_header_args', array(
|
||||
'default-image' => '',
|
||||
'default-text-color' => 'e74c3c',
|
||||
'width' => 1400,
|
||||
'height' => 400,
|
||||
'flex-width' => true,
|
||||
'flex-height' => true,
|
||||
'wp-head-callback' => 'hitmag_header_style',
|
||||
) ) );
|
||||
}
|
||||
add_action( 'after_setup_theme', 'hitmag_custom_header_setup' );
|
||||
|
||||
|
||||
if ( ! function_exists( 'hitmag_header_style' ) ) :
|
||||
/**
|
||||
* Styles the header image and text displayed on the blog.
|
||||
*/
|
||||
function hitmag_header_style() {
|
||||
$header_text_color = get_header_textcolor();
|
||||
|
||||
/*
|
||||
* If no custom options for text are set, let's bail.
|
||||
* get_header_textcolor() options: Any hex value, 'blank' to hide text. Default: add_theme_support( 'custom-header' ).
|
||||
*/
|
||||
if ( get_theme_support( 'custom-header', 'default-text-color' ) === $header_text_color ) {
|
||||
return;
|
||||
}
|
||||
|
||||
// If we get this far, we have custom styles. Let's do this.
|
||||
?>
|
||||
<style type="text/css">
|
||||
|
||||
<?php
|
||||
// Has the text been hidden?
|
||||
if ( ! display_header_text() ) :
|
||||
?>
|
||||
.site-title a,
|
||||
.site-description {
|
||||
position: absolute;
|
||||
clip: rect(1px, 1px, 1px, 1px);
|
||||
}
|
||||
|
||||
<?php
|
||||
// If the user has set a custom color for the text use that.
|
||||
else :
|
||||
?>
|
||||
.site-title a,
|
||||
.site-description {
|
||||
color: #<?php echo esc_attr( $header_text_color ); ?>;
|
||||
}
|
||||
<?php endif; ?>
|
||||
|
||||
</style>
|
||||
<?php
|
||||
}
|
||||
endif;
|
||||
|
||||
/**
|
||||
* Prints class that holds Header Background Image.
|
||||
*/
|
||||
function hitmag_header_bg_image_class() {
|
||||
|
||||
$header_bg_class = '';
|
||||
|
||||
if ( get_theme_mod( 'header_image_position', 'after-site-title' ) == 'header-background' ) {
|
||||
$header_bg_class = 'hm-header-bg-holder';
|
||||
}
|
||||
|
||||
echo esc_attr( $header_bg_class );
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Displays header image.
|
||||
*/
|
||||
function hitmag_header_image() {
|
||||
|
||||
$header_image = get_header_image();
|
||||
|
||||
if ( ! empty ( $header_image ) ) :
|
||||
|
||||
$link_header_image = get_theme_mod( 'link_header_image', false );
|
||||
echo '<div class="hm-header-image">';
|
||||
if ( $link_header_image == true ) { echo '<a href="' . esc_url( home_url( '/' ) ) . '" title="' . esc_attr( get_bloginfo( 'name', 'display' ) ) . '" rel="home">'; }
|
||||
echo '<img src="' . esc_url ( $header_image ) . '" height="' . esc_attr( get_custom_header()->height ) . '" width="' . esc_attr( get_custom_header()->width ) . '" alt="" />';
|
||||
if ( $link_header_image == true ) { echo '</a>'; }
|
||||
echo '</div>';
|
||||
|
||||
endif;
|
||||
|
||||
}
|
||||
|
After Width: | Height: | Size: 3.0 KiB |
|
After Width: | Height: | Size: 3.0 KiB |
|
After Width: | Height: | Size: 3.0 KiB |
|
After Width: | Height: | Size: 3.0 KiB |
|
|
@ -0,0 +1,15 @@
|
|||
( function( api ) {
|
||||
|
||||
// Extends our custom "example-1" section.
|
||||
api.sectionConstructor['hitmag-upsell'] = api.Section.extend( {
|
||||
|
||||
// No events for this type of section.
|
||||
attachEvents: function () {},
|
||||
|
||||
// Always make the section active.
|
||||
isContextuallyActive: function () {
|
||||
return true;
|
||||
}
|
||||
} );
|
||||
|
||||
} )( wp.customize );
|
||||
|
|
@ -0,0 +1,99 @@
|
|||
<?php
|
||||
/**
|
||||
* Singleton class for handling the theme's customizer integration.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @access public
|
||||
*/
|
||||
final class HitMag_Upsell_Customize {
|
||||
|
||||
/**
|
||||
* Returns the instance.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @access public
|
||||
* @return object
|
||||
*/
|
||||
public static function get_instance() {
|
||||
|
||||
static $instance = null;
|
||||
|
||||
if ( is_null( $instance ) ) {
|
||||
$instance = new self;
|
||||
$instance->setup_actions();
|
||||
}
|
||||
|
||||
return $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructor method.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @access private
|
||||
* @return void
|
||||
*/
|
||||
private function __construct() {}
|
||||
|
||||
/**
|
||||
* Sets up initial actions.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @access private
|
||||
* @return void
|
||||
*/
|
||||
private function setup_actions() {
|
||||
|
||||
// Register panels, sections, settings, controls, and partials.
|
||||
add_action( 'customize_register', array( $this, 'sections' ) );
|
||||
|
||||
// Register scripts and styles for the controls.
|
||||
add_action( 'customize_controls_enqueue_scripts', array( $this, 'enqueue_control_scripts' ), 0 );
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets up the customizer sections.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @access public
|
||||
* @param object $manager
|
||||
* @return void
|
||||
*/
|
||||
public function sections( $manager ) {
|
||||
|
||||
// Load custom sections.
|
||||
require_once( trailingslashit( get_template_directory() ) . '/inc/customizer/custom-controls/section-pro.php' );
|
||||
|
||||
// Register custom section types.
|
||||
$manager->register_section_type( 'HitMag_Upsell_Customize_Section_Pro' );
|
||||
|
||||
// Register sections.
|
||||
$manager->add_section(
|
||||
new HitMag_Upsell_Customize_Section_Pro(
|
||||
$manager,
|
||||
'hitmag_upsell',
|
||||
array(
|
||||
'title' => esc_html__( 'Ready for more?', 'hitmag' ),
|
||||
'pro_text' => esc_html__( 'Get HitMag Pro', 'hitmag' ),
|
||||
'pro_url' => 'https://themezhut.com/themes/hitmag-pro/',
|
||||
'priority' => 1
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Loads theme customizer CSS.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
public function enqueue_control_scripts() {
|
||||
|
||||
wp_enqueue_script( 'hitmag-upsell-controls', trailingslashit( get_template_directory_uri() ) . '/inc/customizer/assets/js/customize-controls.js', array( 'customize-controls' ) );
|
||||
}
|
||||
}
|
||||
|
||||
// Doing this customizer thang!
|
||||
HitMag_Upsell_Customize::get_instance();
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
<?php
|
||||
|
||||
if ( ! class_exists( 'WP_Customize_Control' ) ) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
class HitMag_Customize_Category_Control extends WP_Customize_Control {
|
||||
|
||||
public $type = 'hitmag-category-dropdown';
|
||||
|
||||
public function render_content() {
|
||||
$dropdown = wp_dropdown_categories(
|
||||
array(
|
||||
'name' => '_customize-dropdown-categories-' . $this->id,
|
||||
'echo' => 0,
|
||||
'show_option_none' => esc_attr__( '— Show All Posts —', 'hitmag' ),
|
||||
'option_none_value' => '0',
|
||||
'selected' => $this->value(),
|
||||
)
|
||||
);
|
||||
|
||||
// Hackily add in the data link parameter.
|
||||
$dropdown = str_replace( '<select', '<select ' . $this->get_link(), $dropdown );
|
||||
|
||||
printf(
|
||||
'<label class="customize-control-select"><span class="customize-control-title">%s</span> %s</label>',
|
||||
$this->label,
|
||||
$dropdown
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// Register our custom control with Kirki
|
||||
add_filter( 'kirki/control_types', 'hitmag_register_kirki_category_control' );
|
||||
function hitmag_register_kirki_category_control( $controls ) {
|
||||
$controls['hitmag-category-dropdown'] = 'HitMag_Customize_Category_Control';
|
||||
return $controls;
|
||||
}
|
||||
|
|
@ -0,0 +1,73 @@
|
|||
<?php
|
||||
/**
|
||||
* Pro customizer section.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @access public
|
||||
*/
|
||||
class HitMag_Upsell_Customize_Section_Pro extends WP_Customize_Section {
|
||||
|
||||
/**
|
||||
* The type of customize section being rendered.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @access public
|
||||
* @var string
|
||||
*/
|
||||
public $type = 'hitmag-upsell';
|
||||
|
||||
/**
|
||||
* Custom button text to output.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @access public
|
||||
* @var string
|
||||
*/
|
||||
public $pro_text = '';
|
||||
|
||||
/**
|
||||
* Custom pro button URL.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @access public
|
||||
* @var string
|
||||
*/
|
||||
public $pro_url = '';
|
||||
|
||||
/**
|
||||
* Add custom parameters to pass to the JS via JSON.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
public function json() {
|
||||
$json = parent::json();
|
||||
|
||||
$json['pro_text'] = $this->pro_text;
|
||||
$json['pro_url'] = esc_url( $this->pro_url );
|
||||
|
||||
return $json;
|
||||
}
|
||||
|
||||
/**
|
||||
* Outputs the Underscore.js template.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
protected function render_template() { ?>
|
||||
|
||||
<li id="accordion-section-{{ data.id }}" class="accordion-section control-section control-section-{{ data.type }} cannot-expand">
|
||||
|
||||
<h3 class="accordion-section-title">
|
||||
{{ data.title }}
|
||||
|
||||
<# if ( data.pro_text && data.pro_url ) { #>
|
||||
<a href="{{ data.pro_url }}" class="button button-secondary alignright" target="_blank">{{ data.pro_text }}</a>
|
||||
<# } #>
|
||||
</h3>
|
||||
</li>
|
||||
<?php }
|
||||
}
|
||||
|
|
@ -0,0 +1,662 @@
|
|||
<?php
|
||||
/**
|
||||
* HitMag Theme Customizer
|
||||
*
|
||||
* @package HitMag
|
||||
*/
|
||||
|
||||
/**
|
||||
* Add postMessage support for site title and description for the Theme Customizer.
|
||||
* Add panels and sections of the theme.
|
||||
* @param WP_Customize_Manager $wp_customize Theme Customizer object.
|
||||
*/
|
||||
function hitmag_sections_register( $wp_customize ) {
|
||||
|
||||
require( get_template_directory() . '/inc/customizer/custom-controls/control-category-dropdown.php' );
|
||||
|
||||
$wp_customize->get_setting( 'blogname' )->transport = 'postMessage';
|
||||
$wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage';
|
||||
$wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage';
|
||||
$wp_customize->get_section( 'header_image' )->panel = 'hitmag-header-options';
|
||||
$wp_customize->get_section( 'header_image' )->priority = 3;
|
||||
|
||||
/**
|
||||
* Add panels
|
||||
*/
|
||||
$wp_customize->add_panel( 'hitmag-header-options', array(
|
||||
'priority' => 30,
|
||||
'title' => esc_html__( 'Header options', 'hitmag' ),
|
||||
) );
|
||||
|
||||
/**
|
||||
* Add sections
|
||||
*/
|
||||
|
||||
// Top Bar Options
|
||||
$wp_customize->add_section( 'hitmag_gen_options', array(
|
||||
'title' => esc_html__( 'General Settings', 'hitmag' ),
|
||||
'priority' => 25
|
||||
) );
|
||||
|
||||
// Top Bar Options
|
||||
$wp_customize->add_section( 'top_bar', array(
|
||||
'title' => esc_html__( 'Top Bar', 'hitmag' ),
|
||||
'panel' => 'hitmag-header-options',
|
||||
'priority' => 1
|
||||
) );
|
||||
|
||||
$wp_customize->add_section( 'header_settings', array(
|
||||
'title' => esc_html__( 'Header Settings', 'hitmag' ),
|
||||
'panel' => 'hitmag-header-options',
|
||||
'priority' => 2
|
||||
) );
|
||||
|
||||
$wp_customize->add_section( 'header_image_options', array(
|
||||
'title' => esc_html__( 'Header Image Options', 'hitmag' ),
|
||||
'panel' => 'hitmag-header-options',
|
||||
'priority' => 4
|
||||
) );
|
||||
|
||||
// Slider Settings
|
||||
$wp_customize->add_section( 'hitmag_slider_settings', array(
|
||||
'title' => esc_html__( 'Slider Settings', 'hitmag' ),
|
||||
'priority' => 28
|
||||
) );
|
||||
|
||||
// Blog Options
|
||||
$wp_customize->add_section( 'hitmag_blog_options', array(
|
||||
'title' => esc_html__( 'Blog options', 'hitmag' ),
|
||||
'description' => esc_html__( 'These options affect to blog posts listing page and archives like category and tags.', 'hitmag' ),
|
||||
'priority' => 30
|
||||
) );
|
||||
|
||||
// Post Options
|
||||
$wp_customize->add_section( 'hitmag_post_options', array(
|
||||
'title' => esc_html__( 'Post options', 'hitmag' ),
|
||||
'description' => esc_html__( 'These options affect only to single post articles.', 'hitmag' ),
|
||||
'priority' => 31
|
||||
) );
|
||||
// Page Options
|
||||
$wp_customize->add_section( 'hitmag_page_options', array(
|
||||
'title' => esc_html__( 'Page options', 'hitmag' ),
|
||||
'description' => esc_html__( 'These opitons affect only to pages.', 'hitmag' ),
|
||||
'priority' => 32
|
||||
) );
|
||||
// Theme Info
|
||||
$wp_customize->add_section( 'hitmag_theme_info', array(
|
||||
'title' => esc_html__( 'Theme Info', 'hitmag' ),
|
||||
//'priority' => 100
|
||||
) );
|
||||
|
||||
|
||||
/* Add primary color setting here until kirki compatible with WordPress 4.9 */
|
||||
$wp_customize->add_setting(
|
||||
'hitmag_primary_color',
|
||||
array(
|
||||
'default' => '#E74C3C',
|
||||
'type' => 'theme_mod',
|
||||
'capability' => 'edit_theme_options',
|
||||
'sanitize_callback' => 'hitmag_sanitize_hex_color'
|
||||
)
|
||||
);
|
||||
|
||||
$wp_customize->add_control(
|
||||
new WP_Customize_Color_Control(
|
||||
$wp_customize,
|
||||
'hitmag_primary_color',
|
||||
array(
|
||||
'settings' => 'hitmag_primary_color',
|
||||
'section' => 'colors',
|
||||
'label' => esc_html__( 'Theme Primary Color', 'hitmag' ),
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
}
|
||||
add_action( 'customize_register', 'hitmag_sections_register' );
|
||||
|
||||
|
||||
/**
|
||||
* Add fields to customizer
|
||||
*/
|
||||
function hitmag_kirki_fields( $fields ) {
|
||||
|
||||
$fields[] = array(
|
||||
'type' => 'switch',
|
||||
'settings' => 'hitmag_boxed_layout',
|
||||
'label' => esc_html__( 'Boxed Layout', 'hitmag' ),
|
||||
'section' => 'hitmag_gen_options',
|
||||
'default' => '1',
|
||||
'priority' => 1,
|
||||
'choices' => array(
|
||||
'on' => esc_attr__( 'On', 'hitmag' ),
|
||||
'off' => esc_attr__( 'Off', 'hitmag' ),
|
||||
),
|
||||
);
|
||||
|
||||
$fields[] = array(
|
||||
'type' => 'textarea',
|
||||
'settings' => 'footer_copyright_text',
|
||||
'label' => esc_html__( 'Footer Copyright Text.', 'hitmag' ),
|
||||
'section' => 'hitmag_gen_options',
|
||||
'default' => '',
|
||||
'priority' => 2,
|
||||
);
|
||||
|
||||
$fields[] = array(
|
||||
'type' => 'switch',
|
||||
'settings' => 'display_topbar',
|
||||
'label' => esc_html__( 'Top Bar Show/Hide', 'hitmag' ),
|
||||
'section' => 'top_bar',
|
||||
'default' => '1',
|
||||
'priority' => 1,
|
||||
'choices' => array(
|
||||
'on' => esc_attr__( 'Show', 'hitmag' ),
|
||||
'off' => esc_attr__( 'Hide', 'hitmag' ),
|
||||
),
|
||||
);
|
||||
|
||||
$fields[] = array(
|
||||
'type' => 'checkbox',
|
||||
'settings' => 'show_nav_search',
|
||||
'label' => esc_html__( 'Show search icon on Main Navigation.', 'hitmag' ),
|
||||
'section' => 'header_settings',
|
||||
'default' => '1',
|
||||
'priority' => 1,
|
||||
);
|
||||
|
||||
$fields[] = array(
|
||||
'type' => 'toggle',
|
||||
'settings' => 'show_topbar_date',
|
||||
'label' => esc_html__( 'Show date on topbar.', 'hitmag' ),
|
||||
'section' => 'top_bar',
|
||||
'default' => '1',
|
||||
'priority' => 10,
|
||||
'active_callback' => array(
|
||||
array(
|
||||
'setting' => 'display_topbar',
|
||||
'operator' => '==',
|
||||
'value' => true,
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
$fields[] = array(
|
||||
'type' => 'radio',
|
||||
'settings' => 'header_image_position',
|
||||
'label' => esc_html__( 'Header Image Position', 'hitmag' ),
|
||||
'section' => 'header_image_options',
|
||||
'default' => 'after-site-title',
|
||||
'priority' => 1,
|
||||
'choices' => array(
|
||||
'after-site-title' => array(
|
||||
esc_attr__( 'After site title and logo', 'hitmag' )
|
||||
),
|
||||
'before-site-title' => array(
|
||||
esc_attr__( 'Before site title and logo', 'hitmag' )
|
||||
),
|
||||
'after-main-nav' => array(
|
||||
esc_attr__( 'After Main Navigation', 'hitmag' )
|
||||
),
|
||||
'header-background' => array(
|
||||
esc_attr__( 'Display as Header Background Image', 'hitmag' )
|
||||
)
|
||||
),
|
||||
);
|
||||
|
||||
$fields[] = array(
|
||||
'type' => 'checkbox',
|
||||
'settings' => 'link_header_image',
|
||||
'label' => esc_html__( 'Link header image to homepage.', 'hitmag' ),
|
||||
'section' => 'header_image_options',
|
||||
'default' => '0',
|
||||
'priority' => 2,
|
||||
'active_callback' => 'hitmag_is_not_header_bg'
|
||||
);
|
||||
|
||||
// Slider Settings.
|
||||
$fields[] = array(
|
||||
'type' => 'custom',
|
||||
'settings' => 'slider_notice',
|
||||
'label' => esc_html__( 'Notice', 'hitmag' ),
|
||||
'section' => 'hitmag_slider_settings',
|
||||
'default' => '<div style="padding: 8px; background-color: #e74c3c; color: #fff; border-radius: 3px;">' . esc_html__( 'Slider displays on magazine homepage only.', 'hitmag' ) . '</div>',
|
||||
'priority' => 1,
|
||||
'active_callback' => 'hitmag_inactive_magazine'
|
||||
);
|
||||
|
||||
$fields[] = array(
|
||||
'type' => 'custom',
|
||||
'settings' => 'slider_notice_url',
|
||||
'label' => esc_html__( 'Create a magazine homepage.', 'hitmag' ),
|
||||
'section' => 'hitmag_slider_settings',
|
||||
'default' => '<a href="'. esc_url( admin_url( 'themes.php?page=about-hitmag-theme&tab=magazine_homepage' ) ) .'" target="_blank">' . esc_html__('Learn How to create a magazine homepage','hitmag') . '<a><br/><br/>',
|
||||
'priority' => 2,
|
||||
'active_callback' => 'hitmag_inactive_magazine'
|
||||
);
|
||||
|
||||
$fields[] = array(
|
||||
'type' => 'switch',
|
||||
'settings' => 'show_slider',
|
||||
'label' => esc_html__( 'Featured Slider', 'hitmag' ),
|
||||
'section' => 'hitmag_slider_settings',
|
||||
'default' => '1',
|
||||
'priority' => 3,
|
||||
'choices' => array(
|
||||
'on' => esc_attr__( 'On', 'hitmag' ),
|
||||
'off' => esc_attr__( 'Off', 'hitmag' ),
|
||||
),
|
||||
);
|
||||
|
||||
$fields[] = array(
|
||||
'type' => 'hitmag-category-dropdown',
|
||||
'settings' => 'slider_category',
|
||||
'label' => esc_html__( 'Select the category for slider posts', 'hitmag' ),
|
||||
'section' => 'hitmag_slider_settings',
|
||||
'default' => '0',
|
||||
'priority' => 4,
|
||||
'active_callback' => array(
|
||||
array(
|
||||
'setting' => 'show_slider',
|
||||
'operator' => '==',
|
||||
'value' => true,
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
|
||||
// Blog Options
|
||||
$fields[] = array(
|
||||
'type' => 'radio-image',
|
||||
'settings' => 'archive_sidebar_align',
|
||||
'label' => esc_html__( 'Content and Sidebar Alignment', 'hitmag' ),
|
||||
'section' => 'hitmag_blog_options',
|
||||
'default' => 'th-right-sidebar',
|
||||
'priority' => 10,
|
||||
'option_type' => 'option',
|
||||
'choices' => array(
|
||||
'th-right-sidebar' => get_template_directory_uri() . '/inc/customizer/assets/imgs/2cr.png',
|
||||
'th-left-sidebar' => get_template_directory_uri() . '/inc/customizer/assets/imgs/2cl.png',
|
||||
'th-no-sidebar' => get_template_directory_uri() . '/inc/customizer/assets/imgs/1c.png',
|
||||
'th-content-centered' => get_template_directory_uri() . '/inc/customizer/assets/imgs/1cc.png',
|
||||
),
|
||||
);
|
||||
|
||||
$fields[] = array(
|
||||
'type' => 'radio',
|
||||
'settings' => 'archive_content_layout',
|
||||
'label' => esc_html__( 'Posts Listing Layout', 'hitmag' ),
|
||||
'section' => 'hitmag_blog_options',
|
||||
'default' => 'th-grid-2',
|
||||
'priority' => 10,
|
||||
'option_type' => 'option',
|
||||
'choices' => array(
|
||||
'th-grid-2' => array(
|
||||
esc_attr__( '2 Columns Grid', 'hitmag' ),
|
||||
esc_attr__( '2 posts in a row.', 'hitmag' ),
|
||||
),
|
||||
'th-grid-3' => array(
|
||||
esc_attr__( '3 Columns Grid', 'hitmag' ),
|
||||
esc_attr__( '3 posts in a row.', 'hitmag' ),
|
||||
),
|
||||
'th-list-posts' => array(
|
||||
esc_attr__( 'List Posts', 'hitmag' ),
|
||||
esc_attr__( 'Posts with featured images on the left side.', 'hitmag' ),
|
||||
),
|
||||
'th-large-posts' => array(
|
||||
esc_attr__( 'Large Posts', 'hitmag' ),
|
||||
esc_attr__( 'Large posts with featured images on the top.', 'hitmag' ),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
$fields[] = array(
|
||||
'type' => 'multicheck',
|
||||
'settings' => 'blog_post_meta',
|
||||
'label' => esc_html__( 'What post meta to display?', 'hitmag' ),
|
||||
'section' => 'hitmag_blog_options',
|
||||
'default' => array('categories', 'date', 'author', 'comments'),
|
||||
'priority' => 10,
|
||||
'choices' => array(
|
||||
'categories' => esc_attr__( 'Category List', 'hitmag' ),
|
||||
'date' => esc_attr__( 'Date', 'hitmag' ),
|
||||
'author' => esc_attr__( 'Author', 'hitmag' ),
|
||||
'comments' => esc_attr__( 'Comments Link', 'hitmag' ),
|
||||
),
|
||||
);
|
||||
|
||||
$fields[] = array(
|
||||
'type' => 'switch',
|
||||
'settings' => 'excerpt_display',
|
||||
'label' => esc_html__( 'Excerpt / Content', 'hitmag' ),
|
||||
'section' => 'hitmag_blog_options',
|
||||
'default' => '1',
|
||||
'priority' => 10,
|
||||
'choices' => array(
|
||||
'on' => esc_attr__( 'Show', 'hitmag' ),
|
||||
'off' => esc_attr__( 'Hide', 'hitmag' ),
|
||||
),
|
||||
);
|
||||
|
||||
$fields[] = array(
|
||||
'type' => 'number',
|
||||
'settings' => 'excerpt_length',
|
||||
'label' => esc_attr__( 'Excerpt Length', 'hitmag' ),
|
||||
'section' => 'hitmag_blog_options',
|
||||
'default' => 30,
|
||||
'choices' => array(
|
||||
'min' => 0,
|
||||
'max' => 500,
|
||||
'step' => 1,
|
||||
),
|
||||
'active_callback' => array(
|
||||
array(
|
||||
'setting' => 'excerpt_display',
|
||||
'operator' => '==',
|
||||
'value' => true,
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
$fields[] = array(
|
||||
'type' => 'checkbox',
|
||||
'settings' => 'archive_show_content',
|
||||
'label' => esc_html__( 'Display full content instead of excerpt.', 'hitmag' ),
|
||||
'section' => 'hitmag_blog_options',
|
||||
'default' => false,
|
||||
'active_callback' => array(
|
||||
array(
|
||||
'setting' => 'excerpt_display',
|
||||
'operator' => '==',
|
||||
'value' => true,
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
$fields[] = array(
|
||||
'type' => 'switch',
|
||||
'settings' => 'show_readmore',
|
||||
'label' => esc_html__( 'Show read more button.', 'hitmag' ),
|
||||
'section' => 'hitmag_blog_options',
|
||||
'default' => '1',
|
||||
'priority' => 10,
|
||||
'choices' => array(
|
||||
'on' => esc_attr__( 'Show', 'hitmag' ),
|
||||
'off' => esc_attr__( 'Hide', 'hitmag' ),
|
||||
),
|
||||
);
|
||||
|
||||
$fields[] = array(
|
||||
'type' => 'text',
|
||||
'settings' => 'readmore_text',
|
||||
'label' => esc_html__( 'Read more button text.', 'hitmag' ),
|
||||
'section' => 'hitmag_blog_options',
|
||||
'default' => esc_html__( 'Read More', 'hitmag' ),
|
||||
'priority' => 10,
|
||||
'active_callback' => array(
|
||||
array(
|
||||
'setting' => 'show_readmore',
|
||||
'operator' => '==',
|
||||
'value' => true,
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
$fields[] = array(
|
||||
'type' => 'radio-image',
|
||||
'settings' => 'post_sidebar_align',
|
||||
'label' => esc_html__( 'Content and Sidebar Alignment', 'hitmag' ),
|
||||
'section' => 'hitmag_post_options',
|
||||
'default' => 'th-right-sidebar',
|
||||
'priority' => 1,
|
||||
'option_type' => 'option',
|
||||
'choices' => array(
|
||||
'th-right-sidebar' => get_template_directory_uri() . '/inc/customizer/assets/imgs/2cr.png',
|
||||
'th-left-sidebar' => get_template_directory_uri() . '/inc/customizer/assets/imgs/2cl.png',
|
||||
'th-no-sidebar' => get_template_directory_uri() . '/inc/customizer/assets/imgs/1c.png',
|
||||
'th-content-centered' => get_template_directory_uri() . '/inc/customizer/assets/imgs/1cc.png',
|
||||
),
|
||||
);
|
||||
|
||||
$fields[] = array(
|
||||
'type' => 'multicheck',
|
||||
'settings' => 'single_post_meta',
|
||||
'label' => esc_html__( 'What post meta to display in single post?', 'hitmag' ),
|
||||
'section' => 'hitmag_post_options',
|
||||
'default' => array( 'categories', 'date', 'author', 'comments'),
|
||||
'priority' => 2,
|
||||
'choices' => array(
|
||||
'categories' => esc_attr__( 'Categories List', 'hitmag' ),
|
||||
'date' => esc_attr__( 'Date', 'hitmag' ),
|
||||
'author' => esc_attr__( 'Author', 'hitmag' ),
|
||||
'comments' => esc_attr__( 'Comments Link', 'hitmag' )
|
||||
),
|
||||
);
|
||||
|
||||
$fields[] = array(
|
||||
'type' => 'switch',
|
||||
'settings' => 'single_thumbnail_sw',
|
||||
'label' => esc_html__( 'Featured image inside the single post.', 'hitmag' ),
|
||||
'section' => 'hitmag_post_options',
|
||||
'default' => '1',
|
||||
'priority' => 3,
|
||||
'choices' => array(
|
||||
'on' => esc_attr__( 'Show', 'hitmag' ),
|
||||
'off' => esc_attr__( 'Hide', 'hitmag' ),
|
||||
),
|
||||
);
|
||||
|
||||
$fields[] = array(
|
||||
'type' => 'checkbox',
|
||||
'settings' => 'thumb_link_to_original',
|
||||
'label' => esc_html__( 'Link featured image to full size image.', 'hitmag' ),
|
||||
'section' => 'hitmag_post_options',
|
||||
'default' => '1',
|
||||
'priority' => 3,
|
||||
'active_callback' => array(
|
||||
array(
|
||||
'setting' => 'single_thumbnail_sw',
|
||||
'operator' => '==',
|
||||
'value' => true,
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
$fields[] = array(
|
||||
'type' => 'checkbox',
|
||||
'settings' => 'use_lightbox',
|
||||
'label' => esc_html__( 'Use lightbox feature.', 'hitmag' ),
|
||||
'section' => 'hitmag_post_options',
|
||||
'default' => '1',
|
||||
'priority' => 3,
|
||||
'active_callback' => array(
|
||||
array(
|
||||
'setting' => 'single_thumbnail_sw',
|
||||
'operator' => '==',
|
||||
'value' => true,
|
||||
),
|
||||
array(
|
||||
'setting' => 'thumb_link_to_original',
|
||||
'operator' => '==',
|
||||
'value' => true,
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
$fields[] = array(
|
||||
'type' => 'switch',
|
||||
'settings' => 'postsnav_sw',
|
||||
'label' => esc_html__( 'Posts navigation after the post.', 'hitmag' ),
|
||||
'section' => 'hitmag_post_options',
|
||||
'default' => '1',
|
||||
'priority' => 4,
|
||||
'choices' => array(
|
||||
'on' => esc_attr__( 'Show', 'hitmag' ),
|
||||
'off' => esc_attr__( 'Hide', 'hitmag' ),
|
||||
),
|
||||
);
|
||||
|
||||
$fields[] = array(
|
||||
'type' => 'switch',
|
||||
'settings' => 'authorbox_sw',
|
||||
'label' => esc_html__( 'Author details box after the post.', 'hitmag' ),
|
||||
'section' => 'hitmag_post_options',
|
||||
'default' => '1',
|
||||
'priority' => 5,
|
||||
'choices' => array(
|
||||
'on' => esc_attr__( 'Show', 'hitmag' ),
|
||||
'off' => esc_attr__( 'Hide', 'hitmag' ),
|
||||
),
|
||||
);
|
||||
|
||||
$fields[] = array(
|
||||
'type' => 'switch',
|
||||
'settings' => 'relatedposts_sw',
|
||||
'label' => esc_html__( 'Related posts after the post.', 'hitmag' ),
|
||||
'section' => 'hitmag_post_options',
|
||||
'default' => '1',
|
||||
'priority' => 6,
|
||||
'choices' => array(
|
||||
'on' => esc_attr__( 'Show', 'hitmag' ),
|
||||
'off' => esc_attr__( 'Hide', 'hitmag' ),
|
||||
),
|
||||
);
|
||||
|
||||
$fields[] = array(
|
||||
'type' => 'switch',
|
||||
'settings' => 'taglist_sw',
|
||||
'label' => esc_html__( 'Tags list after the post.', 'hitmag' ),
|
||||
'section' => 'hitmag_post_options',
|
||||
'default' => '1',
|
||||
'priority' => 7,
|
||||
'choices' => array(
|
||||
'on' => esc_attr__( 'Show', 'hitmag' ),
|
||||
'off' => esc_attr__( 'Hide', 'hitmag' ),
|
||||
),
|
||||
);
|
||||
|
||||
$fields[] = array(
|
||||
'type' => 'radio-image',
|
||||
'settings' => 'page_sidebar_align',
|
||||
'label' => esc_html__( 'Content and Sidebar Alignment', 'hitmag' ),
|
||||
'section' => 'hitmag_page_options',
|
||||
'default' => 'th-right-sidebar',
|
||||
'priority' => 10,
|
||||
'option_type' => 'option',
|
||||
'choices' => array(
|
||||
'th-right-sidebar' => get_template_directory_uri() . '/inc/customizer/assets/imgs/2cr.png',
|
||||
'th-left-sidebar' => get_template_directory_uri() . '/inc/customizer/assets/imgs/2cl.png',
|
||||
'th-no-sidebar' => get_template_directory_uri() . '/inc/customizer/assets/imgs/1c.png',
|
||||
'th-content-centered' => get_template_directory_uri() . '/inc/customizer/assets/imgs/1cc.png',
|
||||
),
|
||||
);
|
||||
|
||||
$fields[] = array(
|
||||
'type' => 'custom',
|
||||
'settings' => 'theme_documentation',
|
||||
'label' => __( 'Theme Setup Guide', 'hitmag' ),
|
||||
'section' => 'hitmag_theme_info',
|
||||
'default' => '<a href="https://themezhut.com/hitmag-wordpress-theme-documentation/" target="_blank">' . esc_html__( 'Read the documentation', 'hitmag' ) . '</a>',
|
||||
);
|
||||
|
||||
$fields[] = array(
|
||||
'type' => 'custom',
|
||||
'settings' => 'theme_info',
|
||||
'label' => __( 'Theme Details', 'hitmag' ),
|
||||
'section' => 'hitmag_theme_info',
|
||||
'default' => '<a href="https://themezhut.com/themes/hitmag/" target="_blank">' . esc_html__( 'Theme Details', 'hitmag' ) . '</a>',
|
||||
);
|
||||
|
||||
return $fields;
|
||||
}
|
||||
add_filter( 'kirki/fields', 'hitmag_kirki_fields' );
|
||||
|
||||
/**
|
||||
* Returns false if Magazine Homepage is activated.
|
||||
*/
|
||||
function hitmag_is_active_magazine_homepage() {
|
||||
|
||||
if ( 'page' == get_option( 'show_on_front' ) ) {
|
||||
|
||||
$frontpage_id = get_option( 'page_on_front' );
|
||||
$frontpage_slug = get_page_template_slug( $frontpage_id );
|
||||
|
||||
if ( $frontpage_slug == 'template-magazine.php' ) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function hitmag_inactive_magazine() {
|
||||
if ( true == hitmag_is_active_magazine_homepage() ) {
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
function hitmag_is_not_header_bg( $control ) {
|
||||
if ( $control->manager->get_setting( 'header_image_position' )->value() != 'header-background' ) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
function hitmag_sanitize_hex_color( $hex_color, $setting ) {
|
||||
// Sanitize $input as a hex value without the hash prefix.
|
||||
$hex_color = sanitize_hex_color( $hex_color );
|
||||
|
||||
// If $input is a valid hex value, return it; otherwise, return the default.
|
||||
return ( ! is_null( $hex_color ) ? $hex_color : $setting->default );
|
||||
}
|
||||
|
||||
/**
|
||||
* Binds JS handlers to make Theme Customizer preview reload changes asynchronously.
|
||||
*/
|
||||
function hitmag_customize_preview_js() {
|
||||
wp_enqueue_script( 'hitmag_customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), '20151215', true );
|
||||
}
|
||||
add_action( 'customize_preview_init', 'hitmag_customize_preview_js' );
|
||||
|
||||
/**
|
||||
* Enqueue the customizer stylesheet.
|
||||
*/
|
||||
function hitmag_enqueue_customizer_stylesheets() {
|
||||
|
||||
wp_register_style( 'hitmag-customizer-css', get_template_directory_uri() . '/css/customizer.css', NULL, NULL, 'all' );
|
||||
wp_enqueue_style( 'hitmag-customizer-css' );
|
||||
wp_enqueue_style( 'font-awesome', get_template_directory_uri() . '/css/font-awesome.min.css', array(), '4.7.0' );
|
||||
|
||||
}
|
||||
add_action( 'customize_controls_print_styles', 'hitmag_enqueue_customizer_stylesheets' );
|
||||
|
||||
/**
|
||||
* Additional Customizer js
|
||||
* From WordPress 5.5 onwards wpColorPickerL10n is not loaded. But it needs for kirki.
|
||||
* So lets make it sure that it is there.
|
||||
*/
|
||||
function hitmag_additional_customizer_scripts() {
|
||||
global $wp_version;
|
||||
if ( version_compare( $wp_version, '5.4.2' , '>=' ) ) {
|
||||
wp_localize_script(
|
||||
'wp-color-picker',
|
||||
'wpColorPickerL10n',
|
||||
array(
|
||||
'clear' => __( 'Clear', 'hitmag' ),
|
||||
'clearAriaLabel' => __( 'Clear color', 'hitmag' ),
|
||||
'defaultString' => __( 'Default', 'hitmag' ),
|
||||
'defaultAriaLabel' => __( 'Select default color', 'hitmag' ),
|
||||
'pick' => __( 'Select Color', 'hitmag' ),
|
||||
'defaultLabel' => __( 'Color value', 'hitmag' )
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
add_action( 'customize_controls_enqueue_scripts', 'hitmag_additional_customizer_scripts' );
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
<?php
|
||||
|
||||
function hitmag_kirki_config() {
|
||||
$args = array(
|
||||
'url_path' => get_template_directory_uri() . '/inc/kirki/'
|
||||
);
|
||||
return $args;
|
||||
}
|
||||
add_filter( 'kirki/config', 'hitmag_kirki_config' );
|
||||
|
|
@ -0,0 +1,277 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Hooks custom css into the head.
|
||||
*/
|
||||
function hitmag_custom_styles() {
|
||||
|
||||
$hitmag_custom_styles = "";
|
||||
|
||||
$primary_color = get_theme_mod( 'hitmag_primary_color', '#E74C3C' );
|
||||
|
||||
$primary_color = esc_attr( $primary_color );
|
||||
|
||||
if ( $primary_color != '#e74c3c' ) {
|
||||
|
||||
$hitmag_custom_styles .= '
|
||||
button,
|
||||
input[type="button"],
|
||||
input[type="reset"],
|
||||
input[type="submit"] {
|
||||
background: '. $primary_color .';
|
||||
}
|
||||
|
||||
.th-readmore {
|
||||
background: '. $primary_color .';
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: '. $primary_color .';
|
||||
}
|
||||
|
||||
.main-navigation a:hover {
|
||||
background-color: '. $primary_color .';
|
||||
}
|
||||
|
||||
.main-navigation .current_page_item > a,
|
||||
.main-navigation .current-menu-item > a,
|
||||
.main-navigation .current_page_ancestor > a,
|
||||
.main-navigation .current-menu-ancestor > a {
|
||||
background-color: '. $primary_color .';
|
||||
}
|
||||
|
||||
#main-nav-button:hover {
|
||||
background-color: '. $primary_color .';
|
||||
}
|
||||
|
||||
.post-navigation .post-title:hover {
|
||||
color: '. $primary_color .';
|
||||
}
|
||||
|
||||
.top-navigation a:hover {
|
||||
color: '. $primary_color .';
|
||||
}
|
||||
|
||||
.top-navigation ul ul a:hover {
|
||||
background: '. $primary_color .';
|
||||
}
|
||||
|
||||
#top-nav-button:hover {
|
||||
color: '. $primary_color .';
|
||||
}
|
||||
|
||||
.responsive-mainnav li a:hover,
|
||||
.responsive-topnav li a:hover {
|
||||
background: '. $primary_color .';
|
||||
}
|
||||
|
||||
#hm-search-form .search-form .search-submit {
|
||||
background-color: '. $primary_color .';
|
||||
}
|
||||
|
||||
.nav-links .current {
|
||||
background: '. $primary_color .';
|
||||
}
|
||||
|
||||
.is-style-hitmag-widget-title,
|
||||
.elementor-widget-container h5,
|
||||
.widgettitle,
|
||||
.widget-title {
|
||||
border-bottom: 2px solid '. $primary_color .';
|
||||
}
|
||||
|
||||
.footer-widget-title {
|
||||
border-bottom: 2px solid '. $primary_color .';
|
||||
}
|
||||
|
||||
.widget-area a:hover {
|
||||
color: '. $primary_color .';
|
||||
}
|
||||
|
||||
.footer-widget-area .widget a:hover {
|
||||
color: '. $primary_color .';
|
||||
}
|
||||
|
||||
.site-info a:hover {
|
||||
color: '. $primary_color .';
|
||||
}
|
||||
|
||||
.wp-block-search .wp-block-search__button,
|
||||
.search-form .search-submit {
|
||||
background: '. $primary_color .';
|
||||
}
|
||||
|
||||
.hmb-entry-title a:hover {
|
||||
color: '. $primary_color .';
|
||||
}
|
||||
|
||||
.hmb-entry-meta a:hover,
|
||||
.hms-meta a:hover {
|
||||
color: '. $primary_color .';
|
||||
}
|
||||
|
||||
.hms-title a:hover {
|
||||
color: '. $primary_color .';
|
||||
}
|
||||
|
||||
.hmw-grid-post .post-title a:hover {
|
||||
color: '. $primary_color .';
|
||||
}
|
||||
|
||||
.footer-widget-area .hmw-grid-post .post-title a:hover,
|
||||
.footer-widget-area .hmb-entry-title a:hover,
|
||||
.footer-widget-area .hms-title a:hover {
|
||||
color: '. $primary_color .';
|
||||
}
|
||||
|
||||
.hm-tabs-wdt .ui-state-active {
|
||||
border-bottom: 2px solid '. $primary_color .';
|
||||
}
|
||||
|
||||
a.hm-viewall {
|
||||
background: '. $primary_color .';
|
||||
}
|
||||
|
||||
#hitmag-tags a,
|
||||
.widget_tag_cloud .tagcloud a {
|
||||
background: '. $primary_color .';
|
||||
}
|
||||
|
||||
.site-title a {
|
||||
color: '. $primary_color .';
|
||||
}
|
||||
|
||||
.hitmag-post .entry-title a:hover {
|
||||
color: '. $primary_color .';
|
||||
}
|
||||
|
||||
.hitmag-post .entry-meta a:hover {
|
||||
color: '. $primary_color .';
|
||||
}
|
||||
|
||||
.cat-links a {
|
||||
color: '. $primary_color .';
|
||||
}
|
||||
|
||||
.hitmag-single .entry-meta a:hover {
|
||||
color: '. $primary_color .';
|
||||
}
|
||||
|
||||
.hitmag-single .author a:hover {
|
||||
color: '. $primary_color .';
|
||||
}
|
||||
|
||||
.hm-author-content .author-posts-link {
|
||||
color: '. $primary_color .';
|
||||
}
|
||||
|
||||
.hm-tags-links a:hover {
|
||||
background: '. $primary_color .';
|
||||
}
|
||||
|
||||
.hm-tagged {
|
||||
background: '. $primary_color .';
|
||||
}
|
||||
|
||||
.hm-edit-link a.post-edit-link {
|
||||
background: '. $primary_color .';
|
||||
}
|
||||
|
||||
.arc-page-title {
|
||||
border-bottom: 2px solid '. $primary_color .';
|
||||
}
|
||||
|
||||
.srch-page-title {
|
||||
border-bottom: 2px solid '. $primary_color .';
|
||||
}
|
||||
|
||||
.hm-slider-details .cat-links {
|
||||
background: '. $primary_color .';
|
||||
}
|
||||
|
||||
.hm-rel-post .post-title a:hover {
|
||||
color: '. $primary_color .';
|
||||
}
|
||||
|
||||
.comment-author a {
|
||||
color: '. $primary_color .';
|
||||
}
|
||||
|
||||
.comment-metadata a:hover,
|
||||
.comment-metadata a:focus,
|
||||
.pingback .comment-edit-link:hover,
|
||||
.pingback .comment-edit-link:focus {
|
||||
color: '. $primary_color .';
|
||||
}
|
||||
|
||||
.comment-reply-link:hover,
|
||||
.comment-reply-link:focus {
|
||||
background: '. $primary_color .';
|
||||
}
|
||||
|
||||
.required {
|
||||
color: '. $primary_color .';
|
||||
}
|
||||
|
||||
blockquote {
|
||||
border-left: 3px solid '. $primary_color .';
|
||||
}
|
||||
|
||||
.comment-reply-title small a:before {
|
||||
color: '. $primary_color .';
|
||||
}
|
||||
|
||||
.woocommerce ul.products li.product h3:hover,
|
||||
.woocommerce-widget-area ul li a:hover,
|
||||
.woocommerce-loop-product__title:hover {
|
||||
color: '. $primary_color .';
|
||||
}
|
||||
|
||||
.woocommerce-product-search input[type="submit"],
|
||||
.woocommerce #respond input#submit,
|
||||
.woocommerce a.button,
|
||||
.woocommerce button.button,
|
||||
.woocommerce input.button,
|
||||
.woocommerce nav.woocommerce-pagination ul li a:focus,
|
||||
.woocommerce nav.woocommerce-pagination ul li a:hover,
|
||||
.woocommerce nav.woocommerce-pagination ul li span.current,
|
||||
.woocommerce span.onsale,
|
||||
.woocommerce-widget-area .widget-title,
|
||||
.woocommerce #respond input#submit.alt,
|
||||
.woocommerce a.button.alt,
|
||||
.woocommerce button.button.alt,
|
||||
.woocommerce input.button.alt {
|
||||
background: '. $primary_color .';
|
||||
}
|
||||
|
||||
.wp-block-quote,
|
||||
.wp-block-quote:not(.is-large):not(.is-style-large) {
|
||||
border-left: 3px solid '. $primary_color .';
|
||||
}';
|
||||
|
||||
} // end if primary color.
|
||||
|
||||
if ( get_theme_mod( 'header_image_position', 'after-site-title' ) == 'header-background' ) {
|
||||
|
||||
$header_image = get_header_image();
|
||||
|
||||
if ( ! empty( $header_image ) ) {
|
||||
$hitmag_custom_styles .= '
|
||||
.hm-header-bg-holder {
|
||||
background-image: url('. esc_url( $header_image ) .');
|
||||
background-size: cover;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
';
|
||||
}
|
||||
|
||||
} // end if header background image.
|
||||
|
||||
if ( ! empty( $hitmag_custom_styles ) ) { ?>
|
||||
<style type="text/css">
|
||||
<?php echo $hitmag_custom_styles; ?>
|
||||
</style>
|
||||
<?php }
|
||||
|
||||
}
|
||||
add_action( 'wp_head', 'hitmag_custom_styles' );
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
.th-required-box {
|
||||
padding: 20px;
|
||||
background: #fff;
|
||||
border-left: 4px solid #d54e21;
|
||||
margin: 50px 0;
|
||||
}
|
||||
|
||||
h3.th-reqbox-heading {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
|
@ -0,0 +1,175 @@
|
|||
<?php
|
||||
|
||||
function hitmag_enqueue_admin_scripts( $hook ) {
|
||||
if ( 'appearance_page_about-hitmag-theme' != $hook ) {
|
||||
return;
|
||||
}
|
||||
wp_register_style( 'hitmag-admin-css', get_template_directory_uri() . '/inc/dashboard/css/admin.css', false, '1.0.0' );
|
||||
wp_enqueue_style( 'hitmag-admin-css' );
|
||||
}
|
||||
add_action( 'admin_enqueue_scripts', 'hitmag_enqueue_admin_scripts' );
|
||||
|
||||
/**
|
||||
* Add admin notice when active theme
|
||||
*/
|
||||
function hitmag_admin_notice() {
|
||||
?>
|
||||
<div class="updated notice notice-info is-dismissible">
|
||||
<p><?php esc_html_e( 'Welcome to HitMag! To get started with HitMag please visit the theme Welcome page.', 'hitmag' ); ?></p>
|
||||
<p><a class="button" href="<?php echo esc_url( admin_url( 'themes.php?page=about-hitmag-theme' ) ); ?>"><?php _e( 'Get Started with HitMag', 'hitmag' ) ?></a></p>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
||||
|
||||
function hitmag_activation_admin_notice(){
|
||||
global $pagenow;
|
||||
if ( is_admin() && ('themes.php' == $pagenow) && isset( $_GET['activated'] ) ) {
|
||||
add_action( 'admin_notices', 'hitmag_admin_notice' );
|
||||
}
|
||||
}
|
||||
add_action( 'load-themes.php', 'hitmag_activation_admin_notice' );
|
||||
|
||||
|
||||
function hitmag_add_themeinfo_page() {
|
||||
|
||||
// Menu title can be displayed with recommended actions count.
|
||||
$menu_title = esc_html__( 'HitMag Theme', 'hitmag' );
|
||||
|
||||
add_theme_page( esc_html__( 'HitMag Theme', 'hitmag' ), $menu_title , 'edit_theme_options', 'about-hitmag-theme', 'hitmag_themeinfo_page_render' );
|
||||
|
||||
}
|
||||
add_action( 'admin_menu', 'hitmag_add_themeinfo_page' );
|
||||
|
||||
function hitmag_themeinfo_page_render() { ?>
|
||||
|
||||
<div class="wrap about-wrap">
|
||||
|
||||
<?php $theme_info = wp_get_theme(); ?>
|
||||
|
||||
<h1><?php esc_html_e( 'Welcome to HitMag', 'hitmag' ); ?></h1>
|
||||
|
||||
<p><?php echo esc_html( $theme_info->get( 'Description' ) ); ?></p>
|
||||
|
||||
<h2 class="nav-tab-wrapper">
|
||||
<a class="nav-tab <?php if ( $_GET['page'] == 'about-hitmag-theme' && ! isset( $_GET['tab'] ) ) echo 'nav-tab-active'; ?>" href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => 'about-hitmag-theme' ), 'themes.php' ) ) ); ?>">
|
||||
<?php esc_html_e( 'HitMag', 'hitmag' ); ?>
|
||||
</a>
|
||||
<a class="nav-tab <?php if ( isset( $_GET['tab'] ) && $_GET['tab'] == 'magazine_homepage' ) echo 'nav-tab-active'; ?>" href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => 'about-hitmag-theme', 'tab' => 'magazine_homepage' ), 'themes.php' ) ) ); ?>">
|
||||
<?php esc_html_e( 'Magazine Homepage', 'hitmag' ); ?>
|
||||
</a>
|
||||
</h2>
|
||||
|
||||
<?php
|
||||
|
||||
$current_tab = ! empty( $_GET['tab'] ) ? sanitize_title( $_GET['tab'] ) : '';
|
||||
|
||||
if ( $current_tab == 'magazine_homepage' ) {
|
||||
hitmag_magazine_make_guide();
|
||||
} else {
|
||||
hitmag_admin_welcome_page();
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
</div><!-- .wrap .about-wrap -->
|
||||
|
||||
<?php
|
||||
|
||||
}
|
||||
|
||||
function hitmag_admin_welcome_page() {
|
||||
?>
|
||||
<h3><?php esc_html_e( 'Theme Customizer', 'hitmag' ); ?></h3>
|
||||
<p><?php esc_html_e( 'All the HitMag theme settings are located at the customizer. Start customizing your website with customizer.', 'hitmag' ) ?></p>
|
||||
<a class="button" target="_blank" href="<?php echo esc_url( admin_url( '/customize.php' ) ); ?>"><?php esc_html_e( 'Go to customizer','hitmag' ); ?></a>
|
||||
|
||||
<h3><?php esc_html_e( 'Theme Documentation', 'hitmag' ); ?></h3>
|
||||
<p><?php esc_html_e( 'Need to learn all about HitMag? Read the theme documentation carefully.', 'hitmag' ) ?></p>
|
||||
<a class="button" target="_blank" href="<?php echo esc_url( 'https://themezhut.com/hitmag-wordpress-theme-documentation/' ); ?>"><?php esc_html_e( 'Read the documentation.','hitmag' ); ?></a>
|
||||
|
||||
<h3><?php esc_html_e( 'Theme Info', 'hitmag' ); ?></h3>
|
||||
<p><?php esc_html_e( 'Know all the details about HitMag theme.', 'hitmag' ) ?></p>
|
||||
<a class="button" target="_blank" href="<?php echo esc_url( 'https://themezhut.com/themes/hitmag/' ); ?>"><?php esc_html_e( 'Theme Details.','hitmag' ); ?></a>
|
||||
|
||||
<h3><?php esc_html_e( 'Theme Demo', 'hitmag' ); ?></h3>
|
||||
<p><?php esc_html_e( 'See the theme preview of free version.', 'hitmag' ) ?></p>
|
||||
<a class="button" target="_blank" href="<?php echo esc_url( 'https://themezhut.com/demo/hitmag/' ); ?>"><?php esc_html_e( 'Theme Preview','hitmag' ); ?></a>
|
||||
|
||||
<?php
|
||||
}
|
||||
|
||||
function hitmag_magazine_make_guide() {
|
||||
|
||||
if ( 'posts' == get_option( 'show_on_front' ) ) {
|
||||
|
||||
hitmag_template_box( 'posts' );
|
||||
|
||||
hitmag_static_page_box();
|
||||
|
||||
}
|
||||
|
||||
if ( 'page' == get_option( 'show_on_front' ) ) {
|
||||
|
||||
$frontpage_id = get_option( 'page_on_front' );
|
||||
|
||||
$frontpage_slug = get_page_template_slug( $frontpage_id );
|
||||
|
||||
if ( $frontpage_slug != 'template-magazine.php' ) {
|
||||
hitmag_template_box( 'page' );
|
||||
} else {
|
||||
?>
|
||||
<p>
|
||||
<?php
|
||||
esc_html_e( 'Congratulations...! You have activated a magazine front page successfully. Now start adding posts widgets to "Magazine Homepage" widget area.', 'hitmag' );
|
||||
?>
|
||||
</p>
|
||||
<a class="button" target="_blank" href="<?php echo esc_url( admin_url( '/widgets.php' ) ); ?>"><?php esc_html_e( 'Go to Widgets Area','hitmag' ); ?></a>
|
||||
<?php
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function hitmag_static_page_box() {
|
||||
?>
|
||||
<div class="th-required-box">
|
||||
<h3 class="th-reqbox-heading"><?php esc_html_e( 'Select "A Static page" option for the setting "Front Page Displays"', 'hitmag' ) ?></h3>
|
||||
<p class="th-reqbox-desc">
|
||||
<?php
|
||||
esc_html_e( 'Select the page that has "Magazine Homepage" template as the front page .', 'hitmag' );
|
||||
?>
|
||||
</p>
|
||||
<a class="button" target="_blank" href="<?php echo esc_url( admin_url('options-reading.php') ); ?>"><?php _e( 'Select front page.','hitmag' ) ?></a>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
||||
function hitmag_template_box( $case ) {
|
||||
?>
|
||||
<div class="th-required-box">
|
||||
|
||||
<?php
|
||||
if ( $case == 'page' ) : ?>
|
||||
<h3 class="th-reqbox-heading"><?php esc_html_e( 'Select the "Magazine Homepage" page template for the front page.', 'hitmag' ) ?></h3>
|
||||
<p>
|
||||
<?php esc_html_e( 'Go to the edit screen of the front page. Then select the Template - "Magazine Homepage" from "Page Attributes" dialog box.', 'hitmag' ); ?>
|
||||
</p>
|
||||
<?php
|
||||
$frontpage_id = get_option( 'page_on_front' ); ?>
|
||||
<a href="<?php echo get_edit_post_link( $frontpage_id ); ?>" class="button" target="_blank"><?php esc_html_e( 'Change front page template', 'hitmag' ); ?></a>
|
||||
<?php elseif ( $case == 'posts' ) : ?>
|
||||
<h3 class="th-reqbox-heading"><?php esc_html_e( 'Create a page that has "Magazine Homepage" page template.', 'hitmag' ) ?></h3>
|
||||
<p class="th-reqbox-desc">
|
||||
<ol>
|
||||
<li><?php esc_html_e( 'First create a page to display on front page. Give any title for that page. ( eg: Home )', 'hitmag' ); ?></li>
|
||||
<li><?php esc_html_e( 'Then from the "Page Attributes" dialog box select the Template-"Magazine Homepage"', 'hitmag' ); ?></li>
|
||||
</ol>
|
||||
</p>
|
||||
<a class="button" target="_blank" href="<?php echo esc_url( admin_url('post-new.php?post_type=page') ); ?>"><?php esc_html_e( 'Create a page.','hitmag' ) ?></a>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
|
@ -0,0 +1,178 @@
|
|||
<?php
|
||||
/**
|
||||
* Custom functions that act independently of the theme templates
|
||||
*
|
||||
* Eventually, some of the functionality here could be replaced by core features.
|
||||
*
|
||||
* @package HitMag
|
||||
*/
|
||||
|
||||
/**
|
||||
* Adds custom classes to the array of body classes.
|
||||
*
|
||||
* @param array $classes Classes for the body element.
|
||||
* @return array
|
||||
*/
|
||||
function hitmag_body_classes( $classes ) {
|
||||
global $post;
|
||||
|
||||
if ( false == get_theme_mod( 'hitmag_boxed_layout', true ) ) {
|
||||
$classes[] = 'hitmag-full-width';
|
||||
}
|
||||
|
||||
// Adds a class of group-blog to blogs with more than 1 published author.
|
||||
if ( is_multi_author() ) {
|
||||
$classes[] = 'group-blog';
|
||||
}
|
||||
|
||||
// Adds a class of hfeed to non-singular pages.
|
||||
if ( ! is_singular() ) {
|
||||
$classes[] = 'hfeed';
|
||||
}
|
||||
|
||||
if ( is_home() || is_archive() || is_search() ) {
|
||||
$archive_sidebar_align = get_option( 'archive_sidebar_align', 'th-right-sidebar' );
|
||||
$classes[] = esc_attr( $archive_sidebar_align );
|
||||
}
|
||||
|
||||
if ( is_single() ) {
|
||||
$post_specific_layout = get_post_meta( $post->ID, '_hitmag_layout_meta', true );
|
||||
if ( empty( $post_specific_layout ) || $post_specific_layout == 'th-default-layout' ) {
|
||||
$classes[] = esc_attr( get_option( 'post_sidebar_align', 'th-right-sidebar' ) );
|
||||
} else {
|
||||
$classes[] = esc_attr( $post_specific_layout );
|
||||
}
|
||||
}
|
||||
|
||||
if( is_page_template( 'template-magazine.php' ) ) {
|
||||
$classes[] = 'th-right-sidebar';
|
||||
} elseif ( is_page() ) {
|
||||
$page_specific_layout = get_post_meta( $post->ID, '_hitmag_layout_meta', true );
|
||||
if ( empty( $page_specific_layout ) || $page_specific_layout == 'th-default-layout' ) {
|
||||
$classes[] = esc_attr( get_option( 'page_sidebar_align', 'th-right-sidebar' ) );
|
||||
} else {
|
||||
$classes[] = esc_attr( $page_specific_layout );
|
||||
}
|
||||
}
|
||||
|
||||
return $classes;
|
||||
}
|
||||
add_filter( 'body_class', 'hitmag_body_classes' );
|
||||
|
||||
/**
|
||||
* Add a pingback url auto-discovery header for singularly identifiable articles.
|
||||
*/
|
||||
function hitmag_pingback_header() {
|
||||
if ( is_singular() && pings_open() ) {
|
||||
echo '<link rel="pingback" href="', esc_url( get_bloginfo( 'pingback_url' ) ), '">';
|
||||
}
|
||||
}
|
||||
add_action( 'wp_head', 'hitmag_pingback_header' );
|
||||
|
||||
/**
|
||||
* Add a custom excerpt length.
|
||||
*/
|
||||
function hitmag_excerpt_length( $length ) {
|
||||
if( is_admin() ) {
|
||||
return $length;
|
||||
}
|
||||
$custom_length = get_theme_mod( 'excerpt_length', 30 );
|
||||
return absint( $custom_length );
|
||||
}
|
||||
add_filter( 'excerpt_length', 'hitmag_excerpt_length', 999 );
|
||||
|
||||
/**
|
||||
* Changes the excerpt more text.
|
||||
*/
|
||||
function hitmag_excerpt_more( $more ) {
|
||||
|
||||
if ( is_admin() ) {
|
||||
return $more;
|
||||
}
|
||||
|
||||
return ' … ';
|
||||
}
|
||||
add_filter( 'excerpt_more', 'hitmag_excerpt_more' );
|
||||
|
||||
|
||||
|
||||
if ( ! function_exists( 'hitmag_get_layout' ) ) :
|
||||
/**
|
||||
* Returns the selected sidebar alignment for the page.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function hitmag_get_layout() {
|
||||
|
||||
global $post;
|
||||
|
||||
$layout = 'th-right-sidebar';
|
||||
|
||||
if ( is_home() || is_archive() || is_search() ) {
|
||||
$archive_sidebar_align = get_option( 'archive_sidebar_align', 'th-right-sidebar' );
|
||||
$layout = $archive_sidebar_align;
|
||||
}
|
||||
|
||||
if ( is_single() ) {
|
||||
$post_specific_layout = get_post_meta( $post->ID, '_hitmag_layout_meta', true );
|
||||
if ( empty( $post_specific_layout ) || $post_specific_layout == 'th-default-layout' ) {
|
||||
$layout = get_option( 'post_sidebar_align', 'th-right-sidebar' );
|
||||
} else {
|
||||
$layout = $post_specific_layout;
|
||||
}
|
||||
}
|
||||
if( is_page_template( 'template-magazine.php' ) ) {
|
||||
$layout = 'th-right-sidebar';
|
||||
} elseif ( is_page() ) {
|
||||
$page_specific_layout = get_post_meta( $post->ID, '_hitmag_layout_meta', true );
|
||||
if ( empty( $page_specific_layout ) || $page_specific_layout == 'th-default-layout' ) {
|
||||
$layout = get_option( 'page_sidebar_align', 'th-right-sidebar' );
|
||||
} else {
|
||||
$layout = $page_specific_layout;
|
||||
}
|
||||
}
|
||||
|
||||
return $layout;
|
||||
|
||||
}
|
||||
|
||||
endif;
|
||||
|
||||
|
||||
/**
|
||||
* Changes tag font size.
|
||||
*/
|
||||
function hitmag_tag_cloud_sizes($args) {
|
||||
$args['smallest'] = 10;
|
||||
$args['largest'] = 10;
|
||||
return $args;
|
||||
}
|
||||
add_filter('widget_tag_cloud_args','hitmag_tag_cloud_sizes');
|
||||
|
||||
|
||||
/**
|
||||
* View all link for posts widgets
|
||||
*/
|
||||
function hitmag_viewall_link( $category_id, $viewall_text ) {
|
||||
|
||||
if ( ! empty( $viewall_text ) ) :
|
||||
|
||||
if ( ! empty( $category_id ) ) {
|
||||
$viewall_link = get_category_link( $category_id );
|
||||
} else {
|
||||
$posts_page_id = get_option( 'page_for_posts' );
|
||||
|
||||
if ( $posts_page_id ) {
|
||||
$viewall_link = get_page_link( $posts_page_id );
|
||||
} else {
|
||||
$viewall_link = "";
|
||||
}
|
||||
}
|
||||
|
||||
if ( $viewall_link ) { ?>
|
||||
<a class="hm-viewall" href="<?php echo esc_url( $viewall_link ); ?>"><span><?php echo esc_html( $viewall_text ); ?></span></a>
|
||||
<?php }
|
||||
|
||||
endif;
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,47 @@
|
|||
<?php
|
||||
/**
|
||||
* Jetpack Compatibility File
|
||||
*
|
||||
* @link https://jetpack.com/
|
||||
*
|
||||
* @package HitMag
|
||||
*/
|
||||
|
||||
/**
|
||||
* Jetpack setup function.
|
||||
*
|
||||
* See: https://jetpack.com/support/infinite-scroll/
|
||||
* See: https://jetpack.com/support/responsive-videos/
|
||||
*/
|
||||
function hitmag_jetpack_setup() {
|
||||
// Add theme support for Infinite Scroll.
|
||||
add_theme_support( 'infinite-scroll', array(
|
||||
'container' => 'main',
|
||||
'render' => 'hitmag_infinite_scroll_render',
|
||||
'footer' => 'page',
|
||||
) );
|
||||
|
||||
// Add theme support for Responsive Videos.
|
||||
add_theme_support( 'jetpack-responsive-videos' );
|
||||
}
|
||||
add_action( 'after_setup_theme', 'hitmag_jetpack_setup' );
|
||||
|
||||
/**
|
||||
* Custom render function for Infinite Scroll.
|
||||
*/
|
||||
function hitmag_infinite_scroll_render() {
|
||||
|
||||
$archive_content_layout = get_option( 'archive_content_layout', 'th-grid-2' );
|
||||
echo '<div class="posts-wrap ' . esc_attr( $archive_content_layout ) . '">';
|
||||
|
||||
while ( have_posts() ) {
|
||||
the_post();
|
||||
if ( is_search() ) :
|
||||
get_template_part( 'template-parts/content', 'search' );
|
||||
else :
|
||||
get_template_part( 'template-parts/content', get_post_format() );
|
||||
endif;
|
||||
}
|
||||
|
||||
echo '</div>';
|
||||
}
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2020 Ari Stathopoulos (@aristath)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
|
After Width: | Height: | Size: 786 B |
|
After Width: | Height: | Size: 866 B |
|
After Width: | Height: | Size: 869 B |
|
After Width: | Height: | Size: 929 B |
|
After Width: | Height: | Size: 932 B |
|
After Width: | Height: | Size: 935 B |
|
After Width: | Height: | Size: 306 B |
|
After Width: | Height: | Size: 1.5 KiB |
|
|
@ -0,0 +1,91 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="71.497665"
|
||||
height="23.886881"
|
||||
version="1.1"
|
||||
xml:space="preserve"
|
||||
style="clip-rule:evenodd;fill-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1"
|
||||
id="svg2"
|
||||
inkscape:version="0.91 r13725"
|
||||
sodipodi:docname="kirki-bottom.svg"><metadata
|
||||
id="metadata56"><rdf:RDF><cc:Work
|
||||
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs
|
||||
id="defs54" /><sodipodi:namedview
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1"
|
||||
objecttolerance="10"
|
||||
gridtolerance="10"
|
||||
guidetolerance="10"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:window-width="1871"
|
||||
inkscape:window-height="1056"
|
||||
id="namedview52"
|
||||
showgrid="false"
|
||||
fit-margin-top="0"
|
||||
fit-margin-left="0"
|
||||
fit-margin-right="0"
|
||||
fit-margin-bottom="0"
|
||||
inkscape:zoom="4.6669048"
|
||||
inkscape:cx="-1.0852472"
|
||||
inkscape:cy="-7.0625365"
|
||||
inkscape:window-x="49"
|
||||
inkscape:window-y="24"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="svg2" /><g
|
||||
id="g4242"
|
||||
transform="translate(-3.71284,-0.18012)"
|
||||
inkscape:export-xdpi="94"
|
||||
inkscape:export-ydpi="94"><path
|
||||
inkscape:export-ydpi="94.19397"
|
||||
inkscape:export-xdpi="94.19397"
|
||||
inkscape:connector-curvature="0"
|
||||
id="path46"
|
||||
style="fill:none;stroke:#000000;stroke-width:0.2;stroke-miterlimit:1;stroke-dasharray:none"
|
||||
d="m 10.4064,22.5387 -0.3276,0 0,1.4283 -1.65866,0 -0.31673,-2.9188 C 5.488,18.886 3.81284,15.6275 3.81284,12.0084 c 0,-2.71119 0.9401,-5.22001 2.5246,-7.23473 L 6.0704,2.31269 l 2.90602,0 C 10.8759,1.02464 13.1284,0.28012 15.5411,0.28012 c 2.4127,0 4.6652,0.74452 6.5647,2.03257 l 2.8545,0 -0.2609,2.40411 c 1.6102,2.01928 2.57,4.55213 2.57,7.2916 0,3.6568 -1.7103,6.9454 -4.3471,9.0859 l -0.3117,2.8727 -1.6586,0 0,-1.4283 -0.2761,0 c -1.5432,0.7637 -3.2923,1.1979 -5.1348,1.1979 -1.8425,0 -3.5916,-0.4342 -5.1347,-1.1979 z" /><g
|
||||
inkscape:export-ydpi="94.19397"
|
||||
inkscape:export-xdpi="94.19397"
|
||||
style="stroke-width:0.2;stroke-miterlimit:1;stroke-dasharray:none"
|
||||
id="g48"><path
|
||||
d="m 15.4462,11.8498 c 3.4224,0 6.1968,2.104 6.1968,4.6994 0,2.5955 -2.7744,4.6995 -6.1968,4.6995 -3.4224,0 -6.19678,-2.104 -6.19678,-4.6995 0,-2.5954 2.77438,-4.6994 6.19678,-4.6994 z m -1.9811,2.9947 c 0.5725,0 1.0366,0.8148 1.0366,1.8199 0,1.0051 -0.4641,1.8199 -1.0366,1.8199 -0.5725,0 -1.0366,-0.8148 -1.0366,-1.8199 0,-1.0051 0.4641,-1.8199 1.0366,-1.8199 z m 4.0544,0 c 0.5726,0 1.0367,0.8148 1.0367,1.8199 0,1.0051 -0.4641,1.8199 -1.0367,1.8199 -0.5725,0 -1.0366,-0.8148 -1.0366,-1.8199 0,-1.0051 0.4641,-1.8199 1.0366,-1.8199 z"
|
||||
style="fill:none;stroke:#000000;stroke-width:0.2;stroke-miterlimit:1;stroke-dasharray:none"
|
||||
id="path50"
|
||||
inkscape:connector-curvature="0" /></g></g><g
|
||||
id="g20"
|
||||
style="fill:#000000;fill-opacity:0.20408164"
|
||||
inkscape:export-xdpi="94.19397"
|
||||
inkscape:export-ydpi="94.19397"
|
||||
transform="matrix(0.34650485,0,0,0.34650485,30.267064,8.7780735)"><text
|
||||
xml:space="preserve"
|
||||
style="font-style:normal;font-variant:normal;font-weight:300;font-stretch:normal;font-size:40px;line-height:125%;font-family:Roboto;-inkscape-font-specification:'Roboto Light';letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:0.20408164;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||
x="-7.2853427"
|
||||
y="42.141983"
|
||||
id="text4234"
|
||||
sodipodi:linespacing="125%"><tspan
|
||||
sodipodi:role="line"
|
||||
id="tspan4236"
|
||||
x="-7.2853427"
|
||||
y="42.141983">toolkit</tspan></text>
|
||||
</g><text
|
||||
xml:space="preserve"
|
||||
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:15.76700211px;line-height:125%;font-family:'Roboto Slab';-inkscape-font-specification:'Roboto Slab Bold';letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:0.10204079;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||
x="27.568701"
|
||||
y="11.573637"
|
||||
id="text4238"
|
||||
sodipodi:linespacing="125%"
|
||||
inkscape:export-xdpi="94"
|
||||
inkscape:export-ydpi="94"><tspan
|
||||
sodipodi:role="line"
|
||||
id="tspan4240"
|
||||
x="27.568701"
|
||||
y="11.573637">KIRKI</tspan></text>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 4.8 KiB |
|
|
@ -0,0 +1,48 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="50"
|
||||
height="50"
|
||||
version="1.1"
|
||||
xml:space="preserve"
|
||||
style="clip-rule:evenodd;fill-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1"
|
||||
id="svg4136"
|
||||
inkscape:version="0.91 r13725"
|
||||
sodipodi:docname="kirki-logo.svg"><metadata
|
||||
id="metadata4190"><rdf:RDF><cc:Work
|
||||
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs
|
||||
id="defs4188" /><sodipodi:namedview
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1"
|
||||
objecttolerance="10"
|
||||
gridtolerance="10"
|
||||
guidetolerance="10"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:window-width="1871"
|
||||
inkscape:window-height="1056"
|
||||
id="namedview4186"
|
||||
showgrid="false"
|
||||
fit-margin-top="0"
|
||||
fit-margin-left="0"
|
||||
fit-margin-right="0"
|
||||
fit-margin-bottom="0"
|
||||
inkscape:zoom="15.188889"
|
||||
inkscape:cx="41.22716"
|
||||
inkscape:cy="11.507"
|
||||
inkscape:window-x="49"
|
||||
inkscape:window-y="24"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="svg4136" /><path
|
||||
id="path4184"
|
||||
style="fill:none;stroke:#000000;stroke-width:0.16830143px"
|
||||
d="m 24.80031,24.424072 c 7.199936,0 13.036629,4.426328 13.036629,9.886447 0,5.46033 -5.836693,9.886658 -13.036629,9.886658 -7.199935,0 -13.036587,-4.426328 -13.036587,-9.886658 0,-5.460119 5.836652,-9.886447 13.036587,-9.886447 z m -4.167774,6.300154 c 1.204407,0 2.180766,1.71415 2.180766,3.828647 0,2.114498 -0.976359,3.828648 -2.180766,3.828648 -1.204407,0 -2.180766,-1.71415 -2.180766,-3.828648 0,-2.114497 0.976359,-3.828647 2.180766,-3.828647 z m 8.529516,0 c 1.204618,0 2.180977,1.71415 2.180977,3.828647 0,2.114498 -0.976359,3.828648 -2.180977,3.828648 -1.204407,0 -2.180765,-1.71415 -2.180765,-3.828648 0,-2.114497 0.976358,-3.828647 2.180765,-3.828647 z m -14.964311,16.186812 -0.689195,0 0,3.004811 -3.489435,0 -0.6663266,-6.140478 C 3.8505687,39.226604 0.32642086,32.371476 0.32642086,24.75773 c 0,-5.703715 1.97775214,-10.98169 5.31117244,-15.2201932 l -0.5617902,-5.177331 6.1135919,0 c 3.996065,-2.709758 8.734802,-4.27605494 13.810563,-4.27605494 5.075761,0 9.814498,1.56629694 13.810605,4.27605494 l 6.005206,0 -0.548873,5.05769 c 3.387487,4.2480962 5.406683,9.5766252 5.406683,15.3398342 0,7.693058 -3.598074,14.61151 -9.145289,19.114625 l -0.655745,6.043494 -3.489309,0 0,-3.004811 -0.58085,0 c -3.246535,1.606647 -6.926236,2.520103 -10.802428,2.520103 -3.876192,0 -7.555893,-0.913456 -10.802217,-2.520103 z"
|
||||
inkscape:connector-curvature="0" /></svg>
|
||||
|
After Width: | Height: | Size: 3.0 KiB |
8315
wp-content/themes/hitmag/inc/kirki/assets/vendor/fontawesome/fontawesome.json
vendored
Normal file
|
|
@ -0,0 +1,484 @@
|
|||
.select2-container {
|
||||
box-sizing: border-box;
|
||||
display: inline-block;
|
||||
margin: 0;
|
||||
position: relative;
|
||||
vertical-align: middle; }
|
||||
.select2-container .select2-selection--single {
|
||||
box-sizing: border-box;
|
||||
cursor: pointer;
|
||||
display: block;
|
||||
height: 28px;
|
||||
user-select: none;
|
||||
-webkit-user-select: none; }
|
||||
.select2-container .select2-selection--single .select2-selection__rendered {
|
||||
display: block;
|
||||
padding-left: 8px;
|
||||
padding-right: 20px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap; }
|
||||
.select2-container .select2-selection--single .select2-selection__clear {
|
||||
position: relative; }
|
||||
.select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered {
|
||||
padding-right: 8px;
|
||||
padding-left: 20px; }
|
||||
.select2-container .select2-selection--multiple {
|
||||
box-sizing: border-box;
|
||||
cursor: pointer;
|
||||
display: block;
|
||||
min-height: 32px;
|
||||
user-select: none;
|
||||
-webkit-user-select: none; }
|
||||
.select2-container .select2-selection--multiple .select2-selection__rendered {
|
||||
display: inline-block;
|
||||
overflow: hidden;
|
||||
padding-left: 8px;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap; }
|
||||
.select2-container .select2-search--inline {
|
||||
float: left; }
|
||||
.select2-container .select2-search--inline .select2-search__field {
|
||||
box-sizing: border-box;
|
||||
border: none;
|
||||
font-size: 100%;
|
||||
margin-top: 5px;
|
||||
padding: 0; }
|
||||
.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button {
|
||||
-webkit-appearance: none; }
|
||||
|
||||
.select2-dropdown {
|
||||
background-color: white;
|
||||
border: 1px solid #aaa;
|
||||
border-radius: 4px;
|
||||
box-sizing: border-box;
|
||||
display: block;
|
||||
position: absolute;
|
||||
left: -100000px;
|
||||
width: 100%;
|
||||
z-index: 1051; }
|
||||
|
||||
.select2-results {
|
||||
display: block; }
|
||||
|
||||
.select2-results__options {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0; }
|
||||
|
||||
.select2-results__option {
|
||||
padding: 6px;
|
||||
user-select: none;
|
||||
-webkit-user-select: none; }
|
||||
.select2-results__option[data-selected] {
|
||||
cursor: pointer; }
|
||||
|
||||
.select2-container--open .select2-dropdown {
|
||||
left: 0; }
|
||||
|
||||
.select2-container--open .select2-dropdown--above {
|
||||
border-bottom: none;
|
||||
border-bottom-left-radius: 0;
|
||||
border-bottom-right-radius: 0; }
|
||||
|
||||
.select2-container--open .select2-dropdown--below {
|
||||
border-top: none;
|
||||
border-top-left-radius: 0;
|
||||
border-top-right-radius: 0; }
|
||||
|
||||
.select2-search--dropdown {
|
||||
display: block;
|
||||
padding: 4px; }
|
||||
.select2-search--dropdown .select2-search__field {
|
||||
padding: 4px;
|
||||
width: 100%;
|
||||
box-sizing: border-box; }
|
||||
.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button {
|
||||
-webkit-appearance: none; }
|
||||
.select2-search--dropdown.select2-search--hide {
|
||||
display: none; }
|
||||
|
||||
.select2-close-mask {
|
||||
border: 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: block;
|
||||
position: fixed;
|
||||
left: 0;
|
||||
top: 0;
|
||||
min-height: 100%;
|
||||
min-width: 100%;
|
||||
height: auto;
|
||||
width: auto;
|
||||
opacity: 0;
|
||||
z-index: 99;
|
||||
background-color: #fff;
|
||||
filter: alpha(opacity=0); }
|
||||
|
||||
.select2-hidden-accessible {
|
||||
border: 0 !important;
|
||||
clip: rect(0 0 0 0) !important;
|
||||
height: 1px !important;
|
||||
margin: -1px !important;
|
||||
overflow: hidden !important;
|
||||
padding: 0 !important;
|
||||
position: absolute !important;
|
||||
width: 1px !important; }
|
||||
|
||||
.select2-container--default .select2-selection--single {
|
||||
background-color: #fff;
|
||||
border: 1px solid #aaa;
|
||||
border-radius: 4px; }
|
||||
.select2-container--default .select2-selection--single .select2-selection__rendered {
|
||||
color: #444;
|
||||
line-height: 28px; }
|
||||
.select2-container--default .select2-selection--single .select2-selection__clear {
|
||||
cursor: pointer;
|
||||
float: right;
|
||||
font-weight: bold; }
|
||||
.select2-container--default .select2-selection--single .select2-selection__placeholder {
|
||||
color: #999; }
|
||||
.select2-container--default .select2-selection--single .select2-selection__arrow {
|
||||
height: 26px;
|
||||
position: absolute;
|
||||
top: 1px;
|
||||
right: 1px;
|
||||
width: 20px; }
|
||||
.select2-container--default .select2-selection--single .select2-selection__arrow b {
|
||||
border-color: #888 transparent transparent transparent;
|
||||
border-style: solid;
|
||||
border-width: 5px 4px 0 4px;
|
||||
height: 0;
|
||||
left: 50%;
|
||||
margin-left: -4px;
|
||||
margin-top: -2px;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
width: 0; }
|
||||
|
||||
.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__clear {
|
||||
float: left; }
|
||||
|
||||
.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__arrow {
|
||||
left: 1px;
|
||||
right: auto; }
|
||||
|
||||
.select2-container--default.select2-container--disabled .select2-selection--single {
|
||||
background-color: #eee;
|
||||
cursor: default; }
|
||||
.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear {
|
||||
display: none; }
|
||||
|
||||
.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
|
||||
border-color: transparent transparent #888 transparent;
|
||||
border-width: 0 4px 5px 4px; }
|
||||
|
||||
.select2-container--default .select2-selection--multiple {
|
||||
background-color: white;
|
||||
border: 1px solid #aaa;
|
||||
border-radius: 4px;
|
||||
cursor: text; }
|
||||
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
|
||||
box-sizing: border-box;
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0 5px;
|
||||
width: 100%; }
|
||||
.select2-container--default .select2-selection--multiple .select2-selection__rendered li {
|
||||
list-style: none; }
|
||||
.select2-container--default .select2-selection--multiple .select2-selection__placeholder {
|
||||
color: #999;
|
||||
margin-top: 5px;
|
||||
float: left; }
|
||||
.select2-container--default .select2-selection--multiple .select2-selection__clear {
|
||||
cursor: pointer;
|
||||
float: right;
|
||||
font-weight: bold;
|
||||
margin-top: 5px;
|
||||
margin-right: 10px; }
|
||||
.select2-container--default .select2-selection--multiple .select2-selection__choice {
|
||||
background-color: #e4e4e4;
|
||||
border: 1px solid #aaa;
|
||||
border-radius: 4px;
|
||||
cursor: default;
|
||||
float: left;
|
||||
margin-right: 5px;
|
||||
margin-top: 5px;
|
||||
padding: 0 5px; }
|
||||
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
|
||||
color: #999;
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
font-weight: bold;
|
||||
margin-right: 2px; }
|
||||
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
|
||||
color: #333; }
|
||||
|
||||
.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice, .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__placeholder, .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-search--inline {
|
||||
float: right; }
|
||||
|
||||
.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
|
||||
margin-left: 5px;
|
||||
margin-right: auto; }
|
||||
|
||||
.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove {
|
||||
margin-left: 2px;
|
||||
margin-right: auto; }
|
||||
|
||||
.select2-container--default.select2-container--focus .select2-selection--multiple {
|
||||
border: solid black 1px;
|
||||
outline: 0; }
|
||||
|
||||
.select2-container--default.select2-container--disabled .select2-selection--multiple {
|
||||
background-color: #eee;
|
||||
cursor: default; }
|
||||
|
||||
.select2-container--default.select2-container--disabled .select2-selection__choice__remove {
|
||||
display: none; }
|
||||
|
||||
.select2-container--default.select2-container--open.select2-container--above .select2-selection--single, .select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple {
|
||||
border-top-left-radius: 0;
|
||||
border-top-right-radius: 0; }
|
||||
|
||||
.select2-container--default.select2-container--open.select2-container--below .select2-selection--single, .select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple {
|
||||
border-bottom-left-radius: 0;
|
||||
border-bottom-right-radius: 0; }
|
||||
|
||||
.select2-container--default .select2-search--dropdown .select2-search__field {
|
||||
border: 1px solid #aaa; }
|
||||
|
||||
.select2-container--default .select2-search--inline .select2-search__field {
|
||||
background: transparent;
|
||||
border: none;
|
||||
outline: 0;
|
||||
box-shadow: none;
|
||||
-webkit-appearance: textfield; }
|
||||
|
||||
.select2-container--default .select2-results > .select2-results__options {
|
||||
max-height: 200px;
|
||||
overflow-y: auto; }
|
||||
|
||||
.select2-container--default .select2-results__option[role=group] {
|
||||
padding: 0; }
|
||||
|
||||
.select2-container--default .select2-results__option[aria-disabled=true] {
|
||||
color: #999; }
|
||||
|
||||
.select2-container--default .select2-results__option[data-selected=true] {
|
||||
background-color: #ddd; }
|
||||
|
||||
.select2-container--default .select2-results__option .select2-results__option {
|
||||
padding-left: 1em; }
|
||||
.select2-container--default .select2-results__option .select2-results__option .select2-results__group {
|
||||
padding-left: 0; }
|
||||
.select2-container--default .select2-results__option .select2-results__option .select2-results__option {
|
||||
margin-left: -1em;
|
||||
padding-left: 2em; }
|
||||
.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
|
||||
margin-left: -2em;
|
||||
padding-left: 3em; }
|
||||
.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
|
||||
margin-left: -3em;
|
||||
padding-left: 4em; }
|
||||
.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
|
||||
margin-left: -4em;
|
||||
padding-left: 5em; }
|
||||
.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
|
||||
margin-left: -5em;
|
||||
padding-left: 6em; }
|
||||
|
||||
.select2-container--default .select2-results__option--highlighted[data-selected] {
|
||||
background-color: #5897fb;
|
||||
color: white; }
|
||||
|
||||
.select2-container--default .select2-results__group {
|
||||
cursor: default;
|
||||
display: block;
|
||||
padding: 6px; }
|
||||
|
||||
.select2-container--classic .select2-selection--single {
|
||||
background-color: #f7f7f7;
|
||||
border: 1px solid #aaa;
|
||||
border-radius: 4px;
|
||||
outline: 0;
|
||||
background-image: -webkit-linear-gradient(top, white 50%, #eeeeee 100%);
|
||||
background-image: -o-linear-gradient(top, white 50%, #eeeeee 100%);
|
||||
background-image: linear-gradient(to bottom, white 50%, #eeeeee 100%);
|
||||
background-repeat: repeat-x;
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0); }
|
||||
.select2-container--classic .select2-selection--single:focus {
|
||||
border: 1px solid #5897fb; }
|
||||
.select2-container--classic .select2-selection--single .select2-selection__rendered {
|
||||
color: #444;
|
||||
line-height: 28px; }
|
||||
.select2-container--classic .select2-selection--single .select2-selection__clear {
|
||||
cursor: pointer;
|
||||
float: right;
|
||||
font-weight: bold;
|
||||
margin-right: 10px; }
|
||||
.select2-container--classic .select2-selection--single .select2-selection__placeholder {
|
||||
color: #999; }
|
||||
.select2-container--classic .select2-selection--single .select2-selection__arrow {
|
||||
background-color: #ddd;
|
||||
border: none;
|
||||
border-left: 1px solid #aaa;
|
||||
border-top-right-radius: 4px;
|
||||
border-bottom-right-radius: 4px;
|
||||
height: 26px;
|
||||
position: absolute;
|
||||
top: 1px;
|
||||
right: 1px;
|
||||
width: 20px;
|
||||
background-image: -webkit-linear-gradient(top, #eeeeee 50%, #cccccc 100%);
|
||||
background-image: -o-linear-gradient(top, #eeeeee 50%, #cccccc 100%);
|
||||
background-image: linear-gradient(to bottom, #eeeeee 50%, #cccccc 100%);
|
||||
background-repeat: repeat-x;
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFCCCCCC', GradientType=0); }
|
||||
.select2-container--classic .select2-selection--single .select2-selection__arrow b {
|
||||
border-color: #888 transparent transparent transparent;
|
||||
border-style: solid;
|
||||
border-width: 5px 4px 0 4px;
|
||||
height: 0;
|
||||
left: 50%;
|
||||
margin-left: -4px;
|
||||
margin-top: -2px;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
width: 0; }
|
||||
|
||||
.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__clear {
|
||||
float: left; }
|
||||
|
||||
.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__arrow {
|
||||
border: none;
|
||||
border-right: 1px solid #aaa;
|
||||
border-radius: 0;
|
||||
border-top-left-radius: 4px;
|
||||
border-bottom-left-radius: 4px;
|
||||
left: 1px;
|
||||
right: auto; }
|
||||
|
||||
.select2-container--classic.select2-container--open .select2-selection--single {
|
||||
border: 1px solid #5897fb; }
|
||||
.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow {
|
||||
background: transparent;
|
||||
border: none; }
|
||||
.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b {
|
||||
border-color: transparent transparent #888 transparent;
|
||||
border-width: 0 4px 5px 4px; }
|
||||
|
||||
.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single {
|
||||
border-top: none;
|
||||
border-top-left-radius: 0;
|
||||
border-top-right-radius: 0;
|
||||
background-image: -webkit-linear-gradient(top, white 0%, #eeeeee 50%);
|
||||
background-image: -o-linear-gradient(top, white 0%, #eeeeee 50%);
|
||||
background-image: linear-gradient(to bottom, white 0%, #eeeeee 50%);
|
||||
background-repeat: repeat-x;
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0); }
|
||||
|
||||
.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single {
|
||||
border-bottom: none;
|
||||
border-bottom-left-radius: 0;
|
||||
border-bottom-right-radius: 0;
|
||||
background-image: -webkit-linear-gradient(top, #eeeeee 50%, white 100%);
|
||||
background-image: -o-linear-gradient(top, #eeeeee 50%, white 100%);
|
||||
background-image: linear-gradient(to bottom, #eeeeee 50%, white 100%);
|
||||
background-repeat: repeat-x;
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFFFFFFF', GradientType=0); }
|
||||
|
||||
.select2-container--classic .select2-selection--multiple {
|
||||
background-color: white;
|
||||
border: 1px solid #aaa;
|
||||
border-radius: 4px;
|
||||
cursor: text;
|
||||
outline: 0; }
|
||||
.select2-container--classic .select2-selection--multiple:focus {
|
||||
border: 1px solid #5897fb; }
|
||||
.select2-container--classic .select2-selection--multiple .select2-selection__rendered {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0 5px; }
|
||||
.select2-container--classic .select2-selection--multiple .select2-selection__clear {
|
||||
display: none; }
|
||||
.select2-container--classic .select2-selection--multiple .select2-selection__choice {
|
||||
background-color: #e4e4e4;
|
||||
border: 1px solid #aaa;
|
||||
border-radius: 4px;
|
||||
cursor: default;
|
||||
float: left;
|
||||
margin-right: 5px;
|
||||
margin-top: 5px;
|
||||
padding: 0 5px; }
|
||||
.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove {
|
||||
color: #888;
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
font-weight: bold;
|
||||
margin-right: 2px; }
|
||||
.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover {
|
||||
color: #555; }
|
||||
|
||||
.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
|
||||
float: right; }
|
||||
|
||||
.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
|
||||
margin-left: 5px;
|
||||
margin-right: auto; }
|
||||
|
||||
.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove {
|
||||
margin-left: 2px;
|
||||
margin-right: auto; }
|
||||
|
||||
.select2-container--classic.select2-container--open .select2-selection--multiple {
|
||||
border: 1px solid #5897fb; }
|
||||
|
||||
.select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple {
|
||||
border-top: none;
|
||||
border-top-left-radius: 0;
|
||||
border-top-right-radius: 0; }
|
||||
|
||||
.select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple {
|
||||
border-bottom: none;
|
||||
border-bottom-left-radius: 0;
|
||||
border-bottom-right-radius: 0; }
|
||||
|
||||
.select2-container--classic .select2-search--dropdown .select2-search__field {
|
||||
border: 1px solid #aaa;
|
||||
outline: 0; }
|
||||
|
||||
.select2-container--classic .select2-search--inline .select2-search__field {
|
||||
outline: 0;
|
||||
box-shadow: none; }
|
||||
|
||||
.select2-container--classic .select2-dropdown {
|
||||
background-color: white;
|
||||
border: 1px solid transparent; }
|
||||
|
||||
.select2-container--classic .select2-dropdown--above {
|
||||
border-bottom: none; }
|
||||
|
||||
.select2-container--classic .select2-dropdown--below {
|
||||
border-top: none; }
|
||||
|
||||
.select2-container--classic .select2-results > .select2-results__options {
|
||||
max-height: 200px;
|
||||
overflow-y: auto; }
|
||||
|
||||
.select2-container--classic .select2-results__option[role=group] {
|
||||
padding: 0; }
|
||||
|
||||
.select2-container--classic .select2-results__option[aria-disabled=true] {
|
||||
color: grey; }
|
||||
|
||||
.select2-container--classic .select2-results__option--highlighted[data-selected] {
|
||||
background-color: #3875d7;
|
||||
color: white; }
|
||||
|
||||
.select2-container--classic .select2-results__group {
|
||||
cursor: default;
|
||||
display: block;
|
||||
padding: 6px; }
|
||||
|
||||
.select2-container--classic.select2-container--open .select2-dropdown {
|
||||
border-color: #5897fb; }
|
||||
1
wp-content/themes/hitmag/inc/kirki/assets/vendor/selectWoo/css/select2.min.css
vendored
Normal file
484
wp-content/themes/hitmag/inc/kirki/assets/vendor/selectWoo/css/selectWoo.css
vendored
Normal file
|
|
@ -0,0 +1,484 @@
|
|||
.select2-container {
|
||||
box-sizing: border-box;
|
||||
display: inline-block;
|
||||
margin: 0;
|
||||
position: relative;
|
||||
vertical-align: middle; }
|
||||
.select2-container .select2-selection--single {
|
||||
box-sizing: border-box;
|
||||
cursor: pointer;
|
||||
display: block;
|
||||
height: 28px;
|
||||
user-select: none;
|
||||
-webkit-user-select: none; }
|
||||
.select2-container .select2-selection--single .select2-selection__rendered {
|
||||
display: block;
|
||||
padding-left: 8px;
|
||||
padding-right: 20px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap; }
|
||||
.select2-container .select2-selection--single .select2-selection__clear {
|
||||
position: relative; }
|
||||
.select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered {
|
||||
padding-right: 8px;
|
||||
padding-left: 20px; }
|
||||
.select2-container .select2-selection--multiple {
|
||||
box-sizing: border-box;
|
||||
cursor: pointer;
|
||||
display: block;
|
||||
min-height: 32px;
|
||||
user-select: none;
|
||||
-webkit-user-select: none; }
|
||||
.select2-container .select2-selection--multiple .select2-selection__rendered {
|
||||
display: inline-block;
|
||||
overflow: hidden;
|
||||
padding-left: 8px;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap; }
|
||||
.select2-container .select2-search--inline {
|
||||
float: left; }
|
||||
.select2-container .select2-search--inline .select2-search__field {
|
||||
box-sizing: border-box;
|
||||
border: none;
|
||||
font-size: 100%;
|
||||
margin-top: 5px;
|
||||
padding: 0; }
|
||||
.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button {
|
||||
-webkit-appearance: none; }
|
||||
|
||||
.select2-dropdown {
|
||||
background-color: white;
|
||||
border: 1px solid #aaa;
|
||||
border-radius: 4px;
|
||||
box-sizing: border-box;
|
||||
display: block;
|
||||
position: absolute;
|
||||
left: -100000px;
|
||||
width: 100%;
|
||||
z-index: 1051; }
|
||||
|
||||
.select2-results {
|
||||
display: block; }
|
||||
|
||||
.select2-results__options {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0; }
|
||||
|
||||
.select2-results__option {
|
||||
padding: 6px;
|
||||
user-select: none;
|
||||
-webkit-user-select: none; }
|
||||
.select2-results__option[data-selected] {
|
||||
cursor: pointer; }
|
||||
|
||||
.select2-container--open .select2-dropdown {
|
||||
left: 0; }
|
||||
|
||||
.select2-container--open .select2-dropdown--above {
|
||||
border-bottom: none;
|
||||
border-bottom-left-radius: 0;
|
||||
border-bottom-right-radius: 0; }
|
||||
|
||||
.select2-container--open .select2-dropdown--below {
|
||||
border-top: none;
|
||||
border-top-left-radius: 0;
|
||||
border-top-right-radius: 0; }
|
||||
|
||||
.select2-search--dropdown {
|
||||
display: block;
|
||||
padding: 4px; }
|
||||
.select2-search--dropdown .select2-search__field {
|
||||
padding: 4px;
|
||||
width: 100%;
|
||||
box-sizing: border-box; }
|
||||
.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button {
|
||||
-webkit-appearance: none; }
|
||||
.select2-search--dropdown.select2-search--hide {
|
||||
display: none; }
|
||||
|
||||
.select2-close-mask {
|
||||
border: 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: block;
|
||||
position: fixed;
|
||||
left: 0;
|
||||
top: 0;
|
||||
min-height: 100%;
|
||||
min-width: 100%;
|
||||
height: auto;
|
||||
width: auto;
|
||||
opacity: 0;
|
||||
z-index: 99;
|
||||
background-color: #fff;
|
||||
filter: alpha(opacity=0); }
|
||||
|
||||
.select2-hidden-accessible {
|
||||
border: 0 !important;
|
||||
clip: rect(0 0 0 0) !important;
|
||||
height: 1px !important;
|
||||
margin: -1px !important;
|
||||
overflow: hidden !important;
|
||||
padding: 0 !important;
|
||||
position: absolute !important;
|
||||
width: 1px !important; }
|
||||
|
||||
.select2-container--default .select2-selection--single {
|
||||
background-color: #fff;
|
||||
border: 1px solid #aaa;
|
||||
border-radius: 4px; }
|
||||
.select2-container--default .select2-selection--single .select2-selection__rendered {
|
||||
color: #444;
|
||||
line-height: 28px; }
|
||||
.select2-container--default .select2-selection--single .select2-selection__clear {
|
||||
cursor: pointer;
|
||||
float: right;
|
||||
font-weight: bold; }
|
||||
.select2-container--default .select2-selection--single .select2-selection__placeholder {
|
||||
color: #999; }
|
||||
.select2-container--default .select2-selection--single .select2-selection__arrow {
|
||||
height: 26px;
|
||||
position: absolute;
|
||||
top: 1px;
|
||||
right: 1px;
|
||||
width: 20px; }
|
||||
.select2-container--default .select2-selection--single .select2-selection__arrow b {
|
||||
border-color: #888 transparent transparent transparent;
|
||||
border-style: solid;
|
||||
border-width: 5px 4px 0 4px;
|
||||
height: 0;
|
||||
left: 50%;
|
||||
margin-left: -4px;
|
||||
margin-top: -2px;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
width: 0; }
|
||||
|
||||
.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__clear {
|
||||
float: left; }
|
||||
|
||||
.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__arrow {
|
||||
left: 1px;
|
||||
right: auto; }
|
||||
|
||||
.select2-container--default.select2-container--disabled .select2-selection--single {
|
||||
background-color: #eee;
|
||||
cursor: default; }
|
||||
.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear {
|
||||
display: none; }
|
||||
|
||||
.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
|
||||
border-color: transparent transparent #888 transparent;
|
||||
border-width: 0 4px 5px 4px; }
|
||||
|
||||
.select2-container--default .select2-selection--multiple {
|
||||
background-color: white;
|
||||
border: 1px solid #aaa;
|
||||
border-radius: 4px;
|
||||
cursor: text; }
|
||||
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
|
||||
box-sizing: border-box;
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0 5px;
|
||||
width: 100%; }
|
||||
.select2-container--default .select2-selection--multiple .select2-selection__rendered li {
|
||||
list-style: none; }
|
||||
.select2-container--default .select2-selection--multiple .select2-selection__placeholder {
|
||||
color: #999;
|
||||
margin-top: 5px;
|
||||
float: left; }
|
||||
.select2-container--default .select2-selection--multiple .select2-selection__clear {
|
||||
cursor: pointer;
|
||||
float: right;
|
||||
font-weight: bold;
|
||||
margin-top: 5px;
|
||||
margin-right: 10px; }
|
||||
.select2-container--default .select2-selection--multiple .select2-selection__choice {
|
||||
background-color: #e4e4e4;
|
||||
border: 1px solid #aaa;
|
||||
border-radius: 4px;
|
||||
cursor: default;
|
||||
float: left;
|
||||
margin-right: 5px;
|
||||
margin-top: 5px;
|
||||
padding: 0 5px; }
|
||||
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
|
||||
color: #999;
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
font-weight: bold;
|
||||
margin-right: 2px; }
|
||||
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
|
||||
color: #333; }
|
||||
|
||||
.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice, .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__placeholder, .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-search--inline {
|
||||
float: right; }
|
||||
|
||||
.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
|
||||
margin-left: 5px;
|
||||
margin-right: auto; }
|
||||
|
||||
.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove {
|
||||
margin-left: 2px;
|
||||
margin-right: auto; }
|
||||
|
||||
.select2-container--default.select2-container--focus .select2-selection--multiple {
|
||||
border: solid black 1px;
|
||||
outline: 0; }
|
||||
|
||||
.select2-container--default.select2-container--disabled .select2-selection--multiple {
|
||||
background-color: #eee;
|
||||
cursor: default; }
|
||||
|
||||
.select2-container--default.select2-container--disabled .select2-selection__choice__remove {
|
||||
display: none; }
|
||||
|
||||
.select2-container--default.select2-container--open.select2-container--above .select2-selection--single, .select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple {
|
||||
border-top-left-radius: 0;
|
||||
border-top-right-radius: 0; }
|
||||
|
||||
.select2-container--default.select2-container--open.select2-container--below .select2-selection--single, .select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple {
|
||||
border-bottom-left-radius: 0;
|
||||
border-bottom-right-radius: 0; }
|
||||
|
||||
.select2-container--default .select2-search--dropdown .select2-search__field {
|
||||
border: 1px solid #aaa; }
|
||||
|
||||
.select2-container--default .select2-search--inline .select2-search__field {
|
||||
background: transparent;
|
||||
border: none;
|
||||
outline: 0;
|
||||
box-shadow: none;
|
||||
-webkit-appearance: textfield; }
|
||||
|
||||
.select2-container--default .select2-results > .select2-results__options {
|
||||
max-height: 200px;
|
||||
overflow-y: auto; }
|
||||
|
||||
.select2-container--default .select2-results__option[role=group] {
|
||||
padding: 0; }
|
||||
|
||||
.select2-container--default .select2-results__option[aria-disabled=true] {
|
||||
color: #999; }
|
||||
|
||||
.select2-container--default .select2-results__option[data-selected=true] {
|
||||
background-color: #ddd; }
|
||||
|
||||
.select2-container--default .select2-results__option .select2-results__option {
|
||||
padding-left: 1em; }
|
||||
.select2-container--default .select2-results__option .select2-results__option .select2-results__group {
|
||||
padding-left: 0; }
|
||||
.select2-container--default .select2-results__option .select2-results__option .select2-results__option {
|
||||
margin-left: -1em;
|
||||
padding-left: 2em; }
|
||||
.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
|
||||
margin-left: -2em;
|
||||
padding-left: 3em; }
|
||||
.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
|
||||
margin-left: -3em;
|
||||
padding-left: 4em; }
|
||||
.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
|
||||
margin-left: -4em;
|
||||
padding-left: 5em; }
|
||||
.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
|
||||
margin-left: -5em;
|
||||
padding-left: 6em; }
|
||||
|
||||
.select2-container--default .select2-results__option--highlighted[data-selected] {
|
||||
background-color: #5897fb;
|
||||
color: white; }
|
||||
|
||||
.select2-container--default .select2-results__group {
|
||||
cursor: default;
|
||||
display: block;
|
||||
padding: 6px; }
|
||||
|
||||
.select2-container--classic .select2-selection--single {
|
||||
background-color: #f7f7f7;
|
||||
border: 1px solid #aaa;
|
||||
border-radius: 4px;
|
||||
outline: 0;
|
||||
background-image: -webkit-linear-gradient(top, white 50%, #eeeeee 100%);
|
||||
background-image: -o-linear-gradient(top, white 50%, #eeeeee 100%);
|
||||
background-image: linear-gradient(to bottom, white 50%, #eeeeee 100%);
|
||||
background-repeat: repeat-x;
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0); }
|
||||
.select2-container--classic .select2-selection--single:focus {
|
||||
border: 1px solid #5897fb; }
|
||||
.select2-container--classic .select2-selection--single .select2-selection__rendered {
|
||||
color: #444;
|
||||
line-height: 28px; }
|
||||
.select2-container--classic .select2-selection--single .select2-selection__clear {
|
||||
cursor: pointer;
|
||||
float: right;
|
||||
font-weight: bold;
|
||||
margin-right: 10px; }
|
||||
.select2-container--classic .select2-selection--single .select2-selection__placeholder {
|
||||
color: #999; }
|
||||
.select2-container--classic .select2-selection--single .select2-selection__arrow {
|
||||
background-color: #ddd;
|
||||
border: none;
|
||||
border-left: 1px solid #aaa;
|
||||
border-top-right-radius: 4px;
|
||||
border-bottom-right-radius: 4px;
|
||||
height: 26px;
|
||||
position: absolute;
|
||||
top: 1px;
|
||||
right: 1px;
|
||||
width: 20px;
|
||||
background-image: -webkit-linear-gradient(top, #eeeeee 50%, #cccccc 100%);
|
||||
background-image: -o-linear-gradient(top, #eeeeee 50%, #cccccc 100%);
|
||||
background-image: linear-gradient(to bottom, #eeeeee 50%, #cccccc 100%);
|
||||
background-repeat: repeat-x;
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFCCCCCC', GradientType=0); }
|
||||
.select2-container--classic .select2-selection--single .select2-selection__arrow b {
|
||||
border-color: #888 transparent transparent transparent;
|
||||
border-style: solid;
|
||||
border-width: 5px 4px 0 4px;
|
||||
height: 0;
|
||||
left: 50%;
|
||||
margin-left: -4px;
|
||||
margin-top: -2px;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
width: 0; }
|
||||
|
||||
.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__clear {
|
||||
float: left; }
|
||||
|
||||
.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__arrow {
|
||||
border: none;
|
||||
border-right: 1px solid #aaa;
|
||||
border-radius: 0;
|
||||
border-top-left-radius: 4px;
|
||||
border-bottom-left-radius: 4px;
|
||||
left: 1px;
|
||||
right: auto; }
|
||||
|
||||
.select2-container--classic.select2-container--open .select2-selection--single {
|
||||
border: 1px solid #5897fb; }
|
||||
.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow {
|
||||
background: transparent;
|
||||
border: none; }
|
||||
.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b {
|
||||
border-color: transparent transparent #888 transparent;
|
||||
border-width: 0 4px 5px 4px; }
|
||||
|
||||
.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single {
|
||||
border-top: none;
|
||||
border-top-left-radius: 0;
|
||||
border-top-right-radius: 0;
|
||||
background-image: -webkit-linear-gradient(top, white 0%, #eeeeee 50%);
|
||||
background-image: -o-linear-gradient(top, white 0%, #eeeeee 50%);
|
||||
background-image: linear-gradient(to bottom, white 0%, #eeeeee 50%);
|
||||
background-repeat: repeat-x;
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0); }
|
||||
|
||||
.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single {
|
||||
border-bottom: none;
|
||||
border-bottom-left-radius: 0;
|
||||
border-bottom-right-radius: 0;
|
||||
background-image: -webkit-linear-gradient(top, #eeeeee 50%, white 100%);
|
||||
background-image: -o-linear-gradient(top, #eeeeee 50%, white 100%);
|
||||
background-image: linear-gradient(to bottom, #eeeeee 50%, white 100%);
|
||||
background-repeat: repeat-x;
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFFFFFFF', GradientType=0); }
|
||||
|
||||
.select2-container--classic .select2-selection--multiple {
|
||||
background-color: white;
|
||||
border: 1px solid #aaa;
|
||||
border-radius: 4px;
|
||||
cursor: text;
|
||||
outline: 0; }
|
||||
.select2-container--classic .select2-selection--multiple:focus {
|
||||
border: 1px solid #5897fb; }
|
||||
.select2-container--classic .select2-selection--multiple .select2-selection__rendered {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0 5px; }
|
||||
.select2-container--classic .select2-selection--multiple .select2-selection__clear {
|
||||
display: none; }
|
||||
.select2-container--classic .select2-selection--multiple .select2-selection__choice {
|
||||
background-color: #e4e4e4;
|
||||
border: 1px solid #aaa;
|
||||
border-radius: 4px;
|
||||
cursor: default;
|
||||
float: left;
|
||||
margin-right: 5px;
|
||||
margin-top: 5px;
|
||||
padding: 0 5px; }
|
||||
.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove {
|
||||
color: #888;
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
font-weight: bold;
|
||||
margin-right: 2px; }
|
||||
.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover {
|
||||
color: #555; }
|
||||
|
||||
.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
|
||||
float: right; }
|
||||
|
||||
.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
|
||||
margin-left: 5px;
|
||||
margin-right: auto; }
|
||||
|
||||
.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove {
|
||||
margin-left: 2px;
|
||||
margin-right: auto; }
|
||||
|
||||
.select2-container--classic.select2-container--open .select2-selection--multiple {
|
||||
border: 1px solid #5897fb; }
|
||||
|
||||
.select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple {
|
||||
border-top: none;
|
||||
border-top-left-radius: 0;
|
||||
border-top-right-radius: 0; }
|
||||
|
||||
.select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple {
|
||||
border-bottom: none;
|
||||
border-bottom-left-radius: 0;
|
||||
border-bottom-right-radius: 0; }
|
||||
|
||||
.select2-container--classic .select2-search--dropdown .select2-search__field {
|
||||
border: 1px solid #aaa;
|
||||
outline: 0; }
|
||||
|
||||
.select2-container--classic .select2-search--inline .select2-search__field {
|
||||
outline: 0;
|
||||
box-shadow: none; }
|
||||
|
||||
.select2-container--classic .select2-dropdown {
|
||||
background-color: white;
|
||||
border: 1px solid transparent; }
|
||||
|
||||
.select2-container--classic .select2-dropdown--above {
|
||||
border-bottom: none; }
|
||||
|
||||
.select2-container--classic .select2-dropdown--below {
|
||||
border-top: none; }
|
||||
|
||||
.select2-container--classic .select2-results > .select2-results__options {
|
||||
max-height: 200px;
|
||||
overflow-y: auto; }
|
||||
|
||||
.select2-container--classic .select2-results__option[role=group] {
|
||||
padding: 0; }
|
||||
|
||||
.select2-container--classic .select2-results__option[aria-disabled=true] {
|
||||
color: grey; }
|
||||
|
||||
.select2-container--classic .select2-results__option--highlighted[data-selected] {
|
||||
background-color: #3875d7;
|
||||
color: white; }
|
||||
|
||||
.select2-container--classic .select2-results__group {
|
||||
cursor: default;
|
||||
display: block;
|
||||
padding: 6px; }
|
||||
|
||||
.select2-container--classic.select2-container--open .select2-dropdown {
|
||||
border-color: #5897fb; }
|
||||
1
wp-content/themes/hitmag/inc/kirki/assets/vendor/selectWoo/css/selectWoo.min.css
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
/*! Select2 1.0.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||
|
||||
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/ar",[],function(){return{errorLoading:function(){return"لا يمكن تحميل النتائج"},inputTooLong:function(e){var t=e.input.length-e.maximum;return"الرجاء حذف "+t+" عناصر"},inputTooShort:function(e){var t=e.minimum-e.input.length;return"الرجاء إضافة "+t+" عناصر"},loadingMore:function(){return"جاري تحميل نتائج إضافية..."},maximumSelected:function(e){return"تستطيع إختيار "+e.maximum+" بنود فقط"},noResults:function(){return"لم يتم العثور على أي نتائج"},searching:function(){return"جاري البحث…"}}}),{define:e.define,require:e.require}})();
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
/*! Select2 1.0.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||
|
||||
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/az",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum;return t+" simvol silin"},inputTooShort:function(e){var t=e.minimum-e.input.length;return t+" simvol daxil edin"},loadingMore:function(){return"Daha çox nəticə yüklənir…"},maximumSelected:function(e){return"Sadəcə "+e.maximum+" element seçə bilərsiniz"},noResults:function(){return"Nəticə tapılmadı"},searching:function(){return"Axtarılır…"}}}),{define:e.define,require:e.require}})();
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
/*! Select2 1.0.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||
|
||||
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/bg",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum,n="Моля въведете с "+t+" по-малко символ";return t>1&&(n+="a"),n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Моля въведете още "+t+" символ";return t>1&&(n+="a"),n},loadingMore:function(){return"Зареждат се още…"},maximumSelected:function(e){var t="Можете да направите до "+e.maximum+" ";return e.maximum>1?t+="избора":t+="избор",t},noResults:function(){return"Няма намерени съвпадения"},searching:function(){return"Търсене…"}}}),{define:e.define,require:e.require}})();
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
/*! Select2 1.0.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||
|
||||
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/ca",[],function(){return{errorLoading:function(){return"La càrrega ha fallat"},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Si us plau, elimina "+t+" car";return t==1?n+="àcter":n+="àcters",n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Si us plau, introdueix "+t+" car";return t==1?n+="àcter":n+="àcters",n},loadingMore:function(){return"Carregant més resultats…"},maximumSelected:function(e){var t="Només es pot seleccionar "+e.maximum+" element";return e.maximum!=1&&(t+="s"),t},noResults:function(){return"No s'han trobat resultats"},searching:function(){return"Cercant…"}}}),{define:e.define,require:e.require}})();
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
/*! Select2 1.0.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||
|
||||
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/cs",[],function(){function e(e,t){switch(e){case 2:return t?"dva":"dvě";case 3:return"tři";case 4:return"čtyři"}return""}return{errorLoading:function(){return"Výsledky nemohly být načteny."},inputTooLong:function(t){var n=t.input.length-t.maximum;return n==1?"Prosím zadejte o jeden znak méně":n<=4?"Prosím zadejte o "+e(n,!0)+" znaky méně":"Prosím zadejte o "+n+" znaků méně"},inputTooShort:function(t){var n=t.minimum-t.input.length;return n==1?"Prosím zadejte ještě jeden znak":n<=4?"Prosím zadejte ještě další "+e(n,!0)+" znaky":"Prosím zadejte ještě dalších "+n+" znaků"},loadingMore:function(){return"Načítají se další výsledky…"},maximumSelected:function(t){var n=t.maximum;return n==1?"Můžete zvolit jen jednu položku":n<=4?"Můžete zvolit maximálně "+e(n,!1)+" položky":"Můžete zvolit maximálně "+n+" položek"},noResults:function(){return"Nenalezeny žádné položky"},searching:function(){return"Vyhledávání…"}}}),{define:e.define,require:e.require}})();
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
/*! Select2 1.0.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||
|
||||
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/da",[],function(){return{errorLoading:function(){return"Resultaterne kunne ikke indlæses."},inputTooLong:function(e){var t=e.input.length-e.maximum;return"Angiv venligst "+t+" tegn mindre"},inputTooShort:function(e){var t=e.minimum-e.input.length;return"Angiv venligst "+t+" tegn mere"},loadingMore:function(){return"Indlæser flere resultater…"},maximumSelected:function(e){var t="Du kan kun vælge "+e.maximum+" emne";return e.maximum!=1&&(t+="r"),t},noResults:function(){return"Ingen resultater fundet"},searching:function(){return"Søger…"}}}),{define:e.define,require:e.require}})();
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
/*! Select2 1.0.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||
|
||||
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/de",[],function(){return{errorLoading:function(){return"Die Ergebnisse konnten nicht geladen werden."},inputTooLong:function(e){var t=e.input.length-e.maximum;return"Bitte "+t+" Zeichen weniger eingeben"},inputTooShort:function(e){var t=e.minimum-e.input.length;return"Bitte "+t+" Zeichen mehr eingeben"},loadingMore:function(){return"Lade mehr Ergebnisse…"},maximumSelected:function(e){var t="Sie können nur "+e.maximum+" Eintr";return e.maximum===1?t+="ag":t+="äge",t+=" auswählen",t},noResults:function(){return"Keine Übereinstimmungen gefunden"},searching:function(){return"Suche…"}}}),{define:e.define,require:e.require}})();
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
/*! Select2 1.0.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||
|
||||
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/el",[],function(){return{errorLoading:function(){return"Τα αποτελέσματα δεν μπόρεσαν να φορτώσουν."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Παρακαλώ διαγράψτε "+t+" χαρακτήρ";return t==1&&(n+="α"),t!=1&&(n+="ες"),n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Παρακαλώ συμπληρώστε "+t+" ή περισσότερους χαρακτήρες";return n},loadingMore:function(){return"Φόρτωση περισσότερων αποτελεσμάτων…"},maximumSelected:function(e){var t="Μπορείτε να επιλέξετε μόνο "+e.maximum+" επιλογ";return e.maximum==1&&(t+="ή"),e.maximum!=1&&(t+="ές"),t},noResults:function(){return"Δεν βρέθηκαν αποτελέσματα"},searching:function(){return"Αναζήτηση…"}}}),{define:e.define,require:e.require}})();
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
/*! Select2 1.0.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||
|
||||
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Please delete "+t+" character";return t!=1&&(n+="s"),n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Please enter "+t+" or more characters";return n},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return e.maximum!=1&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"}}}),{define:e.define,require:e.require}})();
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
/*! Select2 1.0.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||
|
||||
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/es",[],function(){return{errorLoading:function(){return"La carga falló"},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Por favor, elimine "+t+" car";return t==1?n+="ácter":n+="acteres",n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Por favor, introduzca "+t+" car";return t==1?n+="ácter":n+="acteres",n},loadingMore:function(){return"Cargando más resultados…"},maximumSelected:function(e){var t="Sólo puede seleccionar "+e.maximum+" elemento";return e.maximum!=1&&(t+="s"),t},noResults:function(){return"No se encontraron resultados"},searching:function(){return"Buscando…"}}}),{define:e.define,require:e.require}})();
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
/*! Select2 1.0.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||
|
||||
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/et",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum,n="Sisesta "+t+" täht";return t!=1&&(n+="e"),n+=" vähem",n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Sisesta "+t+" täht";return t!=1&&(n+="e"),n+=" rohkem",n},loadingMore:function(){return"Laen tulemusi…"},maximumSelected:function(e){var t="Saad vaid "+e.maximum+" tulemus";return e.maximum==1?t+="e":t+="t",t+=" valida",t},noResults:function(){return"Tulemused puuduvad"},searching:function(){return"Otsin…"}}}),{define:e.define,require:e.require}})();
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
/*! Select2 1.0.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||
|
||||
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/eu",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum,n="Idatzi ";return t==1?n+="karaktere bat":n+=t+" karaktere",n+=" gutxiago",n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Idatzi ";return t==1?n+="karaktere bat":n+=t+" karaktere",n+=" gehiago",n},loadingMore:function(){return"Emaitza gehiago kargatzen…"},maximumSelected:function(e){return e.maximum===1?"Elementu bakarra hauta dezakezu":e.maximum+" elementu hauta ditzakezu soilik"},noResults:function(){return"Ez da bat datorrenik aurkitu"},searching:function(){return"Bilatzen…"}}}),{define:e.define,require:e.require}})();
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
/*! Select2 1.0.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||
|
||||
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/fa",[],function(){return{errorLoading:function(){return"امکان بارگذاری نتایج وجود ندارد."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="لطفاً "+t+" کاراکتر را حذف نمایید";return n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="لطفاً تعداد "+t+" کاراکتر یا بیشتر وارد نمایید";return n},loadingMore:function(){return"در حال بارگذاری نتایج بیشتر..."},maximumSelected:function(e){var t="شما تنها میتوانید "+e.maximum+" آیتم را انتخاب نمایید";return t},noResults:function(){return"هیچ نتیجهای یافت نشد"},searching:function(){return"در حال جستجو..."}}}),{define:e.define,require:e.require}})();
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
/*! Select2 1.0.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||
|
||||
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/fi",[],function(){return{errorLoading:function(){return"Tuloksia ei saatu ladattua."},inputTooLong:function(e){var t=e.input.length-e.maximum;return"Ole hyvä ja anna "+t+" merkkiä vähemmän"},inputTooShort:function(e){var t=e.minimum-e.input.length;return"Ole hyvä ja anna "+t+" merkkiä lisää"},loadingMore:function(){return"Ladataan lisää tuloksia…"},maximumSelected:function(e){return"Voit valita ainoastaan "+e.maximum+" kpl"},noResults:function(){return"Ei tuloksia"},searching:function(){return"Haetaan…"}}}),{define:e.define,require:e.require}})();
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
/*! Select2 1.0.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||
|
||||
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/fr",[],function(){return{errorLoading:function(){return"Les résultats ne peuvent pas être chargés."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Supprimez "+t+" caractère";return t!==1&&(n+="s"),n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Saisissez "+t+" caractère";return t!==1&&(n+="s"),n},loadingMore:function(){return"Chargement de résultats supplémentaires…"},maximumSelected:function(e){var t="Vous pouvez seulement sélectionner "+e.maximum+" élément";return e.maximum!==1&&(t+="s"),t},noResults:function(){return"Aucun résultat trouvé"},searching:function(){return"Recherche en cours…"}}}),{define:e.define,require:e.require}})();
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
/*! Select2 1.0.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||
|
||||
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/gl",[],function(){return{errorLoading:function(){return"Non foi posíbel cargar os resultados."},inputTooLong:function(e){var t=e.input.length-e.maximum;return t===1?"Elimine un carácter":"Elimine "+t+" caracteres"},inputTooShort:function(e){var t=e.minimum-e.input.length;return t===1?"Engada un carácter":"Engada "+t+" caracteres"},loadingMore:function(){return"Cargando máis resultados…"},maximumSelected:function(e){return e.maximum===1?"Só pode seleccionar un elemento":"Só pode seleccionar "+e.maximum+" elementos"},noResults:function(){return"Non se atoparon resultados"},searching:function(){return"Buscando…"}}}),{define:e.define,require:e.require}})();
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
/*! Select2 1.0.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||
|
||||
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/he",[],function(){return{errorLoading:function(){return"שגיאה בטעינת התוצאות"},inputTooLong:function(e){var t=e.input.length-e.maximum,n="נא למחוק ";return t===1?n+="תו אחד":n+=t+" תווים",n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="נא להכניס ";return t===1?n+="תו אחד":n+=t+" תווים",n+=" או יותר",n},loadingMore:function(){return"טוען תוצאות נוספות…"},maximumSelected:function(e){var t="באפשרותך לבחור עד ";return e.maximum===1?t+="פריט אחד":t+=e.maximum+" פריטים",t},noResults:function(){return"לא נמצאו תוצאות"},searching:function(){return"מחפש…"}}}),{define:e.define,require:e.require}})();
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
/*! Select2 1.0.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||
|
||||
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/hi",[],function(){return{errorLoading:function(){return"परिणामों को लोड नहीं किया जा सका।"},inputTooLong:function(e){var t=e.input.length-e.maximum,n=t+" अक्षर को हटा दें";return t>1&&(n=t+" अक्षरों को हटा दें "),n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="कृपया "+t+" या अधिक अक्षर दर्ज करें";return n},loadingMore:function(){return"अधिक परिणाम लोड हो रहे है..."},maximumSelected:function(e){var t="आप केवल "+e.maximum+" आइटम का चयन कर सकते हैं";return t},noResults:function(){return"कोई परिणाम नहीं मिला"},searching:function(){return"खोज रहा है..."}}}),{define:e.define,require:e.require}})();
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
/*! Select2 1.0.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||
|
||||
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/hr",[],function(){function e(e){var t=" "+e+" znak";return e%10<5&&e%10>0&&(e%100<5||e%100>19)?e%10>1&&(t+="a"):t+="ova",t}return{errorLoading:function(){return"Preuzimanje nije uspjelo."},inputTooLong:function(t){var n=t.input.length-t.maximum;return"Unesite "+e(n)},inputTooShort:function(t){var n=t.minimum-t.input.length;return"Unesite još "+e(n)},loadingMore:function(){return"Učitavanje rezultata…"},maximumSelected:function(e){return"Maksimalan broj odabranih stavki je "+e.maximum},noResults:function(){return"Nema rezultata"},searching:function(){return"Pretraga…"}}}),{define:e.define,require:e.require}})();
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
/*! Select2 1.0.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||
|
||||
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/hu",[],function(){return{errorLoading:function(){return"Az eredmények betöltése nem sikerült."},inputTooLong:function(e){var t=e.input.length-e.maximum;return"Túl hosszú. "+t+" karakterrel több, mint kellene."},inputTooShort:function(e){var t=e.minimum-e.input.length;return"Túl rövid. Még "+t+" karakter hiányzik."},loadingMore:function(){return"Töltés…"},maximumSelected:function(e){return"Csak "+e.maximum+" elemet lehet kiválasztani."},noResults:function(){return"Nincs találat."},searching:function(){return"Keresés…"}}}),{define:e.define,require:e.require}})();
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
/*! Select2 1.0.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||
|
||||
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/hy",[],function(){return{errorLoading:function(){return"Արդյունքները հնարավոր չէ բեռնել։"},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Խնդրում ենք հեռացնել "+t+" նշան";return n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Խնդրում ենք մուտքագրել "+t+" կամ ավել նշաններ";return n},loadingMore:function(){return"Բեռնվում են նոր արդյունքներ․․․"},maximumSelected:function(e){var t="Դուք կարող եք ընտրել առավելագույնը "+e.maximum+" կետ";return t},noResults:function(){return"Արդյունքներ չեն գտնվել"},searching:function(){return"Որոնում․․․"}}}),{define:e.define,require:e.require}})();
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
/*! Select2 1.0.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||
|
||||
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/id",[],function(){return{errorLoading:function(){return"Data tidak boleh diambil."},inputTooLong:function(e){var t=e.input.length-e.maximum;return"Hapuskan "+t+" huruf"},inputTooShort:function(e){var t=e.minimum-e.input.length;return"Masukkan "+t+" huruf lagi"},loadingMore:function(){return"Mengambil data…"},maximumSelected:function(e){return"Anda hanya dapat memilih "+e.maximum+" pilihan"},noResults:function(){return"Tidak ada data yang sesuai"},searching:function(){return"Mencari…"}}}),{define:e.define,require:e.require}})();
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
/*! Select2 1.0.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||
|
||||
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/is",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum,n="Vinsamlegast styttið texta um "+t+" staf";return t<=1?n:n+"i"},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Vinsamlegast skrifið "+t+" staf";return t>1&&(n+="i"),n+=" í viðbót",n},loadingMore:function(){return"Sæki fleiri niðurstöður…"},maximumSelected:function(e){return"Þú getur aðeins valið "+e.maximum+" atriði"},noResults:function(){return"Ekkert fannst"},searching:function(){return"Leita…"}}}),{define:e.define,require:e.require}})();
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
/*! Select2 1.0.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||
|
||||
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/it",[],function(){return{errorLoading:function(){return"I risultati non possono essere caricati."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Per favore cancella "+t+" caratter";return t!==1?n+="i":n+="e",n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Per favore inserisci "+t+" o più caratteri";return n},loadingMore:function(){return"Caricando più risultati…"},maximumSelected:function(e){var t="Puoi selezionare solo "+e.maximum+" element";return e.maximum!==1?t+="i":t+="o",t},noResults:function(){return"Nessun risultato trovato"},searching:function(){return"Sto cercando…"}}}),{define:e.define,require:e.require}})();
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
/*! Select2 1.0.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||
|
||||
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/ja",[],function(){return{errorLoading:function(){return"結果が読み込まれませんでした"},inputTooLong:function(e){var t=e.input.length-e.maximum,n=t+" 文字を削除してください";return n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="少なくとも "+t+" 文字を入力してください";return n},loadingMore:function(){return"読み込み中…"},maximumSelected:function(e){var t=e.maximum+" 件しか選択できません";return t},noResults:function(){return"対象が見つかりません"},searching:function(){return"検索しています…"}}}),{define:e.define,require:e.require}})();
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
/*! Select2 1.0.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||
|
||||
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/km",[],function(){return{errorLoading:function(){return"មិនអាចទាញយកទិន្នន័យ"},inputTooLong:function(e){var t=e.input.length-e.maximum,n="សូមលុបចេញ "+t+" អក្សរ";return n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="សូមបញ្ចូល"+t+" អក្សរ រឺ ច្រើនជាងនេះ";return n},loadingMore:function(){return"កំពុងទាញយកទិន្នន័យបន្ថែម..."},maximumSelected:function(e){var t="អ្នកអាចជ្រើសរើសបានតែ "+e.maximum+" ជម្រើសប៉ុណ្ណោះ";return t},noResults:function(){return"មិនមានលទ្ធផល"},searching:function(){return"កំពុងស្វែងរក..."}}}),{define:e.define,require:e.require}})();
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
/*! Select2 1.0.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||
|
||||
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/ko",[],function(){return{errorLoading:function(){return"결과를 불러올 수 없습니다."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="너무 깁니다. "+t+" 글자 지워주세요.";return n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="너무 짧습니다. "+t+" 글자 더 입력해주세요.";return n},loadingMore:function(){return"불러오는 중…"},maximumSelected:function(e){var t="최대 "+e.maximum+"개까지만 선택 가능합니다.";return t},noResults:function(){return"결과가 없습니다."},searching:function(){return"검색 중…"}}}),{define:e.define,require:e.require}})();
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
/*! Select2 1.0.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||
|
||||
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/lt",[],function(){function e(e,t,n,r){return e%10===1&&(e%100<11||e%100>19)?t:e%10>=2&&e%10<=9&&(e%100<11||e%100>19)?n:r}return{inputTooLong:function(t){var n=t.input.length-t.maximum,r="Pašalinkite "+n+" simbol";return r+=e(n,"į","ius","ių"),r},inputTooShort:function(t){var n=t.minimum-t.input.length,r="Įrašykite dar "+n+" simbol";return r+=e(n,"į","ius","ių"),r},loadingMore:function(){return"Kraunama daugiau rezultatų…"},maximumSelected:function(t){var n="Jūs galite pasirinkti tik "+t.maximum+" element";return n+=e(t.maximum,"ą","us","ų"),n},noResults:function(){return"Atitikmenų nerasta"},searching:function(){return"Ieškoma…"}}}),{define:e.define,require:e.require}})();
|
||||