skip to main | skip to sidebar
  • Home
  • Posts RSS
  • Comments RSS
  • Edit
    • Edit
    • Edit
    • Edit
قاضى التحقيق المتعهد بقضية بلعيد : لم أنسق مع وزارة الداخلية بشأن الإدلاء بمعلومات حول القضي
[06:31 | ]




Article plus ancien Accueil
'true', 'facebook' => 'https://www.facebook.com/pages/Timersys/146687622031640', 'twitter'=>'chifliiiii','google' => '','close' => 'true','close-advanced' => 'true', 'bg_opacity' => '0.65' , 'days-no-click' => '99', 'where' => array('everywhere'=>'true' ), 'template' => '
Please support the site
By clicking any of these buttons you help our site to get better

Twitter {twitter}

Facebook {facebook}

Google+ {google}

', 'css' =>'.spu-button { margin-left:15px; } #spu-msg-cont { border-bottom:1px solid#ccc; border-top:1px solid#ccc; background-image:linear-gradient(bottom,#D8E7FC 0%,#EBF2FC 65%); background-image:-o-linear-gradient(bottom,#D8E7FC 0%,#EBF2FC 65%); background-image:-moz-linear-gradient(bottom,#D8E7FC 0%,#EBF2FC 65%); background-image:-webkit-linear-gradient(bottom,#D8E7FC 0%,#EBF2FC 65%); background-image:-ms-linear-gradient(bottom,#D8E7FC 0%,#EBF2FC 65%); background-image:-webkit-gradient(linear,left bottom,left top,color-stop(0,#D8E7FC),color-stop(0.85,#EBF2FC)); padding:16px; } #spu-msg { margin:0 0 22px; } .step-clear { clear:both!important; } #spu-title { font-family:"Lucida Sans Unicode","Lucida Grande",sans-serif!important; font-size:12px; padding:12px 0 9px 10px; font-size:16px; }' ); $options = get_option('spu_option',$defaults); $this->_options = $options; $defaults = array('credits' => 'false'); $credits = get_option('spu_credit_option',$defaults); $this->_credits = $credits; } //function that register options function register_options() { register_setting( 'spu_options', 'spu_option' ); register_setting( 'spu_credit_options', 'spu_credit_option' ); } //function that register the menu link in the settings menu and editor section inside the option page function register_menu() { add_options_page( 'Social PopUP', 'Social PopUP', 'manage_options', 'social-pop-up',array(&$this, 'options_page') ); add_settings_section('bsbm_forms', 'Settings', array(&$this, 'style_box_form'), 'spu_style_form'); add_settings_section('spu_support', 'Support the plugin', array(&$this, 'spu_support_form'), 'spu-support'); } //Function that load the scripts function load_scripts() { if(!is_admin()) { wp_enqueue_script('spu-fb', 'http://connect.facebook.net/en_US/all.js#xfbml=1', array('jquery'),FALSE,FALSE); wp_enqueue_script('spu-tw', 'http://platform.twitter.com/widgets.js', array('jquery'),FALSE,FALSE); wp_enqueue_script('spu-go', 'https://apis.google.com/js/plusone.js', array('jquery'),FALSE,FALSE); wp_enqueue_script('spu', plugins_url( 'spu.js' , __FILE__ ),array('jquery')); wp_enqueue_style('spu-css', plugins_url( 'spu.css' , __FILE__ )); } } //function that display the options page function options_page() { ?>
". __( 'Social PopUP' ) .""; ?>
_options; ?>

Please add settings for the Social PopUP.

Main Settings

Enable / Disable Social PopUP
Google '+1' URL
The Google url you want to +1 (include 'http://'). Leave empty for current visitor page
Facebook URL
You facebook page (include 'http://').
Twitter Username
The Twitter usename to use with the follow, without "@" sign

Styling & Messages

Template
Edit the default template. Add or remove buttons with {twitter}, {facebook}, {google} and edit or add your custom HTML
Css Rules
This are some rules for the default template. Feel free to create yours.
Opacity
Change background opacity. Default is 0.65

Avanced

Show in:
/> Home
/> Pages
/> Posts
/> Everywhere
Where to show popup.
Show Close Button
Enable / Disable the close button.
Close Advanced keys
If enabled, users can close the popup by pressing the escape key or clicking outside of the popup.
How many days until popup shows again?
When a user closes the popup he won't see it again until all these days pass

Debugging

Delete Cookies
If you already closed the popup and don't want to wait for days, click this button to see the popup again.
= '3.1') { submit_button('Save Changes','secondary'); } else { echo ''; } ?>
_options; // Only continue if the pop-up option is enabled... if($options['enable'] == 'true') { //if show everywhere i print script if( isset($options['where']['everywhere']) && $options['where']['everywhere'] == 'true' ) { $this->print_script(); } else { if( isset($options['where']['posts']) && $options['where']['posts'] == 'true' ) { if ( is_single() || is_home() ) { $this->print_script(); } } if( isset($options['where']['pages']) && $options['where']['pages'] == 'true' ) { if ( is_page() ) { $this->print_script(); } } if( isset($options['where']['home']) && $options['where']['home'] == 'true' ) { if ( is_front_page() ) { $this->print_script(); } } } } // End if enabled } // End main function //function to print script function print_script() { $options = $this->_options; $credit = $this->_credits; ?> _credits; ?>

Please Support this plugin

Click here to add a small link at the bottom of widget >

= '3.1') { submit_button('Save Changes','secondary'); } else { echo ''; } ?>

Or even better invite me a coffee

_options; $credits = $this->_credits; $socials = array( "google" => '
', "twitter" => '
Follow Me
', "facebook" => '
' ); $template = $options['template']; echo '
'; echo $options['close'] == 'true' ? 'Close' : ''; foreach ($socials as $key => $value) { $template = str_replace("{" . $key . "}", $value, $template); } echo $template; echo isset($credits['credits']) && $credits['credits'] == 'on' ? '
By MasqueWordpress.com
':''; echo '
'; } } //end of class $social_pop_up = new socialPopup();
 
Copyright 2008 yasser - Entries (RSS) - Comment (RSS) WPTheme by Michael Jubel | Blogger Template by ThemeLib.com