This repository has been archived by the owner on May 28, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
linkedin.xml
51 lines (48 loc) · 2.57 KB
/
linkedin.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<extension>
<title>LinkedIn Extension</title>
<label>LinkedIn</label>
<copyright>Copyright (c) 2006-2009 MindTouch Inc.</copyright>
<description>This extension contains functions for embedding LinkedIn widgets.</description>
<uri.help>http://developer.mindtouch.com/App_Catalog/LinkedIn</uri.help>
<uri.logo>http://scripts.mindtouch.com/logos/linkedin-logo.png</uri.logo>
<namespace>linkedin</namespace>
<requires host="MindTouch Core 8.05.1" />
<function>
<name>CompanyInsider</name>
<description>Embed widget to show connections at a company.</description>
<param name="company" type="str">Name of the company.</param>
<param name="style" type="str" optional="true">Style for embedding widget. (one of "popup", "border", or "noborder"; default: "popup")</param>
<return>
<html xmlns:eval="http://mindtouch.com/2007/dekiscript">
<head>
<script eval:src="'http://www.linkedin.com/companyInsider?script&useBorder=' .. (($style !== 'noborder') ? 'yes' : 'no')" type="text/javascript" />
</head>
<body>
<span eval:id="@id" />
<eval:if test="($style ?? 'popup') === 'popup'">
<script type="text/javascript">new LinkedIn.CompanyInsiderPopup(<eval:js value="@id" />, <eval:js value="$company" />);</script>
</eval:if>
<eval:else>
<script type="text/javascript">new LinkedIn.CompanyInsiderBox(<eval:js value="@id" />, <eval:js value="$company" />);</script>
</eval:else>
</body>
</html>
</return>
</function>
<function>
<name>Share</name>
<description>Embed link to share a page with others on LinkedIn.</description>
<param name="uri" type="uri">URI of page to share.</param>
<param name="title" type="str" optional="true">Title of page. (default: none)</param>
<param name="origin" type="str" optional="true">Name of origin site where the page comes from. (default: none)</param>
<param name="summary" type="str" optional="true">Summary of page contents. (default: none)</param>
<param name="label" type="str" optional="true">Label for link to share on LinkedIn. (default: 'Share on LinkedIn')</param>
<return>
<html xmlns:eval="http://mindtouch.com/2007/dekiscript">
<body>
<eval:expr>web.link(uri.appendquery('http://www.linkedin.com/shareArticle', { mini: 'true', url: $uri, title: $title, source: $origin, summary: $summary }), $label ?? 'Share on LinkedIn')</eval:expr>
</body>
</html>
</return>
</function>
</extension>