本文整理汇总了PHP中wpjb_link_to函数的典型用法代码示例。如果您正苦于以下问题:PHP wpjb_link_to函数的具体用法?PHP wpjb_link_to怎么用?PHP wpjb_link_to使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了wpjb_link_to函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: esc_attr_e
?>
</span>
<br/>
<a href="<?php
esc_attr_e(wpjb_link_to("membership_purchase", $pricing));
?>
" class="wpjb-button"><?php
$pricing->price > 0 ? _e("Purchase", "wpjobboard") : _e("Activate", "wpjobboard");
?>
</a>
<?php
if ($summary) {
?>
<div style="margin-top: 10px">
<a href="<?php
esc_attr_e(wpjb_link_to("membership_details", $pricing));
?>
" class="wpjb-button" style=""><?php
_e("View Details", "wpjobboard");
?>
</a>
</div>
<?php
}
?>
</div>
</div>
<?php
}
} else {
?>
开发者ID:jomuji,项目名称:mojobs-1,代码行数:31,代码来源:company-products.php
示例2: _e
</th>
<th class="wpjb-last"><?php
_e("Freshness", WPJB_DOMAIN);
?>
</th>
</tr>
</thead>
<tbody>
<?php
if (!empty($applicantList)) {
foreach ($applicantList as $application) {
?>
<tr class="">
<td>
<a href="<?php
echo wpjb_link_to("job_application", $application);
?>
">
<?php
if ($application->applicant_name) {
?>
<?php
esc_html_e($application->applicant_name);
?>
<?php
} else {
?>
<?php
_e("ID");
echo ": ";
echo $application->id;
开发者ID:robjcordes,项目名称:nexnewwp,代码行数:31,代码来源:job-applications.php
示例3: wpjb_job_created_time_ago
<?php
wpjb_job_created_time_ago(__("posted {time_ago} ago.", WPJB_DOMAIN), $relatedJob);
?>
</li>
<?php
}
?>
</ul>
</div>
<?php
}
?>
<div class="wpjb-job-apply">
<a class="wpjb-button" href="<?php
echo wpjb_link_to("apply", $job);
?>
"><?php
_e("Apply online", WPJB_DOMAIN);
?>
</a>
<?php
_e("or", WPJB_DOMAIN);
?>
<a class="wpjb-cancel" href="<?php
echo wpjb_url();
?>
"><?php
_e("cancel and go back", WPJB_DOMAIN);
?>
</a>
开发者ID:robjcordes,项目名称:nexnewwp,代码行数:31,代码来源:single.php
示例4: wpjb_link_to
* @subpackage Widget
*
*/
?>
<?php
echo $theme->before_widget;
if ($title) {
echo $theme->before_title . $title . $theme->after_title;
}
?>
<div id="wpjb_widget_alerts" class="wpjb_widget">
<form action="<?php
echo wpjb_link_to("search");
?>
" method="get">
<?php
if (!$use_permalinks) {
?>
<input type="hidden" name="page_id" value="<?php
echo Wpjb_Project::getInstance()->conf("link_jobs");
?>
" />
<input type="hidden" name="job_board" value="find" />
<?php
}
?>
<input type="text" name="query" placeholder="<?php
_e("Keyword, location ...", "wpjobboard");
开发者ID:jomuji,项目名称:mojobs-1,代码行数:31,代码来源:search.php
示例5: _setStatus
protected function _setStatus($status)
{
$application = $this->getObject();
$job = new Wpjb_Model_Job($application->job_id);
$emp = $job->getEmployer(true);
if ($emp->user_id < 1 || $emp->user_id != wp_get_current_user()->ID) {
$this->view->_flash->addError(__("You are not allowed to access this page.", WPJB_DOMAIN));
return false;
}
$application->is_rejected = $status;
$application->save();
if ($status == 1) {
$this->view->_flash->addInfo(__("Application was moved to archive.", WPJB_DOMAIN));
} else {
$this->view->_flash->addInfo(__("Application was accepted.", WPJB_DOMAIN));
}
wp_redirect(wpjb_link_to("job_application", $application));
exit;
}
开发者ID:robjcordes,项目名称:nexnewwp,代码行数:19,代码来源:Employer.php
示例6: elseif
<?php
} elseif (get_option('users_can_register')) {
?>
<li>
<a href="<?php
echo wpjb_link_to("employer_login");
?>
">
<?php
_e("Employer Login", "wpjobboard");
?>
</a>
</li>
<li>
<a href="<?php
echo wpjb_link_to("employer_new");
?>
">
<?php
_e("Employer Registration", "wpjobboard");
?>
</a>
</li>
<?php
}
?>
</ul>
<?php
开发者ID:jomuji,项目名称:mojobs-1,代码行数:31,代码来源:job-board-menu.php
示例7: wpjb_flash
* @var $pagination bool Show or hide pagination
*/
?>
<div class="wpjb wpjb-page-employers-index">
<?php
wpjb_flash();
?>
<?php
if ($search_bar != "disabled") {
?>
<div id="wpjb-top-search" class="wpjb-layer-inside">
<form action="<?php
esc_attr_e(wpjb_link_to("search"));
?>
" method="GET" id="wpjb-top-search-form">
<?php
global $wp_rewrite, $post;
?>
<?php
if (!$wp_rewrite->using_permalinks()) {
?>
<input type="hidden" name="page_id" value="<?php
echo $post->ID;
?>
" />
<?php
}
?>
开发者ID:jomuji,项目名称:mojobs-1,代码行数:31,代码来源:employers.php
示例8: wpjb_link_to
echo wpjb_link_to("step_add", null, array("republish" => $job->id));
?>
"><?php
_e("Republish", "wpjobboard");
?>
</a></li>
<li><a href="<?php
echo wpjb_link_to("job_delete", $job);
?>
"><?php
_e("Delete ...", "wpjobboard");
?>
</a></li>
<li><hr/></li>
<li><a href="<?php
echo wpjb_link_to("job_applications", $job);
?>
"><?php
_e("Applicants", "wpjobboard");
?>
</a></li>
<li><hr/></li>
<?php
if ($job->is_filled) {
?>
<li><a href="<?php
echo wpjb_api_url("action/job", array("id" => $job->id, "do" => "unfill", "redirect_to" => $url));
?>
"><?php
_e("Mark as not filled", "wpjobboard");
?>
开发者ID:jomuji,项目名称:mojobs-1,代码行数:31,代码来源:company-panel.php
示例9: wpjb_link_to
<li><hr/></li>
<?php
if ($job->is_filled) {
?>
<li><a href="<?php
echo wpjb_link_to($routerIndex) . "notfilled/" . $job->id;
?>
"><?php
_e("Mark as not filled", WPJB_DOMAIN);
?>
</a></li>
<?php
} else {
?>
<li><a href="<?php
echo wpjb_link_to($routerIndex) . "filled/" . $job->id;
?>
"><?php
_e("Mark as filled", WPJB_DOMAIN);
?>
</a></li>
<?php
}
?>
</ul>
</div>
</td>
</tr>
<?php
}
} else {
开发者ID:robjcordes,项目名称:nexnewwp,代码行数:31,代码来源:company-panel.php
示例10: wpjb_img
<img id="wpjb-dropdown-<?php
echo $application->id;
?>
-img" src="<?php
echo wpjb_img("cog.png");
?>
" alt="" />
<ul id="wpjb-dropdown-<?php
echo $application->id;
?>
" class="wpjb-dropdown">
<?php
foreach (wpjb_application_status() as $k => $v) {
?>
<li><a href="<?php
echo wpjb_api_url("action/application", array("id" => $application->id, "status" => $k, "redirect_to" => wpjb_link_to("job_applications", $job)));
?>
"><?php
esc_html_e($v);
?>
</a></li>
<?php
}
?>
</ul>
</div>
</div>
</div>
<?php
}
?>
开发者ID:jomuji,项目名称:mojobs-1,代码行数:31,代码来源:job-applications.php
示例11: addAction
public function addAction()
{
$this->view->current_step = 1;
$canPost = $this->_canPost();
if (!$canPost) {
return false;
}
if (!is_user_logged_in() && Wpjb_Project::getInstance()->conf("posting_encourage_reg")) {
$eUrl = wpjb_link_to("employer_new");
$m = __("<b>Quick Tip</b>: If you login before posting a job, you will be able to manage all your jobs from <a href=\"{url}\">employer account</a>.", WPJB_DOMAIN);
$m = str_replace("{url}", $eUrl, $m);
$this->view->_flash->addInfo($m);
}
$query = new Daq_Db_Query();
$l = $query->select("*")->from("Wpjb_Model_Listing t")->execute();
$listing = array();
foreach ($l as $li) {
$listing[$li->getId()] = $li;
}
$this->view->listing = $listing;
$form = new Wpjb_Form_AddJob();
$request = $this->getRequest();
$request->setSessionParam("wpjb.job_id", null);
$job = new Wpjb_Model_Job($this->getRequest()->get("republish", null));
$empId = Wpjb_Model_Employer::current()->getId();
$arr = array();
if ($request->session("wpjb.reset_job", false)) {
$ext = $request->session("wpjb.job_logo_ext");
$request->setSessionParam("wpjb.job", null);
$request->setSessionParam("wpjb.reset_job", null);
$request->setSessionParam("wpjb.job_logo_ext", null);
$file = Wpjb_List_Path::getPath("tmp_images") . "/temp_" . session_id() . "." . $ext;
if (is_file($file)) {
unlink($file);
}
} elseif ($empId > 0 && $job->employer_id == $empId || current_user_can("manage_options")) {
$arr = $job->allToArray();
if ($job->hasImage()) {
$ext = $job->company_logo_ext;
$path = Wpjb_List_Path::getPath("tmp_images");
copy($job->getImagePath(), $path . "/temp_" . session_id() . "." . $ext);
$request->setSessionParam("wpjb.job_logo_ext", $ext);
}
} elseif ($empId > 0 && wp_get_current_user()->ID > 0 && $request->session("wpjb.job") == null) {
$emp = Wpjb_Model_Employer::current();
$arr = $emp->toArray();
$arr['company_email'] = wp_get_current_user()->user_email;
$arr['job_location'] = $emp->company_location;
$arr['job_country'] = $emp->company_country;
$arr['job_state'] = $emp->company_state;
$arr['job_zip_code'] = $emp->company_zip_code;
$m = __("<b>Note</b>: Data from your company profile is being used to fill 'Company Information' fields.", WPJB_DOMAIN);
$this->view->_flash->addInfo($m);
if ($emp->hasImage()) {
$ext = $emp->company_logo_ext;
$path = Wpjb_List_Path::getPath("tmp_images");
copy($emp->getImagePath(), $path . "/temp_" . session_id() . "." . $ext);
$request->setSessionParam("wpjb.job_logo_ext", $ext);
}
}
$jobArr = $request->session("wpjb.job", null);
if (is_array($jobArr)) {
if (!$form->isValid($jobArr)) {
$this->view->_flash->addError(__("There are errors in your form. Please correct them before proceeding", WPJB_DOMAIN));
}
} else {
$form->setDefaults($arr);
}
$this->view->form = $form;
}
开发者ID:robjcordes,项目名称:nexnewwp,代码行数:70,代码来源:AddJob.php
示例12: wpjb_current_type_link
function wpjb_current_type_link()
{
$url = Wpjb_Project::getInstance()->getUrl();
$title = __("All Jobs", WPJB_DOMAIN);
if (wpjb_view("current_type")) {
$current_type = wpjb_view("current_type");
$url = wpjb_link_to("jobtype", $current_type);
$title = esc_html($current_type->title);
}
echo "<a href=\"{$url}\" class=\"wpjb-current-jobtype\">{$title}</a>";
}
开发者ID:robjcordes,项目名称:nexnewwp,代码行数:11,代码来源:functions.php
示例13: wpjb_link_to
<li>
<a href="<?php
echo wpjb_link_to("feed", null, array("slug" => "all"));
?>
"><?php
_e("All Feeds", WPJB_DOMAIN);
?>
</a>
</li>
<?php
if (!empty($categories)) {
foreach ($categories as $category) {
?>
<li>
<a href="<?php
echo wpjb_link_to("feed", $category);
?>
"><?php
esc_html_e($category->title);
?>
</a>
</li>
<?php
}
?>
<?php
} else {
?>
<li><?php
_e("No feeds found.", WPJB_DOMAIN);
?>
开发者ID:robjcordes,项目名称:nexnewwp,代码行数:31,代码来源:feeds.php
示例14: search
//.........这里部分代码省略.........
continue;
}
$custom = new Wpjb_Model_AdditionalField($k);
if ($custom->field_for != 1) {
continue;
}
$q = new Daq_Db_Query();
$q->select("COUNT(*) AS c");
$q->from("Wpjb_Model_FieldValue tf{$k}");
$q->where("tf{$k}.job_id=t1.id");
if ($custom->type == 3 || $custom->type == 4) {
$q->where("tf{$k}.value = ?", $v);
} else {
$q->where("tf{$k}.value LIKE ?", "%{$v}%");
}
$select->where("({$q})>0");
}
}
$searchString = $search = $query;
$q = "MATCH(t4.title, t4.description, t4.location, t4.company)";
$q .= "AGAINST (? IN BOOLEAN MODE)";
$select->select("COUNT(*) AS `cnt`");
$itemsFound = 0;
if ($searchString && strlen($searchString) <= 3) {
$select->join("t1.search t4");
$select->where("(t4.title LIKE ?", '%' . $searchString . '%');
$select->orWhere("t4.description LIKE ?)", '%' . $searchString . '%');
$itemsFound = $select->fetchColumn();
$search = false;
} elseif ($searchString) {
foreach (array(1, 2, 3) as $t) {
$test = clone $select;
$test->join("t1.search t4");
if ($t == 1) {
$test->where(str_replace("?", '\'"' . mysql_real_escape_string($search) . '"\'', $q));
} elseif ($t == 2) {
$test->where($q, "+" . str_replace(" ", " +", $search));
} else {
$test->where($q, $search);
}
$itemsFound = $test->fetchColumn();
if ($itemsFound > 0) {
break;
}
}
} else {
$itemsFound = $select->fetchColumn();
}
if ($search) {
$select->join("t1.search t4");
if ($t == 1) {
$select->where(str_replace("?", '\'"' . mysql_real_escape_string($search) . '"\'', $q));
} elseif ($t == 2) {
$select->where($q, "+" . str_replace(" ", " +", $search));
} else {
$select->where($q, $search);
}
}
if ($searchString && $location) {
$select->where("t4.location LIKE ?", "%{$location}%");
} elseif ($location) {
$select->join("t1.search t4");
$select->where("t4.location LIKE ?", "%{$location}%");
}
$select->select("*");
if ($page && $count) {
$select->limitPage($page, $count);
}
$ord = array("id", "job_created_at", "job_title");
if (!in_array($order, $ord)) {
$order = null;
}
if ($sort != "desc") {
$sort = "asc";
}
if ($order) {
$select->order("t1.is_featured DESC, t1.{$order} {$sort}");
}
$jobList = $select->execute();
$response = new stdClass();
$response->job = $jobList;
$response->page = $page;
$response->perPage = $count;
$response->count = count($jobList);
$response->total = $itemsFound;
$link = wpjb_link_to("feed_custom");
$link2 = wpjb_link_to("search");
$p2 = $params;
unset($p2["page"]);
unset($p2["count"]);
$q2 = http_build_query($p2);
$glue = "?";
if (stripos($link, "?")) {
$glue = "&";
}
$response->url = new stdClass();
$response->url->feed = $link . $glue . $q2;
$response->url->search = $link2 . $glue . $q2;
return $response;
}
开发者ID:robjcordes,项目名称:nexnewwp,代码行数:101,代码来源:JobSearch.php
示例15: foreach
wpjb-widget-with-count<?php
}
?>
">
<?php
if (!empty($job_types)) {
foreach ($job_types as $type) {
?>
<?php
if ($param->hide_empty && !$type->getCount()) {
continue;
}
?>
<li>
<a href="<?php
echo wpjb_link_to("type", $type);
?>
">
<?php
esc_html_e($type->title);
?>
</a>
<?php
if ($param->count) {
?>
<div class="wpjb-widget-item-count">
<div class="wpjb-widget-item-num"><?php
echo intval($type->getCount());
?>
</div>
</div>
开发者ID:jomuji,项目名称:mojobs-1,代码行数:31,代码来源:job-types.php
示例16: foreach
}
?>
<ul>
<?php
if (!empty($job_types)) {
foreach ($job_types as $type) {
?>
<?php
if ($param->hide_empty && !$type->getCount()) {
continue;
}
?>
<li>
<a href="<?php
echo wpjb_link_to("jobtype", $type);
?>
">
<?php
esc_html_e($type->title);
?>
<?php
if ($param->count) {
?>
(<?php
echo intval($type->getCount());
?>
)<?php
}
?>
</a>
开发者ID:robjcordes,项目名称:nexnewwp,代码行数:31,代码来源:job-types.php
示例17: daq_time_ago_in_words
echo daq_time_ago_in_words($time) . " " . __("ago", WPJB_DOMAIN);
?>
)
</span>
</li>
<?php
}
?>
</ul>
<?php
}
?>
<p id="wpjb-employer-actions" class="submit wpjb-import-box">
<form class="wpjb-form" action="<?php
echo wpjb_link_to("employer_access");
?>
" method="post" id="">
<?php
wpjb_form_render_hidden($form);
?>
<?php
foreach ($form->getNonEmptyGroups() as $group) {
?>
<?php
foreach ($group->element as $name => $field) {
?>
<fieldset>
<div class="<?php
wpjb_form_input_features($field);
开发者ID:robjcordes,项目名称:nexnewwp,代码行数:31,代码来源:company-access.php
示例18: typesAction
public function typesAction()
{
$select = new Daq_Db_Query();
$select->select("*");
$select->from("Wpjb_Model_JobType t");
$result = $select->execute();
$response = array();
foreach ($result as $r) {
$row = $r->toArray();
$row["url"] = wpjb_link_to("jobtype", $r);
$response[] = $row;
}
self::_push($response);
}
开发者ID:robjcordes,项目名称:nexnewwp,代码行数:14,代码来源:Jobs.php
示例19: _e
<?php
}
?>
</li>
<li>
<?php
if ($job->isNew()) {
?>
<span class="wpjb-bulb"><?php
_e("Nouveau", "wpjobboard");
?>
</span><?php
}
?>
</li>
</ul>
</div>
<div class="col-xs-2">
<a href="<?php
echo wpjb_link_to("job", $job);
?>
" class="btn btn-primary btn-block">Postuler</a>
</div>
</div>
开发者ID:jomuji,项目名称:mojobs-1,代码行数:31,代码来源:index-item.php
示例20: wpjb_link_to
<div id="wpjb-main" class="wpjb-page-job-edit">
<p><a href="<?php
echo wpjb_link_to("employer_panel");
?>
">← <?php
_e("Go back");
?>
</a></p>
<?php
wpjb_flash();
?>
<form class="wpjb-form" action="" method="post" enctype="multipart/form-data">
<?php
wpjb_form_render_hidden($form);
?>
<?php
foreach ($form->getNonEmptyGroups() as $group) {
?>
<?php
/* @var $group stdClass */
?>
<fieldset class="wpjb-fieldset-<?php
echo $group->name;
?>
">
<legend class="wpjb-empty"><?php
开发者ID:robjcordes,项目名称:nexnewwp,代码行数:31,代码来源:job-edit.php
注:本文中的wpjb_link_to函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论