Changeset 2329840
- Timestamp:
- 06/24/2020 10:04:58 AM (6 years ago)
- Location:
- magic-schema/trunk
- Files:
-
- 1 added
- 5 edited
-
MagicSchema.php (modified) (1 diff)
-
inc/functions.php (modified) (1 diff)
-
readme.txt (modified) (3 diffs)
-
screenshot-1.png (modified) (previous)
-
screenshot-3.png (modified) (previous)
-
screenshot-4.png (added)
Legend:
- Unmodified
- Added
- Removed
-
magic-schema/trunk/MagicSchema.php
r2307956 r2329840 2 2 /* 3 3 Plugin Name: Magic schema 4 Plugin URI: https:// www.instagram.com/korosh_abbasy/4 Plugin URI: https://packfeedback.com/ 5 5 Description: Plugin for displaying FAQ asked questions in WordPress 6 6 Author: korosh abbasy 7 7 Version: 1 8 Author URI: korosh abbasy | wordpress developer | programing (js,php,html,css,ajax,jquery) 8 Author URI: https://www.instagram.com/korosh_abbasy/ 9 TextDomain: Magic schema 9 10 */ 10 11 require_once 'inc/init.php'; -
magic-schema/trunk/inc/functions.php
r2307956 r2329840 94 94 } 95 95 add_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 114 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 } 143 add_action('admin_notices', 'magic_schema_notice'); 97 144 98 145 ?> -
magic-schema/trunk/readme.txt
r2307956 r2329840 3 3 Donate link: https://example.com/ 4 4 Tags: schema , seo , wordpress , FAQ 5 Requires at least: 5.4.16 Tested up to: 5.4. 17 Stable tag: 1 5 Requires at least: 4.0 6 Tested up to: 5.4.2 7 Stable tag: 1.0.1 8 8 Requires PHP: 7.0 9 9 License: GPLv2 or later … … 13 13 14 14 == Description == 15 15 16 This plugin is for displaying schema on the website . It currently has questions and answers (schema FAQ) 17 In the free version, the schema plugin does not work for pages 16 18 1- Install the plugin 17 19 2- A metabox is created 18 20 3- Create and save questions and answers 19 21 4- The question and answer schema is automatically displayed to Google 22 23 pro version : 20 24 25 In addition to the free version capabilities 26 1- Except displaying schema in search engines ، frequently Asked Questions on the Site 27 shows (by accordion) 28 2- The display feature is released on the pages 29 3- Ddisplay by short code [MS-FAQ title=''] 30 get pro : https://www.instagram.com/packfeedback/ 31 direct instagram 21 32 == Frequently Asked Questions == 22 33 23 34 = What to do after installation? = 24 35 25 1-In the admin, go to the sections ( text, tab, etc.) and find Metabox.36 1-In the admin, go to the sections (free version (all post type - pages),pro(all post type + pages)) and find Metabox. 26 37 2-Create and publish your own questions 27 38 … … 35 46 2. Display on page screenshot-2.png 36 47 3. Show answers on the page screenshot-3.png 48 4. rich test google screenshot-4.png 37 49 == Changelog === 38 = 1.0 =39 * prescription.50 = 1.0.1 = 51 * Professional version link added 40 52 == Upgrade Notice == 41 = 1.0 =53 = 1.0.1 = 42 54 The plugin has been updated 43 55 == A brief Markdown Example ==
Note: See TracChangeset
for help on using the changeset viewer.