Skip to content

Commit

Permalink
embed 'clippy' to copy address to clipboard
Browse files Browse the repository at this point in the history
It is often convinient to copy a complete address to the system
clipboard; to achieve this, this patch includes the flash widget
"clippy" to the contact view. Clicking on one of the widgets copies
either the office or home address to the clipboard, making it simple to
include it in other applications.

Clippy itself is hosted here: https://github.com/mojombo/clippy
  • Loading branch information
wertarbyte committed Nov 30, 2010
1 parent ee12dc9 commit 1909530
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
3 changes: 2 additions & 1 deletion inc/config.php
Expand Up @@ -68,4 +68,5 @@
// Force recompilation of smarty templates?
$conf['smartycompile'] = 0;


// load clipboard flash widget from this URL:
$conf['clippyurl'] = 'http://github.com/mojombo/clippy/raw/master/build/clippy.swf';
40 changes: 40 additions & 0 deletions templates/entry_show.tpl
Expand Up @@ -18,6 +18,26 @@
<tr>
<td valign="top" width="50%">
<h3>{$lang.business}</h3>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
width="110"
height="14"
id="clippy" >
<embed src="{$conf.clippyurl}"
width="110"
height="14"
name="clippy"
quality="high"
allowScriptAccess="always"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer"
flashvars="text={$entry.title} {$entry.givenname} {$entry.name}
{$entry.organization}
{$entry.street}
{$entry.zip} {$entry.location}
{$entry.state}
"
/>
</object>
<table width="100%">
<tr>
<td colspan="2">
Expand Down Expand Up @@ -94,6 +114,26 @@

<td valign="top" width="50%">
<h3>{$lang.private}</h3>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
width="110"
height="14"
id="clippy_home" >
<embed src="{$conf.clippyurl}"
width="110"
height="14"
name="clippy_home"
quality="high"
allowScriptAccess="always"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer"
flashvars="text={$entry.title} {$entry.givenname} {$entry.name}
{$entry.homestreet}
{$entry.homezip} {$entry.homelocation}
{$entry.homestate}
"
/>
</object>

<table width="100%">
<tr>
<td colspan="2">
Expand Down

0 comments on commit 1909530

Please sign in to comment.