Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: scac/scac-themes
base: 859a1c52b6
...
head fork: scac/scac-themes
compare: 44012929ff
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 4 files changed
  • 0 commit comments
  • 1 contributor
Commits on Dec 20, 2012
Justin Louie basic select any ministry in ministries page dc6f2a5
Justin Louie form has been tested 4401292
View
96 themes/scacseattle.org/content-ministries.php
@@ -0,0 +1,96 @@
+<?php
+/**
+ * @package scacseattle.org
+ * @author Justin Louie
+ */
+?>
+
+<article id="post-<?php the_ID(); ?>" <?php post_class("ministry-page"); ?>>
+ <header class="entry-header">
+
+ <div class="content-from-container clearfix">
+ <div class="col-left">
+ <?php //echo apply_filters('the_content', '[contact-form-7 id="916" title="Get Connected - TG"]'); ?>
+ <div class="wpcf7" id="wpcf7-f916-p152-o1"><form action="/scacseattle.org/ministries/trinitarian-groups/#wpcf7-f916-p152-o1" method="post" class="wpcf7-form">
+ <div style="display: none;">
+ <input type="hidden" name="_wpcf7" value="916" />
+ <input type="hidden" name="_wpcf7_version" value="3.3.2" />
+ <input type="hidden" name="_wpcf7_unit_tag" value="wpcf7-f916-p152-o1" />
+ <input type="hidden" name="_wpnonce" value="63add9607b" />
+ </div>
+ <h5>Get Connected</h5>
+ <div class="ministry-contact-input"><span class="wpcf7-form-control-wrap your-name"><input type="text" name="your-name" value="" class="wpcf7-form-control wpcf7-text wpcf7-validates-as-required" default-value="Name"/></span></div>
+ <div class="ministry-contact-input"><span class="wpcf7-form-control-wrap your-email"><input type="text" name="your-email" value="" class="wpcf7-form-control wpcf7-text wpcf7-email wpcf7-validates-as-required wpcf7-validates-as-email" default-value="Email"/></span></div>
+ <div class="ministry-contact-input"><span class="wpcf7-form-control-wrap phonenumber"><input type="text" name="phonenumber" value="" class="wpcf7-form-control wpcf7-text" default-value="Phone Number"/></span></div>
+ <div class="ministry-contact-input">
+ <span class="wpcf7-form-control-wrap ministry">
+ <select name="ministry" value="<?php the_title()?>" class="wpcf7-form-control wpcf7-text"/>
+ <option value="">Select a Ministry</option>
+ <?php
+ $page = get_page_by_title('ministries');
+ $args = array(
+ 'child_of' => $page->ID,
+ 'post_status' => 'publish',
+ 'post_type' => 'page',
+ 'sort_order' => 'DESC',
+ );
+
+ $pages = get_pages($args);
+ foreach($pages as $p) :
+ ?>
+ <option value="<?php echo get_the_title($p);?>"><?php echo get_the_title($p);?></option>
+ <?php endforeach; ?>
+ </select>
+ </span>
+ </div>
+ <div class="ministry-contact-input"><input type="submit" value="Send" class="wpcf7-form-control wpcf7-submit" /></div>
+ <div class="wpcf7-response-output wpcf7-display-none"></div></form></div>
+ </div>
+
+ <div class="col-right">
+ <div class="entry-content">
+ <?php the_content(); ?>
+ <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', '_s' ), 'after' => '</div>' ) ); ?>
+ </div><!-- .entry-content -->
+ </div>
+ </div>
+
+
+ <footer class="entry-meta">
+ <?php
+ /* translators: used between list items, there is a space after the comma */
+ $category_list = get_the_category_list( __( ', ', '_s' ) );
+
+ /* translators: used between list items, there is a space after the comma */
+ $tag_list = get_the_tag_list( '', ', ' );
+
+ if ( ! _s_categorized_blog() ) {
+ // This blog only has 1 category so we just need to worry about tags in the meta text
+ if ( '' != $tag_list ) {
+ $meta_text = __( 'This entry was tagged %2$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', '_s' );
+ } else {
+ $meta_text = __( 'Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', '_s' );
+ }
+
+ } else {
+ // But this blog has loads of categories so we should probably display them here
+ if ( '' != $tag_list ) {
+ $meta_text = __( 'This entry was posted in %1$s and tagged %2$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', '_s' );
+ } else {
+ $meta_text = __( 'This entry was posted in %1$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', '_s' );
+ }
+
+ } // end check for categories on this blog
+
+ printf(
+ $meta_text,
+ $category_list,
+ $tag_list,
+ get_permalink(),
+ the_title_attribute( 'echo=0' )
+ );
+ ?>
+
+ <?php edit_post_link( __( 'Edit', '_s' ), '<span class="edit-link">', '</span>' ); ?>
+ </footer><!-- .entry-meta -->
+</article><!-- #post-<?php the_ID(); ?> -->
View
2  themes/scacseattle.org/page-ministries.php
@@ -22,7 +22,7 @@
* If you want to overload this in a child theme then include a file
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
*/
- get_template_part( 'content', get_post_format() );
+ get_template_part( 'content', 'ministries', get_post_format() );
?>
<?php endwhile; ?>
View
7 themes/scacseattle.org/sass/ministries.css.sass
@@ -12,6 +12,13 @@
margin: 1em 0 0 0
font-size: 14px
.ministry-contact-input
+ select
+ width: 260px
+ height: 35px
+ background: $search-box-bg
+ border: 0
+ margin: 5px 0px
+
input[type='text']
background: $search-box-bg
border: 0
View
6 themes/scacseattle.org/style.css
@@ -334,6 +334,12 @@
.ministry-page .wpcf7 h5 {
margin: 1em 0 0 0;
font-size: 14px; }
+.ministry-page .wpcf7 .ministry-contact-input select {
+ width: 260px;
+ height: 35px;
+ background: #efefef;
+ border: 0;
+ margin: 5px 0px; }
.ministry-page .wpcf7 .ministry-contact-input input[type='text'] {
background: #efefef;
border: 0;

No commit comments for this range

Something went wrong with that request. Please try again.