2005-09-26 02:52:30 -04:00
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
2005-08-22 21:33:52 -04:00
|
|
|
<head>
|
2005-09-26 02:52:30 -04:00
|
|
|
<title>{$lang_insert_link_title}</title>
|
|
|
|
<script language="javascript" type="text/javascript" src="../../tiny_mce_popup.js"></script>
|
2006-03-30 02:50:33 -05:00
|
|
|
<script language="javascript" type="text/javascript" src="../../utils/mctabs.js"></script>
|
2005-09-26 02:52:30 -04:00
|
|
|
<script language="javascript" type="text/javascript" src="../../utils/form_utils.js"></script>
|
2007-05-28 15:30:05 -04:00
|
|
|
<script language="javascript" type="text/javascript" src="../../utils/validate.js"></script>
|
2005-09-26 02:52:30 -04:00
|
|
|
<script language="javascript" type="text/javascript" src="jscripts/link.js"></script>
|
2006-03-30 02:50:33 -05:00
|
|
|
<base target="_self" />
|
2005-08-22 21:33:52 -04:00
|
|
|
</head>
|
2007-05-28 15:30:05 -04:00
|
|
|
<!-- WordPress: onload after the init();'); -->
|
2006-03-30 02:50:33 -05:00
|
|
|
<body id="link" onload="tinyMCEPopup.executeOnLoad('init();');document.body.style.display='';document.getElementById('href').focus();" style="display: none">
|
|
|
|
<form onsubmit="insertLink();return false;" action="#">
|
|
|
|
<div class="tabs">
|
|
|
|
<ul>
|
|
|
|
<li id="general_tab" class="current"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{$lang_insert_link_title}</a></span></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="panel_wrapper">
|
|
|
|
<div id="general_panel" class="panel current">
|
|
|
|
|
|
|
|
<table border="0" cellpadding="4" cellspacing="0">
|
2005-08-22 21:33:52 -04:00
|
|
|
<tr>
|
2006-03-30 02:50:33 -05:00
|
|
|
<td nowrap="nowrap"><label for="href">{$lang_insert_link_url}</label></td>
|
|
|
|
<td><table border="0" cellspacing="0" cellpadding="0">
|
|
|
|
<tr>
|
2007-05-28 15:30:05 -04:00
|
|
|
<td><input id="href" name="href" type="text" value="" style="width: 200px" onchange="checkPrefix(this);" /></td>
|
2006-03-30 02:50:33 -05:00
|
|
|
<td id="hrefbrowsercontainer"> </td>
|
|
|
|
</tr>
|
|
|
|
</table></td>
|
2005-08-22 21:33:52 -04:00
|
|
|
</tr>
|
|
|
|
<!-- Link list -->
|
|
|
|
<script language="javascript">
|
|
|
|
if (typeof(tinyMCELinkList) != "undefined" && tinyMCELinkList.length > 0) {
|
|
|
|
var html = "";
|
|
|
|
|
2006-03-30 02:50:33 -05:00
|
|
|
html += '<tr><td><label for="link_list">{$lang_link_list}</label></td>';
|
|
|
|
html += '<td><select id="link_list" name="link_list" style="width: 200px" onchange="this.form.href.value=this.options[this.selectedIndex].value;">';
|
2005-08-22 21:33:52 -04:00
|
|
|
html += '<option value="">---</option>';
|
|
|
|
|
|
|
|
for (var i=0; i<tinyMCELinkList.length; i++)
|
|
|
|
html += '<option value="' + tinyMCELinkList[i][1] + '">' + tinyMCELinkList[i][0] + '</option>';
|
|
|
|
|
|
|
|
html += '</select></td></tr>';
|
|
|
|
|
|
|
|
document.write(html);
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
<!-- /Link list -->
|
2005-09-26 02:52:30 -04:00
|
|
|
<tr>
|
2006-03-30 02:50:33 -05:00
|
|
|
<td nowrap="nowrap"><label for="target">{$lang_insert_link_target}</label></td>
|
|
|
|
<td><select id="target" name="target" style="width: 200px">
|
2005-09-26 02:52:30 -04:00
|
|
|
<option value="_self">{$lang_insert_link_target_same}</option>
|
2005-08-22 21:33:52 -04:00
|
|
|
<option value="_blank">{$lang_insert_link_target_blank}</option>
|
|
|
|
<script language="javascript">
|
2005-09-26 02:52:30 -04:00
|
|
|
var html = "";
|
2005-08-22 21:33:52 -04:00
|
|
|
var targets = tinyMCE.getParam('theme_advanced_link_targets', '').split(';');
|
|
|
|
|
|
|
|
for (var i=0; i<targets.length; i++) {
|
|
|
|
var key, value;
|
|
|
|
|
|
|
|
if (targets[i] == "")
|
|
|
|
continue;
|
|
|
|
|
|
|
|
key = targets[i].split('=')[0];
|
|
|
|
value = targets[i].split('=')[1];
|
|
|
|
|
|
|
|
html += '<option value="' + value + '">' + key + '</option>';
|
|
|
|
}
|
|
|
|
|
|
|
|
document.write(html);
|
|
|
|
</script>
|
|
|
|
</select></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2006-03-30 02:50:33 -05:00
|
|
|
<td nowrap="nowrap"><label for="linktitle">{$lang_theme_insert_link_titlefield}</label></td>
|
|
|
|
<td><input id="linktitle" name="linktitle" type="text" value="" style="width: 200px"></td>
|
2005-08-22 21:33:52 -04:00
|
|
|
</tr>
|
2005-09-26 02:52:30 -04:00
|
|
|
<tr id="styleSelectRow">
|
2006-03-30 02:50:33 -05:00
|
|
|
<td><label for="styleSelect">{$lang_class_name}</label></td>
|
2005-08-22 21:33:52 -04:00
|
|
|
<td>
|
2005-09-26 02:52:30 -04:00
|
|
|
<select id="styleSelect" name="styleSelect">
|
2005-08-22 21:33:52 -04:00
|
|
|
<option value="" selected>{$lang_theme_style_select}</option>
|
|
|
|
</select></td>
|
|
|
|
</tr>
|
2006-03-30 02:50:33 -05:00
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="mceActionPanel">
|
2007-05-28 15:30:05 -04:00
|
|
|
<!-- WordPress: Buttons are reversed! -->
|
2006-03-30 02:50:33 -05:00
|
|
|
<div style="float: left">
|
|
|
|
<input type="button" id="cancel" name="cancel" value="{$lang_cancel}" onclick="tinyMCEPopup.close();" />
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div style="float: right">
|
|
|
|
<input type="submit" id="insert" name="insert" value="{$lang_insert}" onclick="insertLink();" />
|
|
|
|
</div>
|
|
|
|
</div>
|
2005-08-22 21:33:52 -04:00
|
|
|
</form>
|
|
|
|
</body>
|
|
|
|
</html>
|