1 (edited by jaif14 2012-06-10 20:30:54)

Topic: A few questions

My first question is;
Is it possible to change the selected template through the index page? I am creating a mobile theme (which I will later upload here when it is perfected)

My second Question is;
When I was playing with the template, the monstra backlink dissapeared (at starvecraft.com) How can I link back? Should it say 'powered by Monstra'? 'Bones by Monstra'? I want to make sure I don't violate the licence.

My third question is;
How do I upgrade monstra?

Re: A few questions

1. Change a current theme -

Option::update('theme_name', 'index');

2. Copy this links from default theme.
3. http://monstra.org/documentation/installation

Re: A few questions

How would I add the template chooser option to the index page? The page is an exact copy of the out of the box index page.

Option::update('theme_name', 'index');

Re: A few questions

index.php

if (Agent::isMobile()) {
        require(MINIFY . DS . 'theme.' . 'mobile' . '.' . Site::template() . '.template.php');  
} else {
        require(MINIFY . DS . 'theme.' . Site::theme() . '.' . Site::template() . '.template.php');  
}
Monstra Loves You! Give some love back!