Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2011-12-17 10:15:13

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,565
Website GitHub Mastodon

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

#17 2011-12-17 11:54:13

phiw13
Plugin Author
From: South-Western Japan
Registered: 2004-02-27
Posts: 3,644
Website

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

#18 2011-12-17 12:05:32

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,565
Website GitHub Mastodon

Re: 2012 Textpattern Default Theme

Oh ok.

Offline

#19 2011-12-18 09:30:17

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,565
Website GitHub Mastodon

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…

  1. Removed favicon and touch icon meta links
  2. Single quotes on variable value attribute
  3. Removed format attributes from various date tags (improves localisation)
  4. Removed display of unneeded extra comma when category2 is set, but category1 isn’t
  5. Removed PHP-reliant copyright from footer as some installs might have PHP in page disabled (it’s now in the extras folder if needed)
  6. Prevent potential blacklist search term exploit
  7. Added search term to input value on search results page
  8. 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

#20 2012-01-08 09:42:27

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,565
Website GitHub Mastodon

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

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

RedFox
Member
From: Netherlands
Registered: 2005-03-25
Posts: 816
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,676
GitHub Twitter

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

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

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,565
Website GitHub Mastodon

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: 5,202
Website GitHub

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

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

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
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: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,565
Website GitHub Mastodon

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: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,565
Website GitHub Mastodon

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