Skip to content

Commit

Permalink
2.0.0-beta
Browse files Browse the repository at this point in the history
  • Loading branch information
Stiofan committed May 22, 2024
1 parent 29fe53b commit ac02d4a
Show file tree
Hide file tree
Showing 67 changed files with 1,337 additions and 749 deletions.
27 changes: 27 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# This file is for unifying the coding style for different editors and IDEs
# editorconfig.org

# WordPress Coding Standards
# https://make.wordpress.org/core/handbook/coding-standards/

root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 4
tab_width = 4
indent_style = tab
insert_final_newline = true
trim_trailing_whitespace = true

[*.txt]
trim_trailing_whitespace = false

[*.{md,json,yml}]
trim_trailing_whitespace = false
indent_style = space
indent_size = 2

[*.json]
indent_style = tab
14 changes: 14 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Items to ignore when downloading release

.editorconfig export-ignore
.gitattributes export-ignore
.gitignore export-ignore
.scrutinizer.yml export-ignore
composer.json export-ignore
composer.lock export-ignore
CONTRIBUTING.md export-ignore
phpunit.xml export-ignore
README.md export-ignore
/tests/ export-ignore
/.idea/ export-ignore
*.map export-ignore
339 changes: 339 additions & 0 deletions LICENSE.txt

Large diffs are not rendered by default.

Empty file.
Empty file modified assets/fonts/josefin_sans/JosefinSans-VariableFont_wght.woff2
100644 → 100755
Empty file.
Empty file.
Empty file modified assets/fonts/montserrat/Montserrat-VariableFont_wght.woff2
100644 → 100755
Empty file.
Empty file modified assets/images/demo/dining-table.jpg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified assets/images/demo/man-standing-stage.jpg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified assets/images/demo/man-standing-stage.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified assets/images/logo-no-background.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified assets/images/placeholder-image.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified assets/images/section-bg-1.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified assets/images/section-bg-2.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified assets/images/section-bg-3.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified assets/styles/style.css
100644 → 100755
Empty file.
18 changes: 11 additions & 7 deletions functions.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@
* @since 1.0.0
*/

add_action( 'wp_enqueue_scripts', 'events_enqueue_styles' );
function events_enqueue_styles() {
wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/assets/styles/style.css');
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
add_action( 'wp_enqueue_scripts', 'events_directory_enqueue_styles' );
function events_directory_enqueue_styles() {
wp_enqueue_style( 'events-directory', get_stylesheet_directory_uri() . '/assets/styles/style.css');
}

/**
Expand All @@ -25,9 +24,14 @@ function events_enqueue_styles() {
* @since 1.0.0
*/

function events_theme_setup()
function events_directory_theme_setup()
{
load_child_theme_textdomain( 'events', get_stylesheet_directory() . '/languages' );
load_child_theme_textdomain( 'events-directory', get_stylesheet_directory() . '/languages' );

if ( is_admin() ) {
// Theme admin stuff
require_once 'includes/class-blockstrap-admin-child.php';
}
}

add_action('after_setup_theme', 'events_theme_setup');
add_action('after_setup_theme', 'events_directory_theme_setup');
74 changes: 74 additions & 0 deletions includes/class-blockstrap-admin-child.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
<?php

if ( class_exists( 'BlockStrap_Admin' ) ) {


class BlockStrap_Admin_Child extends BlockStrap_Admin {
public function __construct() {
parent::__construct();
}

/**
* Get the theme title.
*
* @return string|null
*/
public function get_theme_title() {
return __( 'Events Directory', 'events-directory' );
}

/**
* Get the array of demo pages.
*
* @return array[]
*/
public function get_demo_pages() {
return array(
'contact' => array(
'title' => __( 'Contact Us', 'events-directory' ),
'slug' => 'contact',
'desc' => $this->get_template_content( dirname( __FILE__ ) . '/../patterns/contact-page.php' ),
),
'blog' => array(
'title' => __( 'Our Blog', 'events-directory' ),
'slug' => 'blog',
'desc' => $this->get_template_content( dirname( __FILE__ ) . '/../patterns/blog-page.php' ),
'is_blog' => true,
),
);
}

/**
* Get the required plugins details array.
*
* @return array
*/
public function get_required_plugins() {
return array(
'blockstrap-page-builder-blocks' => __( 'BlockStrap Builder', 'events-directory' ),
'geodirectory' => __( 'GeoDirectory', 'events-directory' ),
'events-for-geodirectory' => __( 'Events For GeoDirectory', 'events-directory' ),
'userswp' => __( 'UsersWP', 'events-directory' ),
);
}

/**
* This can be set in child themes to set the GD dummy data default type.
*
* @param $type
* @param $post_type
*
* @return mixed
*/
public function gd_set_default_dummy_data_type( $type, $post_type ) {

if ( ! $type ) {
$type = 'job_board';
}
return $type;
}


}

}
Empty file modified index.php
100644 → 100755
Empty file.
Empty file modified languages/en_US.mo
100644 → 100755
Empty file.
Empty file modified languages/en_US.po
100644 → 100755
Empty file.
Empty file modified parts/comments.html
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion parts/footer.html
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!-- wp:pattern {"slug":"events/footer-default"} /-->
<!-- wp:pattern {"slug":"events-directory/footer-default"} /-->
56 changes: 28 additions & 28 deletions parts/gd-archive-item.html
100644 → 100755

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion parts/header.html
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!-- wp:pattern {"slug":"events/header-default"} /-->
<!-- wp:pattern {"slug":"events-directory/header-default"} /-->
2 changes: 1 addition & 1 deletion parts/hero-archive.html
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!-- wp:pattern {"slug":"events/hero-archive-default"} /-->
<!-- wp:pattern {"slug":"events-directory/hero-archive-default"} /-->
25 changes: 0 additions & 25 deletions parts/hero-home.html

This file was deleted.

2 changes: 1 addition & 1 deletion parts/hero-page.html
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!-- wp:pattern {"slug":"events/hero-page-default"} /-->
<!-- wp:pattern {"slug":"events-directory/hero-page-default"} /-->
2 changes: 1 addition & 1 deletion parts/hero-post.html
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!-- wp:pattern {"slug":"events/hero-post-default"} /-->
<!-- wp:pattern {"slug":"events-directory/hero-post-default"} /-->
28 changes: 14 additions & 14 deletions parts/main-content-post.html
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
<!-- wp:group {"align":"full","layout":{"type":"constrained"}} -->
<div class="wp-block-group alignfull"><!-- wp:blockstrap/blockstrap-widget-image {"img_src":"featured","img_size":"medium_large","img_aspect":"21by9","img_rounded":"rounded","mb_lg":"4","border":"0","content":"\u003cfigure class=\u0022 ratio ratio-21x9 embed-has-actionoverflow-hidden mb-4 border-0 \u0022 style=\u0022 \u0022\u003e\u003cimg src=\u0022http://event.local/wp-content/plugins/blockstrap-page-builder-blocks//assets/images/block-image-placeholder.jpg\u0022 class=\u0022mw-100 w-100 rounded embed-item-cover-xy \u0022 /\u003e\u003c/figure\u003e"} -->
[bs_image img_src='featured' img_image='' img_image_id='' img_size='medium_large' img_url='' fallback_img_src='' fallback_img_image='' fallback_img_image_id='' img_alt='' img_lazyload='' img_link_to='' img_link='' img_link_lightbox='' lightbox_size='full' img_link_hover_effect='' text='' col='' col_md='' col_lg='' img_aspect='21by9' img_cover='' img_border='' img_rounded='rounded' img_rounded_size='' img_shadow='' img_overlay='' text_color='' font_size='' font_size_custom='' font_weight='' text_justify='false' text_align='' text_align_md='' text_align_lg='' bg_on_text='false' mt='' mr='' mb='' ml='' mt_md='' mr_md='' mb_md='' ml_md='' mt_lg='' mr_lg='' mb_lg='4' ml_lg='' pt='' pr='' pb='' pl='' pt_md='' pr_md='' pb_md='' pl_md='' pt_lg='' pr_lg='' pb_lg='' pl_lg='' border='0' rounded='' rounded_size='' shadow='' position='' sticky_offset_top='' sticky_offset_bottom='' display='' display_md='' display_lg='' float='' float_md='' float_lg='' img_mask='' img_mask_position='center center' visibility_conditions='' css_class='' ]
<!-- /wp:blockstrap/blockstrap-widget-image -->
<div class="wp-block-group alignfull"><!-- wp:blockstrap/blockstrap-widget-image {"img_src":"featured","img_size":"medium_large","img_aspect":"21by9","img_rounded":"rounded","mb_lg":"4","border":"0","content":""} -->
[bs_image img_src='featured' img_image='' img_image_id='' img_size='medium_large' img_url='' fallback_img_src='' fallback_img_image='' fallback_img_image_id='' img_alt='' img_lazyload='' img_link_to='' img_link='' img_link_lightbox='' lightbox_size='full' img_link_hover_effect='' text='' col='' col_md='' col_lg='' img_aspect='21by9' img_cover='' img_border='' img_rounded='rounded' img_rounded_size='' img_shadow='' img_overlay='' text_color='' font_size='' font_size_custom='' font_weight='' text_justify='false' text_align='' text_align_md='' text_align_lg='' bg_on_text='false' mt='' mr='' mb='' ml='' mt_md='' mr_md='' mb_md='' ml_md='' mt_lg='' mr_lg='' mb_lg='4' ml_lg='' pt='' pr='' pb='' pl='' pt_md='' pr_md='' pb_md='' pl_md='' pt_lg='' pr_lg='' pb_lg='' pl_lg='' border='0' rounded='' rounded_size='' shadow='' position='' sticky_offset_top='' sticky_offset_bottom='' display='' display_md='' display_lg='' float='' float_md='' float_lg='' img_mask='' img_mask_position='center center' visibility_conditions='' css_class='' ]
<!-- /wp:blockstrap/blockstrap-widget-image -->

<!-- wp:post-content {"align":"full","layout":{"inherit":true}} /-->
<!-- wp:post-content {"align":"full","layout":{"inherit":true}} /-->

<!-- wp:post-terms {"term":"post_tag"} /-->
<!-- wp:post-terms {"term":"post_tag"} /-->

<!-- wp:group {"style":{"spacing":{"margin":{"top":"2.375em"}}},"className":"post-nav"} -->
<div class="wp-block-group post-nav" style="margin-top:2.375em"><!-- wp:post-navigation-link {"type":"previous"} /-->
<!-- wp:group {"style":{"spacing":{"margin":{"top":"2.375em"}}},"className":"post-nav"} -->
<div class="wp-block-group post-nav" style="margin-top:2.375em"><!-- wp:post-navigation-link {"type":"previous"} /-->

<!-- wp:post-navigation-link /--></div>
<!-- /wp:group -->
<!-- wp:post-navigation-link /--></div>
<!-- /wp:group -->

<!-- wp:spacer {"height":"70px"} -->
<div style="height:70px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:spacer {"height":"70px"} -->
<div style="height:70px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:template-part {"slug":"comments","theme":"aye-events"} /--></div>
<!-- /wp:group -->
<!-- wp:template-part {"slug":"comments","theme":"events-directory"} /--></div>
<!-- /wp:group -->
Loading

0 comments on commit ac02d4a

Please sign in to comment.