Plugin Directory

Changeset 2900634


Ignore:
Timestamp:
04/18/2023 10:43:46 AM (3 years ago)
Author:
dmimag
Message:

Update v. 1.2.5

  • Add Schema.org/FAQPage
  • Fixed minor bugs
Location:
dmimag-faqs/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • dmimag-faqs/trunk/dmimag-faqs.php

    r2882977 r2900634  
    1515 * Plugin URI:        https://faqs.dmimag.site
    1616 * Description:       FAQs Plugin. FAQ. Accordion Style, Guide Style
    17  * Version:           1.2.4
     17 * Version:           1.2.5
    1818 * Author:            dmimag <support.plugins@dmimag.site>
    1919 * Author URI:        https://dmimag.site
     
    3434 * Rename this for your plugin and update it as you release new versions.
    3535 */
    36 define( 'DMIMAG_FAQS_VERSION', '1.2.4' );
     36define( 'DMIMAG_FAQS_VERSION', '1.2.5' );
    3737
    3838/**
  • dmimag-faqs/trunk/includes/class-dmimag-faqs-postbox.php

    r2882977 r2900634  
    148148
    149149            <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 title text', '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>
    152152            </div>
    153153
     
    164164          <div class="dmi-grid-col">
    165165            <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 content text', '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>
    168168            </div>
    169169            <div class="dmi-metabox-field dmi-grid-row">
     
    183183            <div class="dmi-metabox-field dmi-grid-row">
    184184              <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>
    186186              </div>
    187187            </div>
     
    266266    }
    267267?>
    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>
    269269<?php
    270270  }
  • dmimag-faqs/trunk/includes/class-dmimag-faqs.php

    r2882977 r2900634  
    6868      $this->version = DMIMAG_FAQS_VERSION;
    6969    } else {
    70       $this->version = '1.2.4';
     70      $this->version = '1.2.5';
    7171    }
    7272
  • dmimag-faqs/trunk/languages/dmimag-faqs.pot

    r2881005 r2900634  
    33msgstr ""
    44"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"
    66"PO-Revision-Date: 2023-03-15 09:46+0300\n"
    77"Last-Translator: \n"
     
    2323
    2424#: admin/class-dmimag-faqs-admin.php:127 admin/class-dmimag-faqs-admin.php:128
    25 #: includes/class-dmimag-faqs-postbox.php:286
    2625#: includes/class-dmimag-faqs-postbox.php:289
     26#: includes/class-dmimag-faqs-postbox.php:292
    2727msgid "Copy to Clipboard"
    2828msgstr ""
     
    157157
    158158#: includes/class-dmimag-faqs-postbox.php:150
    159 msgid "FAQ Title"
     159msgid "FAQ Question"
    160160msgstr ""
    161161
    162162#: includes/class-dmimag-faqs-postbox.php:151
    163 msgid "FAQ title text"
     163msgid "FAQ question text"
    164164msgstr ""
    165165
    166166#: includes/class-dmimag-faqs-postbox.php:166
    167 msgid "FAQ Content"
     167msgid "FAQ Answer"
    168168msgstr ""
    169169
    170170#: includes/class-dmimag-faqs-postbox.php:167
    171 msgid "FAQ content text"
     171msgid "FAQ answer text"
    172172msgstr ""
    173173
    174174#: includes/class-dmimag-faqs-postbox.php:185
    175 msgid "Remove FAQ"
     175msgid "Remove this question FAQ"
    176176msgstr ""
    177177
    178 #: includes/class-dmimag-faqs-postbox.php:265
    179 msgid "+ Add FAQ"
     178#: includes/class-dmimag-faqs-postbox.php:268
     179msgid "+ Add new question FAQ"
    180180msgstr ""
    181181
    182 #: includes/class-dmimag-faqs-postbox.php:284
     182#: includes/class-dmimag-faqs-postbox.php:287
    183183msgid "Shortcode:"
    184184msgstr ""
  • dmimag-faqs/trunk/public/class-dmimag-faqs-public.php

    r2881005 r2900634  
    6262   */
    6363  public function enqueue_styles() {
    64    
    6564    wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/dmimag-faqs-public.css', array(), $this->version, 'all' );
    66 
    6765  }
    6866
     
    7371   */
    7472  public function enqueue_scripts() {
    75    
    7673    wp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/dmimag-faqs-public.js', array( 'jquery' ), $this->version, 'in_footer' );
    77    
    7874  }
    7975 
     
    8783   
    8884    $faqs_row_class = 'dmi-faqs-row-accordion';
    89    
     85
    9086    if( isset( $atts['type'] ) && $atts['type'] == 'guide' ) {
    9187      $faqs_title = array();
     
    106102?>
    107103        <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">
    109105<?php
    110106        $i = '';
     
    119115              $i++;
    120116?>
    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" >
    123119<?php
    124120              if ( ! empty( $faq['faqtitle'] ) ) {
     
    128124                  $faqs_title[$i] = $faq['faqtitle'];
    129125                }
     126
    130127              }
    131128?>
    132129              </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">
    134132<?php
    135133              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 ) );
    137137              }
    138138?>
     139                </div>
    139140              </div>
    140141            </div>
     
    160161?>
    161162            </ul>
    162            
    163163          </div>
    164164<?php
  • dmimag-faqs/trunk/readme.txt

    r2882983 r2900634  
    22Contributors: dmimag
    33Donate link: https://faqs.dmimag.site
    4 Tags: faq, faqs, guide
     4Tags: faq plugin, wordpress faq, faq, faqs, guide, docs, question, answer, accordion
    55Requires at least: 6.0
    66Tested up to: 6.2
    77Requires PHP: 7.4
    8 Stable tag: 1.2.4
     8Stable tag: 1.2.5
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
    1111
    12 DmiMag FAQs - Easy Plugin Frequently Asked Questions (FAQ)
     12DmiMag FAQs - is a lightweight WordPress FAQ Plugin
    1313
    1414== Description ==
    1515
    16 DmiMag FAQs - Easy Plugin Frequently Asked Questions (FAQ).
    17 Call an unlimited number of your own FAQs or guides that fit into your website design.
     16DmiMag FAQs is a lightweight WordPress FAQ Plugin.
     17Create an unlimited number of FAQs or Docs (guides) that easily fit into your website design.
    1818
    1919[FAQ Demo](https://faqs.dmimag.site/#demo)
     
    2121= Key Features =
    2222
    23 * Create unlimited FAQs
    24 * Uses WYSIWYG editor
     23* Unlimited number of FAQs or Docs (guides)
     24* WYSIWYG editor use
    2525* 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
    2829
    2930== Installation ==
     
    4142
    4243== Changelog ==
     44
     45= 1.2.5 =
     46- Add Schema.org/FAQPage
     47- Fixed minor bugs
    4348
    4449= 1.2.4 =
Note: See TracChangeset for help on using the changeset viewer.