Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Child themes
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Guido Erlinger  
View profile  
 More options Aug 20 2012, 5:53 pm
From: Guido Erlinger <d...@helpy.de>
Date: Mon, 20 Aug 2012 23:53:34 +0200
Local: Mon, Aug 20 2012 5:53 pm
Subject: Child themes

Hello,

I tried to start working with child themes in the development
version of habari.

According to the wiki one theme.xmlshould be enough to start a child
theme.
But all the formatting is gone (wrong path to styles.css) and some
notes (undefined variables, invalid argument) are output.

Is the Charcoal theme ready for child themes?

Here my theme.xml:

<?xml version="1.0" encoding="utf-8" ?>
<pluggable type="theme"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://schemas.habariproject.org/pluggable/0.8">
    <name>CharcoalChild</name>
    <parent>Charcoal</parent>
    <license
url="http://www.apache.org/licenses/LICENSE-2.0.html">Apache
Software License 2.0</license>

    <author url="http://habariproject.org/">Habari Community</author>

    <version>0.0</version>
    <url>http://habariproject.org/</url>
    <description><![CDATA[Child theme for Charcoal]]></description>

    <copyright>2012</copyright>

    <template_engine>rawphpengine</template_engine>

    <areas>
        <area name="sidebar">
            <description><![CDATA[The sidebar area]]></description>
        </area>
        <area name="nav">
            <description><![CDATA[The sidebar area]]></description>
        </area>
    </areas>

</pluggable>

Thank you for your help,
guido


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Konzertheld  
View profile  
 More options Apr 6, 7:21 pm
From: Konzertheld <konzerth...@konzertheld.de>
Date: Sat, 6 Apr 2013 16:21:47 -0700 (PDT)
Local: Sat, Apr 6 2013 7:21 pm
Subject: Re: Child themes

I'd like to bump this as I am experiencing the same while trying to make a
child theme of Wazi in Habari 0.9.

Am Montag, 20. August 2012 23:53:34 UTC+2 schrieb helpy:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Owen Winkler  
View profile  
 More options Apr 6, 7:56 pm
From: Owen Winkler <epit...@gmail.com>
Date: Sat, 06 Apr 2013 19:56:43 -0400
Local: Sat, Apr 6 2013 7:56 pm
Subject: Re: [habari-users] Child themes
On 8/20/2012 5:53 PM, Guido Erlinger wrote:

> According to the wiki one theme.xml should be enough to start a child theme.
> But all the formatting is gone (wrong path to styles.css) and some notes
> (undefined variables, invalid argument) are output.

> Is the Charcoal theme ready for child themes?

Charcoal, I suspect, is not ready and will likely never be ready to be
made into a parent theme -- It's a long-standing theme from early in
Habari, and it just hasn't been retrofitted with the things that make
parent/child themes easy.

Wazi, on the other hand, is good to use as a parent theme, and I am
doing so on my own site.

The key thing is that Wazi's CSS files are added via its theme class.
If you provide no theme class in your child theme, then the default
Theme class is used, and no styles are added.  If you want Wazi to add
its CSS to the output stack, you must also include (in addition to the
theme.xml) a barebones class file, which extends Wazi's class:

class MyChildTheme extends WaziTheme {}

Then you can add css and javascript files to your child theme's assets
directory, and Habari will automatically add them to the appropriate
stacks for output, in addition to the ones from Wazi.

If you want your child class to have methods (to change post formatting
or add other features), then you will need to extend WaziTheme and call
any parent methods or the methods that Wazi provides that are useful for
output (action_template_header) will not be called.  On the other hand,
if you want to override what Wazi does in action_template_header
entirely, you should implement that method and not call
parent::action_template_header().  These are basic OOP principles that
folks will recognize.

Finally, I just pushed a change to 0.10 that eliminates the need to
include this vestigial theme file and class at all, allowing you to
specify only the xml and an asset directory.

Owen


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Konzertheld  
View profile  
 More options Apr 6, 9:43 pm
From: Konzertheld <konzerth...@konzertheld.de>
Date: Sat, 6 Apr 2013 18:43:50 -0700 (PDT)
Local: Sat, Apr 6 2013 9:43 pm
Subject: Re: [habari-users] Child themes

Thanks Owen, that helped. I expected the assets folder to work without the
theme.php (as it does now with the change). The rest was clear, I just
wanted to change some of the css. :)

Am Sonntag, 7. April 2013 01:56:43 UTC+2 schrieb ringmaster:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions Older topic »