Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
22 changes: 22 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# 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
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = tab
indent_size = 4

[{.jshintrc,*.json,*.yml}]
indent_style = space
indent_size = 2

[{*.txt,wp-config-sample.php}]
end_of_line = crlf
27 changes: 18 additions & 9 deletions .github/workflows/phpcs.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,23 @@
name: PHPCS check
name: PHP_CodeSniffer

on: pull_request

jobs:
phpcs:
name: PHPCS
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: PHPCS check
uses: chekalsky/phpcs-action@v1
with:
enable_warnings: true
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
coverage: none
tools: composer

- name: Install dependencies
run: composer install --prefer-dist --no-suggest --no-progress

- name: Detect coding standard violations
run: vendor/bin/phpcs
32 changes: 32 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# ignore PHPStorm extra directories
.idea/

# Ignore OS Specific files.
.DS_Store

# Leave node_modules from git
node_modules/

# sass cache
.sass-cache

# map files
*.map

# Skip package file from versoning
astra-theme.zip

# ignore git inside subproject
admin/bsf-core/.git

# ignore PHPCS report files
phpcs-summary.log
phpcs-full.log

# Org Package
astra
*.zip

# Ignore Composer's directories
vendor/
cghooks.lock
28 changes: 28 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
sudo: false

services:
- docker

language: php

cache:
- $HOME/.composer/cache

matrix:
include:
- php: 7.4snapshot
env: WP_TRAVISCI=phpcs

before_script:
- |
if [[ "$WP_TRAVISCI" == "phpcs" ]] ; then
composer install
fi

script:
- |
if [[ "$WP_TRAVISCI" == "phpcs" ]] ; then
vendor/bin/phpcs
fi
- if find . -name "*.php" ! -path "./vendor/*" ! -path "./admin/bsf-core/*" -exec php -l {} \; | grep "Errors parsing"; then exit 1; fi

56 changes: 28 additions & 28 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module.exports = function (grunt) {
// Project configuration
var autoprefixer = require('autoprefixer');
var flexibility = require('postcss-flexibility');
var Astra_theme_Addons = ['background', 'border', 'color', 'customizer-link', 'description', 'divider', 'heading', 'hidden', 'link', 'radio-image', 'responsive', 'responsive-color', 'responsive-background', 'responsive-slider', 'responsive-spacing', 'select', 'settings-group', 'slider', 'sortable', 'spacing', 'typography'];
var Astra_theme_Addons = ['background', 'border', 'color', 'customizer-link', 'description', 'divider', 'heading', 'hidden', 'link', 'radio-image', 'responsive', 'responsive-color', 'responsive-background', 'responsive-select', 'responsive-slider', 'responsive-spacing', 'select', 'settings-group', 'slider', 'sortable', 'spacing', 'typography'];

const sass = require('node-sass');

Expand Down Expand Up @@ -142,6 +142,15 @@ module.exports = function (grunt) {
dest: 'assets/css/unminified',
ext: '.css'
},
/* Common Style with new Header-Footer Builder Style */
{
expand: true,
cwd: 'sass/',
src: ['frontend.scss'],
dest: 'assets/css/unminified',
ext: '.css'
},

/* Compatibility */
{
expand: true,
Expand Down Expand Up @@ -374,15 +383,12 @@ module.exports = function (grunt) {
'!package-lock.json',
'!phpcs.xml.dist',
'!assets/fonts/google-fonts.json',
'!admin/bsf-analytics/.git/**',
'!admin/bsf-analytics/bin/**',
'!admin/bsf-analytics/.gitignore',
'!admin/bsf-analytics/composer.json',
'!admin/bsf-analytics/composer.lock',
'!admin/bsf-analytics/Gruntfile.js',
'!admin/bsf-analytics/package.json',
'!admin/bsf-analytics/package-lock.json',
'!admin/bsf-analytics/phpcs.xml.dist',
'!inc/customizer/extend-custom-controls/package.json',
'!inc/customizer/extend-custom-controls/package-lock.json',
'!inc/customizer/extend-custom-controls/src/**',
'!inc/customizer/extend-custom-controls/node_modules/**',
'!inc/customizer/extend-custom-controls/build/index.asset.php',
'!inc/customizer/extend-custom-controls/build/index.js.map',
],
dest: 'astra/'
}
Expand Down Expand Up @@ -463,25 +469,19 @@ module.exports = function (grunt) {
'!inc/customizer/custom-controls/assets/css/unminified/custom-controls.css',
],
dest: 'inc/customizer/custom-controls/assets/css/unminified/custom-controls.css',
},
{
src: [
'inc/customizer/custom-controls/link/link.js',
'inc/customizer/custom-controls/typography/typography.js',
'inc/customizer/custom-controls/typography/selectWoo.js',
],
dest: 'inc/customizer/custom-controls/assets/js/unminified/custom-controls-plain.js',
},
{
src: [
'inc/customizer/custom-controls/background/background.js',
'inc/customizer/custom-controls/border/border.js',
'inc/customizer/custom-controls/color/color.js',
'inc/customizer/custom-controls/link/link.js',
'inc/customizer/custom-controls/customizer-link/customizer-link.js',
'inc/customizer/custom-controls/radio-image/radio-image.js',
'inc/customizer/custom-controls/responsive/responsive.js',
'inc/customizer/custom-controls/responsive-color/responsive-color.js',
'inc/customizer/custom-controls/responsive-background/responsive-background.js',
'inc/customizer/custom-controls/responsive-slider/responsive-slider.js',
'inc/customizer/custom-controls/responsive-spacing/responsive-spacing.js',
'inc/customizer/custom-controls/settings-group/settings-group.js',
'inc/customizer/custom-controls/slider/slider.js',
'inc/customizer/custom-controls/sortable/sortable.js',
'inc/customizer/custom-controls/typography/typography.js'

'inc/customizer/custom-controls/assets/js/unminified/custom-controls-plain.js',
'inc/customizer/extend-custom-controls/build/index.js'
],
dest: 'inc/customizer/custom-controls/assets/js/unminified/custom-controls.js',
},
Expand Down Expand Up @@ -553,7 +553,7 @@ module.exports = function (grunt) {
}
},
},

json2php: {
options: {
// Task-specific options go here.
Expand Down Expand Up @@ -598,7 +598,7 @@ module.exports = function (grunt) {

// min all
grunt.registerTask('minify', ['style', 'concat', 'uglify:js', 'cssmin:css']);

grunt.registerTask('download-google-fonts', function () {
var done = this.async();
var request = require('request');
Expand Down
89 changes: 89 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
# Astra #
**Contributors:** [brainstormforce](https://profiles.wordpress.org/brainstormforce)
**License:** GPLv2 or later
**License URI:** https://www.gnu.org/licenses/gpl-2.0.html
**Tags:** custom-menu, custom-logo, entertainment, featured-images, full-width-template, one-column, two-columns, left-sidebar, e-commerce, right-sidebar, custom-colors, editor-style, featured-images, full-width-template, microformats, post-formats, rtl-language-support, theme-options, threaded-comments, translation-ready, blog
**Tested up to:** 5.5.3
**Requires PHP:** 5.3
**Stable tag:** 3.0.0-beta.1

Astra is fast, fully customizable & beautiful WordPress theme suitable for blog, personal portfolio, business website and WooCommerce storefront.

## Description ##

Astra is fast, fully customizable & beautiful WordPress theme suitable for blog, personal portfolio, business website and WooCommerce storefront. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with Schema.org code integrated and is Native AMP ready so search engines will love your site.

It offers special features and templates so it works perfectly with all page builders like Elementor, Beaver Builder, Visual Composer, SiteOrigin, Divi, etc. Some of the other features: # WooCommerce Ready # Responsive # RTL & Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force.

Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and WooCommerce ready theme that you can use for building any kind of website!

## Installation ##

### From within WordPress ###
1. Visit "Appearance > Themes > Add New"
2. Search for "Astra"
3. Install and activate

## License ##

Astra WordPress Theme, Copyright 2020 WPAstra.
Astra is distributed under the terms of the GNU GPL.

Astra is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

## Features ##

### Appearance > Widgets ###
Astra has up to 4 widget area. 1 in your header, 1 for each sidebar and up to 2 in your footer.

### Appearance > Customize ###
- Site Identity: Hide your site title or tagline, and upload your own header.
- Layout: Change things like your container width, header layout, Header width, Custom menu item , sidebar layout and much more.
- Set footer layout there is a two footer layout layout 1 and layout 2. layout 1 is stack style and layout 2 is inline.
- Blog: Show the full post or excerpt, also show and hide blog post meta & adjust blog post width to default or custom.
- Single post:Set single post meta and adjust width to custom or default.
- Colors & background: Choose your default background color, body color, theme color and link color.
- Typography: Choose your default body font & set default font size to H1 to H6 tags, Site title, tagline & blog post title on archive page and single page.

### ASTRA Child Theme ###

There are multiple ways you can use a child theme with the Astra Theme, Use any one method mentoned below to create a child theme or use a child theme we have created.

1. Download the child theme from Github - https://github.com/brainstormforce/astra-child/releases/latest/
2. More information on creating child theme. - https://developer.wordpress.org/themes/advanced-topics/child-themes/


### Screenshot Licenses ###

Screenshot images are all licensed under Creative Commons Zero (CC0) ( https://pxhere.com/en/license )
https://pxhere.com/en/photo/100653
https://pxhere.com/en/photo/759723
https://pxhere.com/en/photo/1259448
https://pxhere.com/en/photo/1456591
https://pxhere.com/en/photo/1389199


### Normalizing styles ###

Normalizing styles have been helped along thanks to the fine work of.
Nicolas Gallagher and Jonathan Neal https://necolas.github.com/normalize.css/

### Flexibility JS ###

Flexibility is a JavaScript polyfill for Flexbox By Jonathan Neal, 10up. (https://github.com/jonathantneal/flexibility)
Licensed under MIT ( https://github.com/jonathantneal/flexibility/blob/master/LICENSE.md )

### IcoMoon-Free ###

Astra icon font is based on IcoMoon-Free vector icon by Keyamoon.
IcoMoon-Free vector icon destributed under trems of CC BY 4.0 or GPL. (https://creativecommons.org/licenses/by/4.0/ or https://www.gnu.org/licenses/gpl.html)
Source: https://keyamoon.com/

### Breadcrumb Trail ###

Astra default breadcrumb is based on Breadcrumb Trail by Justin Tadlock. (https://github.com/justintadlock/breadcrumb-trail)
Breadcrumb Trail is distributed under the terms of the GNU GPL v2 or later.

Underscores
https://underscores.me/, (C) 2012-2020 Automattic, Inc., [GPLv2 or later](https://www.gnu.org/licenses/gpl-2.0.html)
1 change: 0 additions & 1 deletion admin/bsf-analytics/assets/css/minified/style-rtl.min.css

This file was deleted.

1 change: 0 additions & 1 deletion admin/bsf-analytics/assets/css/minified/style.min.css

This file was deleted.

21 changes: 0 additions & 21 deletions admin/bsf-analytics/assets/css/unminified/style-rtl.css

This file was deleted.

21 changes: 0 additions & 21 deletions admin/bsf-analytics/assets/css/unminified/style.css

This file was deleted.

Loading