Textpattern CMS support forum

You are not logged in. Register | Login | Help

#11 2013-02-12 13:38:20

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 1,625
Website

Re: Minimum Theme for Textpattern

The drawer is much better now :-).
There is still a smallish problem, namely that the drawer remains hidden for people with JS disabled (the coterie of Noscript extensions) – or if the js is blocked or fails to load for some reason, i.e corporate firewalls.

Perhaps adding a #drawer:target { display: block; } ? Oh, and then you have to change the href on the ‘more’ button (href="#drawer").

Offline

#12 2013-02-12 14:12:11

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

Re: Minimum Theme for Textpattern

Half the internet remains hidden for people with JavaScript turned off.

Seriously though, I’ll test out your example and see if it works.

Offline

#13 2013-08-21 20:30:52

PascalL
Member
From: Switzerland
Registered: 2009-03-09
Posts: 132
Website

Re: Minimum Theme for Textpattern

Hi Stephan, this is excellent.
I see a problem with headings: you use the Ovo font, which doesn’t have a bold variant, Firefox displays a faux bold because there’s a font-weight:bold in bootstrap stylesheet. Didn’t try other browsers, but I guess they do the same. You could easily set it back to “normal” in you stylesheet.

Pascal

P.S: well, you definitely have the same problem with italics, and also with the Average font which misses proper variants as well.

Last edited by PascalL (2013-08-21 20:42:37)

Offline

#14 2013-08-22 06:51:55

stephan
Plugin Author
From: Bochum, Germany
Registered: 2004-07-26
Posts: 196
Website

Re: Minimum Theme for Textpattern

Thanks, I made an update to the github repo removing the bold, but no packaged zip file yet.
Feel free to send my pull requests for the other variants you mentioned – I currently have only limited time to work on txp themes :-(


Yoko for Textpattern – A free blog themeMinimum Theme – If all you want to do is write.
Note: I am currently not actively using Textpattern, so I am not in the forums very often

Offline

#15 2014-01-09 23:38:44

Marcos
Member
Registered: 2004-04-08
Posts: 70

Re: Minimum Theme for Textpattern

Hi.
I have installed the minimum theme, and all works well, but not google+ comments, that does not display.

This is the content of minimum_post block:

<article role="article" itemscope itemtype="http://schema.org/Article">
	<txp:if_individual_article>
		<h1 itemprop="name"><txp:title /></h1>
	<txp:else />
		<h1 itemprop="name"><txp:permlink><txp:title /></txp:permlink></h1>
	</txp:if_individual_article>
	<h4><time datetime="<txp:posted format="%d de %b, %Y" />" itemprop="datePublished"><txp:posted format="%d de %b, %Y" /></time></h4>
	<div class="body" itemprop="articleBody">
		<txp:body />
	</div>

</article>
<txp:if_individual_article>
<div class="g-comments"
data-href="<txp:permlink />"
data-width="1040"
data-first_party_property="BLOGGER"
data-view_type="FILTERED_POSTMOD">
</div>
</txp:if_individual_article>

And this is the content of minimum_javascript:

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/prettify/r224/prettify.js"></script>
<script>
	$(function () {
		// Google Code Prettify
		window.prettyPrint && prettyPrint();

		// initialise drawer
		var drawer = new hideShow('drawer-trigger');
	});

	// function hideShow() is the constructor for a hideShow widget
	function hideShow(id) {
		this.$id = $('#' + id);
		this.$region = $('#' + this.$id.attr('aria-controls'));
		this.toggleSpeed = 100;
		this.bindHandlers();
	}

	// function bindHandlers() is a member function to bind event handlers to the hideShow region
	hideShow.prototype.bindHandlers = function() {
		var thisObj = this;
		this.$id.click(function(e) {
			thisObj.toggleRegion();
			e.stopPropagation();
			return false;
		});
	}

	// function toggleRegion() is a member function to toggle the display of the hideShow region
	hideShow.prototype.toggleRegion = function() {
		var thisObj = this;

		// toggle the region
		this.$region.slideToggle(this.toggleSpeed, function() {
			// region is collapsed
			if ($(this).attr('aria-expanded') === 'false') { 
				// update the aria-expanded attribute of the region
				$(this).attr('aria-expanded', 'true');
				// update the button state
				thisObj.$id.attr('aria-pressed', 'true');
			}
			// region is expanded
			else {
				// update the aria-expanded attribute of the region
				$(this).attr('aria-expanded', 'false');
				// update the button state
				thisObj.$id.attr('aria-pressed', 'false');
			}
		});
	}
</script>
<script src="http://yauh.de/js/slimbox2.js"></script>
<script src="https://apis.google.com/js/plusone.js">

Can you see something that causes the malfunction?

{Edited to add syntax highlighting (the actually wrong but more eye-opening, JS). That way the faulty area (lacking closing tag) is exposed much better. – Uli}

Last edited by uli (2014-01-10 14:42:32)

Offline

#16 2014-01-10 10:24:11

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,191

Re: Minimum Theme for Textpattern

Browsers might not like the unclosed script tag at the very bottom of minimum_javascript.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#17 2014-01-10 12:32:59

Marcos
Member
Registered: 2004-04-08
Posts: 70

Re: Minimum Theme for Textpattern

Oh, my god, thats it… Revised a thousand times and… Thank you!

Offline

#18 2014-01-10 13:13:36

stephan
Plugin Author
From: Bochum, Germany
Registered: 2004-07-26
Posts: 196
Website

Re: Minimum Theme for Textpattern

Glad it finally worked. I also missed this missing script tag…


Yoko for Textpattern – A free blog themeMinimum Theme – If all you want to do is write.
Note: I am currently not actively using Textpattern, so I am not in the forums very often

Offline

#19 2014-01-10 13:37:50

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,191

Re: Minimum Theme for Textpattern

Marcos wrote #277995:

Revised a thousand times and…

One tends to become clueless at the bottom.
You’re welcome, great that it wasn’t more.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#20 2014-05-04 19:50:26

Snooze
New Member
Registered: 2009-04-21
Posts: 4

Re: Minimum Theme for Textpattern

I attempted to download this theme using the link on the site:

Minimum

The destination now fails at a 404 page.

Is their an alternate download link?

Offline

Board footer

Powered by FluxBB