Plugin Directory

Changeset 2141633

Timestamp:
08/19/2019 04:03:54 AM (5 years ago)
Author:
increaserev
Message:

Version 1.0.2

  • Ad Div article layout has been optimize for web and AMP pages.
Location:
ir-manager/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • ir-manager/trunk/IRManager.php

    r2140978 r2141633  
    99if ( ! defined( 'ABSPATH' ) ) exit;
    1010function ir_mngr_initilize(){
    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         }
     11 if ( !is_admin())
     12         { 
     13include_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 }
    1717}
    1818function 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}
    2726function ir_mngr_footer(){
    28         if ( !is_admin())
    29          { 
    30             include_once  dirname(__FILE__) .'/ir-ads-block-func.php';
    31             $ir_mngr=new Ir_mngr_Plugin_();
    32             $ir_mngr->ir_mngr_filter($_SERVER['HTTP_HOST'].$_SERVER["REQUEST_URI"]);
    33             $ir_mngr->ir_mngr_get_latest_post();
    34         }
     27 if ( !is_admin())
     28         { 
     29include_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 }
    3534}
    3635function ir_mngr_amp_footer(){
    37         if ( !is_admin())
    38          { 
    39             include_once  dirname(__FILE__) .'/ir-ads-block-func.php';
    40             $ir_mngr=new Ir_mngr_Plugin_();
    41             $ir_mngr->ir_mngr_filter($_SERVER['HTTP_HOST'].$_SERVER["REQUEST_URI"]);
    42             $ir_mngr->ir_mngr_get_latest_post("amp");
    43         }
     36 if ( !is_admin())
     37         { 
     38include_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 }
    4443}
    4544function register_ir_mngr_settings() {
    46     register_setting( 'irmngr_form_act_us', 'ir_radio_button' );
    47     register_setting( 'irmngr_form_act_us', 'ir_radio_button_' );
    48     register_setting( 'irmngr_form_act_us', 'txt_url' );
    49     register_setting( 'irmngr_form_update', '' );
    50     register_setting( 'irmngr_form_amp', 'ir_amp_checbox' ); 
    51     register_setting( 'irmngr_form_add_src', 'ir_txt_webname' );
    52     register_setting( 'irmngr_form_add_violation', 'ir_violation_url' );
    53     register_setting( 'irmngr_form_activate', 'txt_activate_key' );
    54     register_setting( 'irmngr_form_activate', 'txt_domain' );
    55     register_setting( 'irmngr_ad_div', 'ir_ad_div' );
    56     register_setting( 'irmngr_ad_div', 'irmngr_category' );
     45register_setting( 'irmngr_form_act_us', 'ir_radio_button' );
     46register_setting( 'irmngr_form_act_us', 'ir_radio_button_' );
     47register_setting( 'irmngr_form_act_us', 'txt_url' );
     48register_setting( 'irmngr_form_update', '' );
     49register_setting( 'irmngr_form_amp', 'ir_amp_checbox' ); 
     50register_setting( 'irmngr_form_add_src', 'ir_txt_webname' );
     51register_setting( 'irmngr_form_add_violation', 'ir_violation_url' );
     52register_setting( 'irmngr_form_activate', 'txt_activate_key' );
     53register_setting( 'irmngr_form_activate', 'txt_domain' );
     54register_setting( 'irmngr_ad_div', 'ir_ad_div' );
     55register_setting( 'irmngr_ad_div', 'irmngr_category' );
    5756}
    5857function ir_mngr_adm_initilize(){
    59         include_once  dirname(__FILE__) .'/ir-ads-block-func.php';
    60             $ir_mngr=new Ir_mngr_Plugin_();
    61             $ir_mngr->ir_mngr_init($_SERVER['HTTP_HOST'].$_SERVER["REQUEST_URI"]);
    62             register_ir_mngr_settings();
     58include_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"]);
     61register_ir_mngr_settings();
    6362}
    6463add_action('wp_head', 'ir_mngr_initilize',0);
     
    6766class ir_mngr_cls_cache {
    6867     static function ir_mngr_install() {
    69             function ir_menage_emptyDir($dir) {
    70         if (is_dir($dir)) {
    71             $scn = scandir($dir);
    72                 foreach ($scn as $files) {
    73                     if ($files !== '.') {
    74                         if ($files !== '..') {
    75                             if (!is_dir($dir . '/' . $files)) {
    76                                 @unlink($dir . '/' . $files);
    77                             } else {
    78                                 ir_menage_emptyDir($dir . '/' . $files);
    79                                 @rmdir($dir . '/' . $files);
    80                             }
    81                         }
    82                     }
    83                 }
    84         }
    85     }
    86     $irmngr_dir = ABSPATH . 'wp-content/cache';
    87     ir_menage_emptyDir($irmngr_dir);
    88     $role = get_role( 'administrator' );
     68     function ir_menage_emptyDir($dir) {
     69if (is_dir($dir)) {
     70$scn = scandir($dir);
     71foreach ($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';
     86ir_menage_emptyDir($irmngr_dir);
     87$role = get_role( 'administrator' );
    8988    $role->add_cap( 'manage_options' );
    9089     }
     
    9291register_activation_hook( __FILE__, array( 'ir_mngr_cls_cache', 'ir_mngr_install' ) );
    9392function ir_mngr_delete_plgn(){
    94             include_once  dirname(__FILE__) .'/ir-ads-block-func.php';
    95             $ir_mngr=new Ir_mngr_Plugin_();
    96             $ir_mngr->ir_mngr_del_plgn();
     93include_once  dirname(__FILE__) .'/ir-ads-block-func.php';
     94$ir_mngr=new Ir_mngr_Plugin_();
     95$ir_mngr->ir_mngr_del_plgn();
    9796}
    9897register_uninstall_hook(__FILE__,"ir_mngr_delete_plgn");
    9998add_action( 'wp_footer', 'ir_mngr_footer', 100 );
    100 add_action( 'amp_post_template_footer', 'ir_mngr_amp_footer', 100 );
    101 
     99add_action( 'amp_post_template_footer', 'ir_mngr_amp_footer' ,200);
    102100function ir_mngr_add_style_and_script()
    103101{
    104     wp_enqueue_style('header-footer', plugin_dir_url( __FILE__) ."lib/css/style.css", array(), time());
     102wp_enqueue_style('header-footer', plugin_dir_url( __FILE__) ."lib/css/style.css", array(), time());
    105103        wp_enqueue_script('header-footer',plugin_dir_url( __FILE__) ."ir_script.js", array(), time());
    106104        wp_enqueue_style('header-footer',plugin_dir_url( __FILE__) ."lib/css/font-awesome.min.css", array(), time());
     
    109107add_action('admin_menu', 'ir_mngr_menu_pages');
    110108function ir_mngr_menu_pages(){
    111     if(current_user_can("administrator"))
    112     {
     109if(current_user_can("administrator"))
     110{
    113111    add_menu_page('Increase Rev', 'Increase Rev', 'editors', 'ir-mngr-menu', '', plugin_dir_url( __FILE__) ."lib/img/icon.png", 30 );
    114112    add_submenu_page('ir-mngr-menu', 'Increase Rev', 'Violations', 'administrator', 'ir-manager/irmngr_option2.php');
     
    116114    }
    117115}
    118 
    119 
    120116add_action('amp_post_template_css','ampforwp_add_custom_css_example', 11);
    121117function ampforwp_add_custom_css_example() { ?>
    122     .irmngr_golden{
     118 .irmngr_golden{
    123119    background:#DCAE1D;
    124120 }
     
    136132 }
    137133 .irmngr_article_main_div{
    138         padding-left: 2%;
    139     padding-right: 2%;
     134    %;
     135    padding-right: %;
    140136    width: 100%;
    141     min-height: 288px;
    142137    height: 100%;
    143     max-height: 288px;border: solid 1px rgb(209, 209, 209);
    144138    background: rgba(255,255,255,1);
    145139    position: relative;
    146     overflow: hidden;
     140  overflow: hidden;
    147141    }
    148142 .irmngr_article_title{
    149  font-size: 200%;
     143font-size: 200%;
    150144    white-space: nowrap;
    151145    padding-top: 5%;
     
    153147    margin-right: auto;
    154148    margin-left: auto;
    155     width: 100%;
     149    width: 0%;
    156150    max-height: 50%;
    157151    font-family: Roboto,arial,sans-serif;
     
    161155    height: auto;
    162156    font-weight: 450;
     157
    163158    word-break: break-word;
    164159    color: #4e4a4a;
    165160 }
    166161 .irmngr_article_subheading{
    167 font-family: Roboto,arial,sans-serif;
     162font-family: Roboto,arial,sans-serif;
    168163    position: relative;
    169164    height: auto;
    170165    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%;
    176170    white-space: nowrap;
    177171    text-overflow: ellipsis;
    178172    float: left;
    179173    overflow: hidden;
    180     font-size: 120%;
     174    font-size: 10%;
    181175    font-weight: 450;
    182176    color: #7d7b7b;
    183177}
    184178.irmngr_article_paragraph{
    185 font-family: Roboto,arial,sans-serif;
     179    color: #828080;
     180    font-family: Roboto,arial,sans-serif !important;
    186181    width: 60%;
    187182    position: relative;
    188183    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    ;
    196191    color: #828080;
    197192    overflow: hidden;
    198193    height: 38%;
     194
     195
     196
    199197
    200198.irmngr_article_button_div{
    201         width: 30%;
    202     position: relative;
    203     height: auto;
    204     float: left;
     199width: 30%;
     200    position: relative;
     201    height: auto;
     202    float: t;
    205203    padding: 1%;
    206     padding-top: 10%;
    207     padding-left: 5%;
    208204}
    209205.irmngr_button_round {
     
    250246    position: absolute;
    251247    content: "";
    252     top: -0.7rem;
    253     right: -1.5375rem;
     248    rem;
     249    right: -1.375rem;
    254250    width: 1.625rem;
    255251    height: 1.625rem;
     
    278274}
    279275.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{
     282border: 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{
     293padding-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{
     312color: #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
    283350}
    284351?>
  • ir-manager/trunk/ir-ads-block-func.php

    r2140847 r2141633  
    193193        return $csv;
    194194    }
     195
     196
     197
     198
     199
     200
     201
     202
     203
     204
     205
     206
     207
     208
     209
     210
     211
     212
     213
    195214    function ir_mngr_reports() {
    196215        @$filename = $this->ir_dir. '/reports/reports.csv';
     
    256275                .adsbygoogle{
    257276                    word-wrap: break-word !important;
    258                             border: solid 1px rgb(209, 209, 209);
    259277                    overflow:hidden !important;
    260278                     background:transparent;
     
    350368                         }
    351369                    }
    352              }
     370       }
    353371            endif;
    354372        }
     
    362380            $unsafe = "'unsafe-inline'";
    363381            $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 ";
    365383            $yes3 = "no";
    366384            $data = "";
     
    417435            {
    418436            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);
    420438            } </script> ';
    421             echo '<script> ir_function_block1(); </script>' ;
     439            echo '<script> ir_function_block1(); </script>' ;
    422440             }
    423441             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);}
    425443            </script>';
    426444           echo '<script>ir_function_block();</script>';
    427 
    428445        }
    429446        function ir_mngr_ads_block_2_amp($status){
     
    432449            $unsafe = "'unsafe-inline'";
    433450            $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 ";
    435452            $yes3 = "no";
    436453            $data = "";
     
    487504            {
    488505            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);
    490507            } </script> ';
    491508            echo '<script> ir_function_block_amp1(); </script>' ;
    492509             }else{
    493510             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);}
    495512            </script>';
    496513           echo '<script>ir_function_block_amp();</script>';
     
    556573                wp_enqueue_style('header-footer', plugin_dir_url( __FILE__) ."lib/css/irmngr_adsstyle.css", array(), time());
    557574                @$this->ir_mngr_hide();
     575
     576
    558577                @$this->ir_mngr_ads_block_2_amp($status);
     578
    559579            elseif (@$get_days_ == "homepage"):
    560580                @$this->ir_mngr_home_redirect();
     
    862882                    $url = $url2[0];
    863883                    $meta = get_post_meta( 1 );
     884
     885
    864886                    $yess="no";
    865887                    $all_meta_for_user = get_user_meta( 1 );
    866888                    $get_status_ad_div=$all_meta_for_user["irmngr_ad_div_status"][0];
    867                     @$amp_config = $this->ir_mngr_get_amp_config();
    868889                    if ($amp_config == "yes") { $url = str_replace("amp/", "", $url); }
    869890                    if(!empty($meta["irmngr_violation"])){
     
    890911                    @$irmngr_second_="no";@$irmngr_second_2="no";
    891912                    $irmngr_second_status="";
    892                        
    893913                            if($get_status_ad_div=="by_tags"){   
    894914                                $irmngr_CurrentPostTags=$this->ir_mngr_get_post_tags($irmngr_CurrentPostID);
     
    959979                            }
    960980                            $this->ir_mngr_remove_blank_ads();
    961                            
    962                        
     981                            $this->ir_mngr_remove_blank_ads_amp();
    963982                      }else{
    964983                        $this->ir_mngr_remove_blank_ads();
    965984                        $this->ir_mngr_remove_blank_ads_amp();
    966985                      }
    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>';
    974993                       endif;
    975994                    }
     
    980999                                $count="0";
    9811000                            }
    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)){
    9851007                                }else{
    986                                 array_push($postID,$post['ID']);
     1008                                array_push($postID,$post);
    9871009                                if($count_colour=="1"){
    9881010                                    $irmngr_color_class="irmngr_golden"; $count_colour="2";
     
    9981020                                    $irmngr_color_class="irmngr_golden"; $count_colour="1";
    9991021                                }
    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);
    10091034                                }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);
    10141038                              ?>
    10151039                             <script>
    10161040                            var irmngr_adsbygoogle = document.getElementsByClassName("adsbygoogle")[<?php echo $count; ?>];
    1017                             // if (irmngr_adsbygoogle.length > 0) {
     1041                            ) {
    10181042                                    var heights = irmngr_adsbygoogle.style.height;
    10191043                                        heights=heights.replace("px","");
     
    10251049                                    if(heights<="300" && maxwidths=="1200"){
    10261050                                        heights="0";maxwidths="0";
    1027                                         // console.log("1 <?php echo $post["post_title"] ?>");
    10281051                                        irmngr_adsbygoogle.innerHTML = '<?php echo $irmngr_main_content_250; ?>';
    10291052                                    }
    10301053                                    if(heights=="280" && maxwidths<="420" || heights=="280" && maxwidths<="970"){
    10311054                                         heights="0";maxwidths="0";
    1032                                          // console.log("2 <?php echo $post["post_title"] ?>");
    10331055                                        irmngr_adsbygoogle.innerHTML = '<?php echo $irmngr_main_content_250_2; ?>';
    10341056                                    }
    10351057                                    if(heights=="600" && maxwidths<="200"){
    10361058                                         heights="0";maxwidths="0";
    1037                                          // console.log("3 <?php echo $post["post_title"] ?>");
    10381059                                        irmngr_adsbygoogle.innerHTML = '<?php echo $irmngr_main_content_600_2; ?>';
    10391060                                    }
    10401061                                    if(heights=="600"){
    10411062                                         heights="0";maxwidths="0";
    1042                                          // console.log("4 <?php echo $post["post_title"] ?>");
    10431063                                        irmngr_adsbygoogle.innerHTML = '<?php echo $irmngr_main_content_600; ?>';
    10441064                                    }
    10451065                                    if(heights=="250"){
    10461066                                         heights="0";maxwidths="0";
    1047                                          // console.log("5 <?php echo $post["post_title"] ?>");
    10481067                                        irmngr_adsbygoogle.innerHTML = '<?php echo $irmngr_main_content_250; ?>';
    10491068                                    }
    10501069                                    if(heights=="90"){
    10511070                                         heights="0";maxwidths="0";
    1052                                          // console.log("6 <?php echo $post["post_title"] ?>");
    10531071                                        irmngr_adsbygoogle.innerHTML = '<?php echo $irmngr_main_content_90; ?>';
    10541072                                    }
    1055                                    
    10561073                                     if(heights=="100" && maxwidths=="420"){
    10571074                                         heights="0";maxwidths="0";
    1058                                          // console.log("8 <?php echo $post["post_title"] ?>");
    10591075                                        // irmngr_adsbygoogle.innerHTML = '<?php echo $irmngr_main_content_600_2; ?>';
    10601076                                    }
    1061 
    1062                                    
    10631077                                    if(heights!="0" && heights!="100"){
    10641078                                        heights="0";maxwidths="0";
    1065                                         // console.log("7 <?php echo $post["post_title"] ?>");
    10661079                                        irmngr_adsbygoogle.innerHTML = '<?php echo $irmngr_main_content_250_3; ?>';
    10671080                                    }
    1068                                    
    10691081                                     <?php  $count++; ?>
    10701082                                    if(!document.getElementsByClassName("adsbygoogle")['<?php echo $count; ?>']){
    1071                                      window.stop();
    10721083                                  }
    1073                             // }
     1084                            }
    10741085                             </script>
    10751086                             <?php
    1076                              if($stopforeach=="yes"){
    1077                                 break;
    1078                              }
    10791087                            }
    10801088                            }
     
    10911099                                $count="0";
    10921100                            }
     1101
    10931102                            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)){
    10961107                                }else{
    1097                                 array_push($postID,$post['ID']);
     1108                                array_push($postID,$post);
    10981109                                if($count_colour=="1"){
    10991110                                    $irmngr_color_class="irmngr_golden"; $count_colour="2";
     
    11091120                                    $irmngr_color_class="irmngr_golden"; $count_colour="1";
    11101121                                }                             
    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);
    11151126                                // $irmngr_main_content_250_2='<div style="background: red;width: 100%;min-height: 280px;height: 100%;max-height: 280px;display: inline-block;"></div>';
    11161127                              ?>
    1117                              <script>
     1128                             <script>
    11181129                            var irmngr_adsbygoogle = document.getElementsByTagName("amp-ad")[<?php echo $count; ?>];
    1119                             // if (irmngr_adsbygoogle.length > 0) {
     1130                            ) {
    11201131                                    var heights = irmngr_adsbygoogle.style.height;
    11211132                                        heights=heights.replace("px","");
     
    11241135                                    var maxwidths = irmngr_adsbygoogle.style.maxWidth;
    11251136                                        maxwidths=maxwidths.replace("px","");
    1126                                          heights="0";maxwidths="0";console.log("2");
     1137                                         heights="0";maxwidths="0";
    11271138                                         var newElement = document.createElement("irmngr");
    11281139                                        newElement.setAttribute('class', "irmngr_article");
    1129                                         // irmngr_adsbygoogle.innerHTML = '<?php echo $irmngr_main_content_250_2; ?>';
    11301140                                        irmngr_adsbygoogle.style.display = "none";
    11311141                                        newElement.innerHTML = '<?php echo $irmngr_main_content_250_2; ?>';
    11321142                                       irmngr_adsbygoogle.parentNode.appendChild(newElement);
    1133                                        
    11341143                                     <?php  $count++; ?>
    1135                                     if(!document.getElementsByTagName("amp-ad")['<?php echo $count; ?>']){
    1136                                      console.log("yes "); window.stop();
    1137                                   }
    1138                             // }
     1144                                 }
    11391145                             </script>
    11401146                             <?php
    1141                              if($stopforeach=="yes"){
    1142                                 break;
    1143                              }
    11441147                            }
    11451148                            }
     
    11511154                         return $IrmnggrArray;
    11521155                }
    1153                
    11541156                function ir_mngr_remove_blank_ads_amp(){
    11551157                    ?>
     
    11951197                     $tags_array=array();
    11961198                     $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                                }
    12011205                            }
    12021206                        }
     
    12211225                        }
    12221226                    }
    1223                     return $content;
     1227                    return ;
    12241228                }
    12251229                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>";
    12271234                    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) {
    12291245                        if(!empty($value)){
    1230                             $content=$value;break;
     1246                            $content=$value;break;
    12311247                        }
    12321248                    }
    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));
    12371261                }
    12381262                function irmngr_post_90($postID,$postTitle,$postSubHeading,$postParagraph,$irmngrColor){
     
    12401264                    $subheading_content_90=$postSubHeading;
    12411265                    $irmngr_fontfamily="font-family: Roboto,arial,sans-serif !important;";
    1242                     $irmngr_main_content_90.='<a href="'.get_permalink($postID).'">';
     1266                    $irmngr_main_content_90.='< href="'.get_permalink($postID).'">';
    12431267                    $irmngr_main_content_90.='<div class="irmngr_article_main_div">';
    12441268                    $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">';
     
    12551279                    $irmngr_main_content_90.='</div>';
    12561280                    $irmngr_main_content_90.='</div>';
    1257                     $irmngr_main_content_90.='</a>';
     1281                    $irmngr_main_content_90.='</a>';
    12581282                    return $irmngr_main_content_90;
    12591283                }
     
    12611285                    $irmngr_main_content_600="";
    12621286                    $subheading_content_600=$postSubHeading;
    1263                     $irmngr_main_content_600.='<a href="'.get_permalink($postID).'">';
     1287                    $irmngr_main_content_600.='< href="'.get_permalink($postID).'">';
    12641288                    $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">';
    12661290                    $irmngr_main_content_600.=$postTitle;
    12671291                    $irmngr_main_content_600.='</div>';
     
    12761300                    $irmngr_main_content_600.='</div>';
    12771301                    $irmngr_main_content_600.='</div>';
    1278                     $irmngr_main_content_600.='</a>';
     1302                    $irmngr_main_content_600.='</a>';
    12791303                    return $irmngr_main_content_600;
    12801304                }
     
    12821306                    $irmngr_main_content_600_2="";
    12831307                    $subheading_content_600=$postSubHeading;
    1284                     $irmngr_main_content_600_2.='<a href="'.get_permalink($postID).'">';
     1308                    $irmngr_main_content_600_2.='< href="'.get_permalink($postID).'">';
    12851309                    $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">';
    12871311                    $irmngr_main_content_600_2.=$postTitle;
    12881312                    $irmngr_main_content_600_2.='</div>';
     
    12971321                    $irmngr_main_content_600_2.='</div>';
    12981322                    $irmngr_main_content_600_2.='</div>';
    1299                     $irmngr_main_content_600_2.='</a>';
     1323                    $irmngr_main_content_600_2.='</a>';
    13001324                    return $irmngr_main_content_600_2;
    13011325                }
     
    13031327                    $irmngr_main_content_250="";               
    13041328                    $subheading_content_250=$postSubHeading;               
    1305                     $irmngr_main_content_250.='<a href="'.get_permalink($postID).'">';
     1329                    $irmngr_main_content_250.='< href="'.get_permalink($postID).'">';
    13061330                    $irmngr_main_content_250.='<div class="irmngr_article_main_div irmngr_min_height_280">';
    13071331                    $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">';
     
    13181342                    $irmngr_main_content_250.='</div>';
    13191343                    $irmngr_main_content_250.='</div>';
    1320                     $irmngr_main_content_250.='</a>';
     1344                    $irmngr_main_content_250.='</a>';
    13211345                    return $irmngr_main_content_250;
    13221346                }
     
    13241348                    $irmngr_main_content_250_2="";               
    13251349                    $subheading_content_250_2=$postSubHeading;                   
    1326                     $irmngr_main_content_250_2.='<a href="'.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 ">';
    13291353                    $irmngr_main_content_250_2.=$postTitle;
    13301354                    $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" >';
    13321356                    $irmngr_main_content_250_2.=$subheading_content_250_2;
    13331357                    $irmngr_main_content_250_2.='</div>';
     
    13391363                    $irmngr_main_content_250_2.='</div>';                               
    13401364                    $irmngr_main_content_250_2.='</div>';
    1341                     $irmngr_main_content_250_2.='</a>';
     1365                    $irmngr_main_content_250_2.='</a>';
    13421366                    return $irmngr_main_content_250_2;
    13431367                }
     
    13451369                    $irmngr_main_content_250="";               
    13461370                    $subheading_content_250=$postSubHeading;               
    1347                     $irmngr_main_content_250.='<a href="'.get_permalink($postID).'">';
     1371                    $irmngr_main_content_250.='< href="'.get_permalink($postID).'">';
    13481372                    $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">';
    13501374                    $irmngr_main_content_250.=$postTitle;
    13511375                    $irmngr_main_content_250.='</div>';
     
    13531377                    $irmngr_main_content_250.=$subheading_content_250;
    13541378                    $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" >';
    13561380                    $irmngr_main_content_250.=$postParagraph;
    13571381                    $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%;">';               
    13591383                    $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>';
    13601384                    $irmngr_main_content_250.='</div>';
    13611385                    $irmngr_main_content_250.='</div>';
    1362                     $irmngr_main_content_250.='</a>';
     1386                    $irmngr_main_content_250.='</a>';
    13631387                    return $irmngr_main_content_250;
    13641388                }
     
    13661390                    $irmngr_main_content_250_2="";               
    13671391                    $subheading_content_250_2=$postSubHeading;                   
    1368                     $irmngr_main_content_250_2.='<a href="'.get_permalink($postID).'">';
     1392                    $irmngr_main_content_250_2.='< href="'.get_permalink($postID).'">';
    13691393                    $irmngr_main_content_250_2.='<div class="irmngr_article_main_div irmngr_min_height_280">';
    13701394                    $irmngr_main_content_250_2.='<div class="irmngr_article_title">';
     
    13811405                    $irmngr_main_content_250_2.='</div>';                               
    13821406                    $irmngr_main_content_250_2.='</div>';
    1383                     $irmngr_main_content_250_2.='</a>';
     1407                    $irmngr_main_content_250_2.='</a>';
    13841408                    return $irmngr_main_content_250_2;
    13851409                }
     1410
     1411
     1412
     1413
     1414
     1415
     1416
     1417
    13861418            }
    13871419           
  • ir-manager/trunk/irmngr_option.php

    r2140847 r2141633  
    4242 $ir_mngr = new Ir_mngr_Plugin_();
    4343 $irmngrstatus= $ir_mngr->ir_mngr_admin_status();
     44
    4445  ?>   
    4546        <?php  include_once  dirname(__FILE__) .'/ir_activate.php'; ?>
     
    5657                                <div class="tooltip"> <span class="question_mark"> ? </span>
    5758                                <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)
    5960                                </span>
    6061                              </div>
    6162                          </th>
    6263                            <td>
    63                                 <span style="padding-right: 15px;">
     64                                <span style="padding-right: 30px;">
     65
    6466                                <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                                   
    6675                            </span>
    6776                            <span style="padding-right: 15px;">
    6877                                <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                                 
    7087                            </span>
    7188                                <input type="submit" id="ir_update_file_btn" name="ir_update_act_us_btn" style="float: right;" value="Save" class="btn_ button1">
     
    94111                                    <label for="ir_collapse_ad_div">Collapse Ad</label>
    95112                                </span>
    96                                 <span style="padding-right: 15px;">
     113                                <span style="padding-right: 5px;">
    97114                                    <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>
    99116                                </span>
    100117                                <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>
    106122                                </select>
    107123                            </span>
     
    126142                            <div class="tooltip"> <span class="question_mark"> ? </span>
    127143                                <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).
    129146                                </span>
    130147                              </div>
     
    151168                    <table class="form-table" id="some-element2">
    152169                        <tr valign="top">
    153                             <th scope="row">Add Script Src
     170                            <th scope="row">
    154171                                <div class="tooltip"> <span class="question_mark"> ? </span>
    155172                                <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)
    157175                                </span>
    158176                              </div>
    159177                            </th>
    160178                            <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">
    163181                            </td>
    164182                            <td></td>
     
    167185                    </form>
    168186                    <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                   
    182188                                <?php
    183189$meta = get_post_meta( 1 );
    184190$deny_site_content="";
    185191if(!empty($meta["irmngr_demand_src_user"])){
     192
     193
     194
     195
     196
     197
     198
     199
     200
     201
     202
     203
     204
     205
    186206  foreach (@$meta["irmngr_demand_src_user"] as $key => $value) {
    187207             $deny_site_content.="<tr><form method='POST'>";
     
    191211                        $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>";
    192212  }
    193 ?>
     213?>
    194214                                <?php echo @$deny_site_content; ?>
     215
    195216                            </table>
    196217                        </td>
    197218                    </tr>
     219
    198220                    </table>
    199221                    <div class="clearfix"></div>
  • ir-manager/trunk/irmngr_option2.php

    r2140847 r2141633  
    2828                    <table class="form-table" id="some-element">
    2929                        <tr valign="top">
    30                             <th scope="row">Add Violated url
     30                            <th scope="row">Add Violat
    3131                              <div class="tooltip"> <span class="question_mark"> ? </span>
    3232                                <span class="tooltiptext">
    33                                Added url's will be prohibited executing (Demand Source's) ad scripts.
     33                               .
    3434                                </span>
    3535                              </div>
  • ir-manager/trunk/lib/css/irmngr_adsstyle.css

    r2140847 r2141633  
    145145    right: 0;
    146146    bottom: 0;
    147     padding: 0.95rem 0;
     147    padding:rem 0;
    148148    margin: 0px 0 0 3.15rem;
    149149    color: #282936;
     
    228228    right: 0;
    229229    bottom: 0;
    230     padding: 1.7rem 0;
     230    padding: rem 0;
    231231    margin: 0 0 0 5.15rem;
    232232    color: #282936;
     
    292292}
    293293
    294 
     294.irmngr_title_{
     295  -webkit-line-clamp: 4;
     296                                display: -webkit-box;
     297                                -webkit-box-orient: vertical;
     298}
    295299.irmngr_article_main_div{
    296300                        padding-left:2%;padding-right:2%;width:100%;height: 100%;background: rgba(255,255,255,1);position:relative;
     
    416420                                width: 65%;
    417421                                text-align: left;
    418                                 padding: 4%;
     422                                padding-top: 9%;
     423                                padding-bottom: 9%;
    419424                                white-space: nowrap;
    420425                                text-overflow: ellipsis;
     
    472477                                line-height: 145%;
    473478                                font-size: 115%;
     479
     480
     481
    474482                            }
    475483                            .irmngr_ads_paragraph4{
     
    480488                                padding-top: -120%;
    481489                                text-align: left;
    482                                 padding: 1.3%;
     490                               
    483491                                padding-bottom: 0%;
    484492                                text-overflow: ellipsis;
     
    489497                                overflow: hidden;
    490498                                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  
    5555Yes but domain name is required.
    5656
     57
     58
     59
     60
     61
     62
     63
     64
    5765= Version 1.0.0 =
    5866
Note: See TracChangeset for help on using the changeset viewer.