| @@ -88,12 +88,19 @@ | ||
| 88 | 88 | |
| 89 | 89 | |
| 90 | 90 | // Fields labels | End |
| 91 | 91 | |
| 92 | +$show_cat_title = isset($options['show_cat_title']) && $options['show_cat_title'] == 'on' ? 'checked' : ''; | |
| 93 | + | |
| 94 | + | |
| 92 | 95 | // General CSS File |
| 93 | 96 | $options['poll_exclude_general_css'] = isset($options['poll_exclude_general_css']) ? esc_attr( $options['poll_exclude_general_css'] ) : 'off'; |
| 94 | 97 | $poll_exclude_general_css = (isset($options['poll_exclude_general_css']) && esc_attr( $options['poll_exclude_general_css'] ) == "on") ? true : false; |
| 95 | 98 | |
| 99 | +// Menu notifications | |
| 100 | +$options['poll_disable_poll_menu_notification'] = isset($options['poll_disable_poll_menu_notification']) ? esc_attr( $options['poll_disable_poll_menu_notification'] ) : 'off'; | |
| 101 | +$poll_disable_poll_menu_notification = (isset($options['poll_disable_poll_menu_notification']) && esc_attr( $options['poll_disable_poll_menu_notification'] ) == "on") ? true : false; | |
| 102 | + | |
| 96 | 103 | // WP Editor height |
| 97 | 104 | $poll_wp_editor_height = (isset($options['poll_wp_editor_height']) && $options['poll_wp_editor_height'] != '' && $options['poll_wp_editor_height'] != 0) ? absint( sanitize_text_field($options['poll_wp_editor_height']) ) : 50 ; |
| 98 | 105 | |
| 99 | 106 | ?> |
| @@ -421,8 +428,28 @@ | ||
| 421 | 428 | </fieldset> <!-- Exclude General CSS --> |
| 422 | 429 | <hr> |
| 423 | 430 | <fieldset> |
| 424 | 431 | <legend> |
| 432 | + <strong style="font-size:30px;"><i class="ays_poll_fas ays_fa_bell"></i></strong> | |
| 433 | + <h5><?php echo esc_html__('Menu notifications', "poll-maker"); ?></h5> | |
| 434 | + </legend> | |
| 435 | + <div class="form-group row"> | |
| 436 | + <div class="col-sm-4"> | |
| 437 | + <label for="ays_poll_disable_poll_menu_notification"> | |
| 438 | + <?php echo esc_html__( "Disable Poll maker menu item notification", "poll-maker" ); ?> | |
| 439 | + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_attr__( 'Enable this option and the notifications will not be displayed in the Poll Maker menu.', "poll-maker" ); ?>"> | |
| 440 | + <i class="ays_poll_fas ays_poll_fa-info-circle"></i> | |
| 441 | + </a> | |
| 442 | + </label> | |
| 443 | + </div> | |
| 444 | + <div class="col-sm-8"> | |
| 445 | + <input type="checkbox" name="ays_poll_disable_poll_menu_notification" id="ays_poll_disable_poll_menu_notification" value="on" <?php echo $poll_disable_poll_menu_notification ? 'checked' : ''; ?>> | |
| 446 | + </div> | |
| 447 | + </div> | |
| 448 | + </fieldset> <!-- Menu notifications --> | |
| 449 | + <hr> | |
| 450 | + <fieldset> | |
| 451 | + <legend> | |
| 425 | 452 | <strong style="font-size:30px;"><i class="ays_poll_fa ays_poll_fa_globe"></i></strong> |
| 426 | 453 | <h5><?php echo esc_html__('Who will have permission to Poll menu', "poll-maker")?></h5> |
| 427 | 454 | </legend> |
| 428 | 455 | <div class="form-group row" style="margin: 0px;"> |
| @@ -1522,67 +1549,96 @@ | ||
| 1522 | 1549 | <hr> |
| 1523 | 1550 | <fieldset> |
| 1524 | 1551 | <legend> |
| 1525 | 1552 | <strong style="font-size:30px;"><i class="ays_fa ays_poll_fa-list"></i></strong> |
| 1526 | - <h5><?php echo esc_html__('Poll Categories', "poll-maker")?></h5> | |
| 1527 | - </legend> | |
| 1528 | - <div class="form-group row" style="margin: 0px;"> | |
| 1529 | - <div class="col-sm-12 only_pro" style="padding:10px;"> | |
| 1530 | - <div class="pro_features pro_features_popup"> | |
| 1531 | - <div class="pro-features-popup-conteiner"> | |
| 1532 | - <div class="pro-features-popup-title"> | |
| 1533 | - <?php echo esc_html__("Poll Categories", "poll-maker"); ?> | |
| 1534 | - </div> | |
| 1535 | - <div class="pro-features-popup-content" data-link="https://youtu.be/FQRFaszwTho"> | |
| 1536 | - <p> | |
| 1537 | - <?php echo esc_html__("Display all the polls of your desired category on one page with the Poll Categories Shortcode of the plugin.", "poll-maker"); ?> | |
| 1538 | - </p> | |
| 1539 | - <p> | |
| 1540 | - <?php echo esc_html__("By doing so, you will surely boost your website engagement and get instant feedback from poll takers.", "poll-maker"); ?> | |
| 1541 | - </p> | |
| 1542 | - </div> | |
| 1543 | - <div class="pro-features-popup-button" data-link="https://ays-pro.com/wordpress/poll-maker?utm_source=dashboard&utm_medium=poll-free&utm_campaign=pro-popup-poll-categories-<?php echo esc_attr( POLL_MAKER_AYS_VERSION ); ?>"> | |
| 1544 | - <?php echo esc_html__("Pricing", "poll-maker"); ?> | |
| 1545 | - </div> | |
| 1546 | - </div> | |
| 1547 | - </div> | |
| 1548 | - <div class="pro_features" style="justify-content:flex-end;"> | |
| 1549 | - </div> | |
| 1550 | - <blockquote> | |
| 1551 | - <p style="margin:0;"><?php echo esc_html__( "Paste the shortcode into any of your posts to show all/random polls from the given category by list/grid view.", "poll-maker" ); ?></p> | |
| 1552 | - </blockquote> | |
| 1553 | - <hr/> | |
| 1554 | - <div class="form-group row"> | |
| 1555 | - <div class="col-sm-4"> | |
| 1556 | - <label for="ays_invidLead"> | |
| 1557 | - <?php echo esc_html__( "Poll category shortcode", "poll-maker" ); ?> | |
| 1558 | - <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo esc_html__('Copy the following shortcode, configure it based on your preferences and paste it into the post. Put the shortcode of your preferred category, choose the method of displaying (all/random), and the design of the layout(list/grid). If you set the method as All, it will show all polls from the given category, if you set the method as Random, please give a value to count option too, and it will randomly display that given amount of polls from the given category.', "poll-maker")?>"> | |
| 1559 | - <i class="ays_poll_fas ays_poll_fa-info-circle"></i> | |
| 1560 | - </a> | |
| 1561 | - </label> | |
| 1562 | - </div> | |
| 1563 | - <div class="col-sm-8"> | |
| 1564 | - <input type="text" class="ays-text-input" onclick="this.setSelectionRange(0, this.value.length)" readonly="" value='[ays_poll_cat id="Your Poll Cat ID" display="all/random" count="5" layout="list/grid"]'> | |
| 1565 | - </div> | |
| 1566 | - </div> | |
| 1567 | - <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link"> | |
| 1568 | - <div class="ays-poll-new-upgrade-button-box"> | |
| 1569 | - <div> | |
| 1570 | - <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>"> | |
| 1571 | - <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover"> | |
| 1572 | - </div> | |
| 1573 | - <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div> | |
| 1574 | - </div> | |
| 1575 | - </a> | |
| 1576 | - <div class="ays-poll-new-watch-video-button-box"> | |
| 1577 | - <div> | |
| 1578 | - <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/video_24x24.svg'?>"> | |
| 1579 | - <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/video_24x24_hover.svg'?>" class="ays-poll-new-watch-video-button-hover"> | |
| 1580 | - </div> | |
| 1581 | - <div class="ays-poll-new-watch-video-button"><?php echo esc_html__("Watch Video", "poll-maker"); ?></div> | |
| 1582 | - </div> | |
| 1553 | + <h5><?php echo __('Poll Categories',"poll-maker")?></h5> | |
| 1554 | + </legend> | |
| 1555 | + <div class="form-group row"> | |
| 1556 | + <div class="col-sm-4"> | |
| 1557 | + <label for="ays_invidLead"> | |
| 1558 | + <?php echo __( "Poll category shortcode", "poll-maker" ); ?> | |
| 1559 | + <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Copy the following shortcode, configure it based on your preferences and paste it into the post. Put the shortcode of your preferred category, choose the method of displaying (all/random), and the design of the layout(list/grid). If you set the method as All, it will show all polls from the given category, if you set the method as Random, please give a value to count option too, and it will randomly display that given amount of polls from the given category.',"poll-maker")?>"> | |
| 1560 | + <i class="ays_poll_fas ays_poll_fa-info-circle"></i> | |
| 1561 | + </a> | |
| 1562 | + </label> | |
| 1583 | 1563 | </div> |
| 1564 | + <hr/> | |
| 1565 | + <div class="col-sm-8"> | |
| 1566 | + <input type="text" id="ays_invidLead" class="ays-text-input" onclick="this.setSelectionRange(0, this.value.length)" readonly="" value='[ays_poll_cat id="Your_Poll_Cat_ID" display="all" count="5" layout="list" sorting="date_asc"]'> | |
| 1567 | + </div> | |
| 1584 | 1568 | </div> |
| 1569 | + <hr/> | |
| 1570 | + <div class="form-group row"> | |
| 1571 | + <div class="col-sm-4"> | |
| 1572 | + <label for='cat_show_title'> | |
| 1573 | + <?= __('Show category title', "poll-maker"); ?> | |
| 1574 | + <a class="ays_help" | |
| 1575 | + data-toggle="tooltip" | |
| 1576 | + data-placement="top" | |
| 1577 | + title="<?= __("Show or hide the name of the category poll", "poll-maker"); ?>"> | |
| 1578 | + <i class="ays_poll_fas ays_poll_fa-info-circle"></i> | |
| 1579 | + </a></label> | |
| 1580 | + </div> | |
| 1581 | + <div class="col-sm-8"> | |
| 1582 | + <input type="checkbox" name="ays_poll_show_cat_title" id="cat_show_title" | |
| 1583 | + value="on" <?= $show_cat_title ?>> | |
| 1584 | + </div> | |
| 1585 | + </div> | |
| 1586 | + <hr/> | |
| 1587 | + <blockquote> | |
| 1588 | + <ul> | |
| 1589 | + <li> | |
| 1590 | + <b><?php echo __('Display (all/random)',"poll-maker"); ?></b> | |
| 1591 | + <?php echo __(' - Choose the method of displaying. Example:display="random".',"poll-maker"); ?> | |
| 1592 | + <ul class='ays_poll_shorcode_methodes'> | |
| 1593 | + <li> | |
| 1594 | + <b><?php echo __('All',"poll-maker"); ?></b> | |
| 1595 | + <?php echo __(' - If you set the method as All, it will show all polls from the given category.',"poll-maker"); ?></li> | |
| 1596 | + <li> | |
| 1597 | + <b><?php echo __('Random',"poll-maker"); ?></b> | |
| 1598 | + <?php echo __(' - If you set the method as Random, please give a value to count option too, and it will randomly display that given amount of polls from the given category.',"poll-maker"); ?></li> | |
| 1599 | + </ul> | |
| 1600 | + </li> | |
| 1601 | + <li> | |
| 1602 | + <b><?php echo __('Layout(list/grid)',"poll-maker"); ?></b> | |
| 1603 | + <?php echo __(' - Choose the design of the layout. Example:layout=grid.',"poll-maker"); ?> | |
| 1604 | + <ul class='ays_poll_shorcode_methodes'> | |
| 1605 | + <li> | |
| 1606 | + <b><?php echo __('List',"poll-maker"); ?></b> | |
| 1607 | + <?php echo __(' - Choose the design of the layout as list․',"poll-maker"); ?></li> | |
| 1608 | + <li> | |
| 1609 | + <b><?php echo __('Grid',"poll-maker"); ?></b> | |
| 1610 | + <?php echo __(' - Choose the design of the layout as grid․',"poll-maker"); ?></li> | |
| 1611 | + </ul> | |
| 1612 | + </li> | |
| 1613 | + <li> | |
| 1614 | + <b><?php echo __('Sorting (date_asc|date_desc|popular_asc|popular_desc)',"poll-maker"); ?></b> | |
| 1615 | + <?php echo __(' - Choose the method of sorting. Example:sorting=date_desc.',"poll-maker"); ?> | |
| 1616 | + <ul class='ays_poll_shorcode_methodes'> | |
| 1617 | + <li> | |
| 1618 | + <b><?php echo __('Date_asc:',"poll-maker"); ?></b> | |
| 1619 | + <?php echo __(' The earliest created polls will appear at first.',"poll-maker"); ?> | |
| 1620 | + </li> | |
| 1621 | + <li> | |
| 1622 | + <b><?php echo __('Date_desc:',"poll-maker"); ?></b> | |
| 1623 | + <?php echo __(' The latest created polls will appear at first.',"poll-maker"); ?> | |
| 1624 | + </li> | |
| 1625 | + <li> | |
| 1626 | + <b><?php echo __('Popular_asc:',"poll-maker"); ?></b> | |
| 1627 | + <?php echo __(' The most voted polls will appear at first.',"poll-maker"); ?> | |
| 1628 | + </li> | |
| 1629 | + <li> | |
| 1630 | + <b><?php echo __('Popular_desc:',"poll-maker"); ?></b> | |
| 1631 | + <?php echo __(' The most voted polls will appear in the end.',"poll-maker"); ?> | |
| 1632 | + </li> | |
| 1633 | + </ul> | |
| 1634 | + </li> | |
| 1635 | + </ul> | |
| 1636 | + </blockquote> | |
| 1637 | + <hr> | |
| 1638 | + <blockquote> | |
| 1639 | + <p style="margin:0;"><?php echo __( "Paste the shortcode into any of your posts to show all/random polls from the given category by list/grid view.", "poll-maker" ); ?></p> | |
| 1640 | + </blockquote> | |
| 1585 | 1641 | </fieldset> |
| 1586 | 1642 | <hr> |
| 1587 | 1643 | <fieldset> |
| 1588 | 1644 | <legend> |
| @@ -2536,8 +2592,18 @@ | ||
| 2536 | 2592 | </p> |
| 2537 | 2593 | <hr class="ays-poll-message-variables-text-divider-for-mobile"> |
| 2538 | 2594 | <p class="vmessage"> |
| 2539 | 2595 | <strong> |
| 2596 | + <input type="text" onClick="this.setSelectionRange(0, this.value.length)" readonly value="%%poll_category_title%%" class='ays-poll-message-variables-inputs'/> | |
| 2597 | + </strong> | |
| 2598 | + <span class="ays-poll-message-variables-text-divider"> - </span> | |
| 2599 | + <span class="ays-poll-message-variables-hint-text"> | |
| 2600 | + <?php echo esc_html__( "The title of the poll category.", "poll-maker"); ?> | |
| 2601 | + </span> | |
| 2602 | + </p> | |
| 2603 | + <hr class="ays-poll-message-variables-text-divider-for-mobile"> | |
| 2604 | + <p class="vmessage"> | |
| 2605 | + <strong> | |
| 2540 | 2606 | <input type="text" onClick="this.setSelectionRange(0, this.value.length)" readonly value="%%poll_id%%" class='ays-poll-message-variables-inputs'/> |
| 2541 | 2607 | </strong> |
| 2542 | 2608 | <span class="ays-poll-message-variables-text-divider"> - </span> |
| 2543 | 2609 | <span class="ays-poll-message-variables-hint-text"> |
| @@ -2671,8 +2737,18 @@ | ||
| 2671 | 2737 | </strong> |
| 2672 | 2738 | <span class="ays-poll-message-variables-text-divider"> - </span> |
| 2673 | 2739 | <span class="ays-poll-message-variables-hint-text"> |
| 2674 | 2740 | <?php echo esc_html__( "Shows the current poll author's Website URL that was filled in their WordPress profile.", "poll-maker"); ?> |
| 2741 | + </span> | |
| 2742 | + </p> | |
| 2743 | + <hr class="ays-poll-message-variables-text-divider-for-mobile"> | |
| 2744 | + <p class="vmessage"> | |
| 2745 | + <strong> | |
| 2746 | + <input type="text" onClick="this.setSelectionRange(0, this.value.length)" readonly value="%%current_poll_author_registered%%" class='ays-poll-message-variables-inputs'/> | |
| 2747 | + </strong> | |
| 2748 | + <span class="ays-poll-message-variables-text-divider"> - </span> | |
| 2749 | + <span class="ays-poll-message-variables-hint-text"> | |
| 2750 | + <?php echo esc_html__( "Shows the current poll author's registered date that was filled in their WordPress profile.", "poll-maker"); ?> | |
| 2675 | 2751 | </span> |
| 2676 | 2752 | </p> |
| 2677 | 2753 | <hr class="ays-poll-message-variables-text-divider-for-mobile"> |
| 2678 | 2754 | <p class="vmessage"> |