All Projects → kaisermann → selene

kaisermann / selene

Licence: other
A opinionated Wordpress base theme based on Sage.

Programming Languages

PHP
23972 projects - #3 most used programming language
javascript
184084 projects - #8 most used programming language
CSS
56736 projects
HTML
75241 projects

Projects that are alternatives of or similar to selene

Forward-Framework
A killer WordPress theme framework built using underscores, gulp, sass, bourbon neat, bower & browsersync.
Stars: ✭ 23 (-25.81%)
Mutual labels:  gulp, wordpress-theme, browsersync
Sage
WordPress starter theme with a modern development workflow
Stars: ✭ 11,531 (+37096.77%)
Mutual labels:  wordpress-theme, blade, sage
Gulp Webpack Starter
Gulp Webpack Starter - fast static website builder. The starter uses gulp toolkit and webpack bundler. Download to get an awesome development experience!
Stars: ✭ 199 (+541.94%)
Mutual labels:  gulp, browsersync
adfab-gulp-boilerplate
A boilerplate including Gulp, Less/SASS, BrowserSync.
Stars: ✭ 17 (-45.16%)
Mutual labels:  gulp, browsersync
branch
Branch Starter Theme - A WordPress starter theme based on Timber library and Bootstrap
Stars: ✭ 87 (+180.65%)
Mutual labels:  gulp, browsersync
Bootstrap 4 Boilerplate
Bootstrap 4.3.1 boilerplate with Browsersync, Sass and Gulp.js
Stars: ✭ 155 (+400%)
Mutual labels:  gulp, browsersync
Gopablo
🐺 Static site generator.
Stars: ✭ 166 (+435.48%)
Mutual labels:  gulp, browsersync
magento-2-gulp
Gulp for Magento 2. It works with core Magento styles (less) and structure. Uses default theme configs from dev/tools/grunt/configs/local-themes.js.
Stars: ✭ 37 (+19.35%)
Mutual labels:  gulp, browsersync
Sage9-Woocommerce-Integration
How to use Woocommerce (3.4.3) with Sage 9.0.1 (Blade + SoberWP controllers), WP 4.9.7 (17/07/2018)
Stars: ✭ 26 (-16.13%)
Mutual labels:  blade, sage
bootstrap-4-boilerplate
Basic Bootstrap 4 Starter Template
Stars: ✭ 50 (+61.29%)
Mutual labels:  gulp, browsersync
Frontend-StarterKit
Frontend StarterKit - [Gulp 4, Pug, SCSS, ES6+]
Stars: ✭ 13 (-58.06%)
Mutual labels:  gulp, browsersync
Generator Phaser Plus
[🛑 DISCONTINUED] It has been a long journey but development of `generator-phaser-plus` is now over. I recommend you have a look and fork `yandeu/phaser-project-template` instead.
Stars: ✭ 148 (+377.42%)
Mutual labels:  gulp, browsersync
Web Starter Kit
Web Starter Kit is an opinionated boilerplate for web development. A solid starting point for both professionals and newcomers to the industry.
Stars: ✭ 130 (+319.35%)
Mutual labels:  gulp, browsersync
Imall
基于Laravel5.2,Vue.js1.0的微信商城,用于熟悉 Laravel、Vuejs、Webpack、Gulp 的结合使用,已不维护及更新。(1MB单核基础服务器,浏览请耐心等待图片加载...)
Stars: ✭ 168 (+441.94%)
Mutual labels:  gulp, composer
Bootstrap 4 Sass Gulp 4 Boilerplate
A Bootstrap 4.5.2 boilerplate with font-awesome, sass, gulp 4 tasks
Stars: ✭ 103 (+232.26%)
Mutual labels:  gulp, browsersync
Frontie Webpack
Front-end Boilerplate | Gulp 4 + Webpack 4 + Babel + ITCSS Architecture + BEM Methodology + Twig.js
Stars: ✭ 102 (+229.03%)
Mutual labels:  gulp, browsersync
sage-starter
The best starter theme with a modern front-end development workflow. Based on Sage, HTML5 Boilerplate, gulp, Bower, and Bootstrap.
Stars: ✭ 42 (+35.48%)
Mutual labels:  gulp, browsersync
Gulp Pug Sass Seed
🍹 A Pug and Sass starter project using gulp for task automation.
Stars: ✭ 84 (+170.97%)
Mutual labels:  gulp, browsersync
Wordpressify
🎈 A build system designed to automate your WordPress development workflow.
Stars: ✭ 1,374 (+4332.26%)
Mutual labels:  gulp, wordpress-theme
frontie
Frontie is a front-end boilerplate. Gulp | Twig.js | Sass | Autoprefixer | Browsersync | Bootstrap 4 Grid System & Responsive Breakpoints
Stars: ✭ 28 (-9.68%)
Mutual labels:  gulp, browsersync

Selene

Opinionated Wordpress theme based on Sage 9 and Crius.

This project is being constantly modified (I promise to fix the commit mess someday).

Informations

  • Blade as a templating engine
  • Write CSS with Stylus
    • Build your website's grid with the RolleiFLEX declarative flex helper framework. (stylus)
    • Use simplified media queries with rupture (stylus)
    • Responsive, fluid properties and other useful mixins
  • Write modern Javascript
  • See live changes (CSS/JS/HTML) on your project with browserSync
  • Need to manage a new type of resource, like, let's say... sounds? Just define it in the crius.json and let the magic happen!
  • Component oriented folder structure.

Requirements

Recommended

Components

  • A component javascript modules can be imported by using the alias @Components/...pathToComponent
    • Example: import Header from '@Components/Header/Header.js'
    • Example 2: import SubHeader from '@Components/Header/SubHeder/SubHeader.js'
    • There's also an alias for the 'scripts' directory available: @Scripts/...
  • A component .styl file is imported automatically by the index.styl.
  • A component blade template can be included in the same way as any blade file. The inclusion is relative to the current template or to the views directory.
    • Example: @include('Components.Header.Header')
  • Gulp can create or delete components:
    • gulp component --create component1,component2,component3,...
    • gulp component --delete component1,component2,component3,...

Controllers

You can use controllers to pass data to specific templates. A controller must be created inside the ./app/controllers/ directory.

Controller documentation

Custom Blade Directives

  • @mainquery ... @endmainquery - Loops through the main query;
  • @customquery(\WP_Query $queryObj) ... @endcustomquery - Loops through a custom query;
  • @visitor ... @endvisitor - Shows a certain content only to site visitors (not logged in);
  • @loggedin ... @endloggedin - Shows a certain content only logged users;
  • @shortcode - Executes a certain shortcode;
  • @inlinesvg - Prints the specified SVG file;
  • @dump - Dumps an php variable with a var_export;
  • @console - Dumps a php variable in the javascript console;

Directives can be defined on config/directives.php.

WordPress tweaks

  • Front-end

    • Cleans up and prettify your body_class() output;
    • Cleans up your <head>;
    • Scripts load with defer;
    • Rewrites the search url .com/?s=term with .com/search/term;
    • Wraps all oembed inside the_content() around a <div class="oembed-container">;
    • Removes all protocols (http,https) from urls;
    • Dashboard and login page CSS customization;
    • Custom text editor CSS customization with the editor.styl file;
    • Provides an selene global javascript object with the ajax, home and assets urls.
  • Back-end

    • Sets uploaded JPEG quality to 100;
    • Provides options on the admin dashboard to crop default medium and large image sizes;
    • While WP_DEBUG is true or WP_ENV is equal to 'development', the enqueued assets will have a cache-busting filename;
    • Provides John Billion's libraries which make painless to create custom post types and taxonomies.
    • Uses ACF Builder to build ACF fields in the theme's source code instead of the website's database.
    • Uses Whoops error handler for... handling errors.

ACF Builder

Selene comes out of the box with ACF Builder which makes a piece-of-cake to programmatically create custom fields with ACF.

Create your field group inside the root of app/fields and return one (the field group itself) or more (an array of field groups).

If ACF is not installed, the files will be ignored.

Build commands

Pretty much every task needed is covered by the package.json scripts:

  • npm run watch|start - Run browsersync and watch file changes;
  • npm run build - Build minified assets;
  • npm run build:dev - Build unminified assets;
  • npm run build:production - Build the assets, append a hash to the name;
  • npm run clean - Remove the dist folder;
  • npm run lint - Lint all styl and js files;
  • npm run lint:styles - Lint all styl files;
  • npm run lint:scripts - Lint all js files.

Extra Gulp tasks (others listed here)

  • gulp purify - Reads .blade.php and .js files and removes unused css definitions.

External links

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].