1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <?php
- if (!class_exists("plug_footer")) {
- class plug_footer {
- function plug_footer($ns) {
- $this->title = __("Footer","dagsopt");
- $this->pluginname = $ns->pluginname;
- $this->file = $ns->file;
- $this->ns = $ns;
- }
- function start() {
- add_action('wp_footer',array(&$this,'footer'),100);
-
- }
- function footer() {
- echo '<div id="dags-footer" class="container"><div class="row"><div class="pull-right">'.stripcslashes(get_option($this->pluginname."_footer_footer_html")).'</div></div></div>';
- }
-
- function help(){
- ?>
- <?php echo(__("Adds html snippet in footer","dagsopt")) ?>
-
-
- <?php
- }
-
- function Option($pre){
- update_option ( $pre.'_footer_html', $_POST [ $pre.'_footer_html' ] );
- }
-
- function admin_line($pre){
- ?>
- <?php echo(__("Footer html:","dagsopt")) ?><br><textarea style="width: 100%; height: 150px;" name="<?php echo( $pre.'_footer_html' ); ?>"><?php echo(stripcslashes(get_option($pre."_footer_html"))); ?></textarea>
- <?php
- }
-
-
- }
- global $plug_footer;
- $plug_footer = new plug_footer($this);
- $this->dagsopt['plug_footer'] = $plug_footer;
-
- }
|