New plugin Masthead released

 Jimako    16 May 2020
 None    Plugins

masthead.png

Masthead plugin is the theme plugin for theme developers. It allows more straightforward setting data for the welcome message (for themes with the big header, titles, buttons, and images). It can replace core WMESSAGE functionality and the need for inser

I will write all my new or old bootstrap4 themes in a different way. Just wait for it. I initially planned this plugin as a replacement for limited Welcome message options, but you can use it as a simpler version of JM Element plugin.

Startboostrap themes use Master Head or Masthead area for that big area on the homepage. Only later I found that it has something with Joomla too. So I named this plugin with this name.

You can download this plugin from the Download section or e107.org after approving.

Some screenshots from version 1.0:

 

The simplified version of JM Element plugin for all future business themes (with the big header on the homepage)

Very simple admin area.  If I found the main header that needs more fields, it is easy to add it. There will be a new version then. For now, I tested it with all my bootstrap4 themes and it was enough.

10fcb47cbfe6

Just set code (mode) and template. 

17e9f24f8eff

Add needed values. There are prepared shortcodes for 4 titles, 3 images and 3 buttons.

E95b2545d3db

9e9e61b39f98

0ca96948a3fe

There are prepared demo data in the pack, but this content will come with the theme itself. There are examples for templates too, but again, it should be part of the theme.

There is only one global shortcode with 2 parameters: mode and template. If the template is not set, mode name is used.

There is no menu because you should use this shortcode in HTML layout for homepage. If needed, it can be inserted anywhere and with shortcode menu used in Menu manager too.

Some snippets:

How to replace core welcome message in theme:

function sc_wmessage()
{ 
if(e107::isInstalled('masthead')) {
$text = '{MASTHEAD: mode='.$this->sitetheme.'}'; 
$wmessage = e107::getParser()->parseTemplate($text); 
if(e_DEBUG && $wmessage == '' ) { 
e107::getMessage()->addError('{MASTHEAD: mode='.$this->sitetheme.'&template=agency} is empty. Check if record with this code exists');
} 
return $wmessage;
}
return e107::getMessage()->add('Missing plugin!')->render();
}

How to use some background image:

$MASTHEAD_TEMPLATE['creative']['element'] = '
';

How to use agency data with different template:

{MASTHEAD: mode=agency2&template=solid}

Warning:  This plugin is no replacement for JM ELements. With JME your options are not limited. This is just a solution for how to create free themes and not be limited with the core.


0 Comments

Account

Right Sidebar



  • Jimako
    Jimako  5 months ago

    Here is new chatbox plugin (not new, just updated and fixed)

  • Jimako
    Jimako  2 years ago

    @kreossino Hi, yes, everything is ok.

  • kreossino
    kreossino  2 years ago

    heyyy tutto ok????? ...!!!!

  • Jimako
    Jimako  2 years ago

    Thanks for testing. And next funny thing - I forgot to uninstall APOS plugin, so it still created welcome post for you in forum, but forum is not installed... Just a reminder to look at it.

  • Tgtje
    Tgtje  2 years ago

    @Jimako just info : 1st activ. mail not received (2 day wait), resend ok (20 seconds) wink .

  • Jimako
    Jimako  2 years ago

    test first message biglaugh confused

  • Jimako
    Jimako  3 years ago

    @Alex try this one: https://cookie-script.com/

  • Jimako
    Jimako  3 years ago

    In fact, I have never notice this because with WP plugin it is free. I will see what it does after free trial.

  • Alex
    Alex  3 years ago

    Well it's nice but 10 dollar a month for a business use pro domain... that costs more than the hosting frown

  • Jimako
    Jimako  3 years ago

    And yes, it works very nicely... I use it long time. Just first or second time used on e107 site.


Smart move on repo setup Using similar with langua [more ...]
Tgtje 2 years ago
Updated path where download this older version.
Jimako 2 years ago
Now I see that I need to fix comments layout for 2 [more ...]
Jimako 3 years ago
Thx Jimako, the website should look outdated, that [more ...]
Alex 3 years ago
Themes are next on list. I use it mainly for swit [more ...]
Jimako 4 years ago
Nice one J, so if i understand this right i could [more ...]
Alex 4 years ago

Jimako 1 week ago
kreossino 3 months ago
mr 4 months ago
gandsnut 5 months ago
hersul8007 6 months ago
Martin 1 year ago
belr 1 year ago
FloKysLo 1 year ago
Viktor 1 year ago
Allan 1 year ago