Changeset 2141633
- Timestamp:
- 08/19/2019 04:03:54 AM (5 years ago)
- Location:
- ir-manager/trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
ir-manager/trunk/IRManager.php
r2140978 r2141633 9 9 if ( ! defined( 'ABSPATH' ) ) exit; 10 10 function ir_mngr_initilize(){ 11 12 { 13 14 15 16 11 if ( !is_admin()) 12 { 13 include_once dirname(__FILE__) .'/ir-ads-block-func.php'; 14 $ir_mngr=new Ir_mngr_Plugin_(); 15 $ir_mngr->ir_mngr_ir_init($_SERVER['HTTP_HOST'].$_SERVER["REQUEST_URI"]); 16 } 17 17 } 18 18 function ir_mngr_initilize_amp(){ 19 if ( !is_admin()) 20 { 21 include_once dirname(__FILE__) .'/ir-ads-block-func.php'; 22 $ir_mngr=new Ir_mngr_Plugin_(); 23 $ir_mngr->ir_mngr_ir_init_amp($_SERVER['HTTP_HOST'].$_SERVER["REQUEST_URI"]); 24 } 25 } 26 19 if ( !is_admin()) 20 { 21 include_once dirname(__FILE__) .'/ir-ads-block-func.php'; 22 $ir_mngr=new Ir_mngr_Plugin_(); 23 $ir_mngr->ir_mngr_ir_init_amp($_SERVER['HTTP_HOST'].$_SERVER["REQUEST_URI"]); 24 } 25 } 27 26 function ir_mngr_footer(){ 28 29 { 30 31 32 33 34 27 if ( !is_admin()) 28 { 29 include_once dirname(__FILE__) .'/ir-ads-block-func.php'; 30 $ir_mngr=new Ir_mngr_Plugin_(); 31 $ir_mngr->ir_mngr_filter($_SERVER['HTTP_HOST'].$_SERVER["REQUEST_URI"]); 32 $ir_mngr->ir_mngr_get_latest_post(); 33 } 35 34 } 36 35 function ir_mngr_amp_footer(){ 37 38 { 39 40 41 42 43 36 if ( !is_admin()) 37 { 38 include_once dirname(__FILE__) .'/ir-ads-block-func.php'; 39 $ir_mngr=new Ir_mngr_Plugin_(); 40 $ir_mngr->ir_mngr_filter($_SERVER['HTTP_HOST'].$_SERVER["REQUEST_URI"]); 41 $ir_mngr->ir_mngr_get_latest_post("amp"); 42 } 44 43 } 45 44 function register_ir_mngr_settings() { 46 47 48 49 50 51 52 53 54 55 56 45 register_setting( 'irmngr_form_act_us', 'ir_radio_button' ); 46 register_setting( 'irmngr_form_act_us', 'ir_radio_button_' ); 47 register_setting( 'irmngr_form_act_us', 'txt_url' ); 48 register_setting( 'irmngr_form_update', '' ); 49 register_setting( 'irmngr_form_amp', 'ir_amp_checbox' ); 50 register_setting( 'irmngr_form_add_src', 'ir_txt_webname' ); 51 register_setting( 'irmngr_form_add_violation', 'ir_violation_url' ); 52 register_setting( 'irmngr_form_activate', 'txt_activate_key' ); 53 register_setting( 'irmngr_form_activate', 'txt_domain' ); 54 register_setting( 'irmngr_ad_div', 'ir_ad_div' ); 55 register_setting( 'irmngr_ad_div', 'irmngr_category' ); 57 56 } 58 57 function ir_mngr_adm_initilize(){ 59 60 61 62 58 include_once dirname(__FILE__) .'/ir-ads-block-func.php'; 59 $ir_mngr=new Ir_mngr_Plugin_(); 60 $ir_mngr->ir_mngr_init($_SERVER['HTTP_HOST'].$_SERVER["REQUEST_URI"]); 61 register_ir_mngr_settings(); 63 62 } 64 63 add_action('wp_head', 'ir_mngr_initilize',0); … … 67 66 class ir_mngr_cls_cache { 68 67 static function ir_mngr_install() { 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 68 function ir_menage_emptyDir($dir) { 69 if (is_dir($dir)) { 70 $scn = scandir($dir); 71 foreach ($scn as $files) { 72 if ($files !== '.') { 73 if ($files !== '..') { 74 if (!is_dir($dir . '/' . $files)) { 75 @unlink($dir . '/' . $files); 76 } else { 77 ir_menage_emptyDir($dir . '/' . $files); 78 @rmdir($dir . '/' . $files); 79 } 80 } 81 } 82 } 83 } 84 } 85 $irmngr_dir = ABSPATH . 'wp-content/cache'; 86 ir_menage_emptyDir($irmngr_dir); 87 $role = get_role( 'administrator' ); 89 88 $role->add_cap( 'manage_options' ); 90 89 } … … 92 91 register_activation_hook( __FILE__, array( 'ir_mngr_cls_cache', 'ir_mngr_install' ) ); 93 92 function ir_mngr_delete_plgn(){ 94 95 96 93 include_once dirname(__FILE__) .'/ir-ads-block-func.php'; 94 $ir_mngr=new Ir_mngr_Plugin_(); 95 $ir_mngr->ir_mngr_del_plgn(); 97 96 } 98 97 register_uninstall_hook(__FILE__,"ir_mngr_delete_plgn"); 99 98 add_action( 'wp_footer', 'ir_mngr_footer', 100 ); 100 add_action( 'amp_post_template_footer', 'ir_mngr_amp_footer', 100 ); 101 99 add_action( 'amp_post_template_footer', 'ir_mngr_amp_footer' ,200); 102 100 function ir_mngr_add_style_and_script() 103 101 { 104 102 wp_enqueue_style('header-footer', plugin_dir_url( __FILE__) ."lib/css/style.css", array(), time()); 105 103 wp_enqueue_script('header-footer',plugin_dir_url( __FILE__) ."ir_script.js", array(), time()); 106 104 wp_enqueue_style('header-footer',plugin_dir_url( __FILE__) ."lib/css/font-awesome.min.css", array(), time()); … … 109 107 add_action('admin_menu', 'ir_mngr_menu_pages'); 110 108 function ir_mngr_menu_pages(){ 111 112 109 if(current_user_can("administrator")) 110 { 113 111 add_menu_page('Increase Rev', 'Increase Rev', 'editors', 'ir-mngr-menu', '', plugin_dir_url( __FILE__) ."lib/img/icon.png", 30 ); 114 112 add_submenu_page('ir-mngr-menu', 'Increase Rev', 'Violations', 'administrator', 'ir-manager/irmngr_option2.php'); … … 116 114 } 117 115 } 118 119 120 116 add_action('amp_post_template_css','ampforwp_add_custom_css_example', 11); 121 117 function ampforwp_add_custom_css_example() { ?> 122 118 .irmngr_golden{ 123 119 background:#DCAE1D; 124 120 } … … 136 132 } 137 133 .irmngr_article_main_div{ 138 padding-left: 2%;139 padding-right: 2%;134 %; 135 padding-right: %; 140 136 width: 100%; 141 min-height: 288px;142 137 height: 100%; 143 max-height: 288px;border: solid 1px rgb(209, 209, 209);144 138 background: rgba(255,255,255,1); 145 139 position: relative; 146 140 overflow: hidden; 147 141 } 148 142 .irmngr_article_title{ 149 143 font-size: 200%; 150 144 white-space: nowrap; 151 145 padding-top: 5%; … … 153 147 margin-right: auto; 154 148 margin-left: auto; 155 width: 100%;149 width: 0%; 156 150 max-height: 50%; 157 151 font-family: Roboto,arial,sans-serif; … … 161 155 height: auto; 162 156 font-weight: 450; 157 163 158 word-break: break-word; 164 159 color: #4e4a4a; 165 160 } 166 161 .irmngr_article_subheading{ 167 font-family: Roboto,arial,sans-serif ;162 font-family: Roboto,arial,sans-serif; 168 163 position: relative; 169 164 height: auto; 170 165 max-height: 30%; 171 width: 90%; 172 text-align: left; 173 padding-left: 2%; 174 padding-top: 5%; 175 padding-bottom: 4%; 166 width: 65%; 167 text-align: left; 168 padding-top: 9%; 169 padding-bottom: 9%; 176 170 white-space: nowrap; 177 171 text-overflow: ellipsis; 178 172 float: left; 179 173 overflow: hidden; 180 font-size: 1 20%;174 font-size: 10%; 181 175 font-weight: 450; 182 176 color: #7d7b7b; 183 177 } 184 178 .irmngr_article_paragraph{ 185 font-family: Roboto,arial,sans-serif; 179 color: #828080; 180 font-family: Roboto,arial,sans-serif !important; 186 181 width: 60%; 187 182 position: relative; 188 183 float: left; 189 text-align: left;190 padding: 4%;191 padding- top: 6%;192 padding-bottom: 0%;193 text-overflow: ellipsis;194 line-height: 170%;195 font-size: 110%;184 ; 185 ; 186 padding-%; 187 ; 188 ; 189 0%; 190 ; 196 191 color: #828080; 197 192 overflow: hidden; 198 193 height: 38%; 194 195 196 199 197 } 200 198 .irmngr_article_button_div{ 201 202 position: relative; 203 height: auto; 204 float: left;199 width: 30%; 200 position: relative; 201 height: auto; 202 float: t; 205 203 padding: 1%; 206 padding-top: 10%;207 padding-left: 5%;208 204 } 209 205 .irmngr_button_round { … … 250 246 position: absolute; 251 247 content: ""; 252 top: -0.7rem;253 right: -1. 5375rem;248 rem; 249 right: -1.375rem; 254 250 width: 1.625rem; 255 251 height: 1.625rem; … … 278 274 } 279 275 .irmngr_min_height_280{ 280 min-height:280px; 281 } 282 <?php 276 min-height:280px; 277 } 278 .irmngr_link{ 279 text-decoration: none !important; 280 } 281 .irmngr_post_div{ 282 border: solid 1px rgb(209, 209, 209); 283 border: solid 1px rgb(209, 209, 209); 284 height: 100%; 285 position: relative; 286 width: 100%; 287 overflow: hidden; 288 margin-top:5px; 289 margin-bottom:5px; 290 } 291 @media only screen and (min-width: 700px) { 292 .irmngr_article_title{ 293 padding-right: 5%; 294 padding-top: 5%; 295 padding-bottom: 5%; 296 white-space: nowrap; 297 font-size: 300%; 298 width: 100%; 299 padding-left: 15px; 300 text-align: left; 301 font-family: Roboto,arial,sans-serif !important; 302 position: relative; 303 overflow: hidden; 304 text-overflow: ellipsis; 305 height: auto; 306 font-weight: 450; 307 color: #4e4a4a; 308 word-break: break-word; 309 max-height: 50%; 310 } 311 .irmngr_article_subheading{ 312 color: #7d7b7b; 313 font-family: Roboto,arial,sans-serif; 314 position: relative; 315 padding: 2%; 316 height: auto; 317 max-height: 30%; 318 width: 65%; 319 white-space: nowrap; 320 text-overflow: ellipsis; 321 float: left; 322 overflow: hidden; 323 /* padding-left: 2%; */ 324 /* padding-top: 0.8%; */ 325 font-size: 150%; 326 font-weight: 450; 327 text-align: left; 328 } 329 .irmngr_article_paragraph{ 330 font-family: Roboto,arial,sans-serif !important; 331 width: 65%; 332 position: relative; 333 float: left; 334 text-align: left; 335 margin-top: 4.5%; 336 text-overflow: ellipsis; 337 font-size: 100%; 338 padding-left: 1; 339 white-space: normal; 340 -webkit-line-clamp: 2; 341 display: -webkit-box; 342 -webkit-box-orient: vertical; 343 color: #828080; 344 overflow: hidden; 345 height: 20%; 346 padding-left: 2%; 347 } 348 } 349 <?php 283 350 } 284 351 ?> -
ir-manager/trunk/ir-ads-block-func.php
r2140847 r2141633 193 193 return $csv; 194 194 } 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 195 214 function ir_mngr_reports() { 196 215 @$filename = $this->ir_dir. '/reports/reports.csv'; … … 256 275 .adsbygoogle{ 257 276 word-wrap: break-word !important; 258 border: solid 1px rgb(209, 209, 209);259 277 overflow:hidden !important; 260 278 background:transparent; … … 350 368 } 351 369 } 352 370 } 353 371 endif; 354 372 } … … 362 380 $unsafe = "'unsafe-inline'"; 363 381 $unsafe2 = "'unsafe-eval'"; 364 $src__="ajax.googleapis.com *.gstatic.com *.2mdn.net *.ampproject.org *.instagram.com *.twitter.com *.tumblr.com *.linkedin.com *.pinterest.com *.snapchat.com *.facebook.com *.youtube.com cdn.ampproject.org";382 $src__="ajax.googleapis.com *.gstatic.com *.2mdn.net *.ampproject.org *.instagram.com *.twitter.com *.tumblr.com *.linkedin.com *.pinterest.com *.snapchat.com *.facebook.com *.youtube.com "; 365 383 $yes3 = "no"; 366 384 $data = ""; … … 417 435 { 418 436 echo '<script>function ir_function_block1(){ var meta = document.createElement("meta"); 419 meta.httpEquiv = "Content-Security-Policy";meta.content = "connect-src * ; frame-src ' . $self . ' ' . $unsafe . ' '.$src__.' ' . $data . ' ; "; document.getElementsByTagName("head")[0].appendChild(meta);437 meta.httpEquiv = "Content-Security-Policy";meta.content = "connect-src * ; frame-src ' . $self . ' ' . $unsafe . ' '.$src__.' ' . $data . ' ; "; document.getElementsByTagName("head")[0].appendChild(meta); 420 438 } </script> '; 421 echo '<script> ir_function_block1(); </script>' ;439 echo '<script> ir_function_block1(); </script>' ; 422 440 } 423 441 echo '<script>function ir_function_block(){ var meta = document.createElement("meta"); 424 meta.httpEquiv = "Content-Security-Policy";meta.content = "connect-src ' . $self . ' ' . $unsafe . ' ' . $unsafe2 . ' '.$src__.' ' . $data . '; script-src ' . $self . ' ' . $unsafe . ' ' . $unsafe2 . ' '.$src__.' ' . $data . ' ; "; document.getElementsByTagName("head")[0].appendChild(meta);}442 meta.httpEquiv = "Content-Security-Policy";meta.content = "connect-src ; script-src ' . $self . ' ' . $unsafe . ' ' . $unsafe2 . ' '.$src__.' ' . $data . ' ; "; document.getElementsByTagName("head")[0].appendChild(meta);} 425 443 </script>'; 426 444 echo '<script>ir_function_block();</script>'; 427 428 445 } 429 446 function ir_mngr_ads_block_2_amp($status){ … … 432 449 $unsafe = "'unsafe-inline'"; 433 450 $unsafe2 = "'unsafe-eval'"; 434 $src__="ajax.googleapis.com *.gstatic.com *.2mdn.net *.ampproject.org *.instagram.com *.twitter.com *.tumblr.com *.linkedin.com *.pinterest.com *.snapchat.com *.facebook.com *.youtube.com cdn.ampproject.org";451 $src__="ajax.googleapis.com *.gstatic.com *.2mdn.net *.ampproject.org *.instagram.com *.twitter.com *.tumblr.com *.linkedin.com *.pinterest.com *.snapchat.com *.facebook.com *.youtube.com "; 435 452 $yes3 = "no"; 436 453 $data = ""; … … 487 504 { 488 505 echo '<script>function ir_function_block_amp1(){ var meta = document.createElement("meta"); 489 meta.httpEquiv = "Content-Security-Policy";meta.content = "connect-src * ; frame-src ' . $self . ' ' . $unsafe . ' '.$src__.' ' . $data . ' ; "; document.getElementsByTagName("head")[0].appendChild(meta);506 meta.httpEquiv = "Content-Security-Policy";meta.content = "connect-src * ; frame-src ' . $self . ' ' . $unsafe . ' '.$src__.' ' . $data . ' ; "; document.getElementsByTagName("head")[0].appendChild(meta); 490 507 } </script> '; 491 508 echo '<script> ir_function_block_amp1(); </script>' ; 492 509 }else{ 493 510 echo '<script>function ir_function_block_amp(){ var meta = document.createElement("meta"); 494 meta.httpEquiv = "Content-Security-Policy";meta.content = "connect-src * ; script-src ' . $self . ' ' . $unsafe . ' ' . $unsafe2 . ' '.$src__.' ' . $data . ' ; "; document.getElementsByTagName("head")[0].appendChild(meta);}511 meta.httpEquiv = "Content-Security-Policy";meta.content = "connect-src * ; script-src ' . $self . ' ' . $unsafe . ' ' . $unsafe2 . ' '.$src__.' ' . $data . ' ; "; document.getElementsByTagName("head")[0].appendChild(meta);} 495 512 </script>'; 496 513 echo '<script>ir_function_block_amp();</script>'; … … 556 573 wp_enqueue_style('header-footer', plugin_dir_url( __FILE__) ."lib/css/irmngr_adsstyle.css", array(), time()); 557 574 @$this->ir_mngr_hide(); 575 576 558 577 @$this->ir_mngr_ads_block_2_amp($status); 578 559 579 elseif (@$get_days_ == "homepage"): 560 580 @$this->ir_mngr_home_redirect(); … … 862 882 $url = $url2[0]; 863 883 $meta = get_post_meta( 1 ); 884 885 864 886 $yess="no"; 865 887 $all_meta_for_user = get_user_meta( 1 ); 866 888 $get_status_ad_div=$all_meta_for_user["irmngr_ad_div_status"][0]; 867 @$amp_config = $this->ir_mngr_get_amp_config();868 889 if ($amp_config == "yes") { $url = str_replace("amp/", "", $url); } 869 890 if(!empty($meta["irmngr_violation"])){ … … 890 911 @$irmngr_second_="no";@$irmngr_second_2="no"; 891 912 $irmngr_second_status=""; 892 893 913 if($get_status_ad_div=="by_tags"){ 894 914 $irmngr_CurrentPostTags=$this->ir_mngr_get_post_tags($irmngr_CurrentPostID); … … 959 979 } 960 980 $this->ir_mngr_remove_blank_ads(); 961 962 981 $this->ir_mngr_remove_blank_ads_amp(); 963 982 }else{ 964 983 $this->ir_mngr_remove_blank_ads(); 965 984 $this->ir_mngr_remove_blank_ads_amp(); 966 985 } 967 echo '<script>function ir_amp_footer1(){968 var h = document.getElementsByTagName("amp-ad");969 for (var i = h.length; i--; ) {970 h[i].style.display = "none";971 }972 }973 </script>'; //echo '<script>ir_amp_footer1();</script>';986 echo '<script>function ir_amp_footer1(){ 987 var h = document.getElementsByTagName("amp-ad"); 988 for (var i = h.length; i--; ) { 989 h[i].style.display = "none"; 990 } 991 } 992 </script>'; //echo '<script>ir_amp_footer1();</script>'; 974 993 endif; 975 994 } … … 980 999 $count="0"; 981 1000 } 982 foreach($recent_posts as $post) : 983 if(@$irmngr_CurrentPostID==$post['ID']){ }else{ 984 if(in_array($post['ID'],$postID)){ 1001 $irmngr_demand_src=$this->ir_mngr_voilation_url(); 1002 foreach($recent_posts as $post) : 1003 $post_Title_=preg_replace("/[^a-zA-Z0-9 ]+/", "", html_entity_decode($post["post_title"], ENT_QUOTES)); $post_ID_=$post['ID'];$post_Content_=$post['post_content']; 1004 $post_url_=$this->irmngr_clean_url(get_permalink($post_ID_)); 1005 if(@$irmngr_CurrentPostID==$post_ID_){ } if(in_array($post_url_,$irmngr_demand_src)){ } else{ 1006 if(in_array($post_ID_,$postID)){ 985 1007 }else{ 986 array_push($postID,$post ['ID']);1008 array_push($postID,$post); 987 1009 if($count_colour=="1"){ 988 1010 $irmngr_color_class="irmngr_golden"; $count_colour="2"; … … 998 1020 $irmngr_color_class="irmngr_golden"; $count_colour="1"; 999 1021 } 1000 $post_thumbnail_url = get_the_post_thumbnail_url($post['ID'],'thumbnail'); 1001 $post_sub_heading=$this->ir_mngr_get_post_title($post['post_content']); 1002 $post_paragraph=$this->ir_mngr_get_post_paragraph($post["post_content"]); 1003 $irmngr_main_content_90=$this->irmngr_post_90($post['ID'],$post["post_title"],$post_sub_heading,$post_paragraph,$irmngr_color_class); 1004 $irmngr_main_content_600=$this->irmngr_post_600($post['ID'],$post["post_title"],$post_sub_heading,$post_paragraph,$irmngr_color_class); 1005 $irmngr_main_content_600_2=$this->irmngr_post_600_2($post['ID'],$post["post_title"],$post_sub_heading,$post_paragraph,$irmngr_color_class); 1006 $irmngr_main_content_250=$this->irmngr_post_250($post['ID'],$post["post_title"],$post_sub_heading,$post_paragraph,$irmngr_color_class); 1007 if(wp_is_mobile()){ 1008 $irmngr_main_content_250_3=""; 1022 $post_thumbnail_url = get_the_post_thumbnail_url($post_ID_,'thumbnail'); 1023 $post_sub_heading=$this->ir_mngr_get_post_title($post_Content_); 1024 $post_paragraph=$this->ir_mngr_get_post_paragraph($post_Content_); 1025 $irmngr_main_content_90=$this->irmngr_post_90($post_ID_,$post_Title_,$post_sub_heading,$post_paragraph,$irmngr_color_class); 1026 $irmngr_main_content_600=$this->irmngr_post_600($post_ID_,$post_Title_,$post_sub_heading,$post_paragraph,$irmngr_color_class); 1027 $irmngr_main_content_600_2=$this->irmngr_post_600_2($post_ID_,$post_Title_,$post_sub_heading,$post_paragraph,$irmngr_color_class); 1028 $irmngr_main_content_250=$this->irmngr_post_250($post_ID_,$post_Title_,$post_sub_heading,$post_paragraph,$irmngr_color_class); 1029 if(strpos($_SERVER['HTTP_USER_AGENT'], 'iPad') !== false){ 1030 $irmngr_main_content_250_3=$this->irmngr_post_250_3($post_ID_,$post_Title_,$post_sub_heading,$post_paragraph,$irmngr_color_class); 1031 } 1032 elseif(wp_is_mobile()){ 1033 $irmngr_main_content_250_3=$this->irmngr_post_250_2($post_ID_,$post_Title_,$post_sub_heading,$post_paragraph,$irmngr_color_class); 1009 1034 }else{ 1010 $irmngr_main_content_250_3=$this->irmngr_post_250_3($post['ID'],$post["post_title"],$post_sub_heading,$post_paragraph,$irmngr_color_class); 1011 } 1012 1013 $irmngr_main_content_250_2=$this->irmngr_post_250_2($post['ID'],$post["post_title"],$post_sub_heading,$post_paragraph,$irmngr_color_class); 1035 $irmngr_main_content_250_3=$this->irmngr_post_250_3($post_ID_,$post_Title_,$post_sub_heading,$post_paragraph,$irmngr_color_class); 1036 } 1037 $irmngr_main_content_250_2=$this->irmngr_post_250_2($post_ID_,$post_Title_,$post_sub_heading,$post_paragraph,$irmngr_color_class); 1014 1038 ?> 1015 1039 <script> 1016 1040 var irmngr_adsbygoogle = document.getElementsByClassName("adsbygoogle")[<?php echo $count; ?>]; 1017 // if (irmngr_adsbygoogle.length > 0) {1041 ) { 1018 1042 var heights = irmngr_adsbygoogle.style.height; 1019 1043 heights=heights.replace("px",""); … … 1025 1049 if(heights<="300" && maxwidths=="1200"){ 1026 1050 heights="0";maxwidths="0"; 1027 // console.log("1 <?php echo $post["post_title"] ?>");1028 1051 irmngr_adsbygoogle.innerHTML = '<?php echo $irmngr_main_content_250; ?>'; 1029 1052 } 1030 1053 if(heights=="280" && maxwidths<="420" || heights=="280" && maxwidths<="970"){ 1031 1054 heights="0";maxwidths="0"; 1032 // console.log("2 <?php echo $post["post_title"] ?>");1033 1055 irmngr_adsbygoogle.innerHTML = '<?php echo $irmngr_main_content_250_2; ?>'; 1034 1056 } 1035 1057 if(heights=="600" && maxwidths<="200"){ 1036 1058 heights="0";maxwidths="0"; 1037 // console.log("3 <?php echo $post["post_title"] ?>");1038 1059 irmngr_adsbygoogle.innerHTML = '<?php echo $irmngr_main_content_600_2; ?>'; 1039 1060 } 1040 1061 if(heights=="600"){ 1041 1062 heights="0";maxwidths="0"; 1042 // console.log("4 <?php echo $post["post_title"] ?>");1043 1063 irmngr_adsbygoogle.innerHTML = '<?php echo $irmngr_main_content_600; ?>'; 1044 1064 } 1045 1065 if(heights=="250"){ 1046 1066 heights="0";maxwidths="0"; 1047 // console.log("5 <?php echo $post["post_title"] ?>");1048 1067 irmngr_adsbygoogle.innerHTML = '<?php echo $irmngr_main_content_250; ?>'; 1049 1068 } 1050 1069 if(heights=="90"){ 1051 1070 heights="0";maxwidths="0"; 1052 // console.log("6 <?php echo $post["post_title"] ?>");1053 1071 irmngr_adsbygoogle.innerHTML = '<?php echo $irmngr_main_content_90; ?>'; 1054 1072 } 1055 1056 1073 if(heights=="100" && maxwidths=="420"){ 1057 1074 heights="0";maxwidths="0"; 1058 // console.log("8 <?php echo $post["post_title"] ?>");1059 1075 // irmngr_adsbygoogle.innerHTML = '<?php echo $irmngr_main_content_600_2; ?>'; 1060 1076 } 1061 1062 1063 1077 if(heights!="0" && heights!="100"){ 1064 1078 heights="0";maxwidths="0"; 1065 // console.log("7 <?php echo $post["post_title"] ?>");1066 1079 irmngr_adsbygoogle.innerHTML = '<?php echo $irmngr_main_content_250_3; ?>'; 1067 1080 } 1068 1069 1081 <?php $count++; ?> 1070 1082 if(!document.getElementsByClassName("adsbygoogle")['<?php echo $count; ?>']){ 1071 window.stop();1072 1083 } 1073 //}1084 } 1074 1085 </script> 1075 1086 <?php 1076 if($stopforeach=="yes"){1077 break;1078 }1079 1087 } 1080 1088 } … … 1091 1099 $count="0"; 1092 1100 } 1101 1093 1102 foreach($recent_posts as $post) : 1094 if(@$irmngr_CurrentPostID==$post['ID']){ }else{ 1095 if(in_array($post['ID'],$postID)){ 1103 $post_Title_=str_replace("'", "", $post["post_title"]);$post_ID_=$post['ID'];$post_Content_=$post['post_content']; 1104 $post_url_=$this->irmngr_clean_url(get_permalink($post_ID_)); 1105 if(@$irmngr_CurrentPostID==$post_ID_){ } if(in_array($post_url_,$irmngr_demand_src)){ } else{ 1106 if(in_array($post_ID_,$postID)){ 1096 1107 }else{ 1097 array_push($postID,$post ['ID']);1108 array_push($postID,$post); 1098 1109 if($count_colour=="1"){ 1099 1110 $irmngr_color_class="irmngr_golden"; $count_colour="2"; … … 1109 1120 $irmngr_color_class="irmngr_golden"; $count_colour="1"; 1110 1121 } 1111 $post_thumbnail_url = get_the_post_thumbnail_url($post ['ID'],'thumbnail');1112 $post_sub_heading=$this->ir_mngr_get_post_title($post ['post_content']);1113 $post_paragraph=$this->ir_mngr_get_post_paragraph($post ["post_content"]);1114 $irmngr_main_content_250_2=$this->irmngr_post_250_2_amp($post ['ID'],$post["post_title"],$post_sub_heading,$post_paragraph,$irmngr_color_class);1122 $post_thumbnail_url = get_the_post_thumbnail_url($post,'thumbnail'); 1123 $post_sub_heading=$this->ir_mngr_get_post_title($post); 1124 $post_paragraph=$this->ir_mngr_get_post_paragraph($post); 1125 $irmngr_main_content_250_2=$this->irmngr_post_250_2_amp($post,$post_sub_heading,$post_paragraph,$irmngr_color_class); 1115 1126 // $irmngr_main_content_250_2='<div style="background: red;width: 100%;min-height: 280px;height: 100%;max-height: 280px;display: inline-block;"></div>'; 1116 1127 ?> 1117 <script >1128 <script> 1118 1129 var irmngr_adsbygoogle = document.getElementsByTagName("amp-ad")[<?php echo $count; ?>]; 1119 // if (irmngr_adsbygoogle.length > 0) {1130 ) { 1120 1131 var heights = irmngr_adsbygoogle.style.height; 1121 1132 heights=heights.replace("px",""); … … 1124 1135 var maxwidths = irmngr_adsbygoogle.style.maxWidth; 1125 1136 maxwidths=maxwidths.replace("px",""); 1126 heights="0";maxwidths="0"; console.log("2");1137 heights="0";maxwidths="0"; 1127 1138 var newElement = document.createElement("irmngr"); 1128 1139 newElement.setAttribute('class', "irmngr_article"); 1129 // irmngr_adsbygoogle.innerHTML = '<?php echo $irmngr_main_content_250_2; ?>';1130 1140 irmngr_adsbygoogle.style.display = "none"; 1131 1141 newElement.innerHTML = '<?php echo $irmngr_main_content_250_2; ?>'; 1132 1142 irmngr_adsbygoogle.parentNode.appendChild(newElement); 1133 1134 1143 <?php $count++; ?> 1135 if(!document.getElementsByTagName("amp-ad")['<?php echo $count; ?>']){ 1136 console.log("yes "); window.stop(); 1137 } 1138 // } 1144 } 1139 1145 </script> 1140 1146 <?php 1141 if($stopforeach=="yes"){1142 break;1143 }1144 1147 } 1145 1148 } … … 1151 1154 return $IrmnggrArray; 1152 1155 } 1153 1154 1156 function ir_mngr_remove_blank_ads_amp(){ 1155 1157 ?> … … 1195 1197 $tags_array=array(); 1196 1198 $irmngr_CurrentPostTags=get_the_tags($postID); 1197 foreach ($irmngr_CurrentPostTags as $key => $value) { 1198 foreach ($value as $key2 => $value2) { 1199 if($key2=="name" || $key2=="Name"){ 1200 array_push($tags_array,$value2); 1199 if(!empty($irmngr_CurrentPostTags)){ 1200 foreach ($irmngr_CurrentPostTags as $key => $value) { 1201 foreach ($value as $key2 => $value2) { 1202 if($key2=="name" || $key2=="Name"){ 1203 array_push($tags_array,$value2); 1204 } 1201 1205 } 1202 1206 } … … 1221 1225 } 1222 1226 } 1223 return $content;1227 return ; 1224 1228 } 1225 1229 function ir_mngr_get_post_paragraph($PostContent){ 1226 $content=$this->ir_mngr_get_heading_from_content("p",$PostContent,"10"); 1230 $content2=""; 1231 // echo htmlentities($PostContent)."<br>"; 1232 $content=$this->ir_mngr_get_heading_from_content("p",$PostContent,"50"); 1233 // echo htmlentities($content)."<br>"; 1227 1234 foreach (explode("-IR-",$content) as $key => $value) { 1228 1235 if($value!="" || $value!=" "){ 1236 $content2.=$value; 1237 // echo $value." ==1 <br>"; 1238 } 1239 } 1240 // echo $content2." ==2 <br>"; 1241 $content2 =preg_replace("/[^a-zA-Z0-9 ]+/", "", html_entity_decode($content2, ENT_QUOTES)); 1242 if(empty($content2)){ 1243 $content=$this->ir_mngr_get_heading_from_content("div",$PostContent,"50"); 1244 foreach (explode("-IR-",$content) as $key => $value) { 1229 1245 if(!empty($value)){ 1230 $content =$value;break;1246 $content=$value;break; 1231 1247 } 1232 1248 } 1233 if(empty($content)){ 1234 $content=$this->ir_mngr_get_heading_from_content("em",$PostContent,"1"); 1235 } 1236 return $content; 1249 $content2 =preg_replace("/[^a-zA-Z0-9 ]+/", "", html_entity_decode($content2, ENT_QUOTES)); 1250 if(empty($content2)){ 1251 $content=$this->ir_mngr_get_heading_from_content("span",$PostContent,"50"); 1252 foreach (explode("-IR-",$content) as $key => $value) { 1253 if(!empty($value)){ 1254 $content2=$value;break; 1255 } 1256 } 1257 } 1258 } 1259 @$content2=explode(".", strip_tags($PostContent)); 1260 return @preg_replace("/[^a-zA-Z0-9 ]+/", "", html_entity_decode($content2[1].$content2[2].$content2[3].$content2[4].$content2[5].$content2[6].$content2[7], ENT_QUOTES)); 1237 1261 } 1238 1262 function irmngr_post_90($postID,$postTitle,$postSubHeading,$postParagraph,$irmngrColor){ … … 1240 1264 $subheading_content_90=$postSubHeading; 1241 1265 $irmngr_fontfamily="font-family: Roboto,arial,sans-serif !important;"; 1242 $irmngr_main_content_90.='< ahref="'.get_permalink($postID).'">';1266 $irmngr_main_content_90.='< href="'.get_permalink($postID).'">'; 1243 1267 $irmngr_main_content_90.='<div class="irmngr_article_main_div">'; 1244 1268 $irmngr_main_content_90.='<div class="animate_fade_in irmngr_ads_title irmngr_font_size_150 irmngr_white_space_no_wrap irmngr_max_height_50 irmngr_text_align_left irmngr_ads_title_color irmngr_width_75 irmngr_padding_left_15 irmngr_padding_top_5">'; … … 1255 1279 $irmngr_main_content_90.='</div>'; 1256 1280 $irmngr_main_content_90.='</div>'; 1257 $irmngr_main_content_90.='</a> ';1281 $irmngr_main_content_90.='</a>'; 1258 1282 return $irmngr_main_content_90; 1259 1283 } … … 1261 1285 $irmngr_main_content_600=""; 1262 1286 $subheading_content_600=$postSubHeading; 1263 $irmngr_main_content_600.='< ahref="'.get_permalink($postID).'">';1287 $irmngr_main_content_600.='< href="'.get_permalink($postID).'">'; 1264 1288 $irmngr_main_content_600.='<div class="irmngr_article_main_div">'; 1265 $irmngr_main_content_600.='<div class="animate_fade_in irmngr_ ads_title irmngr_font_size_275 irmngr_max_height_35 irmngr_line_height_114 irmngr_text_align_left irmngr_ads_title_color irmngr_width_100 irmngr_padding_2">';1289 $irmngr_main_content_600.='<div class="animate_fade_in irmngr_ads_title irmngr_font_size_275 irmngr_max_height_35 irmngr_line_height_114 irmngr_text_align_left irmngr_ads_title_color irmngr_width_100 irmngr_padding_2">'; 1266 1290 $irmngr_main_content_600.=$postTitle; 1267 1291 $irmngr_main_content_600.='</div>'; … … 1276 1300 $irmngr_main_content_600.='</div>'; 1277 1301 $irmngr_main_content_600.='</div>'; 1278 $irmngr_main_content_600.='</a> ';1302 $irmngr_main_content_600.='</a>'; 1279 1303 return $irmngr_main_content_600; 1280 1304 } … … 1282 1306 $irmngr_main_content_600_2=""; 1283 1307 $subheading_content_600=$postSubHeading; 1284 $irmngr_main_content_600_2.='< ahref="'.get_permalink($postID).'">';1308 $irmngr_main_content_600_2.='< href="'.get_permalink($postID).'">'; 1285 1309 $irmngr_main_content_600_2.='<div class="irmngr_article_main_div">'; 1286 $irmngr_main_content_600_2.='<div class="animate_fade_in irmngr_ ads_title irmngr_font_size_275 irmngr_max_height_35 irmngr_line_height_114 irmngr_text_align_left irmngr_ads_title_color irmngr_width_100 irmngr_padding_2">';1310 $irmngr_main_content_600_2.='<div class="animate_fade_in irmngr_ads_title irmngr_font_size_275 irmngr_max_height_35 irmngr_line_height_114 irmngr_text_align_left irmngr_ads_title_color irmngr_width_100 irmngr_padding_2">'; 1287 1311 $irmngr_main_content_600_2.=$postTitle; 1288 1312 $irmngr_main_content_600_2.='</div>'; … … 1297 1321 $irmngr_main_content_600_2.='</div>'; 1298 1322 $irmngr_main_content_600_2.='</div>'; 1299 $irmngr_main_content_600_2.='</a> ';1323 $irmngr_main_content_600_2.='</a>'; 1300 1324 return $irmngr_main_content_600_2; 1301 1325 } … … 1303 1327 $irmngr_main_content_250=""; 1304 1328 $subheading_content_250=$postSubHeading; 1305 $irmngr_main_content_250.='< ahref="'.get_permalink($postID).'">';1329 $irmngr_main_content_250.='< href="'.get_permalink($postID).'">'; 1306 1330 $irmngr_main_content_250.='<div class="irmngr_article_main_div irmngr_min_height_280">'; 1307 1331 $irmngr_main_content_250.='<div class="animate_fade_in irmngr_ads_title irmngr_font_size_300 irmngr_white_space_no_wrap irmngr_max_height_50 irmngr_text_align_left irmngr_ads_title_color irmngr_width_100 irmngr_padding_left_15 irmngr_padding_top_5">'; … … 1318 1342 $irmngr_main_content_250.='</div>'; 1319 1343 $irmngr_main_content_250.='</div>'; 1320 $irmngr_main_content_250.='</a> ';1344 $irmngr_main_content_250.='</a>'; 1321 1345 return $irmngr_main_content_250; 1322 1346 } … … 1324 1348 $irmngr_main_content_250_2=""; 1325 1349 $subheading_content_250_2=$postSubHeading; 1326 $irmngr_main_content_250_2.='< ahref="'.get_permalink($postID).'">';1327 $irmngr_main_content_250_2.='<div class="irmngr_article_main_div irmngr_min_height_280">';1328 $irmngr_main_content_250_2.='<div class="animate_fade_in irmngr_ads_title irmngr_font_size_225 irmngr_white_space_no_wrap irmngr_max_height_50 irmngr_margin_left_auto irmngr_margin_right_auto irmngr_ads_title_color irmngr_width_100 irmngr_padding_5">';1350 $irmngr_main_content_250_2.='< href="'.get_permalink($postID).'">'; 1351 $irmngr_main_content_250_2.='<div class="irmngr_article_main_div irmngr_min_height_280">'; 1352 $irmngr_main_content_250_2.='<div ">'; 1329 1353 $irmngr_main_content_250_2.=$postTitle; 1330 1354 $irmngr_main_content_250_2.='</div>'; 1331 $irmngr_main_content_250_2.='<div class="animate_fade_in irmngr_ads_subheading4 irmngr_ads_heading_color" >';1355 $irmngr_main_content_250_2.='<div class="animate_fade_in irmngr_ads_subheading4 irmngr_ads_heading_color" >'; 1332 1356 $irmngr_main_content_250_2.=$subheading_content_250_2; 1333 1357 $irmngr_main_content_250_2.='</div>'; … … 1339 1363 $irmngr_main_content_250_2.='</div>'; 1340 1364 $irmngr_main_content_250_2.='</div>'; 1341 $irmngr_main_content_250_2.='</a> ';1365 $irmngr_main_content_250_2.='</a>'; 1342 1366 return $irmngr_main_content_250_2; 1343 1367 } … … 1345 1369 $irmngr_main_content_250=""; 1346 1370 $subheading_content_250=$postSubHeading; 1347 $irmngr_main_content_250.='< ahref="'.get_permalink($postID).'">';1371 $irmngr_main_content_250.='< href="'.get_permalink($postID).'">'; 1348 1372 $irmngr_main_content_250.='<div class="irmngr_article_main_div ">'; 1349 $irmngr_main_content_250.='<div style="padding :5%;" class="animate_fade_in irmngr_ads_title irmngr_font_size_300 irmngr_white_space_no_wrap irmngr_max_height_50 irmngr_text_align_left irmngr_ads_title_color irmngr_width_100 irmngr_padding_left_15 irmngr_padding_top_5">';1373 $irmngr_main_content_250.='<div style="padding:5%;" class="animate_fade_in irmngr_ads_title irmngr_font_size_300 irmngr_white_space_no_wrap irmngr_max_height_50 irmngr_text_align_left irmngr_ads_title_color irmngr_width_100 irmngr_padding_left_15 irmngr_padding_top_5">'; 1350 1374 $irmngr_main_content_250.=$postTitle; 1351 1375 $irmngr_main_content_250.='</div>'; … … 1353 1377 $irmngr_main_content_250.=$subheading_content_250; 1354 1378 $irmngr_main_content_250.='</div>'; 1355 $irmngr_main_content_250.='<div style="padding : 2%;" class="animate_fade_in irmngr_ads_paragraph" >';1379 $irmngr_main_content_250.='<div style="padding" >'; 1356 1380 $irmngr_main_content_250.=$postParagraph; 1357 1381 $irmngr_main_content_250.='</div>'; 1358 $irmngr_main_content_250.='<div class="animate_right_to_left" style="width: 32%; position: relative;height: auto;float: right;padding: 1%;">';1382 $irmngr_main_content_250.='<div class="animate_right_to_left" style="width: 32%;position: relative;height: auto;float: right;padding: 1%;">'; 1359 1383 $irmngr_main_content_250.='<div class="irmngr_button_7rem learn-more"><div class="circle '.$irmngrColor.'"><span class="icon arrow"></span></div><span class="button-text">Read More</span></div>'; 1360 1384 $irmngr_main_content_250.='</div>'; 1361 1385 $irmngr_main_content_250.='</div>'; 1362 $irmngr_main_content_250.='</a> ';1386 $irmngr_main_content_250.='</a>'; 1363 1387 return $irmngr_main_content_250; 1364 1388 } … … 1366 1390 $irmngr_main_content_250_2=""; 1367 1391 $subheading_content_250_2=$postSubHeading; 1368 $irmngr_main_content_250_2.='< ahref="'.get_permalink($postID).'">';1392 $irmngr_main_content_250_2.='< href="'.get_permalink($postID).'">'; 1369 1393 $irmngr_main_content_250_2.='<div class="irmngr_article_main_div irmngr_min_height_280">'; 1370 1394 $irmngr_main_content_250_2.='<div class="irmngr_article_title">'; … … 1381 1405 $irmngr_main_content_250_2.='</div>'; 1382 1406 $irmngr_main_content_250_2.='</div>'; 1383 $irmngr_main_content_250_2.='</a> ';1407 $irmngr_main_content_250_2.='</a>'; 1384 1408 return $irmngr_main_content_250_2; 1385 1409 } 1410 1411 1412 1413 1414 1415 1416 1417 1386 1418 } 1387 1419 -
ir-manager/trunk/irmngr_option.php
r2140847 r2141633 42 42 $ir_mngr = new Ir_mngr_Plugin_(); 43 43 $irmngrstatus= $ir_mngr->ir_mngr_admin_status(); 44 44 45 ?> 45 46 <?php include_once dirname(__FILE__) .'/ir_activate.php'; ?> … … 56 57 <div class="tooltip"> <span class="question_mark"> ? </span> 57 58 <span class="tooltiptext"> 58 Choose redirection to home page or custom url or block ads for violated url's. (Default: Ad block)59 . (Default: Ad block) 59 60 </span> 60 61 </div> 61 62 </th> 62 63 <td> 63 <span style="padding-right: 15px;"> 64 <span style="padding-right: 30px;"> 65 64 66 <input type="radio" name="ir_radio_button" id="ir_first_" value="redirect" <?php if($get_status=="block"):else: echo'checked'; endif; ?>> 65 <label for="ir_first_">Redirect </label> 67 <label for="ir_first_"> Redirect 68 <div style="margin-left: -0.8%;margin-top: 2px;" class="tooltip"> <span class="question_mark" style="font-weight: 700;"> ? </span> 69 <span class="tooltiptext"> 70 Redirect to 'homepage' or any specific 'URL'. (Default: Homepage) 71 </span> 72 </div> 73 </label> 74 66 75 </span> 67 76 <span style="padding-right: 15px;"> 68 77 <input type="radio" name="ir_radio_button" id="ir_second_" value="block" <?php if($get_status=="block"): echo'checked';endif; ?>> 69 <label for="ir_second_"> Ad Block</label> 78 <label for="ir_second_"> Ad Block 79 <div style="margin-left: -0.5%;margin-top: 2px;" class="tooltip"> <span class="question_mark" style="font-weight: 700;"> ? </span> 80 <span class="tooltiptext"> 81 Select to 'collapse ad' div or show your website 'article' in ad space. (Default: Show Article) 82 </span> 83 </div> 84 </label> 85 86 70 87 </span> 71 88 <input type="submit" id="ir_update_file_btn" name="ir_update_act_us_btn" style="float: right;" value="Save" class="btn_ button1"> … … 94 111 <label for="ir_collapse_ad_div">Collapse Ad</label> 95 112 </span> 96 <span style="padding-right: 15px;">113 <span style="padding-right: 5px;"> 97 114 <input type="radio" name="ir_ad_div" id="ir_latest_article_ad_div" value="latest_article_ad_div" <?php if($get_status_ad_div=="collapse_ad_div"):else: echo'checked';endif; ?>> 98 <label for="ir_latest_article_ad_div"> Show Article </label>115 <label for="ir_latest_article_ad_div"> Show Article </label> 99 116 </span> 100 117 <span style="padding-right: 15px; display: none;" id="ir_show_category"> 101 <label> Action</label> 102 <select name="irmngr_category" id=""> 103 <option value="by_tags" <?php if($get_status_ad_div=="by_tags"): echo'selected'; endif; ?>>By Tags</option> 104 <option value="by_category" <?php if($get_status_ad_div=="by_category"): echo'selected'; endif; ?>>By Category</option> 105 <option value="by_latest" <?php if($get_status_ad_div=="by_latest"): echo'selected'; endif; ?>>By Latest</option> 118 <select style="margin: 0px !important;" name="irmngr_category" id=""> 119 <option value="by_tags" <?php if($get_status_ad_div=="by_tags"): echo'selected'; endif; ?>>Tags</option> 120 <option value="by_category" <?php if($get_status_ad_div=="by_category"): echo'selected'; endif; ?>>Category</option> 121 <option value="by_latest" <?php if($get_status_ad_div=="by_latest"): echo'selected'; endif; ?>>Latest</option> 106 122 </select> 107 123 </span> … … 126 142 <div class="tooltip"> <span class="question_mark"> ? </span> 127 143 <span class="tooltiptext"> 128 Get and update url's having GG policy violations through IR database.(IR Manager will be clear violated url's cache for WP Fatest Cache, W3 Total Cache and WP Super Cache only for other cache plugins please do clear cache manually after update.) 144 'Update' violation URLs from IR database and purge your site's cache. 145 (It will purge cache automatically for WP Fatest Cache, W3 Total Cache and WP Super Cache. If you are using any other plugin kindly manually purge cache). 129 146 </span> 130 147 </div> … … 151 168 <table class="form-table" id="some-element2"> 152 169 <tr valign="top"> 153 <th scope="row"> Add Script Src170 <th scope="row"> 154 171 <div class="tooltip"> <span class="question_mark"> ? </span> 155 172 <span class="tooltiptext"> 156 Add desire advertisers DOMAIN.COM / SUB.DOMAIN.COM / *.DOMAIN.COM or URL to be prohibited for your website. (Default: Google) 173 Add desire DOMAIN.COM / SUB.DOMAIN.COM / *.DOMAIN.COM / URL to be prohibited on violation pages. 174 (Google Ads are blocked by default for registered plugin) 157 175 </span> 158 176 </div> 159 177 </th> 160 178 <td> 161 <input type="text" placeholder=" Type or Paste domain name or url which you want to prevent execute" name="ir_txt_webname" id="ir_txt_webname" style="min-width: 70%;">162 <input type="submit" id="add_deny_site_btn" name="add_deny_site_btn" value=" Deny" class="btn_ button2">179 <input type="text" placeholder="" name="ir_txt_webname" id="ir_txt_webname" style="min-width: 70%;"> 180 <input type="submit" id="add_deny_site_btn" name="add_deny_site_btn" value="" class="btn_ button2"> 163 181 </td> 164 182 <td></td> … … 167 185 </form> 168 186 <table class="form-table" id="some-element5"> 169 <tr valign="top"> 170 <th scope="row">Domains Denied 171 <div class="tooltip"> <span class="question_mark"> ? </span> 172 <span class="tooltiptext"> 173 Domains blocked for advertising. 174 </span> 175 </div> 176 </th> 177 </tr> 178 <tr> 179 <?php //include_once dirname(__FILE__) .'/ir_get_deny_site.php'; ?> 180 <td style="width: 100%;"> 181 <table id="ir_deny_data_show" class="table_ir"> 187 182 188 <?php 183 189 $meta = get_post_meta( 1 ); 184 190 $deny_site_content=""; 185 191 if(!empty($meta["irmngr_demand_src_user"])){ 192 193 194 195 196 197 198 199 200 201 202 203 204 205 186 206 foreach (@$meta["irmngr_demand_src_user"] as $key => $value) { 187 207 $deny_site_content.="<tr><form method='POST'>"; … … 191 211 $deny_site_content.="<td> <input type='hidden' id=".$domain_2." name='ir_txt_websites' value=".$domain_.">".$value." <span id='hardcoded-badge'></span> <input type='submit' name='btn_remove_deny_site' value='X' class='btn_remove_website' style='opacity:;'> </td></form></tr>"; 192 212 } 193 }?>213 ?> 194 214 <?php echo @$deny_site_content; ?> 215 195 216 </table> 196 217 </td> 197 218 </tr> 219 198 220 </table> 199 221 <div class="clearfix"></div> -
ir-manager/trunk/irmngr_option2.php
r2140847 r2141633 28 28 <table class="form-table" id="some-element"> 29 29 <tr valign="top"> 30 <th scope="row">Add Violat ed url30 <th scope="row">Add Violat 31 31 <div class="tooltip"> <span class="question_mark"> ? </span> 32 32 <span class="tooltiptext"> 33 Added url's will be prohibited executing (Demand Source's) ad scripts.33 . 34 34 </span> 35 35 </div> -
ir-manager/trunk/lib/css/irmngr_adsstyle.css
r2140847 r2141633 145 145 right: 0; 146 146 bottom: 0; 147 padding: 0.95rem 0;147 padding:rem 0; 148 148 margin: 0px 0 0 3.15rem; 149 149 color: #282936; … … 228 228 right: 0; 229 229 bottom: 0; 230 padding: 1.7rem 0;230 padding: rem 0; 231 231 margin: 0 0 0 5.15rem; 232 232 color: #282936; … … 292 292 } 293 293 294 294 .irmngr_title_{ 295 -webkit-line-clamp: 4; 296 display: -webkit-box; 297 -webkit-box-orient: vertical; 298 } 295 299 .irmngr_article_main_div{ 296 300 padding-left:2%;padding-right:2%;width:100%;height: 100%;background: rgba(255,255,255,1);position:relative; … … 416 420 width: 65%; 417 421 text-align: left; 418 padding: 4%; 422 padding-top: 9%; 423 padding-bottom: 9%; 419 424 white-space: nowrap; 420 425 text-overflow: ellipsis; … … 472 477 line-height: 145%; 473 478 font-size: 115%; 479 480 481 474 482 } 475 483 .irmngr_ads_paragraph4{ … … 480 488 padding-top: -120%; 481 489 text-align: left; 482 padding: 1.3%;490 483 491 padding-bottom: 0%; 484 492 text-overflow: ellipsis; … … 489 497 overflow: hidden; 490 498 height: 38%; 491 } 499 -webkit-line-clamp: 4; 500 display: -webkit-box; 501 -webkit-box-orient: vertical; 502 } 503 .irmngr_ads_paragraph5{ 504 font-family: Roboto,arial,sans-serif !important; 505 width: 65%; 506 position: relative; 507 float: left; 508 text-align: left; 509 margin-top: 4.5%; 510 text-overflow: ellipsis; 511 font-size: 100%; 512 padding-left: 1; 513 white-space: normal; 514 -webkit-line-clamp: 2; 515 display: -webkit-box; 516 -webkit-box-orient: vertical; 517 color: #828080; 518 overflow: hidden; 519 height: 20%; 520 } 521 .irmngr_link{ 522 text-decoration: none !important; 523 } 524 .irmngr_post_div{ 525 border: solid 1px rgb(209, 209, 209); 526 height: 100%; 527 position: relative; 528 width: 100%; 529 overflow: hidden; 530 } -
ir-manager/trunk/readme.txt
r2140847 r2141633 55 55 Yes but domain name is required. 56 56 57 58 59 60 61 62 63 64 57 65 = Version 1.0.0 = 58 66
Note: See TracChangeset
for help on using the changeset viewer.