Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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,564
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,564
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

#31 2012-02-22 14:56:57

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

Re: 2012 Textpattern Default Theme

That reminds me, about time I put a new beta up. Beta4 has the following changes

  1. Added a Flickr feed bolt-on (optional extra).
  2. Updated Google +1 and Twitter Tweet button code (optional extra).
  3. Some CSS feature support added for Firefox 3.6 (moz-border-radius) and Firefox 4+ (moz-resize).
  4. Uses more em measurements for better resolution independence.
  5. As of Textpattern v4.5, HTML5 elements are natively supported, so remove comment warnings (need Textpattern r3627 onwards).
  6. Better CSS optimisations for HTML lists.
  7. Other minor CSS improvements.

Please note that Textpattern r3627 or newer is recommended when using this theme.

Offline

#32 2012-02-22 19:23:40

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,634
GitHub Twitter

Re: 2012 Textpattern Default Theme

Hi Phil :)

I’m currently trying this beta 4 version and personally I prefer this full width rendering (to the another one ;)

May am I suggest you somethings ?

First, the space between the main title and the website slogan seems too hight.
Second, may be you could take advantage of this CSS rules to get a better balance between letters spacing:

body{
-webkit-font-smoothing:antialiased;
font-smoothing:antialiased;
text-rendering:optimizeLegibility;
-moz-font-feature-settings:"kern=1";
-ms-font-feature-settings:"kern" 1
}

Best regards,

Last edited by Pat64 (2012-02-22 19:28:36)


Patrick.

Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.

Offline

#33 2012-02-23 03:14:00

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,187
Website

Re: 2012 Textpattern Default Theme

Pat64 wrote:

-webkit-font-smoothing:antialiased;
font-smoothing:antialiased;

Please. Don’t . use . this. -webkit-font-smoothing is a webkit only property that has NO equivalent in any standard to date. And certainly don’t use a non-prefixed non-standard property.

And it results in ugly text rendering on OS X.

font-feature-settings could be used, yes. Eventually. But add at least the @-webkit- prefixed version as well.


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern

Offline

#34 2012-02-23 08:06:03

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

Re: 2012 Textpattern Default Theme

Agree with Philippe, I had some of those rules in the theme when I started it (mainly because html5 boilerplate had them as well), but general concensus is they screw up font rendering more than they help.

Offline

#35 2012-03-26 12:10:50

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

Re: 2012 Textpattern Default Theme

Beta 5 of the Textpattern v4.5 default theme is available for download. Please note you’ll also need Textpattern r3687 or newer in order to use this theme).

Latest changes are:

  1. Major improvements to print CSS.
  2. Replaced hNews microformat with Schema.org microformat instead.
  3. You can now filter articles by author (as of r3687).
  4. Active states have been added to the navigation menu.
  5. Added support for Google Code Prettify (optional extra).
  6. Links form removed as it is not essential. ‘plainlinks’ is the default (and required) form now (as of r3683).
  7. Added support for image alignment via Textile (requires Textile v2.3.2 or newer).
  8. Issue with comment anchors corrected.
  9. Other minor bug fixes and CSS improvements.

Last edited by philwareham (2012-03-26 12:11:30)

Offline

#36 2012-04-17 12:02:14

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

Re: 2012 Textpattern Default Theme

Beta 6 of the theme is now available for download which matches the version currently in the Textpattern SVN builds.

Latest changes are:

  1. Non-core: better handling of Chrome Frame
  2. Non-core: jQuery 1.7.2
  3. Non-core: Facebook like button support
  4. A few minor bug fixes, typos and improvements

Offline

Board footer

Powered by FluxBB