コード例 #1
0
ファイル: je_alert.php プロジェクト: linniepinski/perssistant
    public function get_alert_message_template()
    {
        $option = new ET_GeneralOptions();
        $site_logo = $option->get_website_logo();
        $customize = $option->get_customization();
        $header = '<html class="no-js" lang="en">
			<body style="margin: 0px; font-family: ' . $customize['font-text'] . ', sans-serif; font-size: 13px; line-height: 1.3;">
				<style>
					.job_list {
						color : #000;
					}
				</style>
				<div style="margin: 0px auto; width:660px; border: 1px solid ' . $customize['background'] . '">

					<table width="100%" cellspacing="0" cellpadding="0">
						<tr style="background-color: ' . $customize['header'] . '; display:block; padding:10px 0px; vertical-align: middle; box-shadow: 0 2px 0 2px #E3E3E3;">
							<td style="padding: 0 10px 0 20px; width: 0px;">
								<a href="[site_url]" target="_blank">
									<img title="" alt="[blogname]" src="[site_logo]" />
								</a>
							</td>
							<td style="padding-bottom: 3px;">
								<span style="text-shadow: 0 0 1px #151515; color: #b0b0b0;">[blogdescription]</span>
							</td>
							<td style="padding-right: 20px; width : 25%">
								<!-- see more button -->
								<a href="[site_url]" target="_blank" style="display: block; position: relative; box-shadow: 0 1px 2px #222; -moz-box-shadow: 0 1px 2px #222; -webkit-box-shadow: 0 1px 2px #222; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; text-decoration: none; padding: 0 10px; height: 40px; line-height: 40px; background-repeat: repeat-x; background: ' . $customize['action'] . ';">
									<span style="color: #fff; font-size: 12px; font-weight: bold; text-shadow: 1px -1px 1px #9e4230;">
										' . __("VIEW MORE JOBS", ET_DOMAIN) . '
									</span>						
								</a>
							</td>
						</tr>
						<tr style="height: 3px; background-color: ' . $customize['background'] . '"><td colspan="3"></td></tr>
						<tr>
							<td colspan="3" style="padding: 10px 20px">
								<table>
									<tr>
										<td colspan="2" style="line-height : 26px ;font-size : 24px; color: #5c5c5c; padding-bottom: 10px; font-weight: normal; font-family :' . $customize['font-heading'] . ';">
										Re-discover your potentials. Re-vision your future. Meet Success. Let [blogname] take you there!
										</td>
									</tr>
									<tr>
										<td style="padding: 8px 10px 8px 0;" class="job_list">
											[list_jobs]
										</td>
									</tr>
								';
        $footer = '</table>
							</td>
								</tr>
								<tr style="padding: 10px 20px; color: #909090; height: 89px; background-repeat: repeat-x; background-color:#f7f7f7;">
									<td colspan="3">
										<table width="100%" cellspacing="0" cellpadding="0">
											<tr>
												<td style="text-align: left; padding: 10px 20px; width:140px;">
													<a href="[site_url]" target="_blank" style="display: block; position: relative; box-shadow: 0 1px 2px #999; -moz-box-shadow: 0 1px 2px #999; -webkit-box-shadow: 0 1px 2px #999; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; text-decoration: none; padding: 0 10px; height: 40px; line-height: 40px; background-repeat: repeat-x; background: ' . $customize['action'] . ';">
														<span style="color: #fff; font-size: 12px; font-weight: bold; text-shadow: 1px -1px 1px #9e4230;">
															' . __("VIEW MORE JOBS", ET_DOMAIN) . '
														</span>						
													</a>
												</td>
												<td style="text-align: left; padding: 10px 20px;">
													<table>
														<tr>
															<td>[copyright]</td>
														</tr>
														<tr>
															<td style="text-align:center;"><a href="[unsubscribe_link]">Unsubscribe</a>
															</td>
														</tr>						
													</table>
												</td>
												<td style="text-align: right; padding: 10px 20px;">
													[admin_email]
												</td>
											</tr>
										</table>
									</td>
									
								</tr>
							</table>
							
						</div>
						
					</body>
					</html>';
        $mail_alert_message = $header . $footer;
        return $mail_alert_message;
    }
コード例 #2
0
ファイル: jobroll.php プロジェクト: linniepinski/perssistant
    ?>
</div>
						<iframe id="frame_preview" style="border:0; overflow:hidden;" src="<?php 
    echo $url;
    ?>
" frameborder="0" height="400px" allowtransparency="true" marginheight="0" marginwidth="0"></iframe>
					</div>
			</div>
		</div>
	</div>
	<?php 
    get_footer();
} else {
    extract($_REQUEST);
    $opt = new ET_GeneralOptions();
    $customize = $opt->get_customization();
    $args = array('post_type' => 'job', 'post_status' => 'publish', 'posts_per_page' => $number ? $number : 5);
    if (isset($job_types) && $job_types) {
        $args['tax_query'][] = array('taxonomy' => 'job_type', 'field' => 'slug', 'terms' => $job_types);
    }
    if (isset($categories) && $categories) {
        $args['tax_query'][] = array('taxonomy' => 'job_category', 'field' => 'id', 'terms' => $categories);
    }
    $args['tax_query']['relation'] = 'AND';
    echo '<pre>';
    //var_dump($args);
    echo '</pre>';
    $query = new WP_Query($args);
    if ($query->have_posts()) {
        ?>
	<html>