Plugin Directory

Changeset 1973119


Ignore:
Timestamp:
11/12/2018 04:53:40 PM (7 years ago)
Author:
Ralph Rezende
Message:

New version 5.0.0

Location:
company-presentation
Files:
19 added
4 edited

Legend:

Unmodified
Added
Removed
  • company-presentation/trunk/careerpagesplugin.php

    r1701673 r1973119  
    99Description: With the Prodii WP-plugin, you can create a profile section on your wordpress homepage showcasing your professional accomplishments. On https://prodii.com  you build professional profiles (web pages) by collecting data about your work life. The Prodii plugin integrates information from your prodii account into your wordpress homepage.
    1010
    11 Version: 4.3.6
     11Version: 5.0.0
    1212Author: Prodii by Ralph Rezende Larsen
    1313Author URI: https://prodii.com/view/ralphrezendelarsen
     
    2020        public static $templateini;
    2121
    22         function CareerpagesMain() {
     22        function __construct() {
    2323        }
    2424       
     
    5252                        self::$templateini["templatepath"] = '';
    5353                    } else {
    54                         self::$templateini["errors"][] = 'We cannot find the template you are asking for. The '.self::$templateini["template"].' template is not locally in your company-presentation plugin nor on the Prodii server.';
     54                        self::$templateini["errors"][] = 'We cannot find the template you are asking for. The '.self::$templateini["template"].' template is not locally in your presentation plugin nor on the Prodii server.';
    5555                    }
    5656                }
     
    106106                curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    107107                $response = json_decode(curl_exec($ch), true);
     108
    108109                if($errno = curl_errno($ch)) {
    109110                    self::$templateini["errors"][] = 'Get '.(self::$templateini["local"] ? 'data' : 'html').' cURL error ({$errno}):\n {$error_message}';
     
    147148                            self::$templateini["gui"] = CareerpagesTemplate::getCompany($response);
    148149                            break;
     150                        case "Network":
     151                            self::$templateini["gui"] = CareerpagesTemplate::getCompany($response);
     152                            break;
    149153                        case "Team":
    150154                            self::$templateini["gui"] = CareerpagesTemplate::getTeam($response);
     
    247251                        self::$templateini["css"] = '';
    248252                    }
    249                    
     253
    250254                    // Level
    251255                    if (stripos($content, ' level="') !== false) {
     
    265269
    266270                    CareerpagesMain::getTemplatedata();
    267                    
    268271                    if (empty(self::$templateini["errors"])) {
    269272                        foreach (self::$templateini["ini"]["styles"] as $name => $url) {
     
    351354                    case 'There is no handler for getTeamsHtml':
    352355                        $gui =  '
    353                                 <strong>Problem:</strong> You have updated the <b>People profiles, team- and company pages</b>-plugin recently and need to change the shortcode level parameter.<br>
    354                                 <strong>How to fix it:</strong> Please change the parameter from level="Teams" to level="Company", in order use Prodii\'s latest version of the <b>People profiles, team- and company pages</b>-plugin.
     356                                <strong>Problem:</strong> You have updated the <b>People profiles, team- and network pages</b>-plugin recently and need to change the shortcode level parameter.<br>
     357                                <strong>How to fix it:</strong> Please change the parameter from level="Teams" to level="Network", in order use Prodii\'s latest version of the <b>People profiles, team- and network pages</b>-plugin.
    355358                                <br><br>
    356                                 <b>NB:</b> Don\'t forget to add company id before the the team id\'s in the shortcode ids parameter.
     359                                <b>NB:</b> Don\'t forget to add network id before the the team id\'s in the shortcode ids parameter.
    357360                                <br><br>
    358361                                Go to <a href="'.admin_url().'admin.php?page=prodii-shortcode" target="_blank">wp-admin - Prodii - Shortcodes</a>, generate your shortcode, and paste it on the page.
     
    361364                        break;
    362365                    default:
    363                         $gui =  '
    364                                 self::$templateini["gui"]["error"]
    365                                 ';
     366                        echo '¤¤¤ Came here #4 ¤¤¤';
     367                        $gui =  self::$templateini["gui"]["error"];
    366368                        $content = CareerpagesMain::getErrorGui('Following error was detected', $gui);
    367369                        break;
     
    383385                                        <input id="locale" type="hidden" value="'.(isset($atts["locale"]) && $atts["locale"] ? $atts["locale"] : 'en_GB').'"/>
    384386                                        <input id="key" type="hidden" value="'.$atts["key"].'"/>
    385                                         <input id="companyids" type="hidden" value="'.($atts["level"] == "Company" ? $atts["ids"] : "0").'"/>
     387                                        <input id="companyids" type="hidden" value="'.($atts["level"] == "Company" || $atts["level"] == "Network" ? $atts["ids"] : "0").'"/>
    386388                                        <input id="teamid" type="hidden" value="'.($atts["level"] == "Team" ? $atts["ids"] : "0").'"/>
    387389                                        <input id="profileid" type="hidden" value="'.($atts["level"] == "Profile" ? $atts["ids"] : "0").'"/>
     
    416418    class ProdiiAdmin {
    417419
    418         function ProdiiAdmin() { //constructor
     420        function __construct() { //constructor
    419421            //require_once(self::$templateini["pluginpath"].'/php/careerpagespluginlibrary.php');
    420422            //require_once(plugins_url('php/careerpagespluginlibrary.php' , __FILE__ ));
     
    469471                        <h2>Prodii Description</h2>
    470472                        <br>
    471                         <p>If you find the company-presentation plugin useful, please rate it <a target="_blank" href="http://wordpress.org/support/view/plugin-reviews/company-presentation#postform"> ★★★★★ </a>.</p>
     473                        <p>If you find the this presentation plugin useful, please rate it <a target="_blank" href="http://wordpress.org/support/view/plugin-reviews/company-presentation#postform"> ★★★★★ </a>.</p>
    472474                        <br>
    473475                        <table class="form-table">
     
    475477                                <th scope="row">About Us Section</th>
    476478                                <td>
    477                                     <p>With the Prodii Plugin you can create an "About Us" section for people, teams and your company.</p>
     479                                    <p>With the Prodii Plugin you can create an "About Us" section for people, teams and your network.</p>
    478480                                    <p>From a simple employee directory listing of your employees and/ or co-workers to an extended profile information with photos, skills and bio - all put together in a stylish design.</p>
    479481                                    <p>It can be used for "meet people who work at this location", "see who is member of our team", "meet your future collegues" etc.</p>
     
    491493                                    <ol>
    492494                                        <li>Go to <a href="https://prodii.com" target="_blank">https://prodii.com</a> and register for an account</li>
    493                                         <li>Create your company, your team(s) and invite your co-workers</li>
     495                                        <li>Create your network, your team(s) and invite your co-workers</li>
    494496                                        <li>Go to your personal Account > Account Settings and Copy your Publisher Key (a combination og letters and numbers)
    495497                                    </ol>
     
    499501                                <th scope="row">Gather data</th>
    500502                                <td>
    501                                     <p>You can upgrade from a personal profile to a team owner. You build up your own virtual organisation by adding a company and then adding teams to the company. First you enter information about your company and team. Then you invite people to your team(s). Team members enter information about themselves. While doing so they share their data with you as the host of the teams and the manager of the data hub.</p>
     503                                    <p>You can upgrade from a personal profile to a team owner. You build up your own virtual organisation by adding a network and then adding teams to the network. First you enter information about your network and team. Then you invite people to your team(s). Team members enter information about themselves. While doing so they share their data with you as the host of the teams and the manager of the data hub.</p>
    502504                                </td>
    503505                            </tr>
     
    524526                                    <ol>
    525527                                        <li>Select template</li>
    526                                         <li>Select company/ team(s)</li>
     528                                        <li>Select network/ team(s)</li>
    527529                                        <li>Generate your short code and paste into a page</li>
    528530                                        <li>Ensure that the page setting is a full width page</li>
     
    531533                            </tr>
    532534                            <tr valign="top">
    533                                 <th scope="row">Update your company career page</th>
    534                                 <td>
    535                                     <p>Update your company, team and profile content on prodii.com and your home page will be updated accordingly. When team members update their profile your page will be updated as well.)</p>
     535                                <th scope="row">Update your network career page</th>
     536                                <td>
     537                                    <p>Update your network, team and profile content on prodii.com and your home page will be updated accordingly. When team members update their profile your page will be updated as well.)</p>
    536538                                </td>
    537539                            </tr>
     
    540542                                <td valign="top">
    541543                                    <p>Please go ahead and copy/paste this sample short code into a full width page to see how it works:</p>
    542                                     <p><span class="pun">[</span><span class="pln">careerpages</span> <span class="kwd">key</span><span class="pun">=</span><span class="str">"WjEK4UWFcApDLsFR"</span><span class="kwd"> level</span><span class="pun">=</span><span class="str">"Company"</span><span class="pln"> ids</span><span class="pun">=</span><span class="str">"101,56,68"</span><span class="pln"> </span><span class="kwd">template</span><span class="pun">=</span><span class="str">"dublin"</span> <span class="kwd">locale</span><span class="pun">=</span><span class="str">"da_DK"</span><span class="pun">]</span></p>
     544                                    <p><span class="pun">[</span><span class="pln">careerpages</span> <span class="kwd">key</span><span class="pun">=</span><span class="str">"WjEK4UWFcApDLsFR"</span><span class="kwd"> level</span><span class="pun">=</span><span class="str">"Network"</span><span class="pln"> ids</span><span class="pun">=</span><span class="str">"101,56,68"</span><span class="pln"> </span><span class="kwd">template</span><span class="pun">=</span><span class="str">"dublin"</span> <span class="kwd">locale</span><span class="pun">=</span><span class="str">"da_DK"</span><span class="pun">]</span></p>
    543545                                </td>
    544546                            </tr>
     
    570572                        <h2>Prodii Settings</h2>
    571573                        <br>
    572                         <p>If you find the company-presentation plugin useful, please rate it <a target="_blank" href="http://wordpress.org/support/view/plugin-reviews/company-presentation#postform"> ★★★★★ </a>.</p>
     574                        <p>If you find the this presentation plugin useful, please rate it <a target="_blank" href="http://wordpress.org/support/view/plugin-reviews/company-presentation#postform"> ★★★★★ </a>.</p>
    573575                        <br>
    574576                    ';
     
    614616                        <h2>Prodii Plugin Shortcode</h2>
    615617                        <br>
    616                         <p>If you find the company-presentation plugin useful, please rate it <a target="_blank" href="http://wordpress.org/support/view/plugin-reviews/company-presentation#postform"> ★★★★★ </a>.</p>
     618                        <p>If you find the this presentation plugin useful, please rate it <a target="_blank" href="http://wordpress.org/support/view/plugin-reviews/company-presentation#postform"> ★★★★★ </a>.</p>
    617619                        <br>
    618620                        <form id="prodii_shortcode_form" method="post" action="'.admin_url('admin.php').'?page=prodii-shortcode">
  • company-presentation/trunk/js/careerpages.js

    r1678249 r1973119  
    3131            jQuery("#careerpagescontent").html(data);
    3232            group.find("#companyids").val(company);
     33            group.find("#teamid").val(0);
     34            group.find("#profileid").val(0);
     35            window.scrollTo(0, 0);
     36            group.find('#loading').hide();
     37        },
     38        error: function(data) {console.log(data);}
     39    });
     40}
     41
     42// getNetworkHtml
     43function getNetworkHtml(network) {
     44    var group = jQuery("#careerpagescontent").parent();
     45    group.find('#loading').show();
     46    jQuery.ajax({
     47        cache: false,
     48        url: group.find('#handler').val(),
     49        data: {action: 'getNetworkHtml', key: group.find("#key").val(), subdir: group.find("#subdir").val(), network: network, template: group.find("#template").val(), locale: group.find("#locale").val(), local: group.find("#local").val(), subdir: group.find("#subdir").val(), breadcrumbs: [network, 0, 0]},
     50        dataType: 'json',
     51        type: 'post',
     52        success: function(data) {
     53            jQuery("#careerpagescontent").html(data);
     54            group.find("#networkids").val(network);
    3355            group.find("#teamid").val(0);
    3456            group.find("#profileid").val(0);
  • company-presentation/trunk/php/careerpagespluginhandler.php

    r1302913 r1973119  
    2828if ($action == "getCompanyHtml") {
    2929    echo json_encode(careerpages($action, "company", $_POST['company'], $_POST['breadcrumbs']));
     30
     31} elseif ($action == "getNetworkHtml") {
     32    echo json_encode(careerpages($action, "network", $_POST['network'], $_POST['breadcrumbs']));
    3033
    3134} elseif ($action == "getTeamHtml") {
     
    7578                    $output = CareerpagesTemplate::getCompany(json_decode($response, true));
    7679                    break;
     80                case "Network":
     81                    $output = CareerpagesTemplate::getNetwork(json_decode($response, true));
     82                    break;
    7783                case "Team":
    7884                    $output = CareerpagesTemplate::getTeam(json_decode($response, true));
  • company-presentation/trunk/readme.txt

    r1708788 r1973119  
    33Tags: employee advocay, employee directory, employee list, employee profile, people, people profiles, team management, intranet, our teams, team management,  Team Member, team plugin, company map, company branches, prodii, career page, careerpage, About Us, about us plugin, branding, company profile, corporate profile, custom, customize, career, careerpages, presentation
    44Requires at least: 4.0
    5 Tested up to: 4.8.1
    6 Stable tag: 4.3.6
     5Tested up to: 4.9.8
     6Stable tag: 5.0.0
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
    99
    10 A professional profile section with an 'About Us' Page with visual Company, Team and People profiles.
     10A professional profile section with an 'About Us' Page with visual Network, Team and People profiles.
    1111
    1212
     
    1414== Description ==
    1515
    16 This plugin is for users of the Prodii webservice on [https://prodii.com](https://prodii.com).
    17 
    18 On [https://prodii.com](https://prodii.com) you collect and share professional information about yourself. You build professional profiles (web pages) by collecting data about your work life.
    19 
    20 You can create 3 types of profiles/ web pages: A personal profile about you. A team page which is a collection of personal profiles. A company page which is a collection of teams.
    21 
    22 With the Prodii WP-plugin, you can create a profile section on your wordpress homepage showcasing your professional accomplishments. The Prodii plugin integrates information from your prodii account into your wordpress homepage.
    23 
    24 To make it work you have to generate a short code for each page. You can generate a short code for:
    25 
     16**Use the Prodii Publisher Plugin to..**
     17- Create an **employee directory**
     18- **Promote people** on your homepage
     19- Map **ressources** and share **skills** transparency
     20
     21**Prodii** is designed for **freelancer networks**, **communities** and **distributed organisations**.
     22- For project team leaders and  project managers who want to introduce team members in the fastest way possible.
     23- For organisers of networks and communities who want to map and visualise 'places we work' and 'skills we have'.
     24- For HR who want to build an organisational map, organise ressources and relations and build a skills database.
     25
     26The Prodii WP Publisher Plugin connects your homepage to your account on [https://prodii.com](https://prodii.com).
     27
     28**Save time** when introducing people profiles on your home page:
     29Prodii WP plugin saves professionals lots of time and trouble when introducing people and their skills; within the team, within the organisation and towards clients. The Prodii Publisher Plugin enables you to publish professionel presentations of your organisation, with teams, team pages and complete team member profiles. Using just one short code you can publish as many teams and profiles as you need.
     30
     31**Don't worry** about updates; The Prodii WP Plugin synchronises content from your prodii account and networks into your wordpress homepage. Your team members are doing the work for you by keeping their profile updated.
     32
     33
     34**Get started: Discover**
     35Everybody has work relations with a potential. In todays work life this potential can become one of your most important assets.
     36* Discover the potential of your work relations
     37* Organise all your project groups in one place
     38* Host your trusted community for people working together
     39
     40On [https://prodii.com](https://prodii.com) you collect and share professional information within your network and teams.   
     41
     42
     43**A quick introduction to team members**
     44Going to an event? Joining a workshop? Working on a project in virtual teams? Create your event/ workshop-team and invite the other participants. Ask them about specific skills and let them complete their profile adding skills they want to share.
     45
     46**A Network with your own searchable skills**
     47All you need to do is to structure your network in teams and invite people from your work life. When coming together – your personal network of skills and ressources are build bottom up. And the best part? You can pass on the depeche to your networks members and they can start building their network of work relations.
     48
     49**Promote;**
     50The Prodii plugin integrates information from your prodii account into your wordpress homepage.
     51
     52**Publish on your WP homepage**
     53You can generate a short code for:
    2654* each profile.
    2755* a team; a 2-level page structure that includes all belonging profiles.
    28 * a company page; an entire organisational 3-level structure that includes all selected teams and belonging profiles.
    29 
    30 Put each short code on a page with full width page settings.
    31 
    32 The short codes includes the id-numbers of your profile, team and/ or company and the name of the template that defines the layout and design.  Prodii offers a few free templates. You can design your own templates from these layouts by changing the CSS file.
    33 
     56* a network page; an entire organisational 3-level structure that includes all selected teams and belonging profiles.
     57Put each short code on a page with full width page settings.
     58The short codes includes the id-numbers of your profile, team and/ or network and the name of the template that defines the layout and design.
     59
     60Prodii offers a few free templates in opensource. You can design your own templates from these layouts by changing the CSS file.
     61   
    3462= This is how it works =
    35631. Go to [https://prodii.com](https://prodii.com) and sign up for an account
     
    3765    2. Fill out information about your company (organisation, network of teams)
    3866    3. Create your teams and invite people
    39     4. Copy your WP-publisher Key
     67    4. Copy your WP-publisher Key*
    4068
    41692. Go to your wordpress homepage
     
    5583> Before downloading and installing this plugin please get familiar with our terms and conditions.
    5684
    57 For more information: https://blog.prodii.com
     85*) WP Publisher Key is a paid service with a 30 Day Free Trial period (no credit card required).
    5886
    5987
     
    6189== Templates ==
    6290
    63 With our templates you can show the company, team and profile pages as you like.
     91With a template you can show the network, team and profile pages as you like.
    6492Select the template you like best from our [template sample page](https://blog.prodii.com/en/the-prodii-solution/templates/), we offer some "ready to use" templates.
    6593
    66 Please contact us, to know how to create your own customised template.
     94Templates are open source. Download any of the templates and customise it as you please.
    6795
    6896
     
    7098== Installation ==
    7199
    72 = Plugin =
    731001. Download, install and activate the plug-in.
    741012. From the menu in Your Wordpress Dashboard open the Prodii plugin.
     
    861131. Select template (the visual presentation).
    871142. Select locale (translates the labels and headings in the template).
    88 3. Select level Company, Teams or Profile"
    89 
    90 > **Company** shortcode for 3-level structure with the company and the teams you want to include
    91 > ```
    92 > [careerpages key="Your Personal Key" level="Company" ids="company id,team ids" template="name of template" locale="selected language"]
    93 > ```
    94 >
    95 > **Team** shortcode for a 2-level structure with the team and members you want to include
     1153. Select level Network, Teams or Profile.
     116
     117> **Network** shortcode for **3-level structure** with the network and all teams you want to include
     118> ```
     119> [careerpages key="Your Personal Key" level="Network" ids="network id,team ids" template="name of template" locale="selected language"]
     120> ```
     121>
     122> **Team** shortcode for a **2-level structure** with the team and members you want to include
    96123> ```
    97124> [careerpages key="Your Personal Key" level="Team" ids="team id" template="name of template" locale="selected language"]
    98125> ```
    99126>
    100 >**Member** shortcode for the member you want to view
     127>**Member profile** shortcode for the member you want to publish
    101128> ```
    102129> [careerpages key="Your Personal Key" level="Profile" ids="profile id" template="name of template" locale="selected language"]
    103130> ```
    104131
    105 Note:
    106 > Copy/paste the shortcode into a page in textmode (not wysiwyg) - start and end bracket included.
    107 > You can create and publish as many shortcode combinations as you like
    108 >
    109 > All active teams will be included when posting the company page.
     132= Important Note: =
     133> Copy/paste the shortcode into a page in **textmode** (not wysiwyg) - include start and end bracket.
     134> You can create and publish as many shortcode combinations as you need
     135>
     136> All active teams will be included when posting the network page.
    110137> All active profiles will be included when posting the team page.
    111138>
    112 > Setting for the page must be “full page”
     139> Setting for the page must be **“full page”**.
     140>
     141> Manage your networks, team- and member status on [https://prodii.com](https://prodii.com).
    113142
    114143
     
    1571863. Generate the shortcodes for your pages
    1581874. First select template and language
    159 5. Shortcode for a complete company page that will include active teams and profiles
     1885. Shortcode for a complete network page that will include active teams and profiles
    1601896. Shortcode for a team page that will include active team members profiles
    1611907. Shortcode for a profile page
     
    165194== Changelog ==
    166195
     196= 5.0.0 =
     197* Problem resolved - Depricated constructor format problem.
     198* Modification - 'company' renamed to the more logical name 'network' in order to reflect the purpose of this tool. Company in the shortcode is now depricated, but can still be used.
     199
    167200= 4.3.6 =
    168201* Modification - Enhanced error handling added. The templates will be shown if it is possible, even if the shotcode has errors. If it is not possible, a proper error message will be show. In any error situation, an visible icon is shown on the template top to imply that you have an error.
    169202
    170203= 4.3.5 =
    171 * Problem resolved - Had some problems showing the templates in special situations.*
     204* Problem resolved - Had some problems showing the templates in special situations.
    172205
    173206= 4.3.4 =
    174 * Problem resolved - Prettyfy problem in the WordPress admin code generator.*
    175 * Modification - Added the ability to rate the plugin link from admin.*
     207* Problem resolved - Prettyfy problem in the WordPress admin code generator.
     208* Modification - Added the ability to rate the plugin link from admin.
    176209
    177210= 4.3.3 =
Note: See TracChangeset for help on using the changeset viewer.