Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
Re: 2012 Textpattern Default Theme
That reminds me, about time I put a new beta up. Beta4 has the following changes…
- Added a Flickr feed bolt-on (optional extra).
- Updated Google +1 and Twitter Tweet button code (optional extra).
- Some CSS feature support added for Firefox 3.6 (moz-border-radius) and Firefox 4+ (moz-resize).
- Uses more em measurements for better resolution independence.
- As of Textpattern v4.5, HTML5 elements are natively supported, so remove comment warnings (need Textpattern r3627 onwards).
- Better CSS optimisations for HTML lists.
- Other minor CSS improvements.
Please note that Textpattern r3627 or newer is recommended when using this theme.
Offline
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
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
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
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:
- Major improvements to print CSS.
- Replaced hNews microformat with Schema.org microformat instead.
- You can now filter articles by author (as of r3687).
- Active states have been added to the navigation menu.
- Added support for Google Code Prettify (optional extra).
- Links form removed as it is not essential. ‘plainlinks’ is the default (and required) form now (as of r3683).
- Added support for image alignment via Textile (requires Textile v2.3.2 or newer).
- Issue with comment anchors corrected.
- Other minor bug fixes and CSS improvements.
Last edited by philwareham (2012-03-26 12:11:30)
Offline
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:
- Non-core: better handling of Chrome Frame
- Non-core: jQuery 1.7.2
- Non-core: Facebook like button support
- A few minor bug fixes, typos and improvements
Offline