Textpattern CMS support forum

You are not logged in. Register | Login | Help

#21 2012-01-08 15:29:11

RedFox
Member
From: Netherlands
Registered: 2005-03-25
Posts: 740
Website

Re: 2012 Textpattern Default Theme

Phil, maybe you’ll already know these sites (and methods) but I think they are a fine read:

Adaptive Images
The Goldilocks Approach

Offline

#22 2012-01-08 15:31:54

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,261
Website

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

Offline

#23 2012-01-08 16:44:39

philwareham
Core designer
From: Farnham, Surrey, UK
Registered: 2009-06-11
Posts: 3,196
Website

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

#24 2012-01-08 17:52:15

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 3,454
Website

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

Online

#25 2012-01-08 18:39:04

Gocom
Plugin Author
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,530
Website

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

#26 2012-01-08 18:58:29

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

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

#27 2012-01-08 20:14:46

philwareham
Core designer
From: Farnham, Surrey, UK
Registered: 2009-06-11
Posts: 3,196
Website

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

#28 2012-01-17 08:17:08

philwareham
Core designer
From: Farnham, Surrey, UK
Registered: 2009-06-11
Posts: 3,196
Website

Re: 2012 Textpattern Default Theme

The theme has been updated to beta3, you can download it from GitHub as usual.

Changelog since beta2…

  1. hNews microformat support.
  2. Remove hardcoded colons from theme (better internationalisation).
  3. Removed dependance on Modernizr.js, and then removed ‘js’ directory as it’s no longer necessary. Now targets old IE using IE conditionals.
  4. Some minor CSS improvements.

Cheers, Phil

Offline

#29 2012-01-17 13:50:00

sebatorresi
Member
From: Spain
Registered: 2009-05-27
Posts: 105
Website

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

Board footer

Powered by FluxBB