This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Build an option list of Terms based on a given Taxonomy. | |
* | |
* @package helper | |
* @uses zm_base_get_terms to return the terms with error checking | |
* @param string $taxonomy | |
* @param mixed $value, the value to be used in the form field, can be term_id or term_slug | |
*/ | |
if ( ! function_exists( 'zm_base_build_options' ) ) : | |
function zm_base_build_options( $taxonomy=null, $value=null ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(document).ready(function( $ ){ | |
$("a.toggle_handle").on( "click", function( event ){ | |
event.preventDefault | |
items = $( this ).attr("data-items"); | |
$( "tr." + items ).toggle(); | |
}); | |
$(".item_handle").on("click", function( event ){ | |
taxonomy = $(this).attr('data-taxonomy'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Sample data | |
$taxonomies = array( | |
'editorial' => array( | |
'book', | |
'magazines', | |
'new', | |
'newspaper', | |
'website', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Template for login form. | |
* | |
* Submission is handled via ajax, see @package zm-wordpress-helpers for | |
* server side code. See the function call in zm_register_login_submit() | |
* for form processing. | |
* | |
* @uses zm_register_login_submit() | |
* @uses wp_lostpassword_url() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* JavaScript file for loading the custom login form. | |
* Note we are using jQuery in "no conflict mode". | |
*/ | |
jQuery(document).ready(function( $ ){ | |
/** | |
* Set-up our default dialog box with the following | |
* parameters. | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Target div for login form and container for dialog. | |
* | |
* This could easily be hooked into wp_footer() or just pasted into footer.php | |
* We have out parent div which is the dom element that jQuery UI modal is | |
* being attached to. The child div is our target element for our ajax | |
* requested form. | |
*/ | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* To be used in AJAX submission, gets the $_POST data and logs the user in. | |
* | |
* @uses check_ajax_referer() | |
* @uses wp_signon() | |
* @uses is_wp_error() | |
* | |
* @todo move this to the abtract! | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* loads a template from a specificed path | |
* | |
* @package Ajax | |
* | |
* @uses load_template() | |
* @todo move to zm-ajax or something? | |
*/ | |
function zm_load_template() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* At this point $pages is already a well structured array of solid data, | |
* which is probally parsed and cleaned. All thats needed from here is | |
* database insertation. At the moment we're using WordPress, duh. The only | |
* custom function used here is "add_event_term", which handles some complex | |
* logic, checking if a term already exists and what not. All other functions | |
* can be found in the WordPress Codex, http://codex.wordpress.org/ | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ exiv2 -PInt images/DSC_6949.jpg | |
CharacterSet G | |
RecordVersion 2 | |
Copyright Zane M. Kolnik | |
CountryName USA | |
City Hampton | |
ProvinceState Virgina | |
Keywords Day 1 | |
Keywords Moto 1 | |
Keywords Zane |