Pressroom template verwijderd, website naar root van repo

This commit is contained in:
2020-03-22 15:30:52 +01:00
parent 2cb6a77425
commit f3d1c41e91
7620 changed files with 0 additions and 186900 deletions

View File

@@ -1,36 +0,0 @@
<?php
/**
* The template for displaying 404 pages (Page Not Found).
*
* @package ThemeGrill
* @subpackage ColorMag
* @since ColorMag 1.0
*/
get_header(); ?>
<?php do_action( 'colormag_before_body_content' ); ?>
<div id="primary">
<div id="content" class="clearfix">
<section class="error-404 not-found">
<div class="page-content">
<?php if ( ! dynamic_sidebar( 'colormag_error_404_page_sidebar' ) ) : ?>
<header class="page-header">
<h1 class="page-title"><?php _e( 'Oops! That page can&rsquo;t be found.', 'colormag' ); ?></h1>
</header>
<p><?php _e( 'It looks like nothing was found at this location. Try the search below.', 'colormag' ); ?></p>
<?php get_search_form(); ?>
<?php endif; ?>
</div><!-- .page-content -->
</section><!-- .error-404 -->
</div><!-- #content -->
</div><!-- #primary -->
<?php colormag_sidebar_select(); ?>
<?php do_action( 'colormag_after_body_content' ); ?>
<?php get_footer(); ?>

View File

@@ -1,290 +0,0 @@
@import 'variables/colors';
/*--------------------------------------------------------------
Dark CSS
--------------------------------------------------------------*/
h1,
h2,
h3,
h4,
h5,
h6 {
color: $white;
}
body {
background-color: $dark-background;
color: $color_gray_seven;
}
.dark-skin{
#site-description {
color: $white;
}
#page,
#header-text-nav-container,
.news-bar,
#main,
#secondary .widget {
background-color: $dark-page-background;
}
.news-bar {
background-color: $dark-news-background;
}
.main-small-navigation {
li {
background-color: $color_gray_one;
}
a {
color: $white;
}
}
.date-in-header {
color: $color_gray_seven;
}
.breaking-news-latest {
color: $white;
}
.search-form-top {
background-color: $dark-footer-socket;
border: 0 none;
}
.widget_featured_posts {
.single-article {
background: none;
box-shadow: 0 0 0 0 transparent;
}
.article-content {
.entry-title {
a {
color: $white;
}
}
.below-entry-meta {
.posted-on,
.byline,
.comments {
.fa {
color: $light-content;
}
}
}
}
}
.posted-on,
.byline,
.comments {
a {
color: $light-content;
}
}
.comments {
span {
color: $light-content;
}
}
.thumbnail-slider {
border-color: $dark-page-background;
}
#comments {
border-color: $color_gray_three;
}
#content {
.post {
.article-content {
.entry-title a {
color: $white;
}
.below-entry-meta {
.byline,
.comments,
.tag-links,
.edit-link,
.posted-on,
.post-views {
.fa {
color: $light-content;
}
}
.post-views {
span {
color: $light-content;
}
}
.edit-link {
a {
color: $light-content;
}
}
}
}
}
}
.single-related-posts {
.article-content {
.entry-title {
a {
color: $white;
}
}
.below-entry-meta {
.posted-on,
.comments {
.fa {
color: $light-content;
}
}
}
}
}
.post,
.search {
.entry-title {
a {
color: $white;
}
}
}
.random_posts_widget_inner_wrap,
.single-related-posts {
box-shadow: 0 0 0 0 transparent;
}
.footer-widgets-wrapper,
.footer-socket-wrapper {
border-top: 0 none;
background-color:$dark-footer-socket;
}
#colophon .tg-upper-footer-widgets .widget {
border: 0 none;
}
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
.comment-content {
background-color: $dark-page-background;
color: $color_gray_seven;
border-color: $color_gray_five;
}
.view-all-link {
background :$dark-page-background;
}
/*--------------------------------------------------------------
Header Clean layout CSS
--------------------------------------------------------------*/
#masthead {
&.colormag-header-clean {
.main-navigation {
.sub-menu,
.children {
background-color: $news-background;
}
}
.main-small-navigation {
li {
background-color:$news-background;
}
}
}
&.colormag-header-clean,
&.colormag-header-classic {
.breaking-news .newsticker a,
.social-links i.fa {
color: $color_gray_seven;
}
}
&.colormag-header-classic {
.is-sticky {
#site-navigation {
background-color: $news-background;
}
.main-small-navigation li {
background-color: $news-background;
}
}
#site-navigation {
.menu-toggle {
border-color: $color_gray_seven;
&::before {
color:$color_gray_seven;
}
}
&.main-navigation {
ul {
ul.sub-menu,
.children {
background-color: $news-background;
border-color: $color_gray_three;
li {
border-color: $color_gray_three;
}
}
}
a,
.random-post a .fa-random,
.home-icon .fa {
color: $white;
}
}
&.main-small-navigation .random-post a .fa-random,
.fa.search-top {
color: $white;
}
}
}
}
.colormag-footer--classic {
.footer-widgets-wrapper {
background-color: $medium-footer-socket;
}
.footer-socket-wrapper {
background-color: $dark-footer-socket;
}
}
.elementor {
.tg-module-wrapper {
color: $color_gray_seven;
.tg-module-title {
color: $white;
}
.tg-module-meta {
.tg-post-auther-name,
.tg-post-date,
.tg-module-comments {
a,
span {
color: $light-content;
}
}
}
}
}
}

View File

@@ -1,30 +0,0 @@
/*--------------------------------------------------------------
Classic Layout
--------------------------------------------------------------*/
.colormag-footer--classic {
.footer-widgets-area {
.widget-title {
border-bottom: 0 none;
span {
background-color: transparent !important;
padding: 0 0 6px;
position: relative;
&::before {
position: absolute;
display: block;
bottom: -1px;
content: ' ';
left: 0;
width: 25px;
height: 2px;
background-color: $primary;
}
}
}
}
.footer-socket-wrapper {
background-color: $footer-socket;
}
}

View File

@@ -1,676 +0,0 @@
#masthead {
.main-small-navigation {
ul {
&.menu-scrollbar {
overflow-y: scroll;
}
}
li {
&:hover,
&.current-page-ancestor,
&.current-menu-ancestor,
&.current-page-item,
&.current-menu-item {
> a {
color: $white;
background-color: $primary;
}
}
}
}
/*--------------------------------------------------------------
Clean Layout
--------------------------------------------------------------*/
&.colormag-header-clean {
.date-in-header {
padding-right: 20px;
}
.news-bar {
padding: 8px 0;
}
.breaking-news {
float: left;
.breaking-news-latest {
background: $news-background;
padding: 0 10px;
display: inline-block;
vertical-align: top;
color:$white;
font-weight: 400;
}
.newsticker {
padding-left: 10px;
text-align: left;
position: relative;
a {
color: $color_gray_four;
&:hover {
color: $primary;
}
}
}
}
.social-links {
i.fa {
color: $social-icon-color;
transition: color 0.35s;
font-size: 16px;
padding: 0 6px;
}
li {
&:hover {
i.fa {
color: $primary;
}
}
}
}
#header-text-nav-wrap {
padding: 30px 0;
}
.home-icon {
.fa {
font-size: 21px;
}
}
#site-navigation {
box-shadow: 0 0 0 rgba(0, 0, 0, 0 ) inset;
position: relative;
background-color:transparent;
border-top: 0 solid transparent;
z-index: 999;
.inner-wrap {
background-color: $news-background;
}
.fa.search-top {
padding: 20px;
line-height: 26px;
position: relative;
float: right;
right: 0;
}
.random-post {
position: relative;
float: right;
}
.search-form-top {
top: 100%;
}
.menu-toggle {
line-height: 26px;
&::before {
padding: 20px;
}
}
}
.main-navigation {
a {
font-weight: 500;
padding: 20px;
line-height: 26px;
}
ul {
li {
ul {
top: 100%;
li {
a {
width: auto;
padding: 10px 15px;
}
ul {
top: 0;
}
}
}
&.focus > ul {
display: block;
visibility: visible;
opacity: 1;
}
}
}
}
.main-small-navigation {
.menu-primary-container,
.nav-menu,
.menu {
padding-top: 0;
padding-top: 0;
position: absolute;
top: 100%;
width: 100%;
}
.random-post {
line-height: 26px;
a {
padding: 20px;
}
}
}
}
/*--------------------------------------------------------------
classic Layout
--------------------------------------------------------------*/
&.colormag-header-classic {
.date-in-header {
padding-right: 20px;
}
.news-bar {
padding: 8px 0;
}
.breaking-news {
float: left;
.breaking-news-latest {
background: $news-background;
padding: 0 10px;
color:$white;
font-weight: 400;
display: inline-block;
vertical-align: top;
}
.newsticker {
padding-left: 10px;
position: relative;
text-align: left;
a {
color: $color_gray_four;
&:hover {
color: $primary;
}
}
}
}
.social-links {
i.fa {
color: $social-icon-color;
transition: color 0.35s;
font-size: 16px;
padding: 0 6px;
}
li {
&:hover {
i.fa {
color: $primary;
}
}
}
}
#header-text-nav-wrap {
padding: 30px 0 20px;
#header-right-section {
display: none;
}
#header-left-section {
float: none;
text-align: center;
#header-logo-image,
#header-text {
float: none;
padding-right: 0;
}
}
}
#site-navigation {
box-shadow: 0 0 0 rgba(0, 0, 0, 0 ) inset;
position: relative;
background-color:transparent;
border-top: 0 solid transparent;
z-index: 999;
.inner-wrap {
background-color: transparent;
}
.fa.search-top {
color: $menu-link-color;
float: right;
font-size: 16px;
padding: 15px;
&:hover {
background: transparent;
color: $primary;
}
}
.menu-toggle {
line-height: 26px;
border: 1px solid $menu-link-color;
&::before {
padding: 20px;
color: $menu-link-color;;
}
&:hover {
border-color: $primary;
&::before {
color: $white;
}
}
}
}
.main-navigation {
a {
font-weight: 700;
padding: 10px 15px;
line-height: 26px;
color: $menu-link-color;
&::after {
color: inherit;
}
&:hover {
background-color: transparent;
}
}
ul {
li a {
background-color: transparent;
}
> li {
float: none;
display: inline-block;
vertical-align: top;
> a {
border-bottom: 2px solid transparent;
transition: border 0.5s ease;
}
&:hover,
&.current-menu-item,
&.current-menu-ancestor {
> a {
background-color: transparent;
border-bottom: 2px solid $primary;
}
}
}
li.focus {
>a {
border-color: $primary;
}
> ul {
opacity: 1;
visibility: visible;
}
}
ul.sub-menu {
top: 100%;
background-color: $color_gray_ten;
transition: all 0.3s ease;
display: block;
opacity: 0;
visibility: hidden;
border: 1px solid $color_gray_eight;
li {
border-bottom:1px solid $color_gray_eight;
display: block;
a {
width: auto;
padding: 10px 15px;
transition: all 0.5s ease;
border-bottom: none transparent;
}
&:hover,
&.current-menu-ancestor,
&.current-menu-item,
&.focus {
border-color: $primary;
background-color: transparent;
> a {
color: $white;
background-color: $primary;
}
}
&:last-child {
border-bottom: none transparent;
}
ul {
top: 0;
}
}
}
li.menu-item-has-children {
&:hover {
> ul.sub-menu {
opacity: 1;
visibility: visible;
}
}
}
}
.random-post {
a {
font-size: 14px;
padding: 10px 15px;
color: $menu-link-color;
&:hover {
background: transparent;
.fa-random {
color: $primary;
}
}
.fa-random {
color: $menu-link-color;
}
}
}
.home-icon {
background: none;
a {
padding: 10px 15px;
&:hover {
.fa {
color: $primary;
}
}
}
.fa {
color: $menu-link-color;
}
}
}
.main-small-navigation {
.menu-primary-container,
.nav-menu {
padding-top: 0;
padding-top: 0;
position: absolute;
top: 100%;
width: 100%;
box-shadow: 0 1px 11px rgba(0, 0, 0, 0.2);
}
.random-post {
bottom: 0;
a {
font-size: 14px;
padding: 12px 15px;
color: $menu-link-color;
.fa-random {
color: $menu-link-color;
}
&:hover {
background: transparent;
.fa-random {
color: $primary;
}
}
}
}
.menu-toggle {
background-color: $primary;
border-color: $primary;
&::before {
color: $white;
}
}
}
.is-sticky {
#site-navigation {
background-color: $white;
box-shadow: 0 5px 6px rgba(0, 0, 0, 0.1);
}
}
}
}
@media screen and (max-width: 768px) {
.better-responsive-menu{
.main-small-navigation .menu-primary-container {
padding-bottom: 20px;
}
}
#masthead {
.main-small-navigation {
li {
&:hover,
&.current-page-ancestor,
&.current-menu-ancestor,
&.current-page-item,
&.current-menu-item {
> .sub-toggle {
background-color: $white;
i {
color: $primary;
}
}
}
}
}
&.colormag-header-clean {
#menu-primary {
background-color: #ffffff;
}
.date-in-header,
.social-links {
float: none;
text-align: center;
}
.breaking-news {
width: 100%;
float: none;
margin-bottom: 5px;
text-align: center;
}
#header-text-nav-wrap {
padding: 0 0 20px;
}
#header-left-section,
#header-logo-image {
margin-bottom: 0;
}
#site-navigation {
.random-post {
a {
padding: 20px;
}
}
.menu-toggle::before,
.fa.search-top {
padding: 20px;
}
}
.main-small-navigation {
.home-icon {
a {
padding: 20px;
}
}
.menu-toggle {
background-color: $primary;
}
.random-post {
a {
padding: 15px;
}
}
}
}
&.colormag-header-classic {
#menu-primary {
background-color: #ffffff;
}
.date-in-header,
.breaking-news,
.social-links {
width: 100%;
float: none;
text-align: center;
}
#header-text-nav-wrap {
padding: 0;
}
#header-left-section,
#header-logo-image {
margin-bottom: 0;
}
.main-small-navigation {
.menu-toggle {
background-color: $primary;
border-color: $primary;
}
.random-post {
a {
padding: 15px;
}
}
}
#site-navigation {
.random-post {
a {
padding: 15px;
}
}
.menu-toggle::before,
.fa.search-top {
padding: 15px;
line-height: 26px;
}
.home-icon {
a {
padding: 15px;
line-height: 26px;
}
}
}
}
}
.breaking-news {
height: auto;
}
}
@media screen and (max-width: 480px) {
.better-responsive-menu {
.main-small-navigation .menu-primary-container {
padding-bottom: 15px;
}
}
#masthead {
&.colormag-header-classic,
&.colormag-header-clean {
.date-in-header {
display: none;
}
.breaking-news {
.breaking-news-latest {
padding: 0 5px;
}
.newsticker {
padding-left: 0;
}
}
}
}
}

View File

@@ -1,22 +0,0 @@
/*
Theme Name: ColorMag
Theme URI: https://themegrill.com/themes/colormag/
Author: ThemeGrill
Author URI: https://themegrill.com
Description: ColorMag is a perfect responsive magazine style WordPress theme. Suitable for news, newspaper, magazine, publishing, business and any kind of sites. Get free support at https://themegrill.com/support-forum/ and check the demo at https://demo.themegrill.com/colormag/
Version: 1.4.2
License: GNU General Public License, version 3 (GPLv3)
License URI: http://www.gnu.org/licenses/gpl-3.0.txt
Tags: one-column, two-columns, right-sidebar, left-sidebar, flexible-header, custom-header, custom-background, custom-menu, custom-colors, sticky-post, threaded-comments, translation-ready, featured-images, theme-options, post-formats, footer-widgets, blog, e-commerce, news, rtl-language-support
Text Domain: colormag
Resetting and rebuilding styles have been helped along thanks to the fine work of
Eric Meyer http://meyerweb.com/eric/tools/css/reset/index.html
along with Nicolas Gallagher and Jonathan Neal http://necolas.github.com/normalize.css/
and Blueprint http://www.blueprintcss.org/
*/
@import 'variables/colors';
@import 'theme/theme-style';
@import 'header/header';
@import 'footer/footer';

File diff suppressed because it is too large Load Diff

View File

@@ -1,65 +0,0 @@
/*========== Gray colors ==========*/
/*===== Light colors ======*/
$white:#fff;
$color_gray_eleven: darken($white, 2.5% ); // #f9f9f9
$color_gray_ten: darken($white, 2.6% ); // #f8f8f8
$color_gray_nine: darken($white, 5% ); //#f2f2f2
$color_gray_eight: darken($white, 8.4% ); // #eaeaea
$color_gray_seven: darken($white, 20% ); // #cccccc
$black: #000000;
$color_gray_one: lighten($black, 13.6%); // #232323
$color_gray_two: lighten($black, 20%); // #333333
$color_gray_three: lighten($black, 26.5%); // #444444
$color_gray_four: lighten($black, 33.5%); // #555555
$color_gray_five: lighten($black, 46.5%); // #777777
$color_gray_six: lighten($black, 53.5%); // #888888
/*========== Brand-colors ==========*/
$primary:#289dcc;
$color-title:#424143;
$body-background: #eaeaea;
$dark-background:#151515;
$news-background: #212529;
$social-icon-color: #495057;
$menu-link-color: #343a40;
$news-bar-background: #f1f3f5;
$title-border: #5e616a;
$footer-border: #40444f;
$footer-socket: #252730;
$dark-page-background:#1A1A1A;
$dark-footer-socket:#121212;
$medium-footer-socket:lighten($dark-footer-socket, 1.5%);
$dark-news-background: lighten($dark-page-background, 1.5%);
$light-content: darken($white, 35%);
/*========== social links colors ==========*/
$color-twitter: #1BB2E9;
$color-facebook: #3B5A9B;
$color-youtube: #ED3F41;
$color-vimeo-square: #44BBFF;
$color-skype: #009CEF;
$color-linkedin: #007BB6;
$color-google-plus: #DC4937;
$color-github: #4183C4;
$color-flickr: #0062DD;
$color-dribbble: #E24D87;
$color-instagram: #3F729B;
$color-pinterest: #D5282E;
$color-stumbleupon: #EC4823;
$color-tumblr: #455469;
$color-wordpress: #21759B;
$color-codepen: #CCCCCC;
$color-digg: #14589E;
$color-reddit: #FF4500;
$color-xing: #026466;
$color-vk: #45668e;
$color-weibo: #e6162d;
$color-leanpub: #000000;
$color-renren: #237bc2;
$color-rss: #f26522;
$color-soundcloud: #ff3a00;
$color-vine: #00bf8f;
$color-delicious: #2a96ff;

View File

@@ -1,16 +0,0 @@
$font-family-body: 'Roboto', sans-serif;
$font-family-heading: 'Raleway', sans-serif;
$font-size-base: 14px;
$font-size-large: ceil(($font-size-base * 1.25)); // ~18px
$font-size-small: ceil(($font-size-base * 0.85)); // ~12px
$font-size-h1: 54px;
$font-size-h2: 36px;
$font-size-h3: 24px;
$font-size-h4: 18px;
$font-size-h5: 16px;
$font-size-h6: 14px;
$line-height-base: 24px;

View File

@@ -1,112 +0,0 @@
<?php
/**
* The template for displaying Archive page.
*
* @package ThemeGrill
* @subpackage ColorMag
* @since ColorMag 1.0
*/
get_header(); ?>
<?php do_action( 'colormag_before_body_content' ); ?>
<div id="primary">
<div id="content" class="clearfix">
<?php if ( have_posts() ) : ?>
<header class="page-header">
<?php if ( is_category() ) {
do_action('colormag_category_title');
single_cat_title();
} else { ?>
<h1 class="page-title">
<span>
<?php
if ( is_tag() ) :
single_tag_title();
elseif ( is_author() ) :
/* Queue the first post, that way we know
* what author we're dealing with (if that is the case).
*/
the_post();
printf( __( 'Author: %s', 'colormag' ), '<span class="vcard">' . get_the_author() . '</span>' );
/* Since we called the_post() above, we need to
* rewind the loop back to the beginning that way
* we can run the loop properly, in full.
*/
rewind_posts();
elseif ( is_day() ) :
printf( __( 'Day: %s', 'colormag' ), '<span>' . get_the_date() . '</span>' );
elseif ( is_month() ) :
printf( __( 'Month: %s', 'colormag' ), '<span>' . get_the_date( 'F Y' ) . '</span>' );
elseif ( is_year() ) :
printf( __( 'Year: %s', 'colormag' ), '<span>' . get_the_date( 'Y' ) . '</span>' );
elseif ( is_tax( 'post_format', 'post-format-aside' ) ) :
_e( 'Asides', 'colormag' );
elseif ( is_tax( 'post_format', 'post-format-image' ) ) :
_e( 'Images', 'colormag');
elseif ( is_tax( 'post_format', 'post-format-video' ) ) :
_e( 'Videos', 'colormag' );
elseif ( is_tax( 'post_format', 'post-format-quote' ) ) :
_e( 'Quotes', 'colormag' );
elseif ( is_tax( 'post_format', 'post-format-link' ) ) :
_e( 'Links', 'colormag' );
elseif ( is_plugin_active( 'woocommerce/woocommerce.php' ) ) :
woocommerce_page_title( false );
else :
_e( 'Archives', 'colormag' );
endif;
?>
</span></h1>
<?php } ?>
<?php
// Show an optional term description.
$term_description = term_description();
if ( ! empty( $term_description ) ) :
printf( '<div class="taxonomy-description">%s</div>', $term_description );
endif;
?>
</header><!-- .page-header -->
<div class="article-container">
<?php global $post_i; $post_i = 1; ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', 'archive' ); ?>
<?php endwhile; ?>
</div>
<?php get_template_part( 'navigation', 'archive' ); ?>
<?php else : ?>
<?php get_template_part( 'no-results', 'archive' ); ?>
<?php endif; ?>
</div><!-- #content -->
</div><!-- #primary -->
<?php colormag_sidebar_select(); ?>
<?php do_action( 'colormag_after_body_content' ); ?>
<?php get_footer(); ?>

View File

@@ -1,72 +0,0 @@
<?php
/**
* The template for displaying Comments.
*
* The area of the page that contains both current comments
* and the comment form. The actual display of comments is
* handled by a callback to colormag_comment() which is
* located in the inc/functions.php file.
*
* @package ThemeGrill
* @subpackage ColorMag
* @since ColorMag 1.0
*/
/*
* 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! ?>
<?php if ( have_comments() ) : ?>
<h3 class="comments-title">
<?php
printf( _nx( 'One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'comments title', 'colormag' ),
number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>' );
?>
</h3>
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
<nav id="comment-nav-above" class="comment-navigation clearfix" role="navigation">
<h3 class="screen-reader-text"><?php _e( 'Comment navigation', 'colormag' ); ?></h3>
<div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'colormag' ) ); ?></div>
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', 'colormag' ) ); ?></div>
</nav><!-- #comment-nav-above -->
<?php endif; // check for comment navigation ?>
<ul class="comment-list">
<?php
wp_list_comments( array(
'callback' => 'colormag_comment',
'short_ping' => true
) );
?>
</ul><!-- .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="comment-navigation clearfix" role="navigation">
<h3 class="screen-reader-text"><?php _e( 'Comment navigation', 'colormag' ); ?></h3>
<div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'colormag' ) ); ?></div>
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', 'colormag' ) ); ?></div>
</nav><!-- #comment-nav-below -->
<?php endif; // check for comment navigation ?>
<?php endif; // have_comments() ?>
<?php
// If comments are closed and there are comments, let's leave a little note, shall we?
if ( ! comments_open() && '0' != get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) :
?>
<p class="no-comments"><?php _e( 'Comments are closed.', 'colormag' ); ?></p>
<?php endif; ?>
<?php comment_form(); ?>
</div><!-- #comments -->

View File

@@ -1,49 +0,0 @@
<?php
/**
* The template used for displaying page content in page.php
*
* @package ThemeGrill
* @subpackage ColorMag
* @since ColorMag 1.0
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php do_action( 'colormag_before_post_content' ); ?>
<?php if ( ( get_theme_mod( 'colormag_featured_image_single_page_show', 1 ) == 1 ) && ( has_post_thumbnail() ) ) { ?>
<div class="featured-image">
<?php the_post_thumbnail( 'colormag-featured-image' ); ?>
</div>
<?php } ?>
<header class="entry-header">
<?php if ( is_front_page() ) : ?>
<h2 class="entry-title">
<?php the_title(); ?>
</h2>
<?php else : ?>
<h1 class="entry-title">
<?php the_title(); ?>
</h1>
<?php endif; ?>
</header>
<div class="entry-content clearfix">
<?php the_content(); ?>
<?php
wp_link_pages( array(
'before' => '<div style="clear: both;"></div><div class="pagination clearfix">'.__( 'Pages:', 'colormag' ),
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>'
) );
?>
</div>
<div class="entry-footer">
<?php edit_post_link( __( 'Edit', 'colormag' ), '<span class="edit-link"><i class="fa fa-edit"></i>', '</span>' ); ?>
</div>
<?php do_action( 'colormag_after_post_content' ); ?>
</article>

View File

@@ -1,59 +0,0 @@
<?php
/**
* The template used for displaying single post content in single.php
*
* @package ThemeGrill
* @subpackage ColorMag
* @since ColorMag 1.0
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php do_action( 'colormag_before_post_content' ); ?>
<?php
$image_popup_id = get_post_thumbnail_id();
$image_popup_url = wp_get_attachment_url( $image_popup_id );
?>
<?php if ( ( get_theme_mod( 'colormag_featured_image_show', 0 ) == 0 ) && ( has_post_thumbnail() ) ) { ?>
<div class="featured-image">
<?php if (get_theme_mod('colormag_featured_image_popup', 0) == 1) { ?>
<a href="<?php echo $image_popup_url; ?>" class="image-popup"><?php the_post_thumbnail( 'colormag-featured-image' ); ?></a>
<?php } else { ?>
<?php the_post_thumbnail( 'colormag-featured-image' ); ?>
<?php } ?>
</div>
<?php } ?>
<div class="article-content clearfix">
<?php if( get_post_format() ) { get_template_part( 'inc/post-formats' ); } ?>
<?php colormag_colored_category(); ?>
<header class="entry-header">
<h1 class="entry-title">
<?php the_title(); ?>
</h1>
</header>
<?php colormag_entry_meta(); ?>
<div class="entry-content clearfix">
<?php
the_content();
wp_link_pages( array(
'before' => '<div style="clear: both;"></div><div class="pagination clearfix">'.__( 'Pages:', 'colormag' ),
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>'
) );
?>
</div>
</div>
<?php do_action( 'colormag_after_post_content' ); ?>
</article>

View File

@@ -1,44 +0,0 @@
<?php
/**
* The template used for displaying page content in page.php
*
* @package ThemeGrill
* @subpackage ColorMag
* @since ColorMag 1.0
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php do_action( 'colormag_before_post_content' ); ?>
<?php if ( has_post_thumbnail() ) { ?>
<div class="featured-image">
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_post_thumbnail( 'colormag-featured-image' ); ?></a>
</div>
<?php } ?>
<div class="article-content clearfix">
<?php if( get_post_format() ) { get_template_part( 'inc/post-formats' ); } ?>
<?php colormag_colored_category(); ?>
<header class="entry-header">
<h2 class="entry-title">
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute();?>"><?php the_title(); ?></a>
</h2>
</header>
<?php colormag_entry_meta(); ?>
<div class="entry-content clearfix">
<?php
the_excerpt();
?>
<a class="more-link" title="<?php the_title(); ?>" href="<?php the_permalink(); ?>"><span><?php _e( 'Read more', 'colormag' ); ?></span></a>
</div>
</div>
<?php do_action( 'colormag_after_post_content' ); ?>
</article>

View File

@@ -1,51 +0,0 @@
.colormag-message {
overflow: hidden;
position: relative;
border: 10px solid #97d2e7 !important;
}
.colormag-message-wrapper {
width: 500px;
text-align: center;
margin: 0 auto;
padding: 50px 0;
}
.colormag-message-wrapper .submit {
text-align: center;
padding-top: 25px;
}
.submit a.btn-get-started:before {
margin: 0 4px 3px 0;
vertical-align: middle;
}
.colormag-message a.button-primary,
.colormag-message a.button-secondary {
text-decoration: none !important;
}
.colormag-message a.colormag-message-close {
position: absolute;
top: 0;
right: 0;
padding: 10px 15px 10px 21px;
font-size: 13px;
line-height: 1.23076923;
text-decoration: none;
}
.colormag-message a.colormag-message-close:before {
position: absolute;
top: 8px;
left: 0;
-webkit-transition: all .1s ease-in-out;
transition: all .1s ease-in-out;
}
.colormag-message-wrapper .plugin-install-notice {
display: block;
font-size: 12px;
margin: 10px 0 0;
}

View File

@@ -1,18 +0,0 @@
.theme-review-notice .links {
margin: 10px 0;
}
.theme-review-notice .links a {
height: auto;
padding: 3px 15px;
margin-left: 10px;
text-transform: uppercase;
}
.theme-review-notice .links a .dashicons {
line-height: 1.2;
}
.theme-review-notice .links a.button-primary {
margin-left: 0;
}

View File

@@ -1,233 +0,0 @@
.wp-badge.tg-welcome-logo {
background-color: #ffffff;
background-image: url(../../img/themegrill-logo.jpg);
background-repeat: no-repeat;
background-position: center center;
background-size: 70%;
}
.header h1 {
font-size: 30px;
}
pre.changelog {
font-size: 12px;
background-color: #f5f5f5;
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(50%, #f5f5f5), color-stop(50%, #e6e6e6));
background-image: -webkit-linear-gradient(#f5f5f5 50%, #e6e6e6 50%);
background-image: linear-gradient(#f5f5f5 50%, #e6e6e6 50%);
background-size: 38px 38px;
border: 1px solid #d4d4d4;
display: block;
line-height: 19px;
margin-bottom: 10px;
overflow: visible;
overflow-y: hidden;
padding: 0 0 0 4px;
}
pre.changelog span {
font-weight: 700;
}
.return-to-dashboard.colormag {
clear: both;
}
p.colormag-actions a.skip {
opacity: .5;
}
p.colormag-actions a.docs:focus,
p.colormag-actions a.docs:hover,
p.colormag-actions a.skip:focus,
p.colormag-actions a.skip:hover {
opacity: 1;
}
p.colormag-actions a.button-primary,
p.colormag-actions a.button-secondary {
text-decoration: none !important;
}
table {
width: 100%;
border-collapse: collapse;
}
td {
text-align: center;
}
.about-wrap {
max-width: 100%;
}
.welcome-description-wrap {
display: inline-block;
width: 100%;
margin: 20px 0;
}
.about-wrap table td h3 {
margin: 20px;
padding-left: 20px;
text-align: left;
}
.wrap table {
border: 1px solid #e1e1e1;
border-collapse: collapse;
}
.wrap table th {
width: 33%;
}
.wrap table th:first-child {
background-color: rgba(0, 0, 0, 0.03);
}
.about-wrap table td .table-desc {
font-size: 15px;
margin: 20px;
padding-left: 20px;
display: block;
text-align: left;
}
.about-wrap table .table-feature-title > h3 {
color: #404040;
}
.wrap table th {
background-color: #24b37e;
}
.wrap table th:last-child {
background-color: #228b9b;
}
.wrap table th h3 {
color: #ffffff;
margin: 15px;
}
tr:nth-child(2n) {
background-color: #e7e7e7;
}
.wrap table td span {
font-size: 25px;
}
.wrap table td .dashicons.dashicons-no {
color: #ce2d2d;
}
.wrap table td .dashicons.dashicons-yes {
color: #24b37e;
}
table tr .btn-wrapper {
padding: 10px 0;
}
table tr .btn-wrapper .button {
background-color: #228b9b;
color: #ffffff;
font-size: 14px;
line-height: 0;
padding: 27px 0;
width: 59%;
}
table tr .btn-wrapper .button:hover {
background: #097282 none repeat scroll 0 0;
color: #ffffff;
}
.tg-demo-showcase .wp-filter {
padding: 0;
border: none;
box-shadow: none;
background: transparent;
}
.tg-demo-showcase .theme-browser .theme .premium-demo-banner {
-webkit-box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
position: absolute;
top: 10px;
right: 0;
height: 30px;
width: 50px;
background: #51cf66;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
color: #ffffff;
}
.tg-demo-showcase .theme-browser .theme .premium-demo-banner:before, .tg-demo-showcase .theme-browser .theme .premium-demo-banner:after {
content: "";
position: absolute;
width: 0;
height: 0;
right: 100%;
}
.tg-demo-showcase .theme-browser .theme .premium-demo-banner:before {
top: 0;
border-top: 15px solid #51cf66;
border-left: 15px solid transparent;
}
.tg-demo-showcase .theme-browser .theme .premium-demo-banner:after {
bottom: 0;
border-bottom: 15px solid #51cf66;
border-left: 15px solid transparent;
}
.plugin-install-notice {
margin: 20px 0 0;
}
@media (max-width: 1400px) {
.about-wrap h1 {
font-size: 30px;
}
.about-wrap .about-text {
font-size: 16px;
}
}
@media (max-width: 1200px) {
.about-wrap .about-text {
font-size: 14px;
}
.about-wrap table td h3,
.about-wrap table td {
font-size: 14px;
}
}
@media (max-width: 980px) {
.about-wrap h1 {
font-size: 25px;
}
.about-wrap .about-text,
.colormag-screenshot {
float: none;
width: 100%;
}
}

View File

@@ -1,177 +0,0 @@
/** VARIABLES
===================================*/
/** RESET AND LAYOUT
===================================*/
.bx-wrapper {
position: relative;
margin-bottom: 60px;
padding: 0;
*zoom: 1;
-ms-touch-action: pan-y;
touch-action: pan-y;
}
.bx-wrapper img {
max-width: 100%;
display: block;
}
.bxslider {
margin: 0;
padding: 0;
}
ul.bxslider {
list-style: none;
}
.bx-viewport {
/*fix other elements on the page moving (on Chrome)*/
-webkit-transform: translatez(0);
}
/** THEME
===================================*/
.bx-wrapper {
-moz-box-shadow: 0 0 5px #ccc;
-webkit-box-shadow: 0 0 5px #ccc;
box-shadow: 0 0 5px #ccc;
border: 5px solid #fff;
background: #fff;
}
.bx-wrapper .bx-pager,
.bx-wrapper .bx-controls-auto {
position: absolute;
bottom: -30px;
width: 100%;
}
/* LOADER */
.bx-wrapper .bx-loading {
min-height: 50px;
background: url('images/bx_loader.gif') center center no-repeat #ffffff;
height: 100%;
width: 100%;
position: absolute;
top: 0;
left: 0;
z-index: 2000;
}
/* PAGER */
.bx-wrapper .bx-pager {
text-align: center;
font-size: .85em;
font-family: Arial;
font-weight: bold;
color: #666;
padding-top: 20px;
}
.bx-wrapper .bx-pager.bx-default-pager a {
background: #666;
text-indent: -9999px;
display: block;
width: 10px;
height: 10px;
margin: 0 5px;
outline: 0;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
}
.bx-wrapper .bx-pager.bx-default-pager a:hover,
.bx-wrapper .bx-pager.bx-default-pager a.active,
.bx-wrapper .bx-pager.bx-default-pager a:focus {
background: #000;
}
.bx-wrapper .bx-pager-item,
.bx-wrapper .bx-controls-auto .bx-controls-auto-item {
display: inline-block;
vertical-align: bottom;
*zoom: 1;
*display: inline;
}
.bx-wrapper .bx-pager-item {
font-size: 0;
line-height: 0;
}
/* DIRECTION CONTROLS (NEXT / PREV) */
.bx-wrapper .bx-prev {
left: 10px;
background: url('images/controls.png') no-repeat 0 -32px;
}
.bx-wrapper .bx-prev:hover,
.bx-wrapper .bx-prev:focus {
background-position: 0 0;
}
.bx-wrapper .bx-next {
right: 10px;
background: url('images/controls.png') no-repeat -43px -32px;
}
.bx-wrapper .bx-next:hover,
.bx-wrapper .bx-next:focus {
background-position: -43px 0;
}
.bx-wrapper .bx-controls-direction a {
position: absolute;
top: 50%;
margin-top: -16px;
outline: 0;
width: 32px;
height: 32px;
text-indent: -9999px;
z-index: 9999;
}
.bx-wrapper .bx-controls-direction a.disabled {
display: none;
}
/* AUTO CONTROLS (START / STOP) */
.bx-wrapper .bx-controls-auto {
text-align: center;
}
.bx-wrapper .bx-controls-auto .bx-start {
display: block;
text-indent: -9999px;
width: 10px;
height: 11px;
outline: 0;
background: url('images/controls.png') -86px -11px no-repeat;
margin: 0 3px;
}
.bx-wrapper .bx-controls-auto .bx-start:hover,
.bx-wrapper .bx-controls-auto .bx-start.active,
.bx-wrapper .bx-controls-auto .bx-start:focus {
background-position: -86px 0;
}
.bx-wrapper .bx-controls-auto .bx-stop {
display: block;
text-indent: -9999px;
width: 9px;
height: 11px;
outline: 0;
background: url('images/controls.png') -86px -44px no-repeat;
margin: 0 3px;
}
.bx-wrapper .bx-controls-auto .bx-stop:hover,
.bx-wrapper .bx-controls-auto .bx-stop.active,
.bx-wrapper .bx-controls-auto .bx-stop:focus {
background-position: -86px -33px;
}
/* PAGER WITH AUTO-CONTROLS HYBRID LAYOUT */
.bx-wrapper .bx-controls.bx-has-controls-auto.bx-has-pager .bx-pager {
text-align: left;
width: 80%;
}
.bx-wrapper .bx-controls.bx-has-controls-auto.bx-has-pager .bx-controls-auto {
right: 0;
width: 35px;
}
/* IMAGE CAPTIONS */
.bx-wrapper .bx-caption {
position: absolute;
bottom: 0;
left: 0;
background: #666;
background: rgba(80, 80, 80, 0.75);
width: 100%;
}
.bx-wrapper .bx-caption span {
color: #fff;
font-family: Arial;
display: block;
font-size: .85em;
padding: 10px;
}

View File

@@ -1,238 +0,0 @@
/*========== Gray colors ==========*/
/*===== Light colors ======*/
/*========== Brand-colors ==========*/
/*========== social links colors ==========*/
/*--------------------------------------------------------------
Dark CSS
--------------------------------------------------------------*/
h1,
h2,
h3,
h4,
h5,
h6 {
color: #fff;
}
body {
background-color: #151515;
color: #cccccc;
}
.dark-skin {
/*--------------------------------------------------------------
Header Clean layout CSS
--------------------------------------------------------------*/
}
.dark-skin #site-description {
color: #fff;
}
.dark-skin #page,
.dark-skin #header-text-nav-container,
.dark-skin .news-bar,
.dark-skin #main,
.dark-skin #secondary .widget {
background-color: #1A1A1A;
}
.dark-skin .news-bar {
background-color: #1e1e1e;
}
.dark-skin .main-small-navigation li {
background-color: #232323;
}
.dark-skin .main-small-navigation a {
color: #fff;
}
.dark-skin .date-in-header {
color: #cccccc;
}
.dark-skin .breaking-news-latest {
color: #fff;
}
.dark-skin .search-form-top {
background-color: #121212;
border: 0 none;
}
.dark-skin .widget_featured_posts .single-article {
background: none;
box-shadow: 0 0 0 0 transparent;
}
.dark-skin .widget_featured_posts .article-content .entry-title a {
color: #fff;
}
.dark-skin .widget_featured_posts .article-content .below-entry-meta .posted-on .fa,
.dark-skin .widget_featured_posts .article-content .below-entry-meta .byline .fa,
.dark-skin .widget_featured_posts .article-content .below-entry-meta .comments .fa {
color: #a6a6a6;
}
.dark-skin .posted-on a,
.dark-skin .byline a,
.dark-skin .comments a {
color: #a6a6a6;
}
.dark-skin .comments span {
color: #a6a6a6;
}
.dark-skin .thumbnail-slider {
border-color: #1A1A1A;
}
.dark-skin #comments {
border-color: #444444;
}
.dark-skin #content .post .article-content .entry-title a {
color: #fff;
}
.dark-skin #content .post .article-content .below-entry-meta .byline .fa,
.dark-skin #content .post .article-content .below-entry-meta .comments .fa,
.dark-skin #content .post .article-content .below-entry-meta .tag-links .fa,
.dark-skin #content .post .article-content .below-entry-meta .edit-link .fa,
.dark-skin #content .post .article-content .below-entry-meta .posted-on .fa,
.dark-skin #content .post .article-content .below-entry-meta .post-views .fa {
color: #a6a6a6;
}
.dark-skin #content .post .article-content .below-entry-meta .post-views span {
color: #a6a6a6;
}
.dark-skin #content .post .article-content .below-entry-meta .edit-link a {
color: #a6a6a6;
}
.dark-skin .single-related-posts .article-content .entry-title a {
color: #fff;
}
.dark-skin .single-related-posts .article-content .below-entry-meta .posted-on .fa,
.dark-skin .single-related-posts .article-content .below-entry-meta .comments .fa {
color: #a6a6a6;
}
.dark-skin .post .entry-title a,
.dark-skin .search .entry-title a {
color: #fff;
}
.dark-skin .random_posts_widget_inner_wrap,
.dark-skin .single-related-posts {
box-shadow: 0 0 0 0 transparent;
}
.dark-skin .footer-widgets-wrapper,
.dark-skin .footer-socket-wrapper {
border-top: 0 none;
background-color: #121212;
}
.dark-skin #colophon .tg-upper-footer-widgets .widget {
border: 0 none;
}
.dark-skin input[type="text"],
.dark-skin input[type="email"],
.dark-skin input[type="password"],
.dark-skin textarea,
.dark-skin .comment-content {
background-color: #1A1A1A;
color: #cccccc;
border-color: #777777;
}
.dark-skin .view-all-link {
background: #1A1A1A;
}
.dark-skin #masthead.colormag-header-clean .main-navigation .sub-menu,
.dark-skin #masthead.colormag-header-clean .main-navigation .children {
background-color: #212529;
}
.dark-skin #masthead.colormag-header-clean .main-small-navigation li {
background-color: #212529;
}
.dark-skin #masthead.colormag-header-clean .breaking-news .newsticker a,
.dark-skin #masthead.colormag-header-clean .social-links i.fa, .dark-skin #masthead.colormag-header-classic .breaking-news .newsticker a,
.dark-skin #masthead.colormag-header-classic .social-links i.fa {
color: #cccccc;
}
.dark-skin #masthead.colormag-header-classic .is-sticky #site-navigation {
background-color: #212529;
}
.dark-skin #masthead.colormag-header-classic .is-sticky .main-small-navigation li {
background-color: #212529;
}
.dark-skin #masthead.colormag-header-classic #site-navigation .menu-toggle {
border-color: #cccccc;
}
.dark-skin #masthead.colormag-header-classic #site-navigation .menu-toggle::before {
color: #cccccc;
}
.dark-skin #masthead.colormag-header-classic #site-navigation.main-navigation ul ul.sub-menu,
.dark-skin #masthead.colormag-header-classic #site-navigation.main-navigation ul .children {
background-color: #212529;
border-color: #444444;
}
.dark-skin #masthead.colormag-header-classic #site-navigation.main-navigation ul ul.sub-menu li,
.dark-skin #masthead.colormag-header-classic #site-navigation.main-navigation ul .children li {
border-color: #444444;
}
.dark-skin #masthead.colormag-header-classic #site-navigation.main-navigation a,
.dark-skin #masthead.colormag-header-classic #site-navigation.main-navigation .random-post a .fa-random,
.dark-skin #masthead.colormag-header-classic #site-navigation.main-navigation .home-icon .fa {
color: #fff;
}
.dark-skin #masthead.colormag-header-classic #site-navigation.main-small-navigation .random-post a .fa-random,
.dark-skin #masthead.colormag-header-classic #site-navigation .fa.search-top {
color: #fff;
}
.dark-skin .colormag-footer--classic .footer-widgets-wrapper {
background-color: #161616;
}
.dark-skin .colormag-footer--classic .footer-socket-wrapper {
background-color: #121212;
}
.dark-skin .elementor .tg-module-wrapper {
color: #cccccc;
}
.dark-skin .elementor .tg-module-wrapper .tg-module-title {
color: #fff;
}
.dark-skin .elementor .tg-module-wrapper .tg-module-meta .tg-post-auther-name a,
.dark-skin .elementor .tg-module-wrapper .tg-module-meta .tg-post-auther-name span,
.dark-skin .elementor .tg-module-wrapper .tg-module-meta .tg-post-date a,
.dark-skin .elementor .tg-module-wrapper .tg-module-meta .tg-post-date span,
.dark-skin .elementor .tg-module-wrapper .tg-module-meta .tg-module-comments a,
.dark-skin .elementor .tg-module-wrapper .tg-module-meta .tg-module-comments span {
color: #a6a6a6;
}

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

Before

Width:  |  Height:  |  Size: 434 KiB

View File

@@ -1,62 +0,0 @@
<?php
/**
* Theme Footer Section for our theme.
*
* Displays all of the footer section and closing of the #main div.
*
* @package ThemeGrill
* @subpackage ColorMag
* @since ColorMag 1.0
*/
?>
</div><!-- .inner-wrap -->
</div><!-- #main -->
<?php if ( is_active_sidebar( 'colormag_advertisement_above_the_footer_sidebar' ) ) { ?>
<div class="advertisement_above_footer">
<div class="inner-wrap">
<?php dynamic_sidebar( 'colormag_advertisement_above_the_footer_sidebar' ); ?>
</div>
</div>
<?php } ?>
<?php do_action( 'colormag_before_footer' ); ?>
<?php
// Add the main total header area display type dynamic class
$main_total_footer_option_layout_class = get_theme_mod( 'colormag_main_footer_layout_display_type', 'type_one' );
$class_name = '';
if ( $main_total_footer_option_layout_class == 'type_two' ) {
$class_name = 'colormag-footer--classic';
}
?>
<footer id="colophon" class="clearfix <?php echo esc_attr( $class_name ); ?>">
<?php get_sidebar( 'footer' ); ?>
<div class="footer-socket-wrapper clearfix">
<div class="inner-wrap">
<div class="footer-socket-area">
<div class="footer-socket-right-section">
<?php
if ( ( get_theme_mod( 'colormag_social_link_activate', 0 ) == 1 ) && ( ( get_theme_mod( 'colormag_social_link_location_option', 'both' ) == 'both' ) || ( get_theme_mod( 'colormag_social_link_location_option', 'both' ) == 'footer' ) ) ) {
colormag_social_links();
}
?>
</div>
<div class="footer-socket-left-section">
<?php do_action( 'colormag_footer_copyright' ); ?>
</div>
</div>
</div>
</div>
</footer>
<a href="#masthead" id="scroll-up"><i class="fa fa-chevron-up"></i></a>
</div><!-- #page -->
<?php wp_footer(); ?>
</body>
</html>

View File

@@ -1,105 +0,0 @@
<?php
/**
* Template to show the front page.
*
* @package ThemeGrill
* @subpackage ColorMag
* @since ColorMag 1.0
*/
get_header();
// Do not display the front pages sidebar areas when the Page Builder Template is activated
if ( is_front_page() && ! is_page_template( 'page-templates/page-builder.php' ) ) : ?>
<div class="front-page-top-section clearfix">
<div class="widget_slider_area">
<?php
if ( is_active_sidebar( 'colormag_front_page_slider_area' ) ) {
if ( ! dynamic_sidebar( 'colormag_front_page_slider_area' ) ):
endif;
}
?>
</div>
<div class="widget_beside_slider">
<?php
if ( is_active_sidebar( 'colormag_front_page_area_beside_slider' ) ) {
if ( ! dynamic_sidebar( 'colormag_front_page_area_beside_slider' ) ):
endif;
}
?>
</div>
</div>
<?php endif; ?>
<div class="main-content-section clearfix">
<div id="primary">
<div id="content" class="clearfix">
<?php
// Do not display the front pages sidebar areas when the Page Builder Template is activated
if ( is_front_page() && ! is_page_template( 'page-templates/page-builder.php' ) ) :
if ( is_active_sidebar( 'colormag_front_page_content_top_section' ) ) {
if ( ! dynamic_sidebar( 'colormag_front_page_content_top_section' ) ):
endif;
}
if ( is_active_sidebar( 'colormag_front_page_content_middle_left_section' ) || is_active_sidebar( 'colormag_front_page_content_middle_right_section' ) ) {
?>
<div class="tg-one-half">
<?php
if ( ! dynamic_sidebar( 'colormag_front_page_content_middle_left_section' ) ):
endif;
?>
</div>
<div class="tg-one-half tg-one-half-last">
<?php
if ( ! dynamic_sidebar( 'colormag_front_page_content_middle_right_section' ) ):
endif;
?>
</div>
<div class="clearfix"></div>
<?php
}
if ( is_active_sidebar( 'colormag_front_page_content_bottom_section' ) ) {
if ( ! dynamic_sidebar( 'colormag_front_page_content_bottom_section' ) ):
endif;
}
endif; // Do not display the front pages sidebar areas when the Page Builder Template is activated
if ( get_theme_mod( 'colormag_hide_blog_front', 0 ) == 0 ): ?>
<div class="article-container">
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php
if ( is_front_page() && is_home() ) {
get_template_part( 'content', '' );
} else if ( is_front_page() ) {
get_template_part( 'content', 'page' );
}
?>
<?php endwhile; ?>
<?php get_template_part( 'navigation', 'none' ); ?>
<?php else : ?>
<?php get_template_part( 'no-results', 'none' ); ?>
<?php endif; ?>
</div>
<?php endif; ?>
</div>
</div>
<?php colormag_sidebar_select(); ?>
</div>
<?php get_footer(); ?>

View File

@@ -1,547 +0,0 @@
<?php
/**
* ColorMag functions related to defining constants, adding files and WordPress core functionality.
*
* Defining some constants, loading all the required files and Adding some core functionality.
*
* @uses add_theme_support() To add support for post thumbnails and automatic feed links.
* @uses register_nav_menu() To add support for navigation menu.
* @uses set_post_thumbnail_size() To set a custom post thumbnail size.
*
* @package ThemeGrill
* @subpackage ColorMag
* @since ColorMag 1.0
*/
/**
* Define Elementor Partner ID
*/
if ( ! defined( 'ELEMENTOR_PARTNER_ID' ) ) {
define( 'ELEMENTOR_PARTNER_ID', 2125 );
}
/**
* Set the content width based on the theme's design and stylesheet.
*/
if ( ! isset( $content_width ) ) {
$content_width = 800;
}
/**
* $content_width global variable adjustment as per layout option.
*/
function colormag_content_width() {
global $post;
global $content_width;
if ( $post ) {
$layout_meta = get_post_meta( $post->ID, 'colormag_page_layout', true );
}
if ( empty( $layout_meta ) || is_archive() || is_search() ) {
$layout_meta = 'default_layout';
}
$colormag_default_layout = get_theme_mod( 'colormag_default_layout', 'right_sidebar' );
if ( $layout_meta == 'default_layout' ) {
if ( $colormag_default_layout == 'no_sidebar_full_width' ) {
$content_width = 1140; /* pixels */
} else {
$content_width = 800; /* pixels */
}
} elseif ( $layout_meta == 'no_sidebar_full_width' ) {
$content_width = 1140; /* pixels */
} else {
$content_width = 800; /* pixels */
}
}
add_action( 'template_redirect', 'colormag_content_width' );
add_action( 'after_setup_theme', 'colormag_setup' );
/**
* All setup functionalities.
*
* @since 1.0
*/
if ( ! function_exists( 'colormag_setup' ) ) :
function colormag_setup() {
/*
* Make theme available for translation.
* Translations can be filed in the /languages/ directory.
*/
load_theme_textdomain( 'colormag', get_template_directory() . '/languages' );
// Add default posts and comments RSS feed links to head
add_theme_support( 'automatic-feed-links' );
// This theme uses Featured Images (also known as post thumbnails) for per-post/per-page.
add_theme_support( 'post-thumbnails' );
// Registering navigation menu.
register_nav_menu( 'primary', esc_html__( 'Primary Menu', 'colormag' ) );
// Cropping the images to different sizes to be used in the theme
add_image_size( 'colormag-highlighted-post', 392, 272, true );
add_image_size( 'colormag-featured-post-medium', 390, 205, true );
add_image_size( 'colormag-featured-post-small', 130, 90, true );
add_image_size( 'colormag-featured-image', 800, 445, true );
// Setup the WordPress core custom background feature.
add_theme_support( 'custom-background', apply_filters( 'colormag_custom_background_args', array(
'default-color' => 'eaeaea',
) ) );
/*
* 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 Formats.
add_theme_support( 'post-formats', array(
'aside',
'image',
'video',
'quote',
'link',
'gallery',
'chat',
'audio',
'status',
) );
// Adding excerpt option box for pages as well
add_post_type_support( 'page', 'excerpt' );
/*
* 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',
) );
// adding the WooCommerce plugin 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' );
// Adds the support for the Custom Logo introduced in WordPress 4.5
add_theme_support( 'custom-logo',
array(
'flex-width' => true,
'flex-height' => true,
)
);
// Support for selective refresh widgets in Customizer
add_theme_support( 'customize-selective-refresh-widgets' );
// Gutenberg layout support.
add_theme_support( 'align-wide' );
$starter_content = array(
'widgets' => array(
'colormag_header_sidebar' => array(
'ad_banner_header' => array(
'colormag_728x90_advertisement_widget',
array(
'728x90_image_link' => 'https://demo.themegrill.com/colormag-pro/',
'728x90_image_url' => get_template_directory_uri() . '/img/ad-large.jpg',
),
),
),
'colormag_front_page_slider_area' => array(
'featured_posts_slider' => array(
'colormag_featured_posts_slider_widget',
array(
'number' => 2,
),
),
),
'colormag_front_page_area_beside_slider' => array(
'featured_posts_slider' => array(
'colormag_highlighted_posts_widget',
array(
'number' => 4,
),
),
),
'colormag_right_sidebar' => array(
'featured_posts_right_sidebar' => array(
'colormag_featured_posts_vertical_widget',
array(
'title' => 'NEWS',
'number' => 2,
),
),
'text_premium_themes' => array(
'text',
array(
'title' => 'Premium Themes',
'text' => '<ul>
<li><a href="https://themegrill.com/themes/spacious-pro/">Spacious Pro</a></li>
<li><a href="https://themegrill.com/themes/foodhunt-pro/">FoodHunt Pro</a></li>
<li><a href="https://themegrill.com/themes/colornews-pro/">ColorNews Pro</a></li>
<li><a href="https://themegrill.com/themes/accelerate-pro/">Accelerate Pro</a></li>
<li><a href="https://themegrill.com/themes/esteem-pro/">Esteem Pro</a></li>
<li><a href="https://http://themegrill.com/themes/radiate-pro/">Radiate Pro</a></li>
<li><a href="https://themegrill.com/themes/fitclub-pro/">Fitclub Pro</a></li>
<li><a href="https://themegrill.com/themes/himalayas-pro/">Himalayas Pro</a></li>
</ul>',
),
),
'ad_banner_right' => array(
'colormag_125x125_advertisement_widget',
array(
'title' => 'TG: 125x125 Ads',
'125x125_image_link_1' => 'https://themegrill.com/',
'125x125_image_url_1' => get_template_directory_uri() . '/img/ad-small.jpg',
'125x125_image_link_2' => 'https://themegrill.com/',
'125x125_image_url_2' => get_template_directory_uri() . '/img/ad-small.jpg',
'125x125_image_link_3' => 'https://themegrill.com/',
'125x125_image_url_3' => get_template_directory_uri() . '/img/ad-small.jpg',
'125x125_image_link_4' => 'https://themegrill.com/',
'125x125_image_url_4' => get_template_directory_uri() . '/img/ad-small.jpg',
),
),
),
'colormag_front_page_content_top_section' => array(
'featured_posts_style_1' => array(
'colormag_featured_posts_widget',
array(
'title' => 'HEALTH',
'number' => 5,
),
),
),
'colormag_front_page_content_middle_left_section' => array(
'featured_posts_style_2_left' => array(
'colormag_featured_posts_vertical_widget',
array(
'title' => 'FASHION',
'number' => 4,
),
),
),
'colormag_front_page_content_middle_right_section' => array(
'featured_posts_style_2_right' => array(
'colormag_featured_posts_vertical_widget',
array(
'title' => 'SPORTS',
'number' => 4,
),
),
),
'colormag_front_page_content_bottom_section' => array(
'featured_posts_style_1_bottom' => array(
'colormag_featured_posts_widget',
array(
'title' => 'TECHNOLOGY',
'text' => 'Check out technology changing the life.',
'number' => 4,
),
),
),
'colormag_footer_sidebar_one' => array(
'text_footer_about' => array(
'text',
array(
'title' => 'About Us',
'text' => '<a title="logo" href="' . home_url() . '"><img src="' . get_template_directory_uri() . '/img/colormag-logo.png" alt="Logo" /></a> <br> We love WordPress and we are here to provide you with professional looking WordPress themes so that you can take your website one step ahead. We focus on simplicity, elegant design and clean code.',
),
),
),
'colormag_footer_sidebar_two' => array(
'text_footer_links' => array(
'text',
array(
'title' => 'Useful Links',
'text' => '<ul>
<li><a href="https://themegrill.com/">ThemeGrill</a></li>
<li><a href="https://themegrill.com/support-forum/">Support</a></li>
<li><a href="https://themegrill.com/theme-instruction/colormag/">Documentation</a></li>
<li><a href="https://themegrill.com/frequently-asked-questions/">FAQ</a></li>
<li><a href="https://themegrill.com/themes/">Themes</a></li>
<li><a href="https://themegrill.com/plugins/">Plugins</a></li>
<li><a href="https://themegrill.com/blog/">Blog</a></li>
<li><a href="https://themegrill.com/plans-pricing/">Plans &amp; Pricing</a></li>
</ul>',
),
),
),
'colormag_footer_sidebar_three' => array(
'text_footer_other_themes' => array(
'text',
array(
'title' => 'Other Themes',
'text' => '<ul>
<li><a href="https://themegrill.com/themes/envince/">Envince</a></li>
<li><a href="https://themegrill.com/themes/estore/">eStore</a></li>
<li><a href="https://themegrill.com/themes/ample/">Ample</a></li>
<li><a href="https://themegrill.com/themes/spacious/">Spacious</a></li>
<li><a href="https://themegrill.com/themes/accelerate/">Accelerate</a></li>
<li><a href="https://themegrill.com/themes/radiate/">Radiate</a></li>
<li><a href="https://themegrill.com/themes/esteem/">Esteem</a></li>
<li><a href="https://themegrill.com/themes/himalayas/">Himalayas</a></li>
<li><a href="https://themegrill.com/themes/colornews/">ColorNews</a></li>
</ul>',
),
),
),
'colormag_footer_sidebar_four' => array(
'ad_banner_footer' => array(
'colormag_300x250_advertisement_widget',
array(
'title' => 'ColorMag Pro',
'300x250_image_link' => 'https://demo.themegrill.com/colormag-pro/',
'300x250_image_url' => get_template_directory_uri() . '/img/ad-medium.jpg',
),
),
'text_footer_colormag_pro' => array(
'text',
array(
'text' => 'Contains all features of free version and many new additional features.',
),
),
),
),
// Specify the core-defined pages to create and add custom thumbnails to some of them.
'posts' => array(
'layout' => array(
'post_type' => 'page',
'post_title' => 'Layout',
'post_content' => 'ThemeGrill layout content',
),
'contact' => array(
'template' => 'page-templates/contact.php',
),
// Create posts
'coffee-is-health-food-myth-or-fact' => array(
'post_type' => 'post',
'post_title' => 'Coffee is health food: Myth or fact?',
'post_content' => 'Vivamus vestibulum ut magna vitae facilisis. Maecenas laoreet lobortis tristique. Aenean accumsan malesuada convallis. Suspendisse egestas luctus nisl, sit amet',
'thumbnail' => '{{featured-image-coffee}}',
),
'get-more-nutrition-in-every-bite' => array(
'post_type' => 'post',
'post_title' => 'Get more nutrition in every bite',
'post_content' => 'Fusce non nunc mi. Integer placerat nulla id quam varius dapibus. Nulla sit amet tellus et purus lobortis efficitur. Vivamus tempus posuere ipsum in suscipit. Quisque pulvinar fringilla cursus. Morbi malesuada laoreet dui, vitae consequat arcu vehicula vel. Fusce vel turpis non ante mollis bibendum a ac risus. Morbi ornare ipsum sit amet enim rhoncus, sed eleifend felis tristique. Mauris sed sollicitudin libero. In nec lacus quis erat rhoncus molestie.',
'thumbnail' => '{{featured-image-yummy}}',
),
'womens-relay-competition' => array(
'post_type' => 'post',
'post_title' => 'Womens Relay Competition',
'post_content' => 'The young team of Franziska Hildebrand, Franziska Preuss, Vanessa Hinz and Dahlmeier clocked 1 hour, 11 minutes, 54.6 seconds to beat France by just over 1 minute. Italy took bronze, 1:06.1 behind. Germany missed six targets overall, avoiding any laps around the penalty loop. Maria Dorin Habert of France, who has two individual gold medals at these worlds, passed Russia and France on the last leg and to take her team from fourth to second.',
'thumbnail' => '{{featured-image-relay-race}}',
),
'a-paradise-for-holiday' => array(
'post_type' => 'post',
'post_title' => 'A Paradise for Holiday',
'post_content' => 'Chocolate bar marzipan sweet marzipan. Danish tart bear claw donut cake bonbon biscuit powder croissant. Liquorice cake cookie. Dessert cotton candy macaroon gummies sweet gingerbread sugar plum. Biscuit tart cake. Candy jelly ice cream halvah jelly-o jelly beans brownie pastry sweet. Candy sweet roll dessert. Lemon drops jelly-o fruitcake topping. Soufflé jelly beans bonbon.',
'thumbnail' => '{{featured-image-paradise-for-holiday}}',
),
'destruction-in-montania' => array(
'post_type' => 'post',
'post_title' => 'Destruction in Montania',
'post_content' => 'Nunc consectetur ipsum nisi, ut pellentesque felis tempus vitae. Integer eget lacinia nunc. Vestibulum consectetur convallis augue id egestas. Nullam rhoncus, arcu in tincidunt ultricies, velit diam imperdiet lacus, sed faucibus mi massa vel nunc. In ac viverra augue, a luctus nisl. Donec interdum enim tempus, aliquet metus maximus, euismod quam. Sed pretium finibus rhoncus. Phasellus libero diam, rutrum non ipsum ut, ultricies sodales sapien. Duis viverra purus lorem.',
'thumbnail' => '{{featured-image-fireman}}',
),
),
// Create the custom image attachments used as post thumbnails for pages.
'attachments' => array(
'colormag-logo' => array(
'post_title' => 'ColorMag Logo',
'file' => 'img/colormag-logo.png',
),
'featured-image-fireman' => array(
'post_title' => 'Featured image fireman',
'file' => 'img/fireman.jpg',
),
'featured-image-coffee' => array(
'post_title' => 'Featured image coffee',
'file' => 'img/coffee.jpg',
),
'featured-image-yummy' => array(
'post_title' => 'Featured image yummy',
'file' => 'img/yummy.jpg',
),
'featured-image-relay-race' => array(
'post_title' => 'Featured image relay race',
'file' => 'img/relay-race.jpg',
),
'featured-image-paradise-for-holiday' => array(
'post_title' => 'Featured image paradise for holiday',
'file' => 'img/sea.jpg',
),
'featured-image-ad-medium' => array(
'post_title' => 'Featured image ad medium',
'file' => 'img/ad-medium.jpg',
),
'featured-image-ad-large' => array(
'post_title' => 'Featured image ad large',
'file' => 'img/ad-large.jpg',
),
),
'options' => array(
'blogname' => 'ColorMag',
'blogdescription' => 'ColorMag Demo site',
),
// Set the front page section theme mods to the IDs of the core-registered pages.
'theme_mods' => array(
'custom_logo' => '{{colormag-logo}}',
'colormag_breaking_news' => 1,
'colormag_date_display' => 1,
'colormag_header_logo_placement' => 'header_logo_only',
'colormag_hide_blog_front' => 1,
'colormag_search_icon_in_menu' => 1,
'colormag_random_post_in_menu' => 1,
'colormag_social_link_activate' => 1,
'colormag_home_icon_display' => 1,
'colormag_primary_sticky_menu' => 1,
'colormag_related_posts_activate' => 1,
'colormag_social_facebook' => '#',
'colormag_social_twitter' => '#',
'colormag_social_googleplus' => '#',
'colormag_social_instagram' => '#',
'colormag_social_pinterest' => '#',
'colormag_social_youtube' => '#',
),
// Set up nav menus for each of the two areas registered in the theme.
'nav_menus' => array(
// Assign a menu to the "primary" location.
'primary' => array(
'name' => 'Primary',
'items' => array(
'link_download' => array(
'type' => 'custom',
'title' => 'Download',
'url' => 'https://downloads.wordpress.org/theme/colormag.zip',
),
'link_theme-info' => array(
'type' => 'custom',
'title' => 'Theme Info',
'url' => 'https://themegrill.com/themes/colormag/',
),
'link_view-pro' => array(
'type' => 'custom',
'title' => 'View pro',
'url' => 'https://themegrill.com/themes/colormag/',
),
'page_layout' => array(
'type' => 'post_type',
'object' => 'page',
'object_id' => '{{layout}}',
),
'page_contact',
),
),
),
);
$starter_content = apply_filters( 'colormag_starter_content', $starter_content );
add_theme_support( 'starter-content', $starter_content );
}
endif;
/**
* Define Directory Location Constants
*/
define( 'COLORMAG_PARENT_DIR', get_template_directory() );
define( 'COLORMAG_CHILD_DIR', get_stylesheet_directory() );
define( 'COLORMAG_INCLUDES_DIR', COLORMAG_PARENT_DIR . '/inc' );
define( 'COLORMAG_CSS_DIR', COLORMAG_PARENT_DIR . '/css' );
define( 'COLORMAG_JS_DIR', COLORMAG_PARENT_DIR . '/js' );
define( 'COLORMAG_LANGUAGES_DIR', COLORMAG_PARENT_DIR . '/languages' );
define( 'COLORMAG_ADMIN_DIR', COLORMAG_INCLUDES_DIR . '/admin' );
define( 'COLORMAG_WIDGETS_DIR', COLORMAG_INCLUDES_DIR . '/widgets' );
define( 'COLORMAG_ELEMENTOR_DIR', COLORMAG_INCLUDES_DIR . '/elementor' );
define( 'COLORMAG_ELEMENTOR_WIDGETS_DIR', COLORMAG_ELEMENTOR_DIR . '/widgets' );
define( 'COLORMAG_ADMIN_IMAGES_DIR', COLORMAG_ADMIN_DIR . '/images' );
/**
* Define URL Location Constants
*/
define( 'COLORMAG_PARENT_URL', get_template_directory_uri() );
define( 'COLORMAG_CHILD_URL', get_stylesheet_directory_uri() );
define( 'COLORMAG_INCLUDES_URL', COLORMAG_PARENT_URL . '/inc' );
define( 'COLORMAG_CSS_URL', COLORMAG_PARENT_URL . '/css' );
define( 'COLORMAG_JS_URL', COLORMAG_PARENT_URL . '/js' );
define( 'COLORMAG_LANGUAGES_URL', COLORMAG_PARENT_URL . '/languages' );
define( 'COLORMAG_ADMIN_URL', COLORMAG_INCLUDES_URL . '/admin' );
define( 'COLORMAG_WIDGETS_URL', COLORMAG_INCLUDES_URL . '/widgets' );
define( 'COLORMAG_ELEMENTOR_URL', COLORMAG_INCLUDES_URL . '/elementor' );
define( 'COLORMAG_ELEMENTOR_WIDGETS_URL', COLORMAG_ELEMENTOR_URL . '/widgets' );
define( 'COLORMAG_ADMIN_IMAGES_URL', COLORMAG_ADMIN_URL . '/images' );
/** Load functions */
require_once( COLORMAG_INCLUDES_DIR . '/custom-header.php' );
require_once( COLORMAG_INCLUDES_DIR . '/functions.php' );
require_once( COLORMAG_INCLUDES_DIR . '/header-functions.php' );
require_once( COLORMAG_INCLUDES_DIR . '/customizer.php' );
/** Add the Elementor compatibility file */
if ( defined( 'ELEMENTOR_VERSION' ) ) {
require_once( COLORMAG_ELEMENTOR_DIR . '/elementor.php' );
require_once( COLORMAG_ELEMENTOR_DIR . '/elementor-functions.php' );
}
require_once( COLORMAG_ADMIN_DIR . '/meta-boxes.php' );
/** Load Widgets and Widgetized Area */
require_once( COLORMAG_WIDGETS_DIR . '/widgets.php' );
/**
* Detect plugin. For use on Front End only.
*/
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
/**
* Load Demo Importer Configs.
*/
if ( class_exists( 'TG_Demo_Importer' ) ) {
require get_template_directory() . '/inc/demo-config.php';
}
/**
* Assign the ColorMag version to a variable.
*/
$theme = wp_get_theme( 'colormag' );
$colormag_version = $theme['Version'];
/**
* Calling in the admin area for the Welcome Page as well as for the new theme notice too.
*/
if ( is_admin() ) {
require get_template_directory() . '/inc/admin/class-colormag-admin.php';
require get_template_directory() . '/inc/admin/class-colormag-site-library.php';
require get_template_directory() . '/inc/admin/class-colormag-theme-review-notice.php';
}
/**
* Load TGMPA Configs.
*/
require_once( COLORMAG_INCLUDES_DIR . '/tgm-plugin-activation/class-tgm-plugin-activation.php' );
require_once( COLORMAG_INCLUDES_DIR . '/tgm-plugin-activation/tgmpa-colormag.php' );
?>

View File

@@ -1,94 +0,0 @@
<?php
/**
* Theme Header Section for our theme.
*
* Displays all of the <head> section and everything up till <div id="main" class="clearfix"> <div class="inner-wrap">
*
* @package ThemeGrill
* @subpackage ColorMag
* @since ColorMag 1.0
*/
?><!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
/**
* This hook is important for wordpress plugins and other many things
*/
wp_head();
?>
</head>
<body <?php body_class(); ?>>
<?php
/**
* WordPress function to load custom scripts after body.
*
* Introduced in WordPress 5.2.0
*
* @since ColorMag 1.4.0
*/
if ( function_exists( 'wp_body_open' ) ) {
wp_body_open();
}
?>
<?php do_action( 'colormag_before' ); ?>
<div id="page" class="hfeed site">
<a class="skip-link screen-reader-text" href="#main"><?php esc_html_e( 'Skip to content', 'colormag' ); ?></a>
<?php do_action( 'colormag_before_header' ); ?>
<?php
// Add the main total header area display type dynamic class.
$main_total_header_option_layout_class = get_theme_mod( 'colormag_main_total_header_area_display_type', 'type_one' );
$class_name = '';
if ( $main_total_header_option_layout_class == 'type_two' ) {
$class_name = 'colormag-header-clean';
} else if ( $main_total_header_option_layout_class == 'type_three' ) {
$class_name = 'colormag-header-classic';
}
?>
<header id="masthead" class="site-header clearfix <?php echo esc_attr( $class_name ); ?>">
<div id="header-text-nav-container" class="clearfix">
<?php colormag_top_header_bar_display(); // Display the top header bar ?>
<?php
if ( get_theme_mod( 'colormag_header_image_position', 'position_two' ) == 'position_one' ) {
colormag_render_header_image();
}
?>
<?php colormag_middle_header_bar_display(); // Display the middle header bar ?>
<?php
if ( get_theme_mod( 'colormag_header_image_position', 'position_two' ) == 'position_two' ) {
colormag_render_header_image();
}
?>
<?php colormag_below_header_bar_display(); // Display the below header bar ?>
</div><!-- #header-text-nav-container -->
<?php
if ( get_theme_mod( 'colormag_header_image_position', 'position_two' ) == 'position_three' ) {
colormag_render_header_image();
}
?>
</header>
<?php do_action( 'colormag_after_header' ); ?>
<?php do_action( 'colormag_before_main' ); ?>
<div id="main" class="clearfix">
<div class="inner-wrap clearfix">

Binary file not shown.

Before

Width:  |  Height:  |  Size: 162 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 110 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 85 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 201 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 94 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 232 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 190 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 247 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 69 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 119 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 121 KiB

View File

@@ -1,752 +0,0 @@
<?php
/**
* ColorMag Admin Class.
*
* @author ThemeGrill
* @package ColorMag
* @since 1.1.4
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
if ( ! class_exists( 'ColorMag_Admin' ) ) :
/**
* ColorMag_Admin Class.
*/
class ColorMag_Admin {
/**
* Constructor.
*/
public function __construct() {
add_action( 'admin_menu', array( $this, 'admin_menu' ) );
add_action( 'wp_loaded', array( __CLASS__, 'hide_notices' ) );
add_action( 'wp_loaded', array( $this, 'admin_notice' ) );
add_action( 'wp_ajax_import_button', array( $this, 'colormag_ajax_import_button_handler' ) );
add_action( 'admin_enqueue_scripts', array( $this, 'colormag_ajax_enqueue_scripts' ) );
}
/**
* Localize array for import button AJAX request.
*/
public function colormag_ajax_enqueue_scripts() {
wp_enqueue_script( 'updates' );
wp_enqueue_script( 'colormag-plugin-install-helper', get_template_directory_uri() . '/inc/admin/js/plugin-handle.js', array( 'jquery' ), 1, true );
wp_localize_script(
'colormag-plugin-install-helper', 'colormag_plugin_helper',
array(
'activating' => esc_html__( 'Activating ', 'colormag' ),
)
);
$translation_array = array(
'uri' => esc_url( admin_url( '/themes.php?page=demo-importer&browse=all&colormag-hide-notice=welcome' ) ),
'btn_text' => esc_html__( 'Processing...', 'colormag' ),
'nonce' => wp_create_nonce( 'colormag_demo_import_nonce' ),
);
wp_localize_script( 'colormag-plugin-install-helper', 'colormag_redirect_demo_page', $translation_array );
}
/**
* Handle the AJAX process while import or get started button clicked.
*/
public function colormag_ajax_import_button_handler() {
check_ajax_referer( 'colormag_demo_import_nonce', 'security' );
$state = '';
if ( is_plugin_active( 'themegrill-demo-importer/themegrill-demo-importer.php' ) ) {
$state = 'activated';
} elseif ( file_exists( WP_PLUGIN_DIR . '/themegrill-demo-importer/themegrill-demo-importer.php' ) ) {
$state = 'installed';
}
if ( 'activated' === $state ) {
$response['redirect'] = admin_url( '/themes.php?page=demo-importer&browse=all&colormag-hide-notice=welcome' );
} elseif ( 'installed' === $state ) {
$response['redirect'] = admin_url( '/themes.php?page=demo-importer&browse=all&colormag-hide-notice=welcome' );
if ( current_user_can( 'activate_plugin' ) ) {
$result = activate_plugin( 'themegrill-demo-importer/themegrill-demo-importer.php' );
if ( is_wp_error( $result ) ) {
$response['errorCode'] = $result->get_error_code();
$response['errorMessage'] = $result->get_error_message();
}
}
} else {
wp_enqueue_script( 'plugin-install' );
$response['redirect'] = admin_url( '/themes.php?page=demo-importer&browse=all&colormag-hide-notice=welcome' );
/**
* Install Plugin.
*/
include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
include_once ABSPATH . 'wp-admin/includes/plugin-install.php';
$api = plugins_api( 'plugin_information', array(
'slug' => sanitize_key( wp_unslash( 'themegrill-demo-importer' ) ),
'fields' => array(
'sections' => false,
),
) );
$skin = new WP_Ajax_Upgrader_Skin();
$upgrader = new Plugin_Upgrader( $skin );
$result = $upgrader->install( $api->download_link );
if ( $result ) {
$response['installed'] = 'succeed';
} else {
$response['installed'] = 'failed';
}
// Activate plugin.
if ( current_user_can( 'activate_plugin' ) ) {
$result = activate_plugin( 'themegrill-demo-importer/themegrill-demo-importer.php' );
if ( is_wp_error( $result ) ) {
$response['errorCode'] = $result->get_error_code();
$response['errorMessage'] = $result->get_error_message();
}
}
}
wp_send_json( $response );
exit();
}
/**
* Add admin menu.
*/
public function admin_menu() {
$theme = wp_get_theme( get_template() );
$page = add_theme_page( esc_html__( 'About', 'colormag' ) . ' ' . $theme->display( 'Name' ), esc_html__( 'About', 'colormag' ) . ' ' . $theme->display( 'Name' ), 'activate_plugins', 'colormag-sitelibrary', array(
$this,
'sitelibrary_screen',
) );
add_action( 'admin_print_styles-' . $page, array( $this, 'enqueue_styles' ) );
}
/**
* Enqueue styles.
*/
public function enqueue_styles() {
global $colormag_version;
wp_enqueue_style( 'colormag-welcome', get_template_directory_uri() . '/css/admin/welcome.css', array(), $colormag_version );
}
/**
* Add admin notice.
*/
public function admin_notice() {
global $colormag_version, $pagenow;
wp_enqueue_style( 'colormag-message', get_template_directory_uri() . '/css/admin/message.css', array(), $colormag_version );
// Let's bail on theme activation.
$notice_nag = get_option( 'colormag_admin_notice_welcome' );
if ( ! $notice_nag ) {
add_action( 'admin_notices', array( $this, 'welcome_notice' ) );
}
}
/**
* Hide a notice if the GET variable is set.
*/
public static function hide_notices() {
if ( isset( $_GET['colormag-hide-notice'] ) && isset( $_GET['_colormag_notice_nonce'] ) ) {
if ( ! wp_verify_nonce( $_GET['_colormag_notice_nonce'], 'colormag_hide_notices_nonce' ) ) {
wp_die( __( 'Action failed. Please refresh the page and retry.', 'colormag' ) );
}
if ( ! current_user_can( 'manage_options' ) ) {
wp_die( __( 'Cheatin&#8217; huh?', 'colormag' ) );
}
$hide_notice = sanitize_text_field( $_GET['colormag-hide-notice'] );
update_option( 'colormag_admin_notice_' . $hide_notice, 1 );
// Hide.
if ( 'welcome' === $_GET['colormag-hide-notice'] ) {
update_option( 'colormag_admin_notice_' . $hide_notice, 1 );
} else { // Show.
delete_option( 'colormag_admin_notice_' . $hide_notice );
}
}
}
/**
* Show welcome notice.
*/
public function welcome_notice() {
?>
<div id="message" class="updated colormag-message">
<a class="colormag-message-close notice-dismiss" href="<?php echo esc_url( wp_nonce_url( remove_query_arg( array( 'activated' ), add_query_arg( 'colormag-hide-notice', 'welcome' ) ), 'colormag_hide_notices_nonce', '_colormag_notice_nonce' ) ); ?>">
<?php esc_html_e( 'Dismiss', 'colormag' ); ?>
</a>
<div class="colormag-message-wrapper">
<div class="colormag-logo">
<img src="<?php echo get_template_directory_uri(); ?>/img/colormag-getting-started-logo.png" alt="<?php esc_html_e( 'ColorMag', 'colormag' ); ?>" /><?php // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped, Squiz.PHP.EmbeddedPhp.SpacingBeforeClose ?>
</div>
<p>
<?php printf( esc_html__( 'Welcome! Thank you for choosing ColorMag! To fully take advantage of the best our theme can offer please make sure you visit our %swelcome page%s.', 'colormag' ), '<a href="' . esc_url( admin_url( 'themes.php?page=colormag-welcome' ) ) . '">', '</a>' ); ?>
<span class="plugin-install-notice"><?php esc_html_e( 'Clicking the button below will install and activate the ThemeGrill demo importer plugin.', 'colormag' ); ?></span>
</p>
<div class="submit">
<a class="btn-get-started button button-primary button-hero" href="#" data-name="" data-slug="" aria-label="<?php esc_html_e( 'Get started with ColorMag', 'colormag' ); ?>"><?php esc_html_e( 'Get started with ColorMag', 'colormag' ); ?></a>
</div>
</div>
</div>
<?php
}
/**
* Intro text/links shown to all about pages.
*
* @access private
*/
private function intro() {
global $colormag_version;
$theme = wp_get_theme( get_template() );
?>
<div class="header">
<div class="info">
<h1>
<?php esc_html_e( 'About', 'colormag' ); ?>
<?php echo $theme->display( 'Name' ); ?>
<span class="version-container"><?php echo esc_html( $colormag_version ); ?></span>
</h1>
<div class="tg-about-text about-text">
<?php echo $theme->display( 'Description' ); ?>
</div>
<a href="https://themegrill.com/" target="_blank" class="wp-badge tg-welcome-logo"></a>
</div>
</div>
<p class="colormag-actions">
<a href="<?php echo esc_url( 'https://themegrill.com/themes/colormag/?utm_source=colormag-about&utm_medium=theme-info-link&utm_campaign=theme-info' ); ?>" class="button button-secondary" target="_blank"><?php esc_html_e( 'Theme Info', 'colormag' ); ?></a>
<a href="<?php echo esc_url( apply_filters( 'colormag_pro_theme_url', 'https://demo.themegrill.com/colormag/' ) ); ?>" class="button button-secondary docs" target="_blank"><?php esc_html_e( 'View Demo', 'colormag' ); ?></a>
<a href="<?php echo esc_url( apply_filters( 'colormag_pro_theme_url', 'https://themegrill.com/themes/colormag/?utm_source=colormag-about&utm_medium=view-pro-link&utm_campaign=view-pro#free-vs-pro' ) ); ?>" class="button button-primary docs" target="_blank"><?php esc_html_e( 'View PRO version', 'colormag' ); ?></a>
<a href="<?php echo esc_url( apply_filters( 'colormag_pro_theme_url', 'https://wordpress.org/support/theme/colormag/reviews/?filter=5' ) ); ?>" class="button button-secondary docs" target="_blank"><?php esc_html_e( 'Rate this theme', 'colormag' ); ?></a>
</p>
<h2 class="nav-tab-wrapper">
<a class="nav-tab <?php if ( empty( $_GET['tab'] ) && $_GET['page'] == 'colormag-sitelibrary' ) {
echo 'nav-tab-active';
} ?>" href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => 'colormag-sitelibrary' ), 'themes.php' ) ) ); ?>">
<?php esc_html_e( 'Site Library', 'colormag' ); ?>
</a>
<a class="nav-tab <?php if ( isset( $_GET['tab'] ) && $_GET['tab'] == 'welcome' ) {
echo 'nav-tab-active';
} ?>" href="<?php echo esc_url( admin_url( add_query_arg( array(
'page' => 'colormag-sitelibrary',
'tab' => 'welcome',
), 'themes.php' ) ) ); ?>">
<?php esc_html_e( 'Getting Started', 'colormag' ); ?>
</a>
<a class="nav-tab <?php if ( isset( $_GET['tab'] ) && $_GET['tab'] == 'supported_plugins' ) {
echo 'nav-tab-active';
} ?>" href="<?php echo esc_url( admin_url( add_query_arg( array(
'page' => 'colormag-sitelibrary',
'tab' => 'supported_plugins',
), 'themes.php' ) ) ); ?>">
<?php esc_html_e( 'Recommended Plugins', 'colormag' ); ?>
</a>
<a class="nav-tab <?php if ( isset( $_GET['tab'] ) && $_GET['tab'] == 'free_vs_pro' ) {
echo 'nav-tab-active';
} ?>" href="<?php echo esc_url( admin_url( add_query_arg( array(
'page' => 'colormag-sitelibrary',
'tab' => 'free_vs_pro',
), 'themes.php' ) ) ); ?>">
<?php esc_html_e( 'Free Vs Pro', 'colormag' ); ?>
</a>
<a class="nav-tab <?php if ( isset( $_GET['tab'] ) && $_GET['tab'] == 'changelog' ) {
echo 'nav-tab-active';
} ?>" href="<?php echo esc_url( admin_url( add_query_arg( array(
'page' => 'colormag-sitelibrary',
'tab' => 'changelog',
), 'themes.php' ) ) ); ?>">
<?php esc_html_e( 'Changelog', 'colormag' ); ?>
</a>
</h2>
<?php
}
/**
* Site library screen page.
*/
public function sitelibrary_screen() {
$current_tab = empty( $_GET['tab'] ) ? 'library' : sanitize_title( $_GET['tab'] );
// Look for a {$current_tab}_screen method.
if ( is_callable( array( $this, $current_tab . '_screen' ) ) ) {
return $this->{$current_tab . '_screen'}();
}
// Fallback to about screen.
return $this->sitelibrary_display_screen();
}
/**
* Render site library.
*/
public function sitelibrary_display_screen() {
?>
<div class="wrap about-wrap">
<?php
$this->intro();
?>
<div class="plugin-install-notice">
<?php esc_html_e( 'Clicking the "Import" button in any of the demos below will install and activate the ThemeGrill demo importer plugin.', 'colormag' ); ?>
</div>
<?php
// Display site library.
echo ColorMag_Site_Library::colormag_site_library_page_content();
?>
</div>
<?php
}
/**
* Welcome screen page.
*/
public function welcome_screen() {
$this->about_screen();
}
/**
* Output the about screen.
*/
public function about_screen() {
$theme = wp_get_theme( get_template() );
?>
<div class="wrap about-wrap">
<?php $this->intro(); ?>
<div class="changelog point-releases">
<div class="under-the-hood two-col">
<div class="col">
<h3><?php esc_html_e( 'Import Demo', 'colormag' ); ?></h3>
<p><?php esc_html_e( 'Needs ThemeGrill Demo Importer plugin.', 'colormag' ) ?></p>
<div class="submit">
<a class="btn-get-started button button-primary button-hero" href="#" data-name="" data-slug="" aria-label="<?php esc_html_e( 'Import', 'colormag' ); ?>"><?php esc_html_e( 'Import', 'colormag' ); ?></a>
</div>
</div>
<div class="col">
<h3><?php esc_html_e( 'Theme Customizer', 'colormag' ); ?></h3>
<p><?php esc_html_e( 'All Theme Options are available via Customize screen.', 'colormag' ) ?></p>
<p>
<a href="<?php echo admin_url( 'customize.php' ); ?>" class="button button-secondary"><?php esc_html_e( 'Customize', 'colormag' ); ?></a>
</p>
</div>
<div class="col">
<h3><?php esc_html_e( 'Documentation', 'colormag' ); ?></h3>
<p><?php esc_html_e( 'Please view our documentation page to setup the theme.', 'colormag' ) ?></p>
<p>
<a href="<?php echo esc_url( 'https://docs.themegrill.com/colormag/?utm_source=colormag-about&utm_medium=documentation-link&utm_campaign=documentation' ); ?>" class="button button-secondary" target="_blank"><?php esc_html_e( 'Documentation', 'colormag' ); ?></a>
</p>
</div>
<div class="col">
<h3><?php esc_html_e( 'Got theme support question?', 'colormag' ); ?></h3>
<p><?php esc_html_e( 'Please put it in our dedicated support forum.', 'colormag' ) ?></p>
<p>
<a href="<?php echo esc_url( 'https://themegrill.com/support-forum/?utm_source=colormag-about&utm_medium=support-forum-link&utm_campaign=support-forum' ); ?>" class="button button-secondary" target="_blank"><?php esc_html_e( 'Support', 'colormag' ); ?></a>
</p>
</div>
<div class="col">
<h3><?php esc_html_e( 'Need more features?', 'colormag' ); ?></h3>
<p><?php esc_html_e( 'Upgrade to PRO version for more exciting features.', 'colormag' ) ?></p>
<p>
<a href="<?php echo esc_url( 'https://themegrill.com/themes/colormag/?utm_source=colormag-about&utm_medium=view-pro-link&utm_campaign=view-pro#free-vs-pro' ); ?>" class="button button-secondary" target="_blank"><?php esc_html_e( 'View PRO version', 'colormag' ); ?></a>
</p>
</div>
<div class="col">
<h3><?php esc_html_e( 'Got sales related question?', 'colormag' ); ?></h3>
<p><?php esc_html_e( 'Please send it via our sales contact page.', 'colormag' ) ?></p>
<p>
<a href="<?php echo esc_url( 'https://themegrill.com/contact/?utm_source=colormag-about&utm_medium=contact-page-link&utm_campaign=contact-page' ); ?>" class="button button-secondary" target="_blank"><?php esc_html_e( 'Contact Page', 'colormag' ); ?></a>
</p>
</div>
<div class="col">
<h3>
<?php
esc_html_e( 'Translate', 'colormag' );
echo ' ' . $theme->display( 'Name' );
?>
</h3>
<p><?php esc_html_e( 'Click below to translate this theme into your own language.', 'colormag' ) ?></p>
<p>
<a href="<?php echo esc_url( 'https://translate.wordpress.org/projects/wp-themes/colormag' ); ?>" class="button button-secondary" target="_blank">
<?php
esc_html_e( 'Translate', 'colormag' );
echo ' ' . $theme->display( 'Name' );
?>
</a>
</p>
</div>
</div>
</div>
<div class="return-to-dashboard colormag">
<?php if ( current_user_can( 'update_core' ) && isset( $_GET['updated'] ) ) : ?>
<a href="<?php echo esc_url( self_admin_url( 'update-core.php' ) ); ?>">
<?php is_multisite() ? esc_html_e( 'Return to Updates', 'colormag' ) : esc_html_e( 'Return to Dashboard &rarr; Updates', 'colormag' ); ?>
</a> |
<?php endif; ?>
<a href="<?php echo esc_url( self_admin_url() ); ?>"><?php is_blog_admin() ? esc_html_e( 'Go to Dashboard &rarr; Home', 'colormag' ) : esc_html_e( 'Go to Dashboard', 'colormag' ); ?></a>
</div>
</div>
<?php
}
/**
* Output the changelog screen.
*/
public function changelog_screen() {
global $wp_filesystem;
?>
<div class="wrap about-wrap">
<?php $this->intro(); ?>
<p class="about-description"><?php esc_html_e( 'View changelog below:', 'colormag' ); ?></p>
<?php
$changelog_file = apply_filters( 'colormag_changelog_file', get_template_directory() . '/readme.txt' );
// Check if the changelog file exists and is readable.
if ( $changelog_file && is_readable( $changelog_file ) ) {
WP_Filesystem();
$changelog = $wp_filesystem->get_contents( $changelog_file );
$changelog_list = $this->parse_changelog( $changelog );
echo wp_kses_post( $changelog_list );
}
?>
</div>
<?php
}
/**
* Parse changelog from readme file.
*
* @param string $content
*
* @return string
*/
private function parse_changelog( $content ) {
$matches = null;
$regexp = '~==\s*Changelog\s*==(.*)($)~Uis';
$changelog = '';
if ( preg_match( $regexp, $content, $matches ) ) {
$changes = explode( '\r\n', trim( $matches[1] ) );
$changelog .= '<pre class="changelog">';
foreach ( $changes as $index => $line ) {
$changelog .= wp_kses_post( preg_replace( '~(=\s*Version\s*(\d+(?:\.\d+)+)\s*=|$)~Uis', '<span class="title">${1}</span>', $line ) );
}
$changelog .= '</pre>';
}
return wp_kses_post( $changelog );
}
/**
* Output the supported plugins screen.
*/
public function supported_plugins_screen() {
?>
<div class="wrap about-wrap">
<?php $this->intro(); ?>
<p class="about-description"><?php esc_html_e( 'This theme recommends following plugins:', 'colormag' ); ?></p>
<ol>
<li>
<a href="<?php echo esc_url( 'https://wordpress.org/plugins/social-icons/' ); ?>" target="_blank"><?php esc_html_e( 'Social Icons', 'colormag' ); ?></a>
<?php esc_html_e( ' by ThemeGrill', 'colormag' ); ?>
</li>
<li>
<a href="<?php echo esc_url( 'https://wordpress.org/plugins/easy-social-sharing/' ); ?>" target="_blank"><?php esc_html_e( 'Easy Social Sharing', 'colormag' ); ?></a>
<?php esc_html_e( ' by ThemeGrill', 'colormag' ); ?>
</li>
<li>
<a href="<?php echo esc_url( 'https://wordpress.org/plugins/everest-forms/' ); ?>" target="_blank"><?php esc_html_e( 'Everest Forms Easy Contact Form and Form Builder', 'colormag' ); ?></a>
<?php esc_html_e( ' by WPEverest', 'colormag' ); ?></li>
<li>
<a href="<?php echo esc_url( 'https://wordpress.org/plugins/wp-pagenavi/' ); ?>" target="_blank"><?php esc_html_e( 'WP-PageNavi', 'colormag' ); ?></a>
</li>
<li>
<a href="<?php echo esc_url( 'https://wordpress.org/plugins/woocommerce/' ); ?>" target="_blank"><?php esc_html_e( 'WooCommerce', 'colormag' ); ?></a>
</li>
<li>
<a href="<?php echo esc_url( 'https://wordpress.org/plugins/polylang/' ); ?>" target="_blank"><?php esc_html_e( 'Polylang', 'colormag' ); ?></a>
<?php esc_html_e( 'Fully Compatible in Pro Version', 'colormag' ); ?>
</li>
<li>
<a href="<?php echo esc_url( 'https://wpml.org/' ); ?>" target="_blank"><?php esc_html_e( 'WPML', 'colormag' ); ?></a>
<?php esc_html_e( 'Fully Compatible in Pro Version', 'colormag' ); ?>
</li>
</ol>
</div>
<?php
}
/**
* Output the free vs pro screen.
*/
public function free_vs_pro_screen() {
?>
<div class="wrap about-wrap">
<?php $this->intro(); ?>
<p class="about-description"><?php esc_html_e( 'Upgrade to PRO version for more exciting features.', 'colormag' ); ?></p>
<table>
<thead>
<tr>
<th class="table-feature-title"><h3><?php esc_html_e( 'Features', 'colormag' ); ?></h3></th>
<th><h3><?php esc_html_e( 'ColorMag', 'colormag' ); ?></h3></th>
<th><h3><?php esc_html_e( 'ColorMag Pro', 'colormag' ); ?></h3></th>
</tr>
</thead>
<tbody>
<tr>
<td><h3><?php esc_html_e( 'Support', 'colormag' ); ?></h3></td>
<td><?php esc_html_e( 'Forum', 'colormag' ); ?></td>
<td><?php esc_html_e( 'Forum + Emails/Support Ticket', 'colormag' ); ?></td>
</tr>
<tr>
<td><h3><?php esc_html_e( 'Color Options', 'colormag' ); ?></h3></td>
<td><?php esc_html_e( '1', 'colormag' ); ?></td>
<td><?php esc_html_e( '22', 'colormag' ); ?></td>
</tr>
<tr>
<td><h3><?php esc_html_e( 'Primary color option', 'colormag' ); ?></h3></td>
<td><span class="dashicons dashicons-yes"></span></td>
<td><span class="dashicons dashicons-yes"></span></td>
</tr>
<tr>
<td><h3><?php esc_html_e( 'Font Size Options', 'colormag' ); ?></h3></td>
<td><span class="dashicons dashicons-no"></span></td>
<td><span class="dashicons dashicons-yes"></span></td>
</tr>
<tr>
<td><h3><?php esc_html_e( 'Google Fonts Options', 'colormag' ); ?></h3></td>
<td><span class="dashicons dashicons-no"></span></td>
<td><?php esc_html_e( '600+', 'colormag' ); ?></td>
</tr>
<tr>
<td><h3><?php esc_html_e( 'Custom Widgets', 'colormag' ); ?></h3></td>
<td><?php esc_html_e( '7', 'colormag' ); ?></td>
<td><?php esc_html_e( '16', 'colormag' ); ?></td>
</tr>
<tr>
<td><h3><?php esc_html_e( 'Social Icons', 'colormag' ); ?></h3></td>
<td><?php esc_html_e( '6', 'colormag' ); ?></td>
<td><?php esc_html_e( '18 + 6 Custom', 'colormag' ); ?></td>
</tr>
<tr>
<td><h3><?php esc_html_e( 'Social Sharing', 'colormag' ); ?></h3></td>
<td><span class="dashicons dashicons-no"></span></td>
<td><span class="dashicons dashicons-yes"></span></td>
</tr>
<tr>
<td><h3><?php esc_html_e( 'Custom Menu', 'colormag' ); ?></h3></td>
<td><?php esc_html_e( '1', 'colormag' ); ?></td>
<td><?php esc_html_e( '2', 'colormag' ); ?></td>
</tr>
<tr>
<td><h3><?php esc_html_e( 'Footer Sidebar', 'colormag' ); ?></h3></td>
<td><?php esc_html_e( '4', 'colormag' ); ?></td>
<td><?php esc_html_e( '7', 'colormag' ); ?></td>
</tr>
<tr>
<td><h3><?php esc_html_e( 'Site Layout Option', 'colormag' ); ?></h3></td>
<td><span class="dashicons dashicons-yes"></span></td>
<td><span class="dashicons dashicons-yes"></span></td>
</tr>
<tr>
<td><h3><?php esc_html_e( 'Options in Breaking News', 'colormag' ); ?></h3></td>
<td><span class="dashicons dashicons-no"></span></td>
<td><span class="dashicons dashicons-yes"></span></td>
</tr>
<tr>
<td><h3><?php esc_html_e( 'Unique Post System', 'colormag' ); ?></h3></td>
<td><span class="dashicons dashicons-no"></span></td>
<td><span class="dashicons dashicons-yes"></span></td>
</tr>
<tr>
<td><h3><?php esc_html_e( 'Change Read More Text', 'colormag' ); ?></h3></td>
<td><span class="dashicons dashicons-no"></span></td>
<td><span class="dashicons dashicons-yes"></span></td>
</tr>
<tr>
<td><h3><?php esc_html_e( 'Related Posts', 'colormag' ); ?></h3></td>
<td><span class="dashicons dashicons-yes"></span></td>
<td><span class="dashicons dashicons-yes"></span></td>
</tr>
<tr>
<td><h3><?php esc_html_e( 'Author Biography', 'colormag' ); ?></h3></td>
<td><span class="dashicons dashicons-yes"></span></td>
<td><span class="dashicons dashicons-yes"></span></td>
</tr>
<tr>
<td><h3><?php esc_html_e( 'Author Biography with Social Icons', 'colormag' ); ?></h3></td>
<td><span class="dashicons dashicons-no"></span></td>
<td><span class="dashicons dashicons-yes"></span></td>
</tr>
<tr>
<td><h3><?php esc_html_e( 'Footer Copyright Editor', 'colormag' ); ?></h3></td>
<td><span class="dashicons dashicons-no"></span></td>
<td><span class="dashicons dashicons-yes"></span></td>
</tr>
<tr>
<td><h3><?php esc_html_e( 'TG: 125x125 Advertisement', 'colormag' ); ?></h3></td>
<td><span class="dashicons dashicons-yes"></span></td>
<td><span class="dashicons dashicons-yes"></span></td>
</tr>
<tr>
<td><h3><?php esc_html_e( 'TG: 300x250 Advertisement', 'colormag' ); ?></h3></td>
<td><span class="dashicons dashicons-yes"></span></td>
<td><span class="dashicons dashicons-yes"></span></td>
</tr>
<tr>
<td><h3><?php esc_html_e( 'TG: 728x90 Advertisement', 'colormag' ); ?></h3></td>
<td><span class="dashicons dashicons-yes"></span></td>
<td><span class="dashicons dashicons-yes"></span></td>
</tr>
<tr>
<td><h3><?php esc_html_e( 'TG: Featured Category Slider', 'colormag' ); ?></h3></td>
<td><span class="dashicons dashicons-yes"></span></td>
<td><span class="dashicons dashicons-yes"></span></td>
</tr>
<tr>
<td><h3><?php esc_html_e( 'TG: Highlighted Posts', 'colormag' ); ?></h3></td>
<td><span class="dashicons dashicons-yes"></span></td>
<td><span class="dashicons dashicons-yes"></span></td>
</tr>
<tr>
<td><h3><?php esc_html_e( 'TG: Random Posts Widget', 'colormag' ); ?></h3></td>
<td><span class="dashicons dashicons-no"></span></td>
<td><span class="dashicons dashicons-yes"></span></td>
</tr>
<tr>
<td><h3><?php esc_html_e( 'TG: Tabbed Widget', 'colormag' ); ?></h3></td>
<td><span class="dashicons dashicons-no"></span></td>
<td><span class="dashicons dashicons-yes"></span></td>
</tr>
<tr>
<td><h3><?php esc_html_e( 'TG: Videos', 'colormag' ); ?></h3></td>
<td><span class="dashicons dashicons-no"></span></td>
<td><span class="dashicons dashicons-yes"></span></td>
</tr>
<tr>
<td><h3><?php esc_html_e( 'TG: Featured Posts (Style 1)', 'colormag' ); ?></h3></td>
<td><span class="dashicons dashicons-yes"></span></td>
<td><span class="dashicons dashicons-yes"></span></td>
</tr>
<tr>
<td><h3><?php esc_html_e( 'TG: Featured Posts (Style 2)', 'colormag' ); ?></h3></td>
<td><span class="dashicons dashicons-yes"></span></td>
<td><span class="dashicons dashicons-yes"></span></td>
</tr>
<tr>
<td><h3><?php esc_html_e( 'TG: Featured Posts (Style 3)', 'colormag' ); ?></h3></td>
<td><span class="dashicons dashicons-no"></span></td>
<td><span class="dashicons dashicons-yes"></span></td>
</tr>
<tr>
<td><h3><?php esc_html_e( 'TG: Featured Posts (Style 4)', 'colormag' ); ?></h3></td>
<td><span class="dashicons dashicons-no"></span></td>
<td><span class="dashicons dashicons-yes"></span></td>
</tr>
<tr>
<td><h3><?php esc_html_e( 'TG: Featured Posts (Style 5)', 'colormag' ); ?></h3></td>
<td><span class="dashicons dashicons-no"></span></td>
<td><span class="dashicons dashicons-yes"></span></td>
</tr>
<tr>
<td><h3><?php esc_html_e( 'TG: Featured Posts (Style 6)', 'colormag' ); ?></h3></td>
<td><span class="dashicons dashicons-no"></span></td>
<td><span class="dashicons dashicons-yes"></span></td>
</tr>
<tr>
<td><h3><?php esc_html_e( 'TG: Featured Posts (Style 7)', 'colormag' ); ?></h3></td>
<td><span class="dashicons dashicons-no"></span></td>
<td><span class="dashicons dashicons-yes"></span></td>
</tr>
<tr>
<td><h3><?php esc_html_e( 'Category Color Options', 'colormag' ); ?></h3></td>
<td><span class="dashicons dashicons-yes"></span></td>
<td><span class="dashicons dashicons-yes"></span></td>
</tr>
<tr>
<td><h3><?php esc_html_e( 'WPML Compatible', 'colormag' ); ?></h3></td>
<td><span class="dashicons dashicons-no"></span></td>
<td><span class="dashicons dashicons-yes"></span></td>
</tr>
<tr>
<td><h3><?php esc_html_e( 'Polylang Compatible', 'colormag' ); ?></h3></td>
<td><span class="dashicons dashicons-no"></span></td>
<td><span class="dashicons dashicons-yes"></span></td>
</tr>
<tr>
<td><h3><?php esc_html_e( 'WooCommerce Compatible', 'colormag' ); ?></h3></td>
<td><span class="dashicons dashicons-yes"></span></td>
<td><span class="dashicons dashicons-yes"></span></td>
</tr>
<tr>
<td></td>
<td></td>
<td class="btn-wrapper">
<a href="<?php echo esc_url( apply_filters( 'colormag_pro_theme_url', 'https://themegrill.com/themes/colormag/?utm_source=colormag-free-vs-pro-table&utm_medium=view-pro-link&utm_campaign=view-pro#free-vs-pro' ) ); ?>" class="button button-secondary docs" target="_blank"><?php esc_html_e( 'View Pro', 'colormag' ); ?></a>
</td>
</tr>
</tbody>
</table>
</div>
<?php
}
}
endif;
return new ColorMag_Admin();

View File

@@ -1,152 +0,0 @@
<?php
/**
* ColorMag_Site_Library class to fetch the
* theme demo configs from GitHub repo.
*
* @package ColorMag
*/
/**
* Class responsible for showcasing the theme demo
* in ThemeGrill Demo page.
*
* Class ColorMag_Site_Library
*/
class ColorMag_Site_Library {
/**
* Constructor function.
*
* ColorMag_Site_Library constructor.
*/
public function __construct() {
$this->colormag_site_library_demo_packages();
}
/**
* Demo config packages
*/
public function colormag_site_library_demo_packages() {
$this->colormag_site_library_get_demos();
}
/**
* Get the demo packages.
*
* @return array|mixed|null|object|string
*/
public static function colormag_site_library_get_demos() {
$template = 'colormag';
$packages = get_transient( 'colormag_site_library_theme_' . $template );
if ( false === $packages ) {
$raw_packages = wp_safe_remote_get( "https://raw.githubusercontent.com/themegrill/themegrill-demo-pack/master/configs/{$template}.json" );
if ( ! is_wp_error( $raw_packages ) ) {
$packages = json_decode( wp_remote_retrieve_body( $raw_packages ) );
if ( $packages ) {
set_transient( 'colormag_site_library_theme_' . $template, $packages, WEEK_IN_SECONDS );
}
}
}
return $packages;
}
/**
* Returns the content value filtered to display
* the demos of available themes via ThemeGrill Demo Pack
* config file.
*
* @return string The filtered post content.
*/
public static function colormag_site_library_page_content() {
$template = 'colormag';
$output = '';
$demo_packages = self::colormag_site_library_get_demos();
if ( isset( $demo_packages ) ) :
$output .= '<div id="wpbody" class="tg-demo-showcase">';
$output .= '<div id="wpbody-content">';
$output .= '<div class="wrap">';
$output .= '<div class="wp-filter hide-if-no-js">';
// Renders the theme lists.
$output .= '<h2 class="screen-reader-text hide-if-no-js">' . esc_html__( 'Themes list', 'colormag' ) . '</h2><!-- .screen-reader-text.hide-if-no-js -->';
$output .= '<div class="theme-browser content-filterable">';
$output .= '<div class="themes row wp-clearfix">';
foreach ( $demo_packages->demos as $demo_package_demo => $demo_package_data ) {
$output .= '<div class="theme col-md-4 col-sm-6 col-lg-4 ' . $demo_package_demo . '">';
// Inner wrapper.
$output .= '<div class="theme-inner">';
// Displays the theme demo screenshot.
$output .= '<div class="screenshot">';
$output .= '<img src="' . esc_url( 'https://raw.githubusercontent.com/themegrill/themegrill-demo-pack/master/resources/' . $template . '/' . $demo_package_demo ) . '/screenshot.jpg" alt="' . esc_attr( $demo_package_demo ) . '">';
$output .= '</div><!-- .screenshot -->';
// Displays the pro tag.
if ( isset( $demo_package_data->isPro ) ) {
$output .= '<span class="premium-demo-banner">';
$output .= esc_html__( 'Pro', 'colormag' );
$output .= '</span><!-- .premium-demo-banner -->';
}
// Wrap details on div.
$output .= '<div class="theme-details">';
// Theme id container details.
$output .= '<div class="theme-id-container">';
// Display the theme name.
$output .= '<h2 class="theme-name" id="' . $demo_package_demo . '-name">';
$output .= $demo_package_data->title;
$output .= '</h2><!-- .theme-name -->';
// Display the theme action buttons.
$output .= '<div class="theme-actions">';
// Import button.
if ( ! isset( $demo_package_data->isPro ) ) {
$output .= '<a class="btn-get-started button button-primary button-small preview install-demo-preview" href="#" data-name="themegrill-demo-importer" data-slug="themegrill-demo-importer" aria-label="' . esc_html__( 'Get started with ColorMag', 'colormag' ) . '">' . esc_html__( 'Import', 'colormag' ) . '</a>';
}
// Displays the preview now button.
$output .= '<a class="button button-small preview install-demo-preview" href="' . esc_url( $demo_package_data->preview ) . '" target="_blank">';
$output .= esc_html__( 'Preview', 'colormag' );
$output .= '</a>';
// Displays the buy now button.
if ( isset( $demo_package_data->isPro ) ) {
$output .= '<a class="button button-small button-primary purchase-now" href="' . $demo_packages->homepage . '" target="_blank">';
$output .= esc_html__( 'Buy Now', 'colormag' );
$output .= '</a><!-- .button.button-primary.purchase-now -->';
}
$output .= '</div><!-- .theme-actions -->';
$output .= '</div><!-- .theme-id-container -->';
$output .= '</div><!-- .theme-details -->';
$output .= '</div><!-- .theme-inner -->';
$output .= '</div><!-- .theme -->';
}
$output .= '</div><!-- .themes.wp-clearfix -->';
$output .= '</div><!-- .theme-browser.content-filterable -->';
$output .= '</div><!-- .wp-filter.hide-if-no-js -->';
$output .= '</div><!-- .wrap -->';
$output .= '</div><!-- #wpbody-content -->';
$output .= '</div><!-- #wpbody -->';
endif;
return $output;
}
}
new ColorMag_Site_Library();

View File

@@ -1,185 +0,0 @@
<?php
/**
* ColorMag Theme Review Notice Class.
*
* @author ThemeGrill
* @package ColorMag
* @since 1.3.9
*/
// Exit if directly accessed.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Class to display the theme review notice for this theme after certain period.
*
* Class ColorMag_Theme_Review_Notice
*/
class ColorMag_Theme_Review_Notice {
/**
* Constructor function to include the required functionality for the class.
*
* ColorMag_Theme_Review_Notice constructor.
*/
public function __construct() {
add_action( 'after_setup_theme', array( $this, 'colormag_theme_rating_notice' ) );
add_action( 'switch_theme', array( $this, 'colormag_theme_rating_notice_data_remove' ) );
add_action( 'admin_enqueue_scripts', array( $this, 'colormag_theme_rating_notice_enqueue' ) );
}
/**
* Set the required option value as needed for theme review notice.
*/
public function colormag_theme_rating_notice() {
// Set the installed time in `colormag_theme_installed_time` option table.
$option = get_option( 'colormag_theme_installed_time' );
if ( ! $option ) {
update_option( 'colormag_theme_installed_time', time() );
}
add_action( 'admin_notices', array( $this, 'colormag_theme_review_notice' ), 0 );
add_action( 'admin_init', array( $this, 'colormag_ignore_theme_review_notice' ), 0 );
add_action( 'admin_init', array( $this, 'colormag_ignore_theme_review_notice_partially' ), 0 );
}
/**
* Display the theme review notice.
*/
public function colormag_theme_review_notice() {
global $current_user;
$user_id = $current_user->ID;
$current_user = wp_get_current_user();
$ignored_notice = get_user_meta( $user_id, 'colormag_ignore_theme_review_notice', true );
$ignored_notice_partially = get_user_meta( $user_id, 'nag_colormag_ignore_theme_review_notice_partially', true );
/**
* Return from notice display if:
*
* 1. The theme installed is less than 15 day ago.
* 2. If the user has ignored the message partially for 15 day.
* 3. Dismiss always if clicked on 'I Already Did' button.
*/
if ( ( get_option( 'colormag_theme_installed_time' ) > strtotime( '-15 day' ) ) || ( $ignored_notice_partially > strtotime( '-15 day' ) ) || ( $ignored_notice ) ) {
return;
}
?>
<div class="notice updated theme-review-notice" style="position:relative;">
<p>
<?php
printf(
/* Translators: %1$s current user display name. */
esc_html__(
'Howdy, %1$s! It seems that you have been using this theme for more than 15 days. We hope you are happy with everything that the theme has to offer. If you can spare a minute, please help us by leaving a 5-star review on WordPress.org. By spreading the love, we can continue to develop new amazing features in the future, for free!', 'colormag'
),
'<strong>' . esc_html( $current_user->display_name ) . '</strong>'
);
?>
</p>
<div class="links">
<a href="https://wordpress.org/support/theme/colormag/reviews/?filter=5#new-post" class="btn button-primary" target="_blank">
<span class="dashicons dashicons-thumbs-up"></span>
<span><?php esc_html_e( 'Sure', 'colormag' ); ?></span>
</a>
<a href="?nag_colormag_ignore_theme_review_notice_partially=0" class="btn button-secondary">
<span class="dashicons dashicons-calendar"></span>
<span><?php esc_html_e( 'Maybe later', 'colormag' ); ?></span>
</a>
<a href="?nag_colormag_ignore_theme_review_notice=0" class="btn button-secondary">
<span class="dashicons dashicons-smiley"></span>
<span><?php esc_html_e( 'I already did', 'colormag' ); ?></span>
</a>
<a href="<?php echo esc_url( 'https://themegrill.com/support-forum/forum/colormag-free/' ); ?>" class="btn button-secondary" target="_blank">
<span class="dashicons dashicons-edit"></span>
<span><?php esc_html_e( 'Got theme support question?', 'colormag' ); ?></span>
</a>
</div>
<a class="notice-dismiss" style="text-decoration:none;" href="?nag_colormag_ignore_theme_review_notice_partially=0"></a>
</div>
<?php
}
/**
* Function to remove the theme review notice permanently as requested by the user.
*/
public function colormag_ignore_theme_review_notice() {
global $current_user;
$user_id = $current_user->ID;
/* If user clicks to ignore the notice, add that to their user meta */
if ( isset( $_GET['nag_colormag_ignore_theme_review_notice'] ) && '0' == $_GET['nag_colormag_ignore_theme_review_notice'] ) {
add_user_meta( $user_id, 'colormag_ignore_theme_review_notice', 'true', true );
}
}
/**
* Function to remove the theme review notice partially as requested by the user.
*/
public function colormag_ignore_theme_review_notice_partially() {
global $current_user;
$user_id = $current_user->ID;
/* If user clicks to ignore the notice, add that to their user meta */
if ( isset( $_GET['nag_colormag_ignore_theme_review_notice_partially'] ) && '0' == $_GET['nag_colormag_ignore_theme_review_notice_partially'] ) {
update_user_meta( $user_id, 'nag_colormag_ignore_theme_review_notice_partially', time() );
}
}
/**
* Remove the data set after the theme has been switched to other theme.
*/
public function colormag_theme_rating_notice_data_remove() {
global $current_user;
$user_id = $current_user->ID;
$theme_installed_time = get_option( 'colormag_theme_installed_time' );
$ignored_notice = get_user_meta( $user_id, 'colormag_ignore_theme_review_notice', true );
$ignored_notice_partially = get_user_meta( $user_id, 'nag_colormag_ignore_theme_review_notice_partially', true );
// Delete options data.
if ( $theme_installed_time ) {
delete_option( 'colormag_theme_installed_time' );
}
// Delete permanent notice remove data.
if ( $ignored_notice ) {
delete_user_meta( $user_id, 'colormag_ignore_theme_review_notice' );
}
// Delete partial notice remove data.
if ( $ignored_notice_partially ) {
delete_user_meta( $user_id, 'nag_colormag_ignore_theme_review_notice_partially' );
}
}
/**
* Enqueue the required CSS file for theme review notice on admin page.
*/
public function colormag_theme_rating_notice_enqueue() {
wp_enqueue_style( 'colormag-theme-review-notice', get_template_directory_uri() . '/css/admin/theme-review-notice.css' );
}
}
new ColorMag_Theme_Review_Notice();

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 908 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 883 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 840 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

Some files were not shown because too many files have changed in this diff Show More