Skip to content

Instantly share code, notes, and snippets.

@mushon
mushon / functions.php
Created May 25, 2011 09:58
Thematic functions and styles from today
<?php
//
// Custom Child Theme Functions
//
// I've included a "commented out" sample function below that'll add a home link to your menu
// More ideas can be found on "A Guide To Customizing The Thematic Theme Framework"
// http://themeshaper.com/thematic-for-wordpress/guide-customizing-thematic-theme-framework/
<?php
/* Log-in
--------------------------------------------------------- */
//here I will need to add a login bar for the site
function classlog_login() {
//possibly relevant template tags:
//wp_register()
//wp_loginout()
[gist]https://gist.github.com/976800[/gist]
<?php
function childtheme_posttitle($posttitle) {
return '<div class="containing">' . $posttitle . '</div>';
}
add_filter('thematic_postheader_posttitle','childtheme_posttitle');
?>
<?php
function childtheme_postheader() {
echo 'bacon';
}
add_filter('thematic_postheader','childtheme_postheader');
?>
<?php
// First we make our function
function childtheme_welcome_blurb() {
// We'll show it only on the HOME page IF it's NOT paged
// (so, not page 2,3,etc.)
if (is_home() & !is_paged()) { ?>
<!-- our welcome blurb starts here -->
<div id="welcome-blurb">
<p>Welcome to <?php bloginfo('name'); ?>.</p>
</div>
@mushon
mushon / HokHofeshHameida.htm
Created October 15, 2010 09:55
חוק חופש המידע, התשנ"ח
<p dir="rtl"><strong>חוק חופש המידע, התשנ"ח</strong><strong>1998-</strong><strong> </strong><sup>1</sup></p>
<p dir="rtl"><strong>1. חופש מידע</strong></p>
<p dir="rtl">לכל אזרח ישראלי או תושב הזכות לקבל מידע מרשות ציבורית בהתאם להוראות חוק זה.</p>
<p dir="rtl"><strong>2. הגדרות</strong><sup>4</sup><strong> </strong></p>
<p dir="rtl">בחוק זה -</p>
<p dir="rtl"><strong>"ועדה משותפת"</strong> - ועדה משותפת של ועדת החוקה חוק ומשפט וועדת החוץ והבטחון של הכנסת;</p>
<p dir="rtl"><strong>"מידע"</strong> - כל מידע המצוי ברשות ציבורית, והוא כתוב, מוקלט, מוסרט, מצולם או ממוחשב;</p>
<p dir="rtl"><strong>"ממונה"</strong> - מי שמונה לפי סעיף 3;</p>
<p dir="rtl"><strong>"קבלת מידע"</strong> - לרבות עיון, צפיה, האזנה, העתקה, צילום, קבלת פלט מחשב או קבלת מידע בכל דרך אחרת בהתאם לסוג המידע וצורת החזקתו;</p>
<p dir="rtl"><strong>"רשות ציבורית"</strong><sup>4</sup> -</p>
<?php
//-----------------------ADDING BLUEPRINT CSS-----------------------------
function add_blueprint() {
// Include main screen styles css
$content = "\t";
$content .= "<link rel=\"stylesheet\" type=\"text/css\" href=\"";
@mushon
mushon / gist:392328
Created May 6, 2010 16:29 — forked from skuter80/gist:391713
functions.php
<?php
// Adds a home link to your menu
// http://codex.wordpress.org/Template_Tags/wp_page_menu
//function childtheme_menu_args($args) {
// $args = array(
// 'show_home' => 'Home',
// 'sort_column' => 'menu_order',
// 'menu_class' => 'menu',
// 'echo' => true
<?php
//Column 3: Create a function and div to hold all random category posts
function random_category_loop(){
if (is_home() & !is_paged()) { ?>
<div id="randomcategory" class="category span-14 last floatright">
<!-- Use html to create category titles -->
<div class="categoryheader">
<div id="randomthingscategory" class="floatright span-14 last categorytitle">
<p><a href="http://localhost:8888/blog/category/random/">RANDOM <br>THINGS I LIKE</p>