source: trunk/www.guidonia.net/wp/wp-content/plugins/lexi/tinymce/mce_lexi.php@ 44

Last change on this file since 44 was 44, checked in by luciano, 15 years ago
File size: 4.6 KB
Line 
1<?php
2$wpconfig = realpath("../../../../wp-config.php");
3
4if (!file_exists($wpconfig)) {
5 echo "Could not found wp-config.php. Error in path :\n\n".$wpconfig ;
6 die;
7}// stop when wp-config is not there
8
9require_once($wpconfig);
10require_once(ABSPATH.'/wp-admin/admin.php');
11
12// check for rights
13if(!current_user_can('edit_posts')) die;
14
15?>
16
17<html xmlns="http://www.w3.org/1999/xhtml">
18<head>
19 <title>Lexi</title>
20 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
21 <script language="javascript" type="text/javascript" src="<?php echo get_option('siteurl') ?>/wp-includes/js/tinymce/tiny_mce_popup.js"></script>
22 <script language="javascript" type="text/javascript" src="<?php echo get_option('siteurl') ?>/wp-includes/js/tinymce/utils/mctabs.js"></script>
23 <script language="javascript" type="text/javascript" src="<?php echo get_option('siteurl') ?>/wp-includes/js/tinymce/utils/form_utils.js"></script>
24 <script language="javascript" type="text/javascript" src="<?php echo get_option('siteurl') ?>/wp-content/plugins/lexi/tinymce/lexi.js"></script>
25 <base target="_self" />
26</head>
27<body id="link" onload="tinyMCEPopup.executeOnLoad('init();');document.body.style.display='';document.getElementById('rss_tab').focus();" style="display: none">
28<!-- <form onsubmit="insertLink();return false;" action="#"> -->
29 <form name="Lexi" action="#">
30 <div class="tabs">
31 <ul>
32 <li id="rss_tab" class="current"><span><a href="javascript:mcTabs.displayTab('rss_tab','rss_panel');" onmousedown="return false;"><?php _e("Lexi Feed", 'lexi'); ?></a></span></li>
33 </ul>
34 </div>
35
36 <div class="panel_wrapper" style="height: 230px;">
37
38 <!-- rss panel -->
39 <div id="rss_panel" class="panel current">
40 <br />
41 <table border="0" cellpadding="4" cellspacing="0">
42
43
44 <!--<tr>
45 <td nowrap="nowrap"><label for="feedid"><?php _e("Feed:", 'lexi'); ?>:</label></td>
46 <td><select id="feedtag" name="feedtag" style="width: 200px">
47 <option value="0"><?php _e("All feeds", 'lexi'); ?></option>
48 </td>
49 </tr>-->
50
51
52 <tr>
53 <td nowrap="nowrap"><label for="rsslink"><?php _e("RSS", 'lexi' ); ?>:</label></td>
54 <td colspan=2><input type="text" id="rsslink" name="rsslink" style="width: 200px"/></td>
55 </tr>
56 <tr>
57 <td nowrap="nowrap" valign="top"><label><?php _e("Title", 'lexi' ); ?>:</label></td>
58 <td colspan=2><input type="radio" id="rsstitle" name="group1" value="1" checked/> <?php _e("Use the title from the feed", 'lexi'); ?>
59 <br><input type="radio" id="rsstitle" name="group1" value="2" onclick="document.getElementById('rssowntitle').value='';" /> <input type="text" id="rssowntitle" name="rssowntitle" style="width: 170px" value="<?php _e("Use a specific title", 'lexi'); ?>" /></td>
60 </tr>
61 <tr>
62 <td nowrap="nowrap" valign="top"><label for="rssitems"><?php _e("Items", 'lexi' ); ?>:</label></td>
63 <td colspan=2>
64 <select name="rssitems" id="rssitems" style="width: 200px"><?php
65 for($i=1; $i<11; $i++) {
66 echo "<option value=\"$i\"";
67 if ($items == $i) echo(' selected');
68 echo ">$i</option>";
69 } ?>
70 </select>
71 </td>
72 </tr>
73 <tr>
74 <td nowrap="nowrap" valign="top"><label for="rsscache"><?php _e("Save cache", 'lexi' ); ?>: </label></td>
75 <td valign="top"><input type="checkbox" id="rsscache" name="rsscache" checked /></td>
76 <td><?php _e('Uncheck this option only in case the feed updates several times in an hour.','lexi'); ?></td>
77 </tr>
78 <tr>
79 <td nowrap="nowrap"><label for="rsssc"><?php _e("Show contents", 'lexi' ); ?>:</label></td>
80 <td colspan=2><input type="checkbox" id="rsssc" name="rsssc" /></td>
81 </tr>
82 <tr>
83 <td nowrap="nowrap"><label for="rssst"><?php _e("Show feed title", 'lexi' ); ?>:</label></td>
84 <td colspan=2><input type="checkbox" id="rssst" name="rssst" checked /></td>
85 </tr>
86 <tr>
87 <td nowrap="nowrap"><label for="rsstb"><?php _e("Open links in new page", 'lexi' ); ?>:</label></td>
88 <td colspan=2><input type="checkbox" id="rsstb" name="rsstb" checked /></td>
89 </tr>
90 </table>
91 </div>
92
93 </div>
94
95 <div class="mceActionPanel">
96 <div style="float: left">
97 <input type="button" id="cancel" name="cancel" value="<?php _e("Cancel", 'lexi'); ?>" onclick="tinyMCEPopup.close();" />
98 </div>
99
100 <div style="float: right">
101 <input type="submit" id="insert" name="insert" value="<?php _e("Insert", 'lexi'); ?>" onclick="insertLexiLink();" />
102 </div>
103 </div>
104</form>
105</body>
106</html>
Note: See TracBrowser for help on using the repository browser.