Skip to content

Commit 73e9030

Browse files
committed
#24 , #23 , #20
1 parent bd29a70 commit 73e9030

File tree

3 files changed

+109
-104
lines changed

3 files changed

+109
-104
lines changed

404.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<h1 class="page-title"><?php esc_html_e( '404', 'event-listing' ); ?></h1>
1414
<h2><?php esc_html_e( 'Page Not Found', 'event-listing' ); ?></h2>
1515
<p><?php esc_html_e( 'Opps! This does not seem to be the web page you are searching for.', 'event-listing' ); ?></p>
16-
<a href="<?php echo esc_url(home_url()); ?>" title="Goto Home" class="btn">
16+
<a href="<?php echo esc_url(home_url()); ?>" title="<?php esc_html_e( 'Go To Home', 'event-listing' ); ?>" class="btn">
1717
<?php _e('Homepage', 'event-listing'); ?>
1818
</a>
1919
</div> <!-- .container -->

functions.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,3 +316,29 @@ function event_listing_scripts() {
316316
*/
317317
require get_template_directory() . '/inc/widgets/recent-featured-posts.php';
318318
require get_template_directory() . '/inc/widgets/call-to-action.php';
319+
320+
321+
/** compatibility with elementor
322+
* Add Body Classes
323+
*
324+
* @param array $classes Body Class Array.
325+
* @return array $classes
326+
* @since 1.0.0
327+
*/
328+
add_filter( 'body_class', 'body_classes' );
329+
function body_classes( $classes ) {
330+
$class_list = array();
331+
$GLOBALS['event_listing_options'] = event_listing_get_options_value();
332+
// enqueue theme style
333+
wp_enqueue_style('event-listing-style', get_template_directory_uri() . '/style.css', array());
334+
wp_style_add_data( 'event-listing-style', 'rtl', 'replace' );
335+
336+
if(!empty($classes) && is_array($classes)){
337+
foreach($classes as $class){
338+
$class_list[] = $class;
339+
}
340+
} else {
341+
$class_list[] = 'event-listing';
342+
}
343+
return apply_filters('event_listing_classes', $classes);
344+
}

style.css

Lines changed: 82 additions & 103 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@ Theme URI: https://wp-eventmanager.com/
44
Author: WP Event Manager
55
Author URI: https://wp-eventmanager.com/the-team/
66
Description: Event Listing is a fast, fully customizable & beautiful WordPress theme suitable for any event, blog, portfolio, business website and WooCommerce storefront. A theme compatible with WP Event Manager plugin. Also, It offers special features and templates so it works perfectly with all page builders like Elementor, Visual Composer, Beaver Builder, SiteOrigin, Divi, etc. Some of the other features: # Responsive # RTL #Translation Ready #SEO Friendly # WooCommerce Ready # Extendible with WP Event Manager addons # Regularly updated # Designed, Developed, Maintained & Supported by WP Event Manager’s dedicated team. Looking for a perfect base theme for event listing? Look no further. You can use an event listing theme for building any kind of event website!
7-
Version: 1.12.0
7+
Version: 1.13.0
88
License: GNU General Public License v2 or later
99
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1010
Text Domain: event-listing
1111
Domain Path: /languages
12+
Requires at least: 6.4
1213
Tested up to: 5.8.2
13-
Requires PHP: 5.2
14+
Requires PHP: 7.0
1415
Tags: entertainment, portfolio, e-commerce, one-column, two-columns, full-width-template, left-sidebar, right-sidebar, editor-style, custom-header, custom-background, custom-logo, custom-menu, custom-colors, rtl-language-support, featured-images, threaded-comments, translation-ready, sticky-post, microformats,theme-options
1516
This theme, like WordPress, is licensed under the GPL.
1617
Use it to make something cool, have fun, and share what you've learned with others.
@@ -35,13 +36,15 @@ Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
3536
# Alignments
3637
# Clearings
3738
# Widgets
39+
# Woocommerce
3840
# Content
3941
## Posts and pages
4042
## Comments
4143
# Infinite scroll
4244
# Media
4345
## Captions
4446
## Galleries
47+
4548
--------------------------------------------------------------*/
4649
/*--------------------------------------------------------------
4750
# Normalize
@@ -219,7 +222,25 @@ img {
219222
* 2. Remove the margin in Firefox and Safari.
220223
*/
221224

222-
.btn {
225+
a,
226+
.widget a,
227+
.entry-meta i,
228+
.entry-content a{
229+
color: var(--wpem-theme-link-color);
230+
}
231+
232+
a:hover,
233+
.widget a:hover,
234+
.entry-content a:hover{
235+
color: var(--wpem-theme-link-hover-color);
236+
}
237+
238+
.entry-title a{
239+
color: var(--wpem-theme-secondary-color);
240+
}
241+
242+
.btn,
243+
.wp-element-button {
223244
padding: 7px 20px;
224245
display: inline-block;
225246
border-radius: 4px;
@@ -228,18 +249,23 @@ img {
228249
}
229250

230251
.btn,
252+
a.btn,
231253
.wp-block-button__link,
254+
a.wp-block-button__link,
232255
button,
233256
input[type="button"],
234257
input[type="reset"],
235258
input[type="submit"],
236259
form[CLASS*="wp-block-search__"].wp-block-search .wp-block-search__inside-wrapper .wp-block-search__button{
237260
background-color: var(--wpem-theme-button-color);
238261
color: var(--wpem-theme-button-text-color);
262+
border-radius: 4px;
239263
}
240264

241265
.btn:hover,
266+
a.btn:hover,
242267
.wp-block-button__link:hover,
268+
a.wp-block-button__link:hover,
243269
button:hover,
244270
input[type="button"]:hover,
245271
input[type="reset"]:hover,
@@ -249,22 +275,7 @@ form[CLASS*="wp-block-search__"].wp-block-search .wp-block-search__inside-wrappe
249275
color: var(--wpem-theme-button-text-color);
250276
}
251277

252-
a,
253-
.widget a,
254-
.entry-meta i,
255-
.entry-content a{
256-
color: var(--wpem-theme-link-color);
257-
}
258278

259-
a:hover,
260-
.widget a:hover,
261-
.entry-content a:hover{
262-
color: var(--wpem-theme-link-hover-color);
263-
}
264-
265-
.entry-title a{
266-
color: var(--wpem-theme-secondary-color);
267-
}
268279

269280
select{
270281
background-image: url(assets/images/arrow-down.svg);
@@ -834,6 +845,50 @@ a:focus, a:hover, a:active {
834845
max-width: 100%;
835846
}
836847

848+
849+
850+
/*--------------------------------------------------------------
851+
# Woocommerce
852+
--------------------------------------------------------------*/
853+
.woocommerce-page .wc-block-components-button {
854+
background-color: var(--wpem-theme-button-color);
855+
color: var(--wpem-theme-button-text-color);
856+
border-radius: 4px;
857+
}
858+
.woocommerce-page .wc-block-components-button:hover {
859+
background-color: var(--wpem-theme-link-hover-color);
860+
color: var(--wpem-theme-button-text-color);
861+
}
862+
.wc-block-components-totals-coupon .components-button {
863+
border: 0;
864+
color: var(--wpem-theme-button-text-color);
865+
border-radius: 4px;
866+
}
867+
868+
.woocommerce-notice {
869+
padding: .8rem;
870+
background-color: #eee;
871+
border-radius: 4px;
872+
}
873+
.woocommerce-notice.woocommerce-notice--success {
874+
background-color: rgb(0 128 0 / 10%);
875+
color: green;
876+
}
877+
.woocommerce-notice.woocommerce-notice--error {
878+
background-color: rgb(255 0 0 / 10%);
879+
color: red;
880+
}
881+
.woocommerce ul.order_details {
882+
padding: 0;
883+
}
884+
.woocommerce ul.order_details li {
885+
margin-top: .8rem;
886+
}
887+
888+
889+
890+
891+
837892
/*--------------------------------------------------------------
838893
# Content
839894
--------------------------------------------------------------*/
@@ -1526,91 +1581,6 @@ blockquote p:last-child {
15261581
margin-bottom: 0;
15271582
}
15281583

1529-
/*---------------------------------------------------
1530-
* Slider
1531-
* ----------------------------------------------------- */
1532-
/*.event-slider-wrapper {
1533-
overflow: hidden;
1534-
}
1535-
1536-
.event-slider-single {
1537-
position: relative;
1538-
width: 100%;
1539-
height: 600px;
1540-
background-size: cover;
1541-
}
1542-
1543-
.event-slider-single:before {
1544-
content: '';
1545-
display: block;
1546-
position: absolute;
1547-
z-index: 1;
1548-
top: 0;
1549-
right: 0;
1550-
width: 100%;
1551-
height: 100%;
1552-
background: rgba(0, 0, 0, 0.4);
1553-
}
1554-
1555-
.event-slider-content h2,
1556-
.event-slider-content p,
1557-
.event-slider-content h2 a:visited,
1558-
.event-slider-content h2 a {
1559-
color: var(--wpem-white-color);
1560-
}
1561-
1562-
.event-slider-content {
1563-
position: absolute;
1564-
top: 50%;
1565-
left: 50%;
1566-
transform: translate(-50%, -50%);
1567-
padding: 30px;
1568-
width: 80%;
1569-
max-width: 600px;
1570-
z-index: 3;
1571-
}
1572-
1573-
.event-slider-content h2 {
1574-
font-size: 50px;
1575-
line-height: 1.2;
1576-
}
1577-
1578-
.event-slider-wrapper .slick-prev,
1579-
.event-slider-wrapper .slick-next {
1580-
z-index: 9999;
1581-
}
1582-
1583-
.event-slider-wrapper .slick-prev {
1584-
left: 0;
1585-
}
1586-
1587-
.event-slider-wrapper .slick-prev:before, .event-slider-wrapper .slick-next:before {
1588-
font-family: 'FontAwesome';
1589-
font-size: 30px;
1590-
background-color: rgba(255, 255, 255, 0.6);
1591-
border-radius: 100%;
1592-
color: #2e3192;
1593-
line-height: 40px;
1594-
width: 40px;
1595-
text-align: center;
1596-
display: inline-block;
1597-
}
1598-
1599-
.event-slider-wrapper .slick-prev:before {
1600-
content: "\f104";
1601-
}
1602-
1603-
.event-slider-wrapper .slick-next {
1604-
right: 20px;
1605-
}
1606-
1607-
.event-slider-wrapper .slick-next:before {
1608-
content: "\f105";
1609-
}
1610-
1611-
.event-slider-wrapper .slick-prev:hover:before, .event-slider-wrapper .slick-next:before:hover {
1612-
background-color: rgba(255, 255, 255, 1);
1613-
}*/
16141584

16151585
/*---------------------------------------------------
16161586
## 404 Error Page
@@ -1936,6 +1906,15 @@ ol.wp-block-latest-comments{
19361906
.error-404 h2{
19371907
font-size: 20px;
19381908
}
1909+
.woocommerce ul.order_details li {
1910+
float: inherit;
1911+
border-right: 0;
1912+
border-bottom: 1px dashed #cfc8d8;
1913+
padding-bottom: 1em;
1914+
padding-right: 0;
1915+
margin-right: 0;
1916+
}
1917+
19391918

19401919
}
19411920

0 commit comments

Comments
 (0)