Changeset 1973119
- Timestamp:
- 11/12/2018 04:53:40 PM (7 years ago)
- Location:
- company-presentation
- Files:
-
- 19 added
- 4 edited
-
tags/5.0.0 (added)
-
tags/5.0.0/careerpagesplugin.php (added)
-
tags/5.0.0/css (added)
-
tags/5.0.0/css/prettify.css (added)
-
tags/5.0.0/img (added)
-
tags/5.0.0/img/menu-logo.png (added)
-
tags/5.0.0/js (added)
-
tags/5.0.0/js/careerpages.js (added)
-
tags/5.0.0/js/careerpagesadmin.js (added)
-
tags/5.0.0/js/ie10-viewport-bug-workaround.js (added)
-
tags/5.0.0/js/infobox.js (added)
-
tags/5.0.0/js/library.js (added)
-
tags/5.0.0/js/prettify.js (added)
-
tags/5.0.0/php (added)
-
tags/5.0.0/php/careerpageslibrary.php (added)
-
tags/5.0.0/php/careerpagespluginhandler.php (added)
-
tags/5.0.0/php/careerpagespluginlibrary.php (added)
-
tags/5.0.0/readme.txt (added)
-
tags/5.0.0/templates (added)
-
trunk/careerpagesplugin.php (modified) (20 diffs)
-
trunk/js/careerpages.js (modified) (1 diff)
-
trunk/php/careerpagespluginhandler.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
company-presentation/trunk/careerpagesplugin.php
r1701673 r1973119 9 9 Description: 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. 10 10 11 Version: 4.3.611 Version: 5.0.0 12 12 Author: Prodii by Ralph Rezende Larsen 13 13 Author URI: https://prodii.com/view/ralphrezendelarsen … … 20 20 public static $templateini; 21 21 22 function CareerpagesMain() {22 function __construct() { 23 23 } 24 24 … … 52 52 self::$templateini["templatepath"] = ''; 53 53 } 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.'; 55 55 } 56 56 } … … 106 106 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 107 107 $response = json_decode(curl_exec($ch), true); 108 108 109 if($errno = curl_errno($ch)) { 109 110 self::$templateini["errors"][] = 'Get '.(self::$templateini["local"] ? 'data' : 'html').' cURL error ({$errno}):\n {$error_message}'; … … 147 148 self::$templateini["gui"] = CareerpagesTemplate::getCompany($response); 148 149 break; 150 case "Network": 151 self::$templateini["gui"] = CareerpagesTemplate::getCompany($response); 152 break; 149 153 case "Team": 150 154 self::$templateini["gui"] = CareerpagesTemplate::getTeam($response); … … 247 251 self::$templateini["css"] = ''; 248 252 } 249 253 250 254 // Level 251 255 if (stripos($content, ' level="') !== false) { … … 265 269 266 270 CareerpagesMain::getTemplatedata(); 267 268 271 if (empty(self::$templateini["errors"])) { 269 272 foreach (self::$templateini["ini"]["styles"] as $name => $url) { … … 351 354 case 'There is no handler for getTeamsHtml': 352 355 $gui = ' 353 <strong>Problem:</strong> You have updated the <b>People profiles, team- and companypages</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 companypages</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. 355 358 <br><br> 356 <b>NB:</b> Don\'t forget to add companyid 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. 357 360 <br><br> 358 361 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. … … 361 364 break; 362 365 default: 363 $gui = ' 364 self::$templateini["gui"]["error"] 365 '; 366 echo '¤¤¤ Came here #4 ¤¤¤'; 367 $gui = self::$templateini["gui"]["error"]; 366 368 $content = CareerpagesMain::getErrorGui('Following error was detected', $gui); 367 369 break; … … 383 385 <input id="locale" type="hidden" value="'.(isset($atts["locale"]) && $atts["locale"] ? $atts["locale"] : 'en_GB').'"/> 384 386 <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").'"/> 386 388 <input id="teamid" type="hidden" value="'.($atts["level"] == "Team" ? $atts["ids"] : "0").'"/> 387 389 <input id="profileid" type="hidden" value="'.($atts["level"] == "Profile" ? $atts["ids"] : "0").'"/> … … 416 418 class ProdiiAdmin { 417 419 418 function ProdiiAdmin() { //constructor420 function __construct() { //constructor 419 421 //require_once(self::$templateini["pluginpath"].'/php/careerpagespluginlibrary.php'); 420 422 //require_once(plugins_url('php/careerpagespluginlibrary.php' , __FILE__ )); … … 469 471 <h2>Prodii Description</h2> 470 472 <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> 472 474 <br> 473 475 <table class="form-table"> … … 475 477 <th scope="row">About Us Section</th> 476 478 <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> 478 480 <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> 479 481 <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> … … 491 493 <ol> 492 494 <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> 494 496 <li>Go to your personal Account > Account Settings and Copy your Publisher Key (a combination og letters and numbers) 495 497 </ol> … … 499 501 <th scope="row">Gather data</th> 500 502 <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 companyand 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> 502 504 </td> 503 505 </tr> … … 524 526 <ol> 525 527 <li>Select template</li> 526 <li>Select company/ team(s)</li>528 <li>Select network/ team(s)</li> 527 529 <li>Generate your short code and paste into a page</li> 528 530 <li>Ensure that the page setting is a full width page</li> … … 531 533 </tr> 532 534 <tr valign="top"> 533 <th scope="row">Update your companycareer 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> 536 538 </td> 537 539 </tr> … … 540 542 <td valign="top"> 541 543 <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> 543 545 </td> 544 546 </tr> … … 570 572 <h2>Prodii Settings</h2> 571 573 <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> 573 575 <br> 574 576 '; … … 614 616 <h2>Prodii Plugin Shortcode</h2> 615 617 <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> 617 619 <br> 618 620 <form id="prodii_shortcode_form" method="post" action="'.admin_url('admin.php').'?page=prodii-shortcode"> -
company-presentation/trunk/js/careerpages.js
r1678249 r1973119 31 31 jQuery("#careerpagescontent").html(data); 32 32 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 43 function 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); 33 55 group.find("#teamid").val(0); 34 56 group.find("#profileid").val(0); -
company-presentation/trunk/php/careerpagespluginhandler.php
r1302913 r1973119 28 28 if ($action == "getCompanyHtml") { 29 29 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'])); 30 33 31 34 } elseif ($action == "getTeamHtml") { … … 75 78 $output = CareerpagesTemplate::getCompany(json_decode($response, true)); 76 79 break; 80 case "Network": 81 $output = CareerpagesTemplate::getNetwork(json_decode($response, true)); 82 break; 77 83 case "Team": 78 84 $output = CareerpagesTemplate::getTeam(json_decode($response, true)); -
company-presentation/trunk/readme.txt
r1708788 r1973119 3 3 Tags: 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 4 4 Requires at least: 4.0 5 Tested up to: 4. 8.16 Stable tag: 4.3.65 Tested up to: 4.9.8 6 Stable tag: 5.0.0 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html 9 9 10 A professional profile section with an 'About Us' Page with visual Company, Team and People profiles.10 A professional profile section with an 'About Us' Page with visual Network, Team and People profiles. 11 11 12 12 … … 14 14 == Description == 15 15 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 26 The 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: 29 Prodii 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** 35 Everybody 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 40 On [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** 44 Going 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** 47 All 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;** 50 The Prodii plugin integrates information from your prodii account into your wordpress homepage. 51 52 **Publish on your WP homepage** 53 You can generate a short code for: 26 54 * each profile. 27 55 * a team; a 2-level page structure that includes all belonging profiles. 28 * a companypage; 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. 57 Put each short code on a page with full width page settings. 58 The 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 60 Prodii offers a few free templates in opensource. You can design your own templates from these layouts by changing the CSS file. 61 34 62 = This is how it works = 35 63 1. Go to [https://prodii.com](https://prodii.com) and sign up for an account … … 37 65 2. Fill out information about your company (organisation, network of teams) 38 66 3. Create your teams and invite people 39 4. Copy your WP-publisher Key 67 4. Copy your WP-publisher Key* 40 68 41 69 2. Go to your wordpress homepage … … 55 83 > Before downloading and installing this plugin please get familiar with our terms and conditions. 56 84 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). 58 86 59 87 … … 61 89 == Templates == 62 90 63 With our templates you can show the company, team and profile pages as you like.91 With a template you can show the network, team and profile pages as you like. 64 92 Select 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. 65 93 66 Please contact us, to know how to create your own customised template. 94 Templates are open source. Download any of the templates and customise it as you please. 67 95 68 96 … … 70 98 == Installation == 71 99 72 = Plugin =73 100 1. Download, install and activate the plug-in. 74 101 2. From the menu in Your Wordpress Dashboard open the Prodii plugin. … … 86 113 1. Select template (the visual presentation). 87 114 2. 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 theteams you want to include91 > ``` 92 > [careerpages key="Your Personal Key" level=" Company" ids="companyid,team ids" template="name of template" locale="selected language"]93 > ``` 94 > 95 > **Team** shortcode for a 2-level structurewith the team and members you want to include115 3. 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 96 123 > ``` 97 124 > [careerpages key="Your Personal Key" level="Team" ids="team id" template="name of template" locale="selected language"] 98 125 > ``` 99 126 > 100 >**Member ** shortcode for the member you want to view127 >**Member profile** shortcode for the member you want to publish 101 128 > ``` 102 129 > [careerpages key="Your Personal Key" level="Profile" ids="profile id" template="name of template" locale="selected language"] 103 130 > ``` 104 131 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 companypage.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. 110 137 > All active profiles will be included when posting the team page. 111 138 > 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). 113 142 114 143 … … 157 186 3. Generate the shortcodes for your pages 158 187 4. First select template and language 159 5. Shortcode for a complete companypage that will include active teams and profiles188 5. Shortcode for a complete network page that will include active teams and profiles 160 189 6. Shortcode for a team page that will include active team members profiles 161 190 7. Shortcode for a profile page … … 165 194 == Changelog == 166 195 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 167 200 = 4.3.6 = 168 201 * 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. 169 202 170 203 = 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. 172 205 173 206 = 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. 176 209 177 210 = 4.3.3 =
Note: See TracChangeset
for help on using the changeset viewer.