Plugin Directory

Changeset 2329840


Ignore:
Timestamp:
06/24/2020 10:04:58 AM (6 years ago)
Author:
koroshabbasy
Message:

update magic schema

Location:
magic-schema/trunk
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • magic-schema/trunk/MagicSchema.php

    r2307956 r2329840  
    22/*
    33Plugin Name: Magic schema 
    4 Plugin URI: https://www.instagram.com/korosh_abbasy/
     4Plugin URI: https://packfeedback.com/
    55Description: Plugin for displaying FAQ asked questions in WordPress
    66Author: korosh abbasy
    77Version: 1
    8 Author URI: korosh abbasy | wordpress developer | programing (js,php,html,css,ajax,jquery)
     8Author URI: https://www.instagram.com/korosh_abbasy/   
     9TextDomain:  Magic schema
    910*/
    1011require_once 'inc/init.php';
  • magic-schema/trunk/inc/functions.php

    r2307956 r2329840  
    9494}
    9595add_filter( 'the_content', 'MagicSchema' ,99 );
     96function 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>
    96114
     115             </div>
     116          </div>
     117          <style>
     118
     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// }
     142}
     143add_action('admin_notices', 'magic_schema_notice');
    97144 
    98145?>
  • magic-schema/trunk/readme.txt

    r2307956 r2329840  
    33Donate link: https://example.com/
    44Tags: schema , seo , wordpress , FAQ
    5 Requires at least: 5.4.1
    6 Tested up to: 5.4.1
    7 Stable tag: 1
     5Requires at least: 4.0
     6Tested up to: 5.4.2
     7Stable tag: 1.0.1
    88Requires PHP: 7.0
    99License: GPLv2 or later
     
    1313
    1414== Description ==
     15
    1516This plugin is for displaying schema on the website . It currently has questions and answers (schema FAQ)
     17In the free version, the schema plugin does not work for pages
    16181- Install the plugin
    17192- A metabox is created
    18203- Create and save questions and answers
    19214- The question and answer schema is automatically displayed to Google
     22   
     23pro version :
    2024
     25In addition to the free version capabilities
     261- Except displaying schema in search engines  ، frequently Asked Questions on the Site
     27 shows (by accordion)
     282- The display feature is released on the pages
     293- Ddisplay by short code [MS-FAQ title=''] 
     30get pro : https://www.instagram.com/packfeedback/
     31direct instagram
    2132== Frequently Asked Questions ==
    2233
    2334= What to do after installation? =
    2435
    25 1-In the admin, go to the sections (text, tab, etc.) and find Metabox.
     361-In the admin, go to the sections (free version (all post type - pages),pro(all post type + pages)) and find Metabox.
    26372-Create and publish your own questions
    2738
     
    35462. Display on page screenshot-2.png
    36473. Show answers on the page screenshot-3.png
     484. rich test google  screenshot-4.png
    3749== Changelog === 
    38 = 1.0 =
    39 * prescription.
     50= 1.0.1 =
     51* Professional version link added
    4052== Upgrade Notice ==
    41 = 1.0 =
     53= 1.0.1 =
    4254The plugin has been updated
    4355== A brief Markdown Example ==
Note: See TracChangeset for help on using the changeset viewer.