Skip to content
This repository has been archived by the owner on Oct 4, 2017. It is now read-only.

Commit

Permalink
code comments
Browse files Browse the repository at this point in the history
  • Loading branch information
benbalter committed Feb 20, 2012
1 parent 22e0cd1 commit c813fba
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 9 deletions.
7 changes: 6 additions & 1 deletion templates/contact_info_row.php
@@ -1,4 +1,9 @@
<li id="contact_info_row[]" class="contact_info_row">
<?php
/**
* Template for contact info inputs
* @package WP_Resume
*/
?><li id="contact_info_row[]" class="contact_info_row">
<select name="wp_resume_options[contact_info_field][]" id="contact_info_field[]">
<option></option>
<?php foreach ( $this->parent->contact_fields() as $id => $field) { ?>
Expand Down
7 changes: 6 additions & 1 deletion templates/header.php
@@ -1,4 +1,9 @@
<link rel="profile" href="http://microformats.org/profile/hcard" />
<?php
/**
* Template for front-end header, adds hcard format and html5shiv if toggled
* @package WP_Resume
*/
?><link rel="profile" href="http://microformats.org/profile/hcard" />
<?php if ( $this->parent->options->get_option( 'fix_ie' ) ) { ?>
<!--[if lt IE 9]>
<script type="text/javascript" src="<?php echo plugins_url( 'js/html5.js', dirname( __FILE__ ) ); ?>"></script>
Expand Down
11 changes: 8 additions & 3 deletions templates/link_field.php
@@ -1,4 +1,9 @@
<?php if ( $edit ) { ?>
<?php
/**
* Template for organization link inputs
* @package WP_Resume
*/
?><?php if ( $edit ) { ?>
<tr class="form-row">
<th scope="row" valign="top">
<label for="link">Link</label>
Expand All @@ -10,5 +15,5 @@
<?php } ?>
<?php wp_nonce_field( 'wp_resume_org_link', 'wp_resume_nonce' ); ?>
<input type="text" name="org_link" value="<?php echo esc_attr( $value ); ?>" <?php if ( $edit ) { echo 'size="40"'; } ?> />
<p class="description">(optional) The link to the organization's home page</p>
<?php echo ( $taxonomy == '' ) ? '</div' : '</td></tr>'; ?>
<p class="description"><?php _e( '(optional) The link to the organization\'s home page', 'wp-resume' ); ?></p>
<?php echo ( $taxonomy == '' ) ? '</div>' : '</td></tr>'; ?>
7 changes: 6 additions & 1 deletion templates/options.php
@@ -1,4 +1,9 @@
<div class="wp_resume_admin wrap">
<?php
/**
* Template for main WP Resume options page
* @package WP_Resume
*/
?><div class="wp_resume_admin wrap">
<h2><?php _e('Resume Options', 'wp_resume'); ?></h2>
<form method="post" action='options.php' id="wp_resume_form">
<?php settings_errors(); ?>
Expand Down
7 changes: 6 additions & 1 deletion templates/order_box.php
@@ -1,4 +1,9 @@
<label class="screen-reader-text" for="menu_order"><?php _e('Order', 'wp-resume'); ?></label>
<?php
/**
* Template for position order input metabox
* @package WP_Resume
*/
?><label class="screen-reader-text" for="menu_order"><?php _e('Order', 'wp-resume'); ?></label>
<input type="text" name="menu_order" size="4" id="menu_order" value="<?php echo $post->menu_order; ?>">
<p>
<?php _e('Your resume will be sorted based on this number (ascending)', 'wp-resume'); ?>. <a href="#" id="wp_resume_help_toggle"><?php _e('More', 'wp-resume'); ?></a><br />
Expand Down
7 changes: 6 additions & 1 deletion templates/org_helptext.php
@@ -1,4 +1,9 @@
<noscript>
<?php
/**
* Template for organization editing helptext
* @package WP_Resume
*/
?><noscript>
<h4><?php _e('Help', 'wp-resume'); ?></h4>
<p><strong><?php _e('Name', 'wp-resume'); ?></strong>: <?php _e('The name of the organization', 'wp-resume'); ?></p>
<p><strong><?php _e('Parent', 'wp-resume'); ?></strong>: <?php _e('Do not add a parent', 'wp-resume'); ?></p>
Expand Down
7 changes: 6 additions & 1 deletion templates/taxonomy_box.php
@@ -1,4 +1,9 @@
<?php foreach ($terms as $term) { ?>
<?php
/**
* Template for exclusive taxonomies metabox (section and organizations)
* @package WP_Resume
*/
?><?php foreach ($terms as $term) { ?>
<input type="radio" name="<?php echo $type; ?>" value="<?php echo $term->term_id; ?>" id="<?php echo $term->slug; ?>"<?php if ( isset( $current[0]->term_id ) )
checked( $term->term_id, $current[0]->term_id );
?>>
Expand Down

0 comments on commit c813fba

Please sign in to comment.