Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

sh090 on "Replacing regular form in php"

$
0
0

Hi Guys

I am looking to make some changes to my site which uses appthemes's jobroller theme. Please help me as to what changes should i make to the below php code to call gravity forms instead of the current one when "Apply Online" is clicked:

<?php
				// load up theme-actions.php and display the apply form
				do_action('job_footer');
				?>
				<ul class="section_footer" style="display:none;">

					<?php if ($url = get_post_meta($post->ID, 'job_url', true)) : ?>
						<li class="apply"><a href="<?php echo $url; ?>" <?php
							 if ($onmousedown = get_post_meta($post->ID, 'onmousedown', true)) :
							 	echo 'onmousedown="'.$onmousedown.'"';
							 endif;
						?> target="_blank" rel="nofollow"><?php _e('View & Apply Online',APP_TD); ?></a></li>
					<?php else :?>
						<li class="apply"><a href="#apply_form" class="apply_online"><?php _e('Apply Online',APP_TD); ?></a></li>
					<?php endif; ?>

					<?php if (is_user_logged_in() && current_user_can('can_submit_resume')) : $starred = (array) get_user_meta(get_current_user_id(), '_starred_jobs', true); ?>
						<?php if (!in_array($post->ID, $starred)) : ?>
							<li class="star"><a href="<?php echo add_query_arg( 'star', 'true', get_permalink() ); ?>" class="star"><?php _e('Star Job',APP_TD); ?></a></li>
						<?php else : ?>
							<li class="star"><a href="<?php echo add_query_arg( 'star', 'false', get_permalink() ); ?>" class="star"><?php _e('Un-star Job',APP_TD); ?></a></li>
						<?php endif; ?>
					<?php endif; ?>

Any help would be greatly appreciated !!!

[Moderator Note: No bumping. If it's that urgent after waiting just 45 minutes, consider hiring someone instead.]


Viewing all articles
Browse latest Browse all 8245

Trending Articles