Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: 2012 Textpattern Default Theme
phiw13 wrote:
given that you already have a buch of
-webkit-box-shadow, why not do it ?
I’d quite liked to have dropped -webkit-box-shadow too.
OK, I’m persuaded (it’s hardly any more code) – gecko 1.9.2 support from this commit. We can always remove that rule in a later release when Camino moves to a newer gecko.
Offline
Re: 2012 Textpattern Default Theme
philwareham wrote:
gecko 1.9.2 support from this commit.
Thank you. :-).
[off-topic]
… Camino moves to a newer gecko.
which is something that will never happen, given that Mozilla Corporation killed embedding and did a few more stupid things, making it impossible to build Camino on more recent version of Gecko. An eventual Camino 3 will be WebKit based. Long story, not the place to discuss.
Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
phiw13 on Codeberg
Offline
Re: 2012 Textpattern Default Theme
Oh ok.
Offline
Re: 2012 Textpattern Default Theme
The theme has been updated to beta2, you can download it from GitHub as usual.
I worked through some improvements with Gocom, changelog since beta1…
- Removed favicon and touch icon meta links
- Single quotes on variable value attribute
- Removed format attributes from various date tags (improves localisation)
- Removed display of unneeded extra comma when category2 is set, but category1 isn’t
- Removed PHP-reliant copyright from footer as some installs might have PHP in page disabled (it’s now in the extras folder if needed)
- Prevent potential blacklist search term exploit
- Added search term to input value on search results page
- Added support for Gecko 1.9.2 browsers (Firefox 3.6, Camono 2.1)
I’m going away on vacation now without internet access until early January, but keep filing any issues you discover and I’ll work through them on my return.
Cheers, Phil
Last edited by philwareham (2011-12-18 09:30:36)
Offline
Re: 2012 Textpattern Default Theme
Question for non-English speakers, is this going to work OK…
<strong><txp:text item="author" />:</strong> <span class="fn"><txp:author /></span>
Note the : in there, is this wrong to use for other languages?
Offline
Re: 2012 Textpattern Default Theme
Phil, maybe you’ll already know these sites (and methods) but I think they are a fine read:
Offline
Re: 2012 Textpattern Default Theme
Hi Phil.
In french, : need a space before and after but I know it’s very specific and difficult for you with international support in mind ;)
Cheers,
Patrick
Patrick.
Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.
Offline
Re: 2012 Textpattern Default Theme
Pat64 wrote:
In french,
:need a space before and after but I know it’s very specific and difficult for you with international support in mind ;)
Thanks Patrick, I think I may be removing the : altogether anyway because I get the feeling it is not used at all in certain languages (especially those with non-latin alphabets). Just need some further clarification from people more knowledgeable in these matters than I.
Offline
Re: 2012 Textpattern Default Theme
Might something like this work with css:
.container-class strong:after {
content: ": ";
padding-right: .5em;
}
html:lang(fr) .container-class strong:after {
content: "\a0 : "; /* with nbsp added in front */
padding-right: .5em;
}
(using your respective container class name). That would be similar to another css-based approach for dealing with French guillemot quote marks.
For moodle, they suggested moving the colon to part of the translation. this would be like a gTxt entry for author_separator or something.
Last edited by jakob (2012-01-08 17:55:48)
TXP Builders – finely-crafted code, design and txp
Offline
Re: 2012 Textpattern Default Theme
Unfortunate that TXP’s translation string support with the text tag isn’t same as with gTxt() function. Basically, if anything, I would recommend using curly-tag structure. I.e.
author => Author's name,
posted => Timestamp,
author_note => '{author}: {posted}',
I wish text supported tags as gTxt() does, so one could do this;
<txp:text item="author_note" posted='<txp:posted />' author='<txp:author />' />
Where the author_note string would contain {author}: {posted}. Should be pretty easy to patch in even;
/**
* @example <txp:text item="stringName" escape="0|HTML" [ tag1="", tag2="" ...] />
*/
function text($atts)
{
extract(lAtts(array(
'item' => '',
'escape' => 'html',
),$atts, 0));
unset($atts['item'], $atts['escape']);
$tag = array();
foreach($atts as $name => $value)
{
$tag['{'.$name.'}'] = $value;
}
return ($item) ? gTxt($item, $tag, $escape) : '';
}
Last edited by Gocom (2012-01-08 18:58:40)
Offline
Re: 2012 Textpattern Default Theme
Phil FYI (abbr + classes for hAtom and vCard): Published on … by …
Veröffentlicht am
<abbr class="updated" title="<txp:posted format="%Y%m%d" />"><txp:posted /></abbr>
von <span class="author vcard"><span class="fn"><txp:author /></span></span>
For German the : is OK :)
Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML
Offline
Re: 2012 Textpattern Default Theme
Thanks people. I’m no clearer as to whether to strip colons out of the theme or not. Seems to me the easiest solution is to get rid of them.
Then there’s RTL languages, it makes my head hurt even trying to understand how they could work.
Offline
Re: 2012 Textpattern Default Theme
The theme has been updated to beta3, you can download it from GitHub as usual.
Changelog since beta2…
- hNews microformat support.
- Remove hardcoded colons from theme (better internationalisation).
- Removed dependance on Modernizr.js, and then removed ‘js’ directory as it’s no longer necessary. Now targets old IE using IE conditionals.
- Some minor CSS improvements.
Cheers, Phil
Offline
Re: 2012 Textpattern Default Theme
Good job, congratulations!
Thanks!
Last edited by sebatorresi (2012-01-17 13:51:01)
Sonríe | Smile . <txp:lover />
Offline
#30 2012-02-22 14:04:06
- candyman
- Member

- From: Italy
- Registered: 2006-08-08
- Posts: 684
Re: 2012 Textpattern Default Theme
I’ve been away from forum for some time and discover very interesting things!
Awesome Phil’s Default Theme and very useful links suggested by RedFox, in particular the Adaptive Images script.
Last edited by candyman (2012-02-22 14:04:20)
Offline