New plugin Masthead released

Images
Images
Images
Images

New plugin Masthead released

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.

  • Tags:
  • None

0 Comments



Chatbox

You must be logged in to post comments on this site - please either log in from the Login box or from here.


kreossino
kreossino 2 weeks ago

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

Jimako
Jimako 4 months 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 4 months ago

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

Jimako
Jimako 6 months ago

test first message biglaugh confused

Jimako
Jimako 7 months ago

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

Jimako
Jimako 1 year 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 1 year 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 1 year ago

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

Jimako
Jimako 1 year ago

@Alex I have that free version. It is enough for me, I was just curious what cookies are used with e107. You can add new one manually too. There is similar WP plugin, I had almost e107 version too. But I needed that scan and WP version is very limited agains online solution.


Latest Comments

news LGSL plugin released 6 months ago

Updated path where download this older version.

Posted by Jimako

10 Years

GLORIOUS YEARS

100%

SATISFACTION RATE

20+

e107 THEMES

10+

e107 PLUGINS

Images