Changeset 2900634
- Timestamp:
- 04/18/2023 10:43:46 AM (3 years ago)
- Location:
- dmimag-faqs/trunk
- Files:
-
- 6 edited
-
dmimag-faqs.php (modified) (2 diffs)
-
includes/class-dmimag-faqs-postbox.php (modified) (4 diffs)
-
includes/class-dmimag-faqs.php (modified) (1 diff)
-
languages/dmimag-faqs.pot (modified) (3 diffs)
-
public/class-dmimag-faqs-public.php (modified) (7 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dmimag-faqs/trunk/dmimag-faqs.php
r2882977 r2900634 15 15 * Plugin URI: https://faqs.dmimag.site 16 16 * Description: FAQs Plugin. FAQ. Accordion Style, Guide Style 17 * Version: 1.2. 417 * Version: 1.2.5 18 18 * Author: dmimag <support.plugins@dmimag.site> 19 19 * Author URI: https://dmimag.site … … 34 34 * Rename this for your plugin and update it as you release new versions. 35 35 */ 36 define( 'DMIMAG_FAQS_VERSION', '1.2. 4' );36 define( 'DMIMAG_FAQS_VERSION', '1.2.5' ); 37 37 38 38 /** -
dmimag-faqs/trunk/includes/class-dmimag-faqs-postbox.php
r2882977 r2900634 148 148 149 149 <div class="dmi-metabox-description dmi-grid-row"> 150 <h4 for="faqtitle"><?php _e( 'FAQ Title', 'dmimag-faqs' ); ?></h4>151 <span class="description"><?php _e( 'FAQ titletext', 'dmimag-faqs' ); ?></span>150 <h4 for="faqtitle"><?php _e( 'FAQ Question', 'dmimag-faqs' ); ?></h4> 151 <span class="description"><?php _e( 'FAQ question text', 'dmimag-faqs' ); ?></span> 152 152 </div> 153 153 … … 164 164 <div class="dmi-grid-col"> 165 165 <div class="dmi-metabox-description dmi-grid-row"> 166 <h4 for="faqcontent"><?php _e( 'FAQ Content', 'dmimag-faqs' ); ?></h4>167 <span class="description"><?php _e( 'FAQ contenttext', 'dmimag-faqs' ); ?></span>166 <h4 for="faqcontent"><?php _e( 'FAQ Answer', 'dmimag-faqs' ); ?></h4> 167 <span class="description"><?php _e( 'FAQ answer text', 'dmimag-faqs' ); ?></span> 168 168 </div> 169 169 <div class="dmi-metabox-field dmi-grid-row"> … … 183 183 <div class="dmi-metabox-field dmi-grid-row"> 184 184 <div class="dmi-field dmi-grid-col"> 185 <button type="button" class="button button-primary dmimag-faqs-button-remove"><?php _e( 'Remove FAQ', 'dmimag-faqs' ); ?></button>185 <button type="button" class="button button-primary dmimag-faqs-button-remove"><?php _e( 'Remove this question FAQ', 'dmimag-faqs' ); ?></button> 186 186 </div> 187 187 </div> … … 266 266 } 267 267 ?> 268 <button type="button" class="button button-primary dmimag-faqs-button-add"><?php _e( '+ Add FAQ', 'dmimag-faqs' ); ?></button>268 <button type="button" class="button button-primary dmimag-faqs-button-add"><?php _e( '+ Add new question FAQ', 'dmimag-faqs' ); ?></button> 269 269 <?php 270 270 } -
dmimag-faqs/trunk/includes/class-dmimag-faqs.php
r2882977 r2900634 68 68 $this->version = DMIMAG_FAQS_VERSION; 69 69 } else { 70 $this->version = '1.2. 4';70 $this->version = '1.2.5'; 71 71 } 72 72 -
dmimag-faqs/trunk/languages/dmimag-faqs.pot
r2881005 r2900634 3 3 msgstr "" 4 4 "Project-Id-Version: dmimag-faqs\n" 5 "POT-Creation-Date: 2023-03- 15 09:46+0300\n"5 "POT-Creation-Date: 2023-03-20 22:29+0300\n" 6 6 "PO-Revision-Date: 2023-03-15 09:46+0300\n" 7 7 "Last-Translator: \n" … … 23 23 24 24 #: admin/class-dmimag-faqs-admin.php:127 admin/class-dmimag-faqs-admin.php:128 25 #: includes/class-dmimag-faqs-postbox.php:28626 25 #: includes/class-dmimag-faqs-postbox.php:289 26 #: includes/class-dmimag-faqs-postbox.php:292 27 27 msgid "Copy to Clipboard" 28 28 msgstr "" … … 157 157 158 158 #: includes/class-dmimag-faqs-postbox.php:150 159 msgid "FAQ Title"159 msgid "FAQ Question" 160 160 msgstr "" 161 161 162 162 #: includes/class-dmimag-faqs-postbox.php:151 163 msgid "FAQ titletext"163 msgid "FAQ question text" 164 164 msgstr "" 165 165 166 166 #: includes/class-dmimag-faqs-postbox.php:166 167 msgid "FAQ Content"167 msgid "FAQ Answer" 168 168 msgstr "" 169 169 170 170 #: includes/class-dmimag-faqs-postbox.php:167 171 msgid "FAQ contenttext"171 msgid "FAQ answer text" 172 172 msgstr "" 173 173 174 174 #: includes/class-dmimag-faqs-postbox.php:185 175 msgid "Remove FAQ"175 msgid "Remove this question FAQ" 176 176 msgstr "" 177 177 178 #: includes/class-dmimag-faqs-postbox.php:26 5179 msgid "+ Add FAQ"178 #: includes/class-dmimag-faqs-postbox.php:268 179 msgid "+ Add new question FAQ" 180 180 msgstr "" 181 181 182 #: includes/class-dmimag-faqs-postbox.php:28 4182 #: includes/class-dmimag-faqs-postbox.php:287 183 183 msgid "Shortcode:" 184 184 msgstr "" -
dmimag-faqs/trunk/public/class-dmimag-faqs-public.php
r2881005 r2900634 62 62 */ 63 63 public function enqueue_styles() { 64 65 64 wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/dmimag-faqs-public.css', array(), $this->version, 'all' ); 66 67 65 } 68 66 … … 73 71 */ 74 72 public function enqueue_scripts() { 75 76 73 wp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/dmimag-faqs-public.js', array( 'jquery' ), $this->version, 'in_footer' ); 77 78 74 } 79 75 … … 87 83 88 84 $faqs_row_class = 'dmi-faqs-row-accordion'; 89 85 90 86 if( isset( $atts['type'] ) && $atts['type'] == 'guide' ) { 91 87 $faqs_title = array(); … … 106 102 ?> 107 103 <div class="dmi-faqs-row <?php echo sanitize_html_class( $faqs_row_class ); ?>"> 108 <div class="dmi-faqs-col dmi-faqs-col-content">104 <div itemscope itemtype="https://schema.org/FAQPage" class="dmi-faqs-col dmi-faqs-col-content"> 109 105 <?php 110 106 $i = ''; … … 119 115 $i++; 120 116 ?> 121 <div <?php if( isset( $atts['type'] ) && $atts['type'] == 'guide' ) { ?>id="faq-<?php echo esc_attr( $i ); ?>" <?php } ?>class="dmi-faq">122 <div class="dmi-faq-title">117 <div itemscope itemprop="mainEntity" itemtype="https://schema.org/Question" <?php if( isset( $atts['type'] ) && $atts['type'] == 'guide' ) { ?>id="faq-<?php echo esc_attr( $i ); ?>" <?php } ?>class="dmi-faq"> 118 <div itemprop="name" class="dmi-faq-title" > 123 119 <?php 124 120 if ( ! empty( $faq['faqtitle'] ) ) { … … 128 124 $faqs_title[$i] = $faq['faqtitle']; 129 125 } 126 130 127 } 131 128 ?> 132 129 </div> 133 <div class="dmi-faq-content"> 130 <div itemscope itemprop="acceptedAnswer" itemtype="https://schema.org/Answer" class="dmi-faq-content"> 131 <div itemprop="text"> 134 132 <?php 135 133 if ( ! empty( $faq['faqcontent'] ) ) { 136 echo apply_filters( 'the_content', wp_kses_post( $faq['faqcontent'] ) ); 134 $regex = get_shortcode_regex( array( 'dmimag-faqs' ) ); 135 $content = preg_replace( "/$regex/", '', $faq['faqcontent'] ); 136 echo apply_filters( 'the_content', wp_kses_post( $content ) ); 137 137 } 138 138 ?> 139 </div> 139 140 </div> 140 141 </div> … … 160 161 ?> 161 162 </ul> 162 163 163 </div> 164 164 <?php -
dmimag-faqs/trunk/readme.txt
r2882983 r2900634 2 2 Contributors: dmimag 3 3 Donate link: https://faqs.dmimag.site 4 Tags: faq , faqs, guide4 Tags: faq plugin, wordpress faq, faq, faqs, guide, docs, question, answer, accordion 5 5 Requires at least: 6.0 6 6 Tested up to: 6.2 7 7 Requires PHP: 7.4 8 Stable tag: 1.2. 48 Stable tag: 1.2.5 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html 11 11 12 DmiMag FAQs - Easy Plugin Frequently Asked Questions (FAQ)12 DmiMag FAQs - is a lightweight WordPress FAQ Plugin 13 13 14 14 == Description == 15 15 16 DmiMag FAQs - Easy Plugin Frequently Asked Questions (FAQ).17 C all an unlimited number of your own FAQs or guides thatfit into your website design.16 DmiMag FAQs is a lightweight WordPress FAQ Plugin. 17 Create an unlimited number of FAQs or Docs (guides) that easily fit into your website design. 18 18 19 19 [FAQ Demo](https://faqs.dmimag.site/#demo) … … 21 21 = Key Features = 22 22 23 * Create unlimited FAQs24 * Uses WYSIWYG editor23 * Unlimited number of FAQs or Docs (guides) 24 * WYSIWYG editor use 25 25 * Automatically generated shortcodes 26 * Easily fits into the site design 27 * Ordering and sorting FAQ 26 * Easy to integrate into website design 27 * FAQ Question sorting 28 * Schema.org (https://schema.org/FAQPage) support 28 29 29 30 == Installation == … … 41 42 42 43 == Changelog == 44 45 = 1.2.5 = 46 - Add Schema.org/FAQPage 47 - Fixed minor bugs 43 48 44 49 = 1.2.4 =
Note: See TracChangeset
for help on using the changeset viewer.