Skip to content

Instantly share code, notes, and snippets.

View whaleen's full-sized avatar
🏠
Working from home

whaleen

🏠
Working from home
  • Code Furniture
  • PST
  • 23:28 (UTC -07:00)
View GitHub Profile
<!-- Use smd_short_url to enable article ID only forwarding to article -->
<a href="http://twitter.com/home?status=Regarding <txp:site_url /><txp:article_id />" title="Publish it on Twitter!" class="tooltip" onclick="window.open(this.href); return false;">Tweet!</a>
@whaleen
whaleen / front_end_edit.misc.html
Last active September 29, 2015 10:07
Front end editing of Textpattern articles
<txp:cbe_frontauth_protect>
<!-- Requires a URL variable matching the ID of article to be edited.
Do: http://domain.com/?article_id=123 to load the article with the ID of 123 into the form below.
============================================================================== -->
<txp:smd_query query="SELECT id, title, body, excerpt FROM textpattern WHERE id = '?article_id'">
@whaleen
whaleen / cnk_versioning v0.1.7 (mod) (compressed)
Created November 21, 2012 23:18
cnk_versioning v0.1.7 (mod) (compressed)
# Name: cnk_versioning v0.1.7 (mod) (compressed)
# Type: Admin/Public side plugin
# Autoload Templates
# Author: Christian Nowak (mod by Maniqui)
# URL: http://www.cnowak.de
# Recommended load order: 5
# .....................................................................
# This is a plugin for Textpattern - http://textpattern.com/
# To install: textpattern > admin > plugins
@whaleen
whaleen / bootstrap.js
Created November 22, 2012 18:40
v2.2.1
/* ===================================================
* bootstrap-transition.js v2.2.1
* http://twitter.github.com/bootstrap/javascript.html#transitions
* ===================================================
* Copyright 2012 Twitter, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
<ul class="breadcrumb">
<li><a href="<txp:site_url />">Home</a> <span class="divider">/</span></li>
<txp:if_section>
<li><a href="#"><txp:section title="1" /></a> <span class="divider">/</span></li>
</txp:if_section>
<txp:if_category>
<li><a href="#"><txp:category title="1" /></a> <span class="divider">/</span></li>
</txp:if_category>
@whaleen
whaleen / gist:4218655
Created December 5, 2012 19:18
Textpattern Navigation List in a Well
<h3>Navigation List</h3>
<p>Built to support textpattern sections and categories.</p>
<div class="well" style="padding: 8px 0;">
<ul class="nav nav-list">
<li class="nav-header">Sections</li>
<li<txp:if_section name='default'> class="active"</txp:if_section>><a href="<txp:site_url />">Home</a></li>
<txp:section_list wraptag="" break="">
<div class="social">
<span class="twitter">
<a href="http://twitter.com/share" class="twitter-share-button" data-url="[your-url-here]">Tweet</a>
</span>
<span class="google">
<g:plusone size="medium" href="[your-url-here]"></g:plusone>
</span>
<span class="Facebook">
<iframe src="https://www.facebook.com/plugins/like.php?href=[your-url-here]&amp;show_faces=false&amp;layout=button_count" scrolling="no" frameborder="0" style="height: 21px; width: 100px" allowTransparency="true"></iframe>
</span>
@whaleen
whaleen / rss_admin_db_manager v4.3
Created February 5, 2013 17:03
Works with TXP 4.5
# Name: rss_admin_db_manager v4.3
# Type: Admin/Public side plugin
# Database management system.
# Author: Rob Sable
# URL: http://www.wilshireone.com/
# Recommended load order: 5
# .....................................................................
# This is a plugin for Textpattern - http://textpattern.com/
# To install: textpattern > admin > plugins
@whaleen
whaleen / gist:5050745
Last active December 14, 2015 07:29
Display ‘tags’ (Textpattern Article Keywords) from articles by logged user with tru_tags. This is only to show a user a list of the Article Keywords they have used as they are logged in.
<!--
Textpattern Plugins:
* cbe_frontauth: http://www.clairebrione.com/?rah_plugin_download=cbe_frontauth
* tru_tags: http://www.rainskit.com/reference/537/tru_tags-releases
* smd_query: http://stefdawson.com/sw/plugins/smd_query
-->
<!-- Use cbe_frontauth to make the variable 'logged_user' from logged user's name for use in smd_query later -->
<txp:smd_bio_author author='<txp:cbe_frontauth_whois type="name" />'>
<div class="social">
<span class="twitter">
<a href="http://twitter.com/share" class="twitter-share-button" data-url="[your-url-here]">Tweet</a>
</span>
<span class="google">
<g:plusone size="medium" href="[your-url-here]"></g:plusone>
</span>
<span class="Facebook">
<iframe src="https://www.facebook.com/plugins/like.php?href=[your-url-here]&amp;show_faces=false&amp;layout=button_count" scrolling="no" frameborder="0" style="height: 21px; width: 100px" allowTransparency="true"></iframe>
</span>