Example #1
0
function pdf24Plugin_widgetControl()
{
    if ($_POST['pdf24PluginSubmit']) {
        update_option('pdf24Plugin_sbpStyle', $_POST['pdf24Plugin-sbpStyle']);
        update_option('pdf24Plugin_widgetTitle', $_POST['pdf24Plugin-widget-title']);
    }
    $styleParms = pdf24Plugin_getStyleParams('pdf24Plugin_sbpStyle', 'styles/sbp');
    ?>
	<p style="text-align:left; line-height: 100%;">
	<label for="pdf24Plugin-widget-title" style="line-height:25px;display:block;">
		<?php 
    _e('Title:');
    ?>
<br />
		<input style="width:100%" type="text" id="pdf24Plugin-widget-title" name="pdf24Plugin-widget-title" value="<?php 
    echo wp_specialchars(pdf24Plugin_getWidgetTitle(), true);
    ?>
" />
	</label>
	<label for="pdf24Plugin-sbpStyle" style="line-height:25px;display:block;">
		<?php 
    _e('Style:');
    ?>
<br />
		<select id="pdf24Plugin-sbpStyle" name="pdf24Plugin-sbpStyle">
		<?php 
    echo $styleParms['options'];
    ?>
		</select>
	</label>
	<input type="hidden" name="pdf24PluginSubmit" id="pdf24PluginSubmit" value="1" />
	</p>
	
<?php 
}
Example #2
0
?>
">
			<td class="tr1">
				Custom style:<br />
				<a href="javascript:void(document.forms.pdf24Form.tbpCustomStyle.value = pdf24Plugin_tbpStyle_default[document.forms.pdf24Form.tbpStyle.selectedIndex]);">Load styles default</a>
			</td>
			<td><textarea name="tbpCustomStyle" class="cusSty"><?php 
echo $styleParms['custom'];
?>
</textarea></td>
		</tr>
		</table>
	</div>
	<div>
		<?php 
$styleParms = pdf24Plugin_getStyleParams('pdf24Plugin_lpStyle', 'styles/lp');
?>
		<script language="javascript"><?php 
echo $styleParms['js'];
?>
</script>
		<h3>Link Plugin</h3>
		<div class="descr">This plugin displays a link everywhere in your blog where you place some peace of code in a template of your theme.<br />
		Copy and paste the code <b><nobr>&lt;?php pdf24Plugin_link(); ?&gt;</nobr></b> or <b><nobr>&lt;?php pdf24Plugin_link('MY_LINK_TEXT'); ?&gt;</nobr></b>
		into a template of your theme where a download as PDF link shall be shown. If the link is places outside the loop, the code produce a link which converts all
		articles on the current page to PDF. If the link is places inside the loop, the code produce a link which converts only the current article to PDF.</div>
		<table>
		<tr>
			<td class="tr1">Use this plugin</td>
			<td><input type="checkbox" name="lpInUse" <?php 
echo pdf24Plugin_isLpInUse() ? 'checked' : '';