Git Product home page Git Product logo

tapmeppesols / grav-theme-upmorph-online-soon Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 2.0 965 KB

This is a theme made for the GRAV CMS. It can be used to announce an arrival in the future (online soon) or to either set a site on maintenance (back online soon).

Home Page: https://tapmeppe.solutions

License: MIT License

JavaScript 7.21% PHP 33.49% Less 29.22% Twig 30.08%
grav theme grav-cms upmorph maintenance tapmeppe

grav-theme-upmorph-online-soon's Introduction

uPMORph online soon ๐Ÿ†’ ๐Ÿ†• ๐Ÿ”œ

This repository has been archived. In the future it will be available under the name grav-theme-tapmorph-maintenance.

Screenshot

uPMORph online soon is a theme developed by taPMeppe solutions for the GRAV CMS. It is based on the free template Eventually | HTML5 UP. ๐Ÿ“ข ๐Ÿ‘

It should be used as kickass placeholding template to

  • either comfort the public until your kickass project/app/product/startup launches (online soon) ๐Ÿšง ,
  • or set your site on maintenance (back online soon) ๐Ÿ› ๏ธ .

Installation ๐Ÿ”ฉ

Installing this theme can be done in one of two ways. The GPM (Grav Package Manager) installation method enables you to quickly and easily install the theme with a simple terminal command, while the manual method enables you to do so via a zip file.

GPM Installation (Preferred)

The simplest way to install this theme is via the Grav Package Manager (GPM) through your system's Terminal (also called the command line). From the root of your Grav install type:

bin/gpm install upmorph-online-soon

This will install this theme into your /user/themes directory within Grav. Its files can be found under /your/site/grav/user/themes/upmorph-online-soon.

Manual Installation

To install this theme, just download the zip version of this repository and unzip it under /your/site/grav/user/themes. Then, rename the folder to upmorph-online-soon. You can find these files either via GetGrav.org or on GitHub.

You should now have all the theme files under

/your/site/grav/user/themes/upmorph-online-soon

Updating โš™๏ธ

As development for this theme continues, new versions may become available that add additional features and functionality, improve compatibility with newer Grav releases, and generally provide a better user experience. Updating this theme is easy, and can be done through Grav's GPM system, as well as manually.

GPM Update (Preferred)

The simplest way to update this theme is via the Grav Package Manager (GPM). You can do this with this by navigating to the root directory of your Grav install using your system's Terminal (also called command line) and typing the following:

bin/gpm update upmorph-online-soon

This command will check your Grav install to see if this theme is due for an update. If a newer release is found, you will be asked whether or not you wish to update. To continue, type y and hit enter. The theme will automatically update and clear Grav's cache.

Manual Update

Manually updating this theme is pretty simple. Here is what you will need to do to get this done:

  • Delete the your/site/user/themes/upmorph-online-soon directory.
  • Download the new version of the this theme from either via GetGrav.org.
  • Unzip the zip file in your/site/user/themes and rename the resulting folder to upmorph-online-soon.
  • Clear the Grav cache. The simplest way to do this is by going to the root Grav directory in terminal and typing bin/grav clear-cache.

Note: Any changes you have made to any of the files listed under this directory will also be removed and replaced by the new set. Any files located elsewhere (for example a YAML settings file placed in user/config/themes) will remain intact.

Setup ๐Ÿ”Œ

If you want to set this theme as the default theme, you can do so by following these steps:

  • Navigate to /your/site/grav/user/config.
  • Open the system.yaml file.
  • Change the theme: setting to theme: upmorph-online-soon.
  • Save your changes.
  • Clear the Grav cache. The simplest way to do this is by going to the root Grav directory in Terminal and typing bin/grav clear-cache.

Once this is done, you should be able to see the new theme on the frontend. Keep in mind any customizations made to the previous theme will not be reflected as all of the theme and templating information is now being pulled from the upmorph-online-soon folder.

Customisation ๐Ÿ”จ ๐Ÿ”ง

All customisation should be done using theme inheritance to allow for future updates. This way we can keep updating and you can keep the feature you care about. I hope we all have as much fun as we. Good luck ๐Ÿ˜ƒ ๐Ÿ’ช ๐Ÿค˜ .

Preview ๐Ÿ™ˆ ๐Ÿ™‰ ๐Ÿ™Š

The theme created as response to our need for a simple and lightweight solution for the online presence of our team in the year 2019. Therefore, currently there is no better preview than our homepage: https://tapmeppe.solutions .

The following browsers have been test and are fully supported:

  • brave (version 1.4.95 x64-bit)
  • VIVALDI (version 2.5.1525.43 x64-bit)
  • Opera (version 67.0.3575.31)
  • Chrome (version 80.0.3987.122 x64-bit)
  • Firefox (version 73.0.1 x64-bit)
  • Edge (version 44.18362.449.0)
  • Edge Chromium (version 84.0.522.52 x64-bit)

The following browsers are still up for testing:

You want to support us? ๐Ÿ‘Œ ๐ŸŽ

No problem buddy. We can always use some loose change ๐Ÿ’ธ for a cup of โ˜•. You can donate here.

โœŒ๏ธ ๐Ÿ‘‹ ๐Ÿ”š

grav-theme-upmorph-online-soon's People

Contributors

tapmeppe avatar

Stargazers

 avatar

Watchers

 avatar  avatar

grav-theme-upmorph-online-soon's Issues

unexpected )

I try to install upmorph-online-soon. It doesn't matter if I install it by bin/gpm install or via the install button in the admin panel.

I immediately get this error on line 261 of upmorph-online-soon.php:

syntax error, unexpected ')'

This happens upon installation (theme is not activated yet).

My versions:

grav v1.6.26
admin v1.9.15
php 7.2.24
apache 2.4.29

Server is Ubuntu 18.04.4 LTS

ErrorException mkdir(): Invalid path

Forgive me if I've done something obviously wrong here, I just installed Grav for the first time and I'm learning as I go. I installed your theme via the recommended gpm command. In the system.yaml file, I changed the theme line to: theme: upmorph-online-soon. Refreshing the page produces an error:

/var/www/grav/user/themes/upmorph-online-soon/upmorph-online-soon.php
         * 
         * @since PM (22.12.2019) dev mode
         * @see https://www.php.net/manual/en/function.php-uname.php
         * 
         * #available 
         * - `GRAV_TESTING` @source /system/defines.php
         * - `DATA_DIR` @source /system/defines.php but @deprecated
         */
        public static function getSubscribedEvents(){
            self::$dev = 
                preg_match( "/^192\.168\.\\d+\.\\d+$/", gethostbyname($temp = gethostname()) ) && $temp == "tapmeppe" &&
                php_uname('s') == "Windows NT" && php_uname('n') == "TAPMEPPE" && php_uname('m') == "AMD64"
            ;
            self::$locator = Grav::instance()['locator'];
 
            //self::$theme = basename(__DIR__); //the theme name
            //self::$dir = self::path(dirname(__DIR__, 2), 'data', self::$theme); //the directory in which the system specific data will by stored
            self::$theme = basename(self::$thm = self::$locator->findResource('theme://')); //the theme name
            self::$dir = self::$locator->findResource('user-data://'. self::$theme);
            if(!is_dir(self::$dir)) mkdir(self::$dir, 0775, true); //create the directory if not existant
 
            self::$slug = explode('-', self::$theme)[0];
            self::$auth = self::$slug .'_auth_code';
 
            return [
                //'onFormProcessed' => ['onFormProcessed', 0],
                'onRequestHandlerInit' => ['onRequestHandlerInit', 0],
                'onTwigSiteVariables' => ['onTwigSiteVariables', 0]
            ];
        }
 
        /**

Arguments

1. "mkdir(): Invalid path"

In the output, this line is highlighted:

            if(!is_dir(self::$dir)) mkdir(self::$dir, 0775, true); //create the directory if not existant

I commented out that line, and uncommented the self::$dir... line above it, and then it worked.

Unable to disable registration

I have turned on registration within the Theme. I now wish to turn it off as I do not want to use it.

How do I disable it, as when I delete the registration sections and Save the theme, the registration remains?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.