} function ws_render_date($datestring) { $date = date_parse($datestring); return $date['month'] . '/' . $date['day'] . '/' . $date['year']; } function ws_decide_image_type($file) { return '<img type="' . $file['mime_type'] . '" src="' . $file['url'] . '" />'; } function ws_decide_link_type($link) { return !strpos($link, 'http://') ? $link : get_bloginfo('url') . $link; } // Wordpress Functionality get_template_parts(array('theme-options')); add_action('init', 'create_post_type'); function create_post_type() { register_post_type('projects', array('labels' => array('name' => 'Projects', 'singular_name' => 'Project', 'add_new' => 'Add New', 'add_new_item' => 'Add New Project', 'edit_item' => 'Edit Project', 'new_item' => 'New Project', 'all_items' => 'All Projects', 'view_item' => 'View Project', 'search_items' => 'Search Projects', 'not_found' => 'No Projects found', 'not_found_in_trash' => 'No Projects found in Trash'), 'public' => true, 'has_archive' => true, 'rewrite' => array('slug' => 'projects'), 'supports' => array('title', 'editor', 'thumbnail', 'tags'), 'taxonomies' => array('scope_tag'))); } function projects_taxonomy() { register_taxonomy('project_categories', 'projects', array('hierarchical' => true, 'label' => 'Project Categories', 'query_var' => true, 'rewrite' => array('slug' => 'project_categories'))); } add_action('init', 'projects_taxonomy'); function projects_scope_tags() { register_taxonomy('scope_tag', 'projects', array('hierarchical' => false, 'label' => 'Scope Tags', 'query_var' => true, 'rewrite' => array('slug' => 'scope_tags'))); } add_action('init', 'projects_scope_tags');
the_time('Y-m-d'); ?> " pubdate><?php the_date(); ?> <?php the_time(); ?> </time> <?php comments_popup_link('Leave a Comment', '1 Comment', '% Comments'); ?> <?php the_content(); ?> </article> </li> <?php } ?> </ol> <?php } else { ?> <h2>No posts to display</h2> <?php } ?> <?php get_template_parts(array('parts/shared/footer', 'parts/shared/html-footer'));
if (have_posts()) { } ?> <?php while (have_posts()) { the_post(); ?> <?php the_post_thumbnail('large'); ?> <h1 class="title"><?php the_title(); ?> </h1> <h3 class="description"><?php the_content(); ?> </h3> <?php } ?> </div> </div> <?php //Get The Footer get_template_parts(array('parts/html-footer'));
} } } } if ($_GET["n"] != "") { echo "<div><p>"; echo $greeting; echo ",</p></div>"; } } } the_content(); if ($button_flag != "no") { ?> <?php get_template_parts(array('parts/shared/ctas')); ?> <?php } if ($secondary_text != "") { ?> <div id="secondary_text"><?php echo $secondary_text; ?> </div> <?php } ?> </div> </article>
?> <div class="noscript"> <?php $secondary_button_flag = "yes"; get_template_parts(array('parts/shared/article')); ?> </div><?php } } } } } if ($pm_format != "plus" && $companyfollowwidget_companyid != "" && $companyfollowwidget_position == "rail") { ?> <div class="widget companyfollowwidget ad"> <?php get_template_parts(array('parts/widgets/companyfollow')); ?> </div> <?php } if ($pm_format != "plus" && $recommendwidget_companyid != "" && $recommendwidget_position == "rail") { ?> <div class="widget recommendwidget ad"> <?php get_template_parts(array('parts/widgets/recommend')); ?> </div> <?php }
<?php global $button_td_campaignid, $secondary_button_flag, $redirect_url; if ($button_td_campaignid != "") { get_template_parts(array('parts/widgets/talentdirect')); } else { global $action_text; $button_redirect = get_post_meta($post->ID, 'button_url', true) != "" ? get_post_meta($post->ID, 'button_url', true) : $redirect_url; $button_text = $action_text == "" ? "Continue" : $action_text; ?> <a target="_blank" class="btn-action" href="<?php echo $button_redirect; ?> "><?php echo $button_text; ?> </a> <?php $secondary_button_redirect = $redirect_url; $secondary_button_url = get_post_meta($post->ID, 'secondary_button_url', true); $secondary_action_text = get_post_meta($post->ID, 'secondary_action_text', true); if ($secondary_button_url != "") { $secondary_button_redirect = $secondary_button_url; } if ($secondary_button_flag == "yes" && $secondary_action_text != "") { ?> <a target="_blank" class="btn-ternary" href="<?php echo $secondary_button_redirect; ?> "><?php echo $secondary_action_text;
/** * Get Child Theme Footer, if it exists */ function bald_get_footer() { $child_footer_loc = get_stylesheet_directory() . "/templates/footer.php"; // print $child_footer_loc; if (file_exists($child_footer_loc)) { include_once $child_footer_loc; } else { get_template_parts(array('parts/shared/footer')); } get_template_parts(array('parts/shared/html-footer')); }