コード例 #1
0
ファイル: JobMock.php プロジェクト: robjcordes/nexnewwp
 public function getImageUrl()
 {
     if ($this->hasImage()) {
         $url = site_url();
         $url .= "/wp-content/plugins/wpjobboard";
         $url .= Wpjb_List_Path::getRawPath("tmp_images");
         $url .= "/temp_" . session_id() . "." . $this->company_logo_ext;
         return $url;
     }
     return null;
 }
コード例 #2
0
ファイル: Application.php プロジェクト: robjcordes/nexnewwp
 public function getFiles()
 {
     $path = Wpjb_List_Path::getPath("apply_file");
     $path .= "/" . $this->id . "/";
     $files = glob($path . "*");
     if (!is_array($files)) {
         return array();
     }
     $fArr = array();
     foreach ($files as $file) {
         $f = new stdClass();
         $f->basename = basename($file);
         $f->url = rtrim(site_url(), "/") . "/wp-content/plugins/wpjobboard";
         $f->url .= Wpjb_List_Path::getRawPath("apply_file") . "/";
         $f->url .= $this->getId() . "/" . $f->basename;
         $f->size = filesize($file);
         $f->ext = pathinfo($file, PATHINFO_EXTENSION);
         $f->dir = $file;
         $fArr[] = $f;
     }
     return $fArr;
 }
コード例 #3
0
ファイル: Resume.php プロジェクト: robjcordes/nexnewwp
 public function getFileUrl()
 {
     $path = $this->getFilePath();
     if ($path) {
         $info = pathinfo($path);
         $ext = $info["extension"];
         $url = site_url();
         $url .= "/wp-content/plugins/wpjobboard";
         $url .= Wpjb_List_Path::getRawPath("resume_photo");
         $url .= "/file_" . $this->getId() . "." . $ext;
         return $url;
     }
     return null;
 }
コード例 #4
0
ファイル: intro.php プロジェクト: robjcordes/nexnewwp
<?php

$this->slot("title", "WPJobBoard Quick Start");
$this->_include("header.php");
?>

<img src="<?php 
echo get_bloginfo("url") . "/wp-content/plugins/wpjobboard" . Wpjb_List_Path::getRawPath("admin_public");
?>
/char.png" alt="" style="float:left; margin-top:40px" />

<div class="wpjb_intro">

<h3>Hi and welcome to WPJobBoard!</h3>

<span>
    <p>
    It seems you are running WPJB for the first time,
    this page is designed to guide you through most important features. You can always access
    quick start page by clicking "quick start" link in the footer.
    </p>

    <p style="margin-bottom:40px">
        <a class="button rbutton" href="">No thanks, i want to skip this quick start guide.</a>
    </p>
</span>

<h3>Become WPJobBoard Ninja Now!</h3>
<p>
    To take full advantage of WPJobBoard you need to learn where the most important features are
    and how to use them and this is what this tutorial is all about.
コード例 #5
0
ファイル: index.php プロジェクト: robjcordes/nexnewwp
<?php

$this->slot("title", __("Visual Editor", WPJB_DOMAIN));
$this->_include("header.php");
?>

<img src="<?php 
echo site_url() . "/wp-content/plugins/wpjobboard" . Wpjb_List_Path::getRawPath("admin_public");
?>
/char.png" alt="" style="float:left; margin-top:40px" />

<div class="wpjb_intro">

<h3><?php 
_e("About Visual Editor", WPJB_DOMAIN);
?>
</h3>

<span>
    <p>
    <?php 
_e("Visual Editor is a tool that will help you reorganize some forms in admin and frontend using intuitive drag&amp;drop interface.", WPJB_DOMAIN);
?>
    </p>

    <p style="margin-bottom:40px">
        <a class="button rbutton" href="<?php 
echo $this->_url->linkTo("wpjb/visualEditor", "edit/form/add");
?>
"><?php 
_e("Edit \"Add Job\" Form", WPJB_DOMAIN);
コード例 #6
0
ファイル: functions.php プロジェクト: robjcordes/nexnewwp
/**
 * FORM HELPERS
 */
function wpjb_form_helper_logo_upload(Daq_Form_Element $field, array $options = array())
{
    echo $options["tag"];
    $ext = Daq_Request::getInstance()->session("wpjb.job_logo_ext");
    if ($ext) {
        /// some special treatment
        $path = get_bloginfo("url") . "/wp-content/plugins/wpjobboard";
        $path .= Wpjb_List_Path::getRawPath("tmp_images") . "/temp_" . session_id() . "." . $ext;
        echo '<p class="wpjb-add-job-img"><img src="' . $path . '" alt="" /></p>';
    }
}