Plugin Directory

Changeset 3375656


Ignore:
Timestamp:
10/09/2025 10:46:29 AM (6 months ago)
Author:
joanv
Message:

v2.4.0 Job tags

Location:
jobsearch
Files:
497 added
10 edited

Legend:

Unmodified
Added
Removed
  • jobsearch/frontEnd/job/jobDetail.php

    r2520496 r3375656  
    6666
    6767            $titleJob = $job->get_title();
    68             $tags = "";
     68            $tags = $job->get_tags();
    6969            $googleArray = $job->get_google_job();
    7070            $contentField = $job->get_array_list();
  • jobsearch/helper/Job.php

    r3055722 r3375656  
    512512        $this->google_job["required_language"] = $this->language;
    513513    }
    514     private function set_tags($tags) {
    515         $tagsTxtTmp = "";
    516         $countTag = 0;
    517         foreach($tags as $count => $content){
     514    private function set_tags($jobTags) {
     515        $tags = [];
     516        foreach($jobTags as $count => $content){
    518517            foreach($content as $key => $val) {
    519                 if ($countTag == 3){
    520                     $tagsTxtTmp = $tagsTxtTmp . " ...";
    521                 } else {
    522                     if ($countTag < 3){
    523                         if($tagsTxtTmp <> ''){
    524                             $tagsTxtTmp .= ' - ';
    525                         }
    526                         $tagsTxtTmp .= $val;
    527                     }
    528                 }
    529                 $countTag ++;
    530             }
    531         }
    532         $this->tags = $tagsTxtTmp;
     518                $tags[] = $val;
     519            }
     520        }
     521        $this->tags = $tags;
    533522    }
    534523    private function set_title($title) {
  • jobsearch/jobsearch.php

    r3280713 r3375656  
    33Plugin Name: Tamago-DB Job Board
    44Description: Job board integrated with the ATS/CRM Tamago-DB
    5 Version: 2.3.1
     5Version: 2.4.0
    66Author: Tamago-DB
    77Text Domain: jobsearch
  • jobsearch/templates/job/detail/jobDetailHeader1.tpl

    r2356597 r3375656  
    1616        <span class="tdb-jd-date-published">  {$langPublished}: &nbsp; {$dateFormated}</span>
    1717    </div>
     18    {if $tags != ''}
     19        <div id="tdb-jd-job-tags" class="tdb-jd-row" >
     20            {foreach from=$tags item=tag}
     21                <div class="tdb-jd-job-tag">{$tag}</div>
     22            {/foreach}
     23        </div>
     24    {/if}
    1825</div>
    1926
  • jobsearch/templates/job/list/jobListBody1.tpl

    r2674369 r3375656  
    99        </div>
    1010    </div>
     11    <!--tags -->
     12    {if !empty($tags)}
     13        <div class="tdb-jd-row tdb-jd-row-header-detail tdb-jd-list-job-tags">
     14            {foreach from=$tags item=tag}
     15                <div class="tdb-jd-job-tag">{$tag}</div>
     16            {/foreach}
     17        </div>
     18    {/if}
    1119    <!--Type -->
    1220    {if !empty($type)}
  • jobsearch/trunk/frontEnd/job/jobDetail.php

    r2520501 r3375656  
    6666
    6767            $titleJob = $job->get_title();
    68             $tags = "";
     68            $tags = $job->get_tags();
    6969            $googleArray = $job->get_google_job();
    7070            $contentField = $job->get_array_list();
  • jobsearch/trunk/helper/Job.php

    r3055722 r3375656  
    512512        $this->google_job["required_language"] = $this->language;
    513513    }
    514     private function set_tags($tags) {
    515         $tagsTxtTmp = "";
    516         $countTag = 0;
    517         foreach($tags as $count => $content){
     514    private function set_tags($jobTags) {
     515        $tags = [];
     516        foreach($jobTags as $count => $content){
    518517            foreach($content as $key => $val) {
    519                 if ($countTag == 3){
    520                     $tagsTxtTmp = $tagsTxtTmp . " ...";
    521                 } else {
    522                     if ($countTag < 3){
    523                         if($tagsTxtTmp <> ''){
    524                             $tagsTxtTmp .= ' - ';
    525                         }
    526                         $tagsTxtTmp .= $val;
    527                     }
    528                 }
    529                 $countTag ++;
    530             }
    531         }
    532         $this->tags = $tagsTxtTmp;
     518                $tags[] = $val;
     519            }
     520        }
     521        $this->tags = $tags;
    533522    }
    534523    private function set_title($title) {
  • jobsearch/trunk/jobsearch.php

    r3280713 r3375656  
    33Plugin Name: Tamago-DB Job Board
    44Description: Job board integrated with the ATS/CRM Tamago-DB
    5 Version: 2.3.1
     5Version: 2.4.0
    66Author: Tamago-DB
    77Text Domain: jobsearch
  • jobsearch/trunk/templates/job/detail/jobDetailHeader1.tpl

    r2356597 r3375656  
    1616        <span class="tdb-jd-date-published">  {$langPublished}: &nbsp; {$dateFormated}</span>
    1717    </div>
     18    {if $tags != ''}
     19        <div id="tdb-jd-job-tags" class="tdb-jd-row" >
     20            {foreach from=$tags item=tag}
     21                <div class="tdb-jd-job-tag">{$tag}</div>
     22            {/foreach}
     23        </div>
     24    {/if}
    1825</div>
    1926
  • jobsearch/trunk/templates/job/list/jobListBody1.tpl

    r2674369 r3375656  
    99        </div>
    1010    </div>
     11    <!--tags -->
     12    {if !empty($tags)}
     13        <div class="tdb-jd-row tdb-jd-row-header-detail tdb-jd-list-job-tags">
     14            {foreach from=$tags item=tag}
     15                <div class="tdb-jd-job-tag">{$tag}</div>
     16            {/foreach}
     17        </div>
     18    {/if}
    1119    <!--Type -->
    1220    {if !empty($type)}
Note: See TracChangeset for help on using the changeset viewer.