Changeset 634515
- Timestamp:
- 12/05/2012 08:10:47 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
wp-backgrounds-lite/trunk/inoplugs_classes/inoplugs_background_display.php
r573497 r634515 31 31 public function handler_frontend_includes() 32 32 { 33 $ino_backgrounds_path = INO_WPBLITE_URLPATH.'includes/'; 34 wp_register_style('inoplugs_backgrounds_css', $ino_backgrounds_path.'wp-backgrounds.css'); 33 $ino_backgrounds_path = INO_WPBLITE_URLPATH.'includes/'; 35 34 wp_enqueue_script('jquery'); 36 wp_enqueue_style('inoplugs_backgrounds_css'); 35 36 if(!is_admin()) 37 { 38 wp_register_style('inoplugs_backgrounds_css', $ino_backgrounds_path.'wp-backgrounds.css'); 39 wp_enqueue_style('inoplugs_backgrounds_css'); 40 } 37 41 } 38 42 … … 49 53 } 50 54 $images_slideshow = $this->set_bg_images(); 51 55 52 56 $background_slideshow = ''; 53 57 $background_slideshow .= "\n\n\n<!--\n\n"; … … 55 59 $background_slideshow .="# Fullscreen Backgrounds generated by #\n"; 56 60 $background_slideshow .="# WP-Backgrounds Lite Plugin by InoPlugs (http://inoplugs.com) #\n"; 57 $background_slideshow .="###############################################################################\n"; 61 $background_slideshow .="###############################################################################\n"; 58 62 $background_slideshow .="\n-->\n"; 59 60 63 64 61 65 if ($this->deactivate == "1") 62 66 { … … 66 70 67 71 $ino_backgrounds_path = WP_PLUGIN_URL.'/wp-backgrounds-lite/includes/'; 68 72 69 73 $background_slideshow .= "<script type='text/javascript' src='".$ino_backgrounds_path."wp-backgrounds.js'></script>\n"; 70 74 71 75 $background_slideshow .= "<style type=\"text/css\">\n"; 72 76 73 77 if ( !empty($this->ino_bglite_options['zindex']) ) 74 78 { … … 79 83 $background_slideshow .= '#supersized{z-index: 0 !important;} '; 80 84 } 81 85 82 86 if ( !empty($this->ino_bglite_options['bg_color']) ) 83 87 { 84 88 $background_slideshow .= 'body{background-color:'.$this->ino_bglite_options['bg_color'].' !important;} '; 85 89 } 86 90 87 91 if ( !empty($this->ino_bglite_options['containerid']) ) 88 92 { 89 93 $container .= $this->ino_bglite_options['containerid'].'{'; 90 94 91 95 if ( !empty($this->ino_bglite_options['zindexcontainer']) ) 92 96 { 93 97 $container .= 'z-index:'.$this->ino_bglite_options['zindexcontainer'].';'; 94 98 } 95 99 96 100 if ( !empty($this->ino_bglite_options['positioncontainer']) ) 97 101 { 98 102 $container .= 'position:'.$this->ino_bglite_options['positioncontainer'].';'; 99 103 } 100 104 101 105 $container .= '} '; 102 106 103 107 $background_slideshow .= $container; 104 108 } 105 106 109 110 107 111 $background_slideshow .= "\n</style>\n"; 108 112 $background_slideshow .= "\n<script type='text/javascript'>\n"; … … 128 132 } 129 133 130 131 public function handler_set_fallback_image() 134 135 public function handler_set_fallback_image() 132 136 { 133 137 $inoplugs = apply_filters("inoplugs_link", '<div style="display: none;"><a href="http://inoplugs.com">WP-Backgrounds Lite by InoPlugs Web Design</a> and <a href="http://schoenmann.at/">Juwelier Schönmann 1010 Wien</a></div>'); … … 141 145 $get_external_bg_image = get_post_meta($wp_query->post->ID, 'upload_image', true); 142 146 $get_image_link = get_post_meta($wp_query->post->ID, 'image_url', true); 143 147 144 148 if (empty($get_external_bg_image)) { 145 149 $deactivate_image = 'on'; … … 154 158 } 155 159 156 if(!empty($this->bg_image)) 157 { 160 if(!empty($this->bg_image)) 161 { 158 162 if (!empty($get_image_link)) 159 163 { … … 173 177 return $background_image = false; 174 178 } 175 } 179 } 176 180 } 177 181 ?>
Note: See TracChangeset
for help on using the changeset viewer.