Plugin Directory

Changeset 2392501


Ignore:
Timestamp:
10/02/2020 05:48:57 PM (6 years ago)
Author:
koroshabbasy
Message:

thanks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • magic-schema/trunk/inc/functions.php

    r2329840 r2392501  
    9494}
    9595add_filter( 'the_content', 'MagicSchema' ,99 );
    96 function magic_schema_notice(){
    97     global $pagenow;
    98     // if ( $pagenow == 'index.php' ) {
    99     $user = wp_get_current_user();
    100     $allowed_roles = array('editor', 'administrator', 'author');
    101     if (  array_intersect($allowed_roles, $user->roles ) ) {
    102     echo  "<div class='notice notice-info is-dismissible'>
    103              <div class='magic-schema-notice'>
    104               <h1> Magic Schema pro </h1>
    105                 <ul>
    106                     <li>Except displaying schema in search engines  ، frequently Asked Questions on the Site
    107              shows (by accordion)</li>
    108                     <li>The display feature is released on the pages (Supports all post types)</li>
    109                     <li>Ddisplay by short code [MS-FAQ title='']  </li>
    110                 </ul>
    111               <a target='_blank' href='https://www.instagram.com/packfeedback/' class='para-magic-schema-link'>go to <span>pro version </span> </a>
    112               <p> Send your message direct (instagram)  @packfeedback 
    113               <span class='Price-magic'>Price : <i>$13</i></span> </p>
     96// function magic_schema_notice(){
     97//     global $pagenow;
     98//     // if ( $pagenow == 'index.php' ) {
     99//     $user = wp_get_current_user();
     100// $allowed_roles = array('editor', 'administrator', 'author');
     101//     if (  array_intersect($allowed_roles, $user->roles ) ) {
     102//     echo  "<div class='notice notice-info is-dismissible'>
     103//           <div class='magic-schema-notice'>
     104//            <h1> Magic Schema pro </h1>
     105//              <ul>
     106//                  <li>Except displaying schema in search engines  ، frequently Asked Questions on the Site
     107//           shows (by accordion)</li>
     108//                  <li>The display feature is released on the pages (Supports all post types)</li>
     109//                  <li>Ddisplay by short code [MS-FAQ title='']  </li>
     110//              </ul>
     111//            <a target='_blank' href='https://www.instagram.com/packfeedback/' class='para-magic-schema-link'>go to <span>pro version </span> </a>
     112//            <p> Send your message direct (instagram)  @packfeedback 
     113//            <span class='Price-magic'>Price : <i>$13</i></span> </p>
    114114
    115              </div>
    116           </div>
    117           <style>
     115//           </div>
     116//           </div>
     117//           <style>
    118118
    119             .magic-schema-notice {
    120                 direction: ltr;
    121             }.magic-schema-notice ul li {
    122                 list-style: inside;
    123             }
    124             a.para-magic-schema-link {
    125                 background: rgb(253,216,53);
    126                 display: inline-block;
    127                 width: auto;
    128                 padding: 10px;
    129                 color: #000;
    130                 margin: 0;
    131                 font-size: 1.3em;border-radius: 3px;    font-weight: bold;
    132             }a.para-magic-schema-link a {
    133                 color: rgb(3,169,244);
    134             }span.Price-magic {
    135                 border: 1px solid;
    136                 padding: 6px;
    137                 color: rgb(102,187,106);border-radius: 5px;
    138             }
    139           </style>";
    140     }
     119//          .magic-schema-notice {
     120//              direction: ltr;
     121//          }.magic-schema-notice ul li {
     122//              list-style: inside;
     123//          }
     124//          a.para-magic-schema-link {
     125//              background: rgb(253,216,53);
     126//              display: inline-block;
     127//              width: auto;
     128//              padding: 10px;
     129//              color: #000;
     130//              margin: 0;
     131//              font-size: 1.3em;border-radius: 3px;    font-weight: bold;
     132//          }a.para-magic-schema-link a {
     133//              color: rgb(3,169,244);
     134//          }span.Price-magic {
     135//              border: 1px solid;
     136//              padding: 6px;
     137//              color: rgb(102,187,106);border-radius: 5px;
     138//          }
     139//           </style>";
     140//     }
     141// // }
    141142// }
    142 }
    143 add_action('admin_notices', 'magic_schema_notice');
     143// add_action('admin_notices', 'magic_schema_notice');
    144144 
    145145?>
Note: See TracChangeset for help on using the changeset viewer.