Plugin Directory

Changeset 3487206


Ignore:
Timestamp:
03/20/2026 01:13:57 PM (8 days ago)
Author:
xylus
Message:

Update to version 1.1.5 from GitHub

Location:
event-schema
Files:
2 deleted
12 edited
1 copied

Legend:

Unmodified
Added
Removed
  • event-schema/tags/1.1.5/assets/css/event-schema-admin.css

    r3269330 r3487206  
    448448}
    449449/*end support page*/
     450
     451/* Start Tab */
     452.ec-app .var-tab {
     453    display: flex;
     454    justify-content: center;
     455    align-items: center;
     456    flex: 1 0 auto;
     457    padding: 0 var(--tab-padding);
     458    font-size: var(--tab-font-size);
     459    cursor: pointer;
     460    -webkit-user-select: none;
     461    user-select: none;
     462    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
     463    box-shadow: none;
     464}
     465
     466a.var-tab.var--box.var-tab--inactive:focus {
     467    box-shadow: none;
     468}
     469
     470.ec-app .var-tab--active {
     471    color: #005AE0;
     472    border-bottom: 3px solid #005AE0;
     473}
     474
     475.ec-app .var-tab--inactive {
     476    color: var(--tab-inactive-color)
     477}
     478
     479.ec-app .var-tabs {
     480    border-radius: var(--tabs-radius);
     481    background: var(--tabs-background);
     482    overflow: hidden;
     483    transition: background-color .25s
     484}
     485
     486.ec-app .var-tabs__tab-wrap {
     487    position: relative;
     488    display: flex;
     489    height: 100%
     490}
     491
     492.ec-app .var-tabs--layout-horizontal {
     493    flex-direction: row
     494}
     495
     496.ec-app .var-tabs--layout-horizontal-scrollable {
     497    overflow-x: auto;
     498    overflow-y: hidden
     499}
     500
     501.ec-app .var-tabs--layout-horizontal-scrollable::-webkit-scrollbar {
     502    display: none
     503}
     504
     505.ec-app .var-tabs--layout-horizontal-padding {
     506    padding: 0 var(--tabs-padding)
     507}
     508
     509.ec-app .var-tabs--layout-horizontal-indicator {
     510    bottom: 0;
     511    height: var(--tabs-indicator-size)
     512}
     513
     514.ec-app .var-tabs--layout-horizontal-indicator {
     515    right: 0
     516}
     517
     518.ec-app .var-tabs--layout-horizontal-reverse-indicator {
     519    top: 0;
     520    height: var(--tabs-indicator-size)
     521}
     522
     523.ec-app .var-tabs--layout-horizontal-reverse-indicator {
     524    right: 0
     525}
     526
     527.ec-app .var-tabs--layout-horizontal-indicator-inner {
     528    width: var(--tabs-indicator-inner-size);
     529    height: 100%
     530}
     531
     532
     533.ec-app .var-tabs--item-horizontal {
     534    height: var(--tabs-item-horizontal-height)
     535}
     536
     537.ec-app .ec-tabs {
     538    display: flex;
     539    align-items: center;
     540    --tabs-item-horizontal-height: 52px;
     541    --tabs-radius: 2px;
     542    --tabs-padding: 0;
     543    --tabs-indicator-size: 2px;
     544    --tabs-background: none;
     545    --tabs-indicator-inner-size: 100%;
     546    --tab-padding: 18px;
     547    --tab-inactive-color: #141B38;
     548    --tab-font-size: 14px;
     549}
     550
     551.ec-app .var-tabs {
     552    margin-bottom: -2px
     553}
     554
     555.ec-app .var-tabs .var-tab {
     556    font-weight: 600;
     557    white-space: pre;
     558    position: relative;
     559    overflow: hidden;
     560    text-decoration : none;
     561}
     562
     563.ec-app .ec-tabs {
     564    display: flex;
     565    border-bottom: 2px solid #E8E8EB;
     566    position: relative;
     567    margin-bottom: var(--ec-gutter)
     568}
     569
     570.ec-container {
     571    margin-right: auto;
     572    margin-left: auto;
     573    max-width: 1240px;
     574}
     575
     576
     577html:not([data-scroll="0"]) .ec-header {
     578    box-shadow: 0 2px 5px #0000000d;
     579    transition: box-shadow .6s
     580}
     581/* End Tabs*/
     582
     583/* start header */
     584.ec-header {
     585    z-index: 1051;
     586    top: 32px;
     587    right: 0;
     588    left: 160px;
     589    background-color: #fff;
     590    height: var(--ec-header-height, 72px);
     591    color: #141b38
     592}
     593
     594.ec-header .ec-header-content {
     595    padding: 0;
     596    display: flex;
     597    height: 72px;
     598    align-items: center;
     599    gap: 4px
     600}
     601
     602.ec-header .ec-header-content a:focus {
     603    box-shadow: none
     604}
     605
     606.ec-header .ec-header-content .spacer {
     607    display: inline-flex;
     608    width: 20px;
     609    height: 2px;
     610    background: #d0d1d7
     611}
     612
     613.ec-header .ec-header-content .spacer {
     614    transform: rotate(70deg)
     615}
     616
     617.ec-header .ec-header-content .page-name {
     618    display: inline-flex;
     619    font-size: 16px;
     620    font-weight: 400;
     621    flex: 1 0 auto
     622}
     623
     624.ec-header .ec-header-content .header-actions {
     625    display: flex
     626}
     627
     628.ec-header .ec-header-content .header-actions .round {
     629    position: relative;
     630    background-color: #f3f4f5;
     631    border-radius: 50%;
     632    width: 40px;
     633    height: 40px;
     634    display: flex;
     635    align-items: center;
     636    justify-content: center;
     637    cursor: pointer;
     638    transition: background-color .2s ease
     639}
     640
     641.ec-header .ec-header-content .header-actions .round {
     642    margin-right: 10px
     643}
     644
     645.ec-header .ec-header-content .header-actions .round svg {
     646    width: 20px;
     647    height: 20px
     648}
     649
     650.ec-header .ec-header-content .header-actions .round:hover {
     651    background-color: #e5e7e9
     652}
     653
     654@keyframes bounce {
     655
     656    0%,
     657    25%,
     658    50%,
     659    75%,
     660    to {
     661        transform: translate(-50%)
     662    }
     663
     664    40% {
     665        transform: translate(-50%, -8px)
     666    }
     667
     668    60% {
     669        transform: translate(-50%, -4px)
     670    }
     671}
     672
     673.ec-card {
     674    position: relative;
     675    color: #141b38;
     676    background-color: #fff;
     677    border: 1px solid #E8E8EB;
     678    box-shadow: 0 2px 5px #0000000d;
     679    margin: var(--ec-gutter) 0
     680}
     681
     682.ec-card svg.ec-circle-question-mark {
     683    width: 17px;
     684    height: 17px;
     685    color: #8c8f9a;
     686    transition: background-color .2s ease
     687}
     688
     689.ec-card svg.ec-circle-question-mark:hover {
     690    color: #5a5c66
     691}
     692
     693.ec-card>.header {
     694    display: flex;
     695    align-items: center;
     696    height: 60px;
     697    padding: 0 20px;
     698    font-weight: 600;
     699    font-size: 16px;
     700    border-bottom: 1px solid #E8E8EB
     701}
     702
     703.ec-card>.header.toggles {
     704    cursor: pointer
     705}
     706
     707.ec-card>.header .text {
     708    flex: 1 1 auto;
     709    display: flex;
     710    align-items: center
     711}
     712
     713.ec-card>.header .text>* {
     714    cursor: auto
     715}
     716
     717.ec-card>.header .text .header-icon {
     718    display: flex
     719}
     720
     721.ec-card>.header .text .header-icon svg {
     722    width: 24px;
     723    height: 24px
     724}
     725
     726.ec-card>.header .text .header-icon svg {
     727    margin-left: 16px
     728}
     729
     730.ec-card>.header .text .header-title {
     731    display: flex;
     732    align-items: center
     733}
     734
     735.ec-card>.header .text svg.ec-circle-question-mark {
     736    cursor: pointer;
     737    width: 17px;
     738    height: 17px
     739}
     740
     741.ec-header .wpdb-header-content {
     742    padding: 0;
     743    display: flex;
     744    height: 72px;
     745    align-items: center;
     746    gap: 4px;
     747}
     748.ec-header .wpdb-header-content .spacer {
     749    transform: rotate(-70deg);
     750}
     751.ec-header .wpdb-header-content .spacer {
     752    display: inline-flex;
     753    width: 20px;
     754    height: 2px;
     755    background: #d0d1d7;
     756}
     757
     758.ec-header .wpdb-header-content .page-name {
     759    display: inline-flex;
     760    font-size: 16px;
     761    font-weight: 400;
     762    flex: 1 0 auto;
     763}
     764.ec-header .wpdb-header-content .header-actions {
     765    display: flex;
     766}
     767
     768.ec-header .wpdb-header-content .header-actions .round {
     769    margin-left: 10px;
     770}
     771.ec-header .wpdb-header-content .header-actions .round {
     772    position: relative;
     773    background-color: #f3f4f5;
     774    border-radius: 50%;
     775    width: 40px;
     776    height: 40px;
     777    display: flex;
     778    align-items: center;
     779    justify-content: center;
     780    cursor: pointer;
     781    transition: background-color .2s ease;
     782}
     783/* end header*/
     784
     785/* plugin common Css start */
     786#wpcontent{
     787    padding-left: 0;
     788}
     789
     790#poststuff #post-body.columns-2 {
     791    margin-right: 0;
     792}
     793.notice{
     794  display: none !important;
     795}
     796.ec-notice{
     797  display: block !important;
     798}
     799/* plugin common css end */
     800
     801/* start footer section */
     802.ec-footer {
     803    display: flex;
     804    flex-direction: column;
     805    align-items: center;
     806    padding: 20px 0 30px;
     807    margin-top: 70px;
     808}
     809.ec-footer div:first-of-type {
     810    font-weight: 600;
     811}
     812.ec-footer div {
     813    margin-top: 10px;
     814}
     815.ec-footer .ec-links a {
     816    color: #005ae0;
     817}
     818
     819.ec-footer .ec-social-links a:focus {
     820    box-shadow: none;
     821}
     822
     823.ec-footer .ec-social-links a:hover {
     824    color: #005AE0;
     825}
     826
     827.ec-footer div svg.ec-facebook, .ec-footer div svg.ec-linkedin {
     828    width: 16px;
     829    height: 16px;
     830}
     831.ec-footer div svg.ec-twitter, .ec-footer div svg.ec-youtube {
     832    width: 17px;
     833    height: 16px;
     834}
     835.ec-footer .ec-social-links a{
     836    text-decoration : none;
     837    color: #787c82;
     838}
     839/* end footer section*/
     840
     841
     842.xtec-pro-badge {
     843    margin-left: 5px;
     844    height: 22px;
     845    border-radius: 3px;
     846    background: #005AE0;
     847    color: #FFF;
     848    font-size: 12px;
     849    line-height: 18px;
     850    font-weight: 600;
     851    display: inline-flex;
     852    padding: 0 4px;
     853    align-items: center;
     854}
     855
     856.ec-pro-upgrade-wrapper {
     857    position: relative;
     858    text-align: center;
     859    padding: 50px 20px;
     860    background: #ffffff;
     861    border: 2px dashed #005AE0;
     862    border-radius: 12px;
     863    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
     864}
     865
     866.ec-pro-upgrade-message {
     867    font-size: 18px;
     868    font-weight: bold;
     869    color: #005AE0;
     870    margin-bottom: 15px;
     871}
     872
     873.ec-pro-upgrade-btn {
     874    display: inline-block;
     875    padding: 12px 25px;
     876    background: #005AE0;
     877    color: #fff;
     878    font-weight: bold;
     879    text-decoration: none;
     880    border-radius: 8px;
     881    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
     882    transition: all 0.3s ease;
     883}
     884
     885.ec-pro-upgrade-btn:hover {
     886    background: #0041a8;
     887    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
     888    color:#fff;
     889}
     890
     891.ec-pro-upgrade-subtext {
     892    margin-top: 15px;
     893    font-size: 14px;
     894    color: #000000;
     895}
     896
     897.ec-card .ec-content {
     898  font-size: 14px;
     899  line-height: 22px;
     900  padding: 30px;
     901  position: relative;
     902  display: flex;
     903  flex-direction: column;
     904  gap: 30px;
     905}
     906
     907.xtlf_source_import input[type="text"],
     908.xtlf_source_import input[type="number"],
     909.xtlf_source_import select {
     910  width: 45%;
     911  max-width: 100%;
     912}
     913
     914.ec-title-text{
     915  font-weight: 600;
     916  font-size: 14px;
     917  line-height: 22px;
     918  display: flex;
     919  align-items: center;
     920}
     921
     922.wpec_button {
     923    font-weight: 600 !important;
     924    padding: 10px 15px;
     925    border-radius: 4px;
     926    cursor: pointer;
     927    transition: background-color .2s ease;
     928    position: relative;
     929    text-decoration: none;
     930    color: #fff;
     931    white-space: nowrap;
     932    letter-spacing: normal;
     933    background-color: #005AE0;
     934    border: 0;
     935}
     936.wpec_button:hover, .wpec_button:active, .wpec_button:focus {
     937    background-color: #0049b3;
     938    border: 0;
     939    color: #fff;
     940}
     941
     942.ec-inner-single-row-left{
     943  width: 30%;
     944}
     945.ec-inner-single-row-right{
     946  width: 70%;
     947}
     948
     949.xtei-settings-wrapper {
     950    background: #fff;
     951    padding: 25px;
     952    border-radius: 12px;
     953    max-width: 100%;
     954}
     955
     956.xtei-section-title {
     957    font-size: 20px !important;
     958    text-align: center;
     959    padding: 0 0 20px 0 !important;
     960    margin-bottom: 20px;
     961    font-weight: 600;
     962}
     963
     964.xtei-grid {
     965    display: grid;
     966    grid-template-columns: 1fr 1fr;
     967    gap: 25px;
     968}
     969@media (max-width: 768px) {
     970    .xtei-grid {
     971        grid-template-columns: 1fr;
     972    }
     973}
     974
     975.xtei-item {
     976    background: #f8f9fb;
     977    border: 1px solid #e3e3e3;
     978    padding: 18px 20px;
     979    border-radius: 10px;
     980    position: relative;
     981}
     982
     983
     984.xtei-pro-badge {
     985    position: absolute;
     986    top: 10px;
     987    right: 10px;
     988    background: #005AE0;
     989    color: #fff;
     990    padding: 4px 10px;
     991    border-radius: 6px;
     992    font-size: 11px;
     993    font-weight: 600;
     994}
     995
     996.xtei-item.xtei-pro .xtei-pro-badge {
     997    opacity: 1 !important;
     998}
     999
     1000.xtei-label {
     1001    font-size: 15px;
     1002    font-weight: 600;
     1003    margin-bottom: 8px;
     1004}
     1005
     1006.xtei-help {
     1007    font-size: 13px;
     1008    opacity: 0.75;
     1009    margin-top: 8px;
     1010    line-height: 1.4;
     1011}
     1012
     1013.xtei-switch {
     1014    position: relative;
     1015    width: 46px;
     1016    height: 22px;
     1017    display: inline-block;
     1018}
     1019
     1020.xtei-switch input {
     1021    display: none;
     1022}
     1023
     1024.xtei-slider {
     1025    position: absolute;
     1026    top: 0; left: 0;
     1027    right: 0; bottom: 0;
     1028    background: #ccc;
     1029    border-radius: 22px;
     1030    cursor: pointer;
     1031    transition: .3s ease;
     1032}
     1033
     1034.xtei-slider:before {
     1035    content: "";
     1036    position: absolute;
     1037    height: 18px;
     1038    width: 18px;
     1039    left: 2px;
     1040    bottom: 2px;
     1041    background: #fff;
     1042    border-radius: 50%;
     1043    transition: .3s ease;
     1044}
     1045
     1046.xtei-switch input:checked + .xtei-slider {
     1047    background: #005AE0;
     1048}
     1049
     1050.xtei-switch input:checked + .xtei-slider:before {
     1051    transform: translateX(24px);
     1052}
     1053
     1054.xtei-save-wrap {
     1055    margin-top: 25px;
     1056}
     1057svg.ec-circle-question-mark{
     1058    color : #000000;
     1059}
     1060
     1061
     1062.xtei-pro-link {
     1063    display: inline-block;
     1064    margin-top: 8px;
     1065    font-size: 13px;
     1066    font-weight: 600;
     1067    color: #005AE0;
     1068    text-decoration: underline;
     1069}
     1070
     1071.xtei-pro-link:hover {
     1072    color: #005AE0;
     1073}
     1074.wpec_upgrade_pro {
     1075  background: #1da867;
     1076}
  • event-schema/tags/1.1.5/event-schema.php

    r3397154 r3487206  
    44 * Plugin URI:        http://xylusthemes.com/plugins/event-schema/
    55 * Description:       Event Schema is automatically generates Google Rich Snippet Schema for Events.
    6  * Version:           1.1.4
     6 * Version:           1.1.5
    77 * Author:            Xylus Themes
    88 * Author URI:        http://xylusthemes.com
     
    5353
    5454            add_action( 'plugins_loaded', array( self::$instance, 'load_textdomain' ) );
     55            add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), array( self::$instance, 'wpes_setting_doc_links' ) );
    5556
    5657            self::$instance->includes();
     
    8586     * @since 1.0.0
    8687     */
    87     public function __clone() { _doing_it_wrong( __FUNCTION__, esc_attr__( 'Cheatin’ huh?', 'event-schema' ), '1.1.4' ); }
     88    public function __clone() { _doing_it_wrong( __FUNCTION__, esc_attr__( 'Cheatin’ huh?', 'event-schema' ), '1.1.5' ); }
    8889
    8990    /**
     
    9293     * @since 1.0.0
    9394     */
    94     public function __wakeup() { _doing_it_wrong( __FUNCTION__, esc_attr__( 'Cheatin’ huh?', 'event-schema' ), '1.1.4' ); }
     95    public function __wakeup() { _doing_it_wrong( __FUNCTION__, esc_attr__( 'Cheatin’ huh?', 'event-schema' ), '1.1.5' ); }
    9596
    9697
     
    106107        // Plugin version.
    107108        if( ! defined( 'ES_VERSION' ) ){
    108             define( 'ES_VERSION', '1.1.4' );
     109            define( 'ES_VERSION', '1.1.5' );
    109110        }
    110111
     
    156157
    157158    /**
     159     * WPES setting And docs link add in plugin page.
     160     *
     161     * @since 1.0
     162     * @return void
     163     */
     164    public function wpes_setting_doc_links( $links ) {
     165        $iee_setting_doc_link = array(
     166            'wpes-event-setting' => sprintf(
     167                '<a href="%s">%s</a>',
     168                esc_url( admin_url( 'admin.php?page=event_schema&tab=settings' ) ),
     169                esc_html__( 'Setting', 'event-schema' )
     170            ),
     171            'wpes-event-docs' => sprintf(
     172                '<a target="_blank" href="%s">%s</a>',
     173                esc_url( 'https://docs.xylusthemes.com/docs/event-schema/' ),
     174                esc_html__( 'Docs', 'event-schema' )
     175            ),
     176            'wpes-event-pro-link' => sprintf(
     177                '<a href="%s" target="_blank" style="color:#1da867;font-weight: 900;">%s</a>',
     178                esc_url( 'https://xylusthemes.com/plugins/event-schema/' ),
     179                esc_html__( 'Upgrade to Pro', 'event-schema' )
     180            ),
     181        );
     182
     183        return array_merge( $links, $iee_setting_doc_link );
     184    }
     185
     186    /**
    158187     * Loads the plugin language files.
    159188     *
  • event-schema/tags/1.1.5/includes/class-event-schema-admin.php

    r3269330 r3487206  
    4040
    4141        add_action( 'admin_menu', array( $this, 'add_menu_pages' ) );
     42        add_filter( 'submenu_file', array( $this, 'get_selected_tab_submenu_wpec' ) );
    4243        add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_admin_styles' ) );
    43         add_action( 'admin_notices', array( $this, 'display_notices' ) );
     44        add_action( 'admin_notices', array( $this,'ec_display_all_notices' ), 1 );
     45        add_action( 'ec_display_all_notice', array( $this, 'ec_display_notices' ) );
    4446        add_filter( 'admin_footer_text', array( $this, 'add_event_schema_credit' ) );
    4547        add_action( 'wp_dashboard_setup', array( $this, 'add_dashboard_widget') );
     
    5355     */
    5456    public function add_menu_pages() {
    55         add_options_page( __( 'Event Schema', 'event-schema' ), __( 'Event Schema', 'event-schema' ), 'manage_options', 'event_schema', array( $this, 'admin_page' ) );
    56     }
     57
     58        add_menu_page( __( 'Event Schema', 'event-schema' ), __( 'Event Schema', 'event-schema' ), 'manage_options', 'event_schema', array( $this, 'admin_page' ), 'dashicons-analytics', '30' );
     59        global $submenu;
     60        $submenu['event_schema'][] = array( __( 'Settings', 'event-schema' ), 'manage_options', admin_url( 'admin.php?page=event_schema&tab=settings' ) );
     61        $submenu['event_schema'][] = array( __( 'Support', 'event-schema' ), 'manage_options', admin_url( 'admin.php?page=event_schema&tab=support' ) );
     62        if( !wpec_is_pro() ){
     63            $submenu['event_schema'][] = array( '<li class="wpec_upgrade_pro current">' . __( 'Upgrade to Pro', 'event-schema' ) . '</li>', 'manage_options', esc_url( "https://xylusthemes.com/plugins/event-schema/") );
     64        }
     65    }
     66
     67    /**
     68     * Tab Submenu got selected.
     69     *
     70     * @since 1.6.7
     71     * @return void
     72     */
     73    public function get_selected_tab_submenu_wpec( $submenu_file ){
     74        if( !empty( $_GET['page'] ) && esc_attr( sanitize_text_field( wp_unslash( $_GET['page'] ) ) ) == 'event_schema' ){ // phpcs:ignore WordPress.Security.NonceVerification.Recommended
     75            $allowed_tabs = array( 'settings', 'support' );
     76            $tab = isset( $_GET['tab'] ) ? esc_attr( sanitize_text_field( wp_unslash( $_GET['tab'] ) ) ) : 'settings'; // phpcs:ignore WordPress.Security.NonceVerification.Recommended
     77            if( in_array( $tab, $allowed_tabs ) ){
     78                $submenu_file = admin_url( 'admin.php?page=event_schema&tab='.$tab );
     79            }
     80        }
     81        return $submenu_file;
     82    }
     83
    5784
    5885    /**
     
    6794    function enqueue_admin_styles( $hook ) {
    6895
    69         $css_dir = ES_PLUGIN_URL . 'assets/css/';
    70         wp_enqueue_style( 'event-schema', $css_dir . 'event-schema-admin.css', array(), ES_VERSION );
     96        $page    = isset( $_GET['page'] ) ? esc_attr( sanitize_text_field( wp_unslash( $_GET['page'] ) ) ) : '';
     97        $css_dir = ES_PLUGIN_URL . 'assets/css/';
     98        if( 'event_schema' == $page ){
     99            wp_enqueue_style( 'event-schema', $css_dir . 'event-schema-admin.css', array(), ES_VERSION );
     100        }
    71101    }
    72102
     
    78108     */
    79109    function admin_page() {
     110        global $event_schema;
     111       
     112        // phpcs:ignore WordPress.Security.NonceVerification.Recommended
     113        $page_title = isset( $_GET['tab'] ) ? esc_attr( sanitize_text_field( wp_unslash( ucwords( $_GET['tab'] ) ) ) ) : 'Settings';
     114        $active_tab = isset( $_GET['tab'] ) ? esc_attr( sanitize_text_field( wp_unslash( $_GET['tab'] ) ) ) : 'settings';
     115        $gettab     = ucwords( str_replace( '_', ' ', $active_tab ) );
     116        if( $active_tab == 'settings' || $active_tab == 'support' ){
     117            $gettab     = ucwords( str_replace( '_', ' ', $gettab ) );
     118            $page_title = $gettab;
     119        }
     120       
     121        $posts_header_result = $event_schema->common->wpec_render_common_header( $page_title );
     122        ?>
     123       
     124        <div class="ec-container" >
     125            <div class="ec-wrap" >
     126                <div id="poststuff">
     127                    <div id="post-body" class="metabox-holder columns-2">
     128                        <?php
     129                            do_action( 'ec_display_all_notice' );
     130                        ?>
     131                        <div class="ajax_wpec_notice"></div>
     132                        <div id="postbox-container-2" class="postbox-container">
     133                            <div class="ec-app">
     134                                <div class="ec-tabs">
     135                                    <div class="tabs-scroller">
     136                                        <div class="var-tabs var-tabs--item-horizontal var-tabs--layout-horizontal-padding">
     137                                            <div class="var-tabs__tab-wrap var-tabs--layout-horizontal">
     138                                                <a href="<?php echo esc_url( admin_url( 'admin.php?page=event_schema&tab=settings' ) ); ?>" class="var-tab <?php echo $active_tab == 'settings' ? 'var-tab--active' : 'var-tab--inactive'; ?>">
     139                                                    <span class="tab-label"><?php esc_attr_e( 'Settings', 'xt-feed-for-linkedin' ); ?></span>
     140                                                </a>
     141                                                <a href="<?php echo esc_url( admin_url( 'admin.php?page=event_schema&tab=support' ) ); ?>" class="var-tab <?php echo $active_tab == 'support' ? 'var-tab--active' : 'var-tab--inactive'; ?>">
     142                                                    <span class="tab-label"><?php esc_attr_e( 'Support & Help', 'xt-feed-for-linkedin' ); ?></span>
     143                                                </a>
     144                                            </div>
     145                                        </div>
     146                                    </div>
     147                                </div>
     148                            </div>
     149   
     150                            <?php
     151                       
     152                            if( $active_tab == 'settings' ){
     153                                require_once ES_PLUGIN_DIR . '/templates/event-schema-settings.php';
     154                            }elseif( $active_tab == 'support' ){
     155                                require_once ES_PLUGIN_DIR . '/templates/event-schema-support.php';
     156                            }
     157                            ?>
     158                        </div>
     159                    </div>
     160                    <br class="clear">
     161                </div>
     162            </div>
     163        </div>
     164        <?php
     165        $posts_footer_result = $event_schema->common->wpec_render_common_footer();
    80166        ?>
    81         <div class="wrap">
    82             <h2><?php esc_html_e( 'Event Schema', 'event-schema' ); ?></h2>
    83             <?php
    84             // Set Default Tab to Import.
    85             // phpcs:ignore WordPress.Security.NonceVerification.Recommended
    86             $tab = isset( $_GET['tab'] ) ? sanitize_text_field( wp_unslash( $_GET['tab'] ) ) : 'settings';
    87             ?>
    88             <div id="poststuff">
    89                 <div id="post-body" class="metabox-holder columns-2">
    90 
    91                     <div id="postbox-container-1" class="postbox-container">
    92                         <?php require_once ES_PLUGIN_DIR . '/templates/admin-sidebar.php'; ?>
    93                     </div>
    94                     <div id="postbox-container-2" class="postbox-container">
    95 
    96                         <h1 class="nav-tab-wrapper">
    97 
    98                             <a href="<?php echo esc_url( add_query_arg( 'tab', 'settings', $this->adminpage_url ) ); ?>" class="nav-tab <?php if ( 'settings' === $tab ) { echo 'nav-tab-active'; } ?>">
    99                                 <?php esc_html_e( 'Settings', 'event-schema' ); ?>
    100                             </a>
    101                             <a href="<?php echo esc_url( add_query_arg( 'tab', 'support', $this->adminpage_url ) ); ?>" class="nav-tab <?php if ( $tab == 'support' ) { echo 'nav-tab-active'; } ?>">
    102                                 <?php esc_html_e( 'Support & Help', 'event-schema' ); ?>
    103                             </a>
    104                         </h1>
    105 
    106                         <div class="event-schema-page">
    107 
    108                             <?php
    109                             if ( 'settings' === $tab ) {
    110 
    111                                 require_once ES_PLUGIN_DIR . '/templates/event-schema-settings.php';
    112 
    113                             }elseif ( $tab == 'support' ) {
    114                                
    115                                 require_once ES_PLUGIN_DIR . '/templates/event-schema-support.php';
    116 
    117                             }
    118                             ?>
    119                             <div style="clear: both"></div>
    120                         </div>
    121                 </div>             
    122             </div>
    123         </div>
    124167        <?php
    125168    }
    126169
    127170    /**
     171     * Remove All Notices
     172     */
     173    public function ec_display_all_notices() {
     174        // Remove default notices display.
     175        remove_action( 'admin_notices', 'wp_admin_notices' );
     176        remove_action( 'all_admin_notices', 'wp_admin_notices' );
     177    }
     178
     179    /**
    128180     * Display notices in admin.
    129181     *
    130182     * @since    1.0.0
    131183     */
    132     public function display_notices() {
     184    public function ec_display_notices() {
    133185        global $es_errors, $es_success_msg, $es_warnings, $es_info_msg;
    134186
     
    136188            foreach ( $es_errors as $error ) :
    137189                ?>
    138                 <div class="notice notice-error is-dismissible">
     190                <div class="notice notice-error is-dismissible ec-notice">
    139191                    <p><?php echo esc_attr( $error ); ?></p>
    140192                </div>
     
    146198            foreach ( $es_success_msg as $success ) :
    147199                ?>
    148                 <div class="notice notice-success is-dismissible">
     200                <div class="notice notice-success is-dismissible ec-notice">
    149201                    <p><?php echo esc_attr( $success ); ?></p>
    150202                </div>
     
    156208            foreach ( $es_warnings as $warning ) :
    157209                ?>
    158                 <div class="notice notice-warning is-dismissible">
     210                <div class="notice notice-warning is-dismissible ec-notice">
    159211                    <p><?php echo esc_attr( $warning ); ?></p>
    160212                </div>
     
    166218            foreach ( $es_info_msg as $info ) :
    167219                ?>
    168                 <div class="notice notice-info is-dismissible">
     220                <div class="notice notice-info is-dismissible ec-notice">
    169221                    <p><?php echo esc_attr( $info ); ?></p>
    170222                </div>
  • event-schema/tags/1.1.5/includes/class-event-schema-common.php

    r3269330 r3487206  
    6060    public function get_active_supported_event_plugins() {
    6161
    62         $supported_plugins = array();
    63         if ( ! function_exists( 'is_plugin_active' ) ) {
    64             require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
    65         }
    66         // check Events Manager.
    67         if( defined( 'EM_VERSION' ) ){
    68             $supported_plugins['em'] = __( 'Events Manager', 'event-schema' );
    69         }
    70        
    71         // Check event_organizer.
    72         if( defined( 'EVENT_ORGANISER_VER' ) &&  defined( 'EVENT_ORGANISER_DIR' ) ){
    73             $supported_plugins['event_organizer'] = __( 'Event Organiser', 'event-schema' );
    74         }
    75 
    76         // check EventON.
    77         if( class_exists( 'EventON' ) ){
    78             $supported_plugins['eventon'] = __( 'EventON', 'event-schema' );
    79         }
    80 
    81         // check All in one Event Calendar
    82         if( class_exists( 'Ai1ec_Event' ) ){
    83             $supported_plugins['aioec'] = __( 'All in one Event Calendar', 'event-schema' );
    84         }
    85 
    86         // check Import Facebook Events
    87         if( class_exists( 'Import_Facebook_Events' ) ){
    88             $supported_plugins['import_facebook_events'] = __( 'Import Facebook Events', 'event-schema' );
    89         }
    90 
    91         // check Import Eventbrite Events
    92         if( class_exists( 'Import_Eventbrite_Events' ) ){
    93             $supported_plugins['import_eventbrite_events'] = __( 'Import Eventbrite Events', 'event-schema' );
    94         }
    95 
    96         // check Import Meetup Events
    97         if( class_exists( 'Import_Meetup_Events' ) ){
    98             $supported_plugins['import_meetup_events'] = __( 'Import Meetup Events', 'event-schema' );
    99         }
    100 
    101         // check WP Event Aggregator
    102         if( class_exists( 'WP_Event_Aggregator' ) ){
    103             $supported_plugins['wp_event_aggregator'] = __( 'WP Event Aggregator', 'event-schema' );
    104         }
    105 
    106         // check My Calendar
    107         /*if ( is_plugin_active( 'my-calendar/my-calendar.php' ) ) {
    108             $supported_plugins['my_calendar'] = __( 'My Calendar', 'event-schema' );
    109         }*/     
     62        $supported_plugins                             = array();
     63        $supported_plugins['em']                       = esc_attr__( 'Events Manager', 'event-schema' );
     64        $supported_plugins['event_organizer']          = esc_attr__( 'Event Organiser', 'event-schema' );
     65        $supported_plugins['eventon']                  = esc_attr__( 'EventON', 'event-schema' );
     66        $supported_plugins['aioec']                    = esc_attr__( 'All in One Event Calendar', 'event-schema' );
     67        $supported_plugins['import_facebook_events']   = esc_attr__( 'Import Facebook Events', 'event-schema' );
     68        $supported_plugins['import_eventbrite_events'] = esc_attr__( 'Import Eventbrite Events', 'event-schema' );
     69        $supported_plugins['import_meetup_events']     = esc_attr__( 'Import Meetup Events', 'event-schema' );
     70        $supported_plugins['wp_event_aggregator']      = esc_attr__( 'WP Event Aggregator', 'event-schema' );
     71        $supported_plugins['eventprime']               = esc_attr__( 'Event Prime', 'event-schema' );
     72        $supported_plugins['eventin']                  = esc_attr__( 'EventIn', 'event-schema' );
     73        $supported_plugins['wp_events_manager']        = esc_attr__( 'WP Events Manager', 'event-schema' );
     74        $supported_plugins['foo_event']                = esc_attr__( 'Foo Event', 'event-schema' );
    11075        return $supported_plugins;
    11176    }
     
    371336    }
    372337
     338    /**
     339     * Render Page header Section
     340     *
     341     * @since 1.1
     342     * @return void
     343     */
     344    public function wpec_render_common_header( $page_title  ){
     345        ?>
     346        <div class="ec-header" >
     347            <div class="ec-container" >
     348                <div class="ec-header-content" >
     349                    <span style="font-size:18px;"><?php esc_html_e('Dashboard','xt-feed-for-linkedin'); ?></span>
     350                    <span class="spacer"></span>
     351                    <span class="page-name"><?php echo esc_attr( $page_title ); ?></span></span>
     352                    <div class="header-actions" >
     353                        <span class="round" title="Documentation" >
     354                            <a href="<?php echo esc_url( 'https://docs.xylusthemes.com/docs/event-schema/' ); ?>" target="_blank">
     355                                <svg viewBox="0 0 20 20" fill="#000000" height="20px" xmlns="http://www.w3.org/2000/svg" class="ec-circle-question-mark">
     356                                    <path fill-rule="evenodd" clip-rule="evenodd" d="M1.6665 10.0001C1.6665 5.40008 5.39984 1.66675 9.99984 1.66675C14.5998 1.66675 18.3332 5.40008 18.3332 10.0001C18.3332 14.6001 14.5998 18.3334 9.99984 18.3334C5.39984 18.3334 1.6665 14.6001 1.6665 10.0001ZM10.8332 13.3334V15.0001H9.1665V13.3334H10.8332ZM9.99984 16.6667C6.32484 16.6667 3.33317 13.6751 3.33317 10.0001C3.33317 6.32508 6.32484 3.33341 9.99984 3.33341C13.6748 3.33341 16.6665 6.32508 16.6665 10.0001C16.6665 13.6751 13.6748 16.6667 9.99984 16.6667ZM6.6665 8.33341C6.6665 6.49175 8.15817 5.00008 9.99984 5.00008C11.8415 5.00008 13.3332 6.49175 13.3332 8.33341C13.3332 9.40251 12.6748 9.97785 12.0338 10.538C11.4257 11.0695 10.8332 11.5873 10.8332 12.5001H9.1665C9.1665 10.9824 9.9516 10.3806 10.6419 9.85148C11.1834 9.43642 11.6665 9.06609 11.6665 8.33341C11.6665 7.41675 10.9165 6.66675 9.99984 6.66675C9.08317 6.66675 8.33317 7.41675 8.33317 8.33341H6.6665Z" fill="currentColor"></path>
     357                                </svg>
     358                            </a>
     359                        </span>
     360                    </div>
     361                </div>
     362            </div>
     363        </div>
     364        <?php
     365       
     366    }
     367
     368    /**
     369     * Render Page Footer Section
     370     *
     371     * @since 1.1
     372     * @return void
     373     */
     374    public function wpec_render_common_footer(){
     375        ?>
     376            <div id="ec-footer-links" >
     377                <div class="ec-footer">
     378                    <div><?php esc_attr_e( 'Made with ♥ by the Xylus Themes','xt-feed-for-linkedin'); ?></div>
     379                    <div class="ec-links" >
     380                        <a href="<?php echo esc_url( 'https://xylusthemes.com/support/' ); ?>" target="_blank" ><?php esc_attr_e( 'Support','xt-feed-for-linkedin'); ?></a>
     381                        <span>/</span>
     382                        <a href="<?php echo esc_url( 'https://docs.xylusthemes.com/docs/event-schema/' ); ?>" target="_blank" ><?php esc_attr_e( 'Docs','xt-feed-for-linkedin'); ?></a>
     383                        <span>/</span>
     384                        <a href="<?php echo esc_url( admin_url( 'plugin-install.php?s=xylus&tab=search&type=term' ) ); ?>" ><?php esc_attr_e( 'Free Plugins','xt-feed-for-linkedin'); ?></a>
     385                    </div>
     386                    <div class="ec-social-links">
     387                        <a href="<?php echo esc_url( 'https://www.facebook.com/xylusinfo/' ); ?>" target="_blank" >
     388                            <svg class="ec-facebook">
     389                                <path fill="currentColor" d="M16 8.05A8.02 8.02 0 0 0 8 0C3.58 0 0 3.6 0 8.05A8 8 0 0 0 6.74 16v-5.61H4.71V8.05h2.03V6.3c0-2.02 1.2-3.15 3-3.15.9 0 1.8.16 1.8.16v1.98h-1c-1 0-1.31.62-1.31 1.27v1.49h2.22l-.35 2.34H9.23V16A8.02 8.02 0 0 0 16 8.05Z"></path>
     390                            </svg>
     391                        </a>
     392                        <a href="<?php echo esc_url( 'https://www.linkedin.com/company/xylus-consultancy-service-xcs-/' ); ?>" target="_blank" >
     393                            <svg class="ec-linkedin">
     394                                <path fill="currentColor" d="M14 1H1.97C1.44 1 1 1.47 1 2.03V14c0 .56.44 1 .97 1H14a1 1 0 0 0 1-1V2.03C15 1.47 14.53 1 14 1ZM5.22 13H3.16V6.34h2.06V13ZM4.19 5.4a1.2 1.2 0 0 1-1.22-1.18C2.97 3.56 3.5 3 4.19 3c.65 0 1.18.56 1.18 1.22 0 .66-.53 1.19-1.18 1.19ZM13 13h-2.1V9.75C10.9 9 10.9 8 9.85 8c-1.1 0-1.25.84-1.25 1.72V13H6.53V6.34H8.5v.91h.03a2.2 2.2 0 0 1 1.97-1.1c2.1 0 2.5 1.41 2.5 3.2V13Z"></path>
     395                            </svg>
     396                        </a>
     397                        <a href="<?php echo esc_url( 'https://x.com/XylusThemes" target="_blank' ); ?>" target="_blank" >
     398                            <svg class="ec-twitter" width="24" height="24" viewBox="0 0 24 24">
     399                                <circle cx="12" cy="12" r="12" fill="currentColor"></circle>
     400                                <g>
     401                                    <path d="M13.129 11.076L17.588 6H16.5315L12.658 10.4065L9.5665 6H6L10.676 12.664L6 17.9865H7.0565L11.1445 13.332L14.41 17.9865H17.9765L13.129 11.076ZM11.6815 12.7225L11.207 12.0585L7.4375 6.78H9.0605L12.1035 11.0415L12.576 11.7055L16.531 17.2445H14.908L11.6815 12.7225Z" fill="white"></path>
     402                                </g>
     403                            </svg>
     404                        </a>
     405                        <a href="<?php echo esc_url( 'https://www.youtube.com/@xylussupport7784' ); ?>" target="_blank" >
     406                            <svg class="ec-youtube">
     407                                <path fill="currentColor" d="M16.63 3.9a2.12 2.12 0 0 0-1.5-1.52C13.8 2 8.53 2 8.53 2s-5.32 0-6.66.38c-.71.18-1.3.78-1.49 1.53C0 5.2 0 8.03 0 8.03s0 2.78.37 4.13c.19.75.78 1.3 1.5 1.5C3.2 14 8.51 14 8.51 14s5.28 0 6.62-.34c.71-.2 1.3-.75 1.49-1.5.37-1.35.37-4.13.37-4.13s0-2.81-.37-4.12Zm-9.85 6.66V5.5l4.4 2.53-4.4 2.53Z"></path>
     408                            </svg>
     409                        </a>
     410                    </div>
     411                </div>
     412            </div>
     413        <?php   
     414    }
     415
    373416}
     417
     418/**
     419 * Check is pro active or not.
     420 *
     421 * @since  1.5.0
     422 * @return boolean
     423 */
     424function wpec_is_pro() {
     425    if ( ! function_exists( 'is_plugin_active' ) ) {
     426        include_once ABSPATH . 'wp-admin/includes/plugin.php';
     427    }
     428    if ( is_plugin_active( 'event-schema-pro/event-schema-pro.php' ) ) {
     429        return true;
     430    }
     431    return false;
     432}
  • event-schema/tags/1.1.5/languages/event-schema.pot

    r3397154 r3487206  
    1 # Copyright (C) 2025 Xylus Themes
     1# Copyright (C) 2026 Xylus Themes
    22# This file is distributed under the GPL-2.0+.
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Event Schema 1.1.4\n"
     5"Project-Id-Version: Event Schema 1.1.5\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/event-schema\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2025-11-17T11:15:18+00:00\n"
     12"POT-Creation-Date: 2026-03-20T13:09:16+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.12.0\n"
     
    1717#. Plugin Name of the plugin
    1818#: event-schema.php
    19 #: includes/class-event-schema-admin.php:55
    20 #: includes/class-event-schema-admin.php:82
     19#: includes/class-event-schema-admin.php:58
    2120msgid "Event Schema"
    2221msgstr ""
     
    4241msgstr ""
    4342
    44 #: event-schema.php:87
    45 #: event-schema.php:94
     43#: event-schema.php:88
     44#: event-schema.php:95
    4645msgid "Cheatin&#8217; huh?"
    4746msgstr ""
    4847
    49 #: includes/class-event-schema-admin.php:99
     48#: event-schema.php:169
     49msgid "Setting"
     50msgstr ""
     51
     52#: event-schema.php:174
     53msgid "Docs"
     54msgstr ""
     55
     56#: event-schema.php:179
     57#: includes/class-event-schema-admin.php:63
     58msgid "Upgrade to Pro"
     59msgstr ""
     60
     61#: includes/class-event-schema-admin.php:60
    5062msgid "Settings"
    5163msgstr ""
    5264
    53 #: includes/class-event-schema-admin.php:102
    54 msgid "Support & Help"
    55 msgstr ""
    56 
    57 #: includes/class-event-schema-admin.php:183
     65#: includes/class-event-schema-admin.php:61
     66msgid "Support"
     67msgstr ""
     68
     69#: includes/class-event-schema-admin.php:235
    5870msgid "News from Xylus Themes"
    5971msgstr ""
    6072
    61 #: includes/class-event-schema-admin.php:212
     73#: includes/class-event-schema-admin.php:264
    6274#, php-format
    6375msgid " Rate %1$sEvent Schema%2$s %3$s"
    6476msgstr ""
    6577
    66 #: includes/class-event-schema-admin.php:229
    67 #: includes/class-event-schema-common.php:364
     78#: includes/class-event-schema-admin.php:281
     79#: includes/class-event-schema-common.php:329
    6880msgid "WP Bulk Delete"
    6981msgstr ""
    7082
    71 #: includes/class-event-schema-admin.php:230
    72 #: includes/class-event-schema-common.php:103
    73 #: includes/class-event-schema-common.php:365
     83#: includes/class-event-schema-admin.php:282
     84#: includes/class-event-schema-common.php:70
     85#: includes/class-event-schema-common.php:330
    7486msgid "WP Event Aggregator"
    7587msgstr ""
    7688
    77 #: includes/class-event-schema-admin.php:231
    78 #: includes/class-event-schema-common.php:88
     89#: includes/class-event-schema-admin.php:283
     90#: includes/class-event-schema-common.php:67
    7991msgid "Import Facebook Events"
    8092msgstr ""
    8193
    82 #: includes/class-event-schema-admin.php:232
    83 #: includes/class-event-schema-common.php:93
    84 #: includes/class-event-schema-common.php:367
     94#: includes/class-event-schema-admin.php:284
     95#: includes/class-event-schema-common.php:68
     96#: includes/class-event-schema-common.php:332
    8597msgid "Import Eventbrite Events"
    8698msgstr ""
    8799
    88 #: includes/class-event-schema-admin.php:233
    89 #: includes/class-event-schema-common.php:98
    90 #: includes/class-event-schema-common.php:368
     100#: includes/class-event-schema-admin.php:285
     101#: includes/class-event-schema-common.php:69
     102#: includes/class-event-schema-common.php:333
    91103msgid "Import Meetup Events"
    92104msgstr ""
     
    100112msgstr ""
    101113
    102 #: includes/class-event-schema-common.php:68
     114#: includes/class-event-schema-common.php:63
    103115msgid "Events Manager"
    104116msgstr ""
    105117
     118#: includes/class-event-schema-common.php:64
     119msgid "Event Organiser"
     120msgstr ""
     121
     122#: includes/class-event-schema-common.php:65
     123msgid "EventON"
     124msgstr ""
     125
     126#: includes/class-event-schema-common.php:66
     127msgid "All in One Event Calendar"
     128msgstr ""
     129
     130#: includes/class-event-schema-common.php:71
     131msgid "Event Prime"
     132msgstr ""
     133
     134#: includes/class-event-schema-common.php:72
     135msgid "EventIn"
     136msgstr ""
     137
    106138#: includes/class-event-schema-common.php:73
    107 msgid "Event Organiser"
    108 msgstr ""
    109 
    110 #: includes/class-event-schema-common.php:78
    111 msgid "EventON"
    112 msgstr ""
    113 
    114 #: includes/class-event-schema-common.php:83
    115 msgid "All in one Event Calendar"
    116 msgstr ""
    117 
    118 #: includes/class-event-schema-common.php:366
     139msgid "WP Events Manager"
     140msgstr ""
     141
     142#: includes/class-event-schema-common.php:74
     143msgid "Foo Event"
     144msgstr ""
     145
     146#: includes/class-event-schema-common.php:331
    119147msgid "Import Social Events"
    120148msgstr ""
    121149
    122 #: includes/class-event-schema-common.php:369
     150#: includes/class-event-schema-common.php:334
    123151msgid "WP Smart Import : Import any XML File to WordPress"
    124152msgstr ""
    125153
    126 #: templates/admin-sidebar.php:16
    127 msgid "Custom WordPress Development Services"
    128 msgstr ""
    129 
    130 #: templates/admin-sidebar.php:17
    131 msgid "From small blog to complex web apps, we push the limits of what's possible with WordPress."
    132 msgstr ""
    133 
    134 #: templates/admin-sidebar.php:19
    135 msgid "Hire Us"
    136 msgstr ""
    137 
    138 #: templates/admin-sidebar.php:25
    139 msgid "Would you like to remove these ads?"
    140 msgstr ""
    141 
    142 #: templates/admin-sidebar.php:27
    143 msgid "Get Premium"
    144 msgstr ""
    145 
    146 #: templates/event-schema-settings.php:21
     154#: templates/event-schema-settings.php:11
     155msgid "Event Schema Controls"
     156msgstr ""
     157
     158#: templates/event-schema-settings.php:28
    147159#, php-format
    148160msgid "Disable Event Schema for %s"
    149161msgstr ""
    150162
    151 #: templates/event-schema-settings.php:29
     163#: templates/event-schema-settings.php:42
    152164#, php-format
    153 msgid "Check to disable event schema(structured data) for %s ."
    154 msgstr ""
    155 
    156 #: templates/event-schema-settings.php:46
     165msgid "Disable structured data (schema.org) output for %s."
     166msgstr ""
     167
     168#: templates/event-schema-settings.php:47
     169msgid "Get PRO version"
     170msgstr ""
     171
     172#: templates/event-schema-settings.php:59
    157173msgid "Save Settings"
    158174msgstr ""
  • event-schema/tags/1.1.5/templates/event-schema-settings.php

    r3269330 r3487206  
    66$active_plugins = $event_schema->common->get_active_supported_event_plugins();
    77?>
    8 <div class="es_container">
    9     <div class="es_row">
    10        
    11         <form method="post" id="es_setting_form">               
     8<div class="ec-card" style="margin-top: 20px;">
     9    <form method="post" id="es_setting_form">
     10        <div class="xtei-settings-wrapper">
     11            <h2 class="xtei-section-title"><?php esc_html_e( 'Event Schema Controls', 'event-schema' ); ?></h2>
     12            <div class="xtei-grid">
     13                <?php
     14                $pro_plugins = array( 'eventprime', 'eventin', 'wp_events_manager', 'foo_event' );
    1215
    13             <table class="form-table">
    14                 <tbody>
    15                     <?php
    16                         if ( !empty( $active_plugins ) ) {
    17                             foreach ($active_plugins as $key => $value) {
    18                                 ?>
    19                                 <tr> 
    20                                     <th scope="row">
    21                                         <?php printf( esc_attr__( 'Disable Event Schema for %s', 'event-schema' ), esc_attr( $value ) ) ; // phpcs:ignore WordPress.WP.I18n.MissingTranslatorsComment ?> :
    22                                     </th>
    23                                     <td>
    24                                         <?php
    25                                         $update_facebook_events = isset( $facebook_options['update_events'] ) ? $facebook_options['update_events'] : 'no';
    26                                         ?>
    27                                         <input type="checkbox" name="event_schema[<?php echo esc_attr( $key ); ?>]" value="<?php echo esc_attr( $key ); ?>" <?php if( in_array( $key, $schema_options ) ) { echo 'checked="checked"'; } ?> />
    28                                         <span class="xtei_small">
    29                                             <?php printf( esc_attr__( 'Check to disable event schema(structured data) for %s .', 'event-schema' ), esc_attr( $value ) ); // phpcs:ignore WordPress.WP.I18n.MissingTranslatorsComment ?>
    30                                         </span>
    31                                     </td>
    32                                 </tr>
    33                                 <?php                               
    34                             }
    35                         } else {
     16                if ( ! empty( $active_plugins ) ) {
     17                    foreach ( $active_plugins as $key => $value ) {
    3618
    37                         }
    38                     ?>
    39                 </tbody>
    40             </table>
    41             <br/>
     19                        $is_pro = in_array( $key, $pro_plugins, true );
     20                        $is_checked = in_array( $key, $schema_options ) ? 'checked="checked"' : '';
     21                        ?>
     22                        <div class="xtei-item <?php echo $is_pro ? 'xtei-pro' : ''; ?>">
     23                            <?php if ( $is_pro ) : ?>
     24                                <span class="xtei-pro-badge">PRO</span>
     25                            <?php endif; ?>
    4226
    43             <div class="es_element">
    44                 <input type="hidden" name="es_action" value="es_save_settings" />
     27                            <div class="xtei-label">
     28                                <?php printf( esc_html__( 'Disable Event Schema for %s', 'event-schema' ), esc_html( $value ) ); ?>
     29                            </div>
     30
     31                            <label class="xtei-switch" <?php echo $is_pro ? 'style="opacity: 0.5"' : ''; ?> >
     32                                <input type="checkbox"
     33                                    name="<?php echo $is_pro ? '' : 'event_schema[' . esc_attr( $key ) . ']'; ?>"
     34                                    value="<?php echo esc_attr( $key ); ?>"
     35                                    <?php echo $is_checked; ?>
     36                                    <?php echo $is_pro ? 'disabled' : ''; ?>
     37                                >
     38                                <span class="xtei-slider"></span>
     39                            </label>
     40
     41                            <p class="xtei-help">
     42                                <?php printf( esc_html__( 'Disable structured data (schema.org) output for %s.', 'event-schema' ), esc_html( $value ) ); ?>
     43                            </p>
     44
     45                            <?php if ( $is_pro ) : ?>
     46                                <a href="https://xylusthemes.com/plugins/event-schema/" target="_blank" class="xtei-pro-link">
     47                                    <?php esc_html_e( 'Get PRO version', 'event-schema' ); ?>
     48                                </a>
     49                            <?php endif; ?>
     50                        </div>
     51                        <?php
     52                    }
     53                }
     54                ?>
     55            </div>
     56            <div class="xtei-save-wrap">
     57                <input type="hidden" name="es_action" value="es_save_settings">
    4558                <?php wp_nonce_field( 'es_setting_form_nonce_action', 'es_setting_form_nonce' ); ?>
    46                 <input type="submit" class="button-primary xtei_submit_button" style=""  value="<?php esc_attr_e( 'Save Settings', 'event-schema' ); ?>" />
     59                <input type="submit" class="wpec_button xtei_submit_button" value="<?php esc_attr_e( 'Save Settings', 'event-schema' ); ?>">
    4760            </div>
    48             </form>
    49     </div>
     61        </div>
     62    </form>
    5063</div>
  • event-schema/trunk/assets/css/event-schema-admin.css

    r3269330 r3487206  
    448448}
    449449/*end support page*/
     450
     451/* Start Tab */
     452.ec-app .var-tab {
     453    display: flex;
     454    justify-content: center;
     455    align-items: center;
     456    flex: 1 0 auto;
     457    padding: 0 var(--tab-padding);
     458    font-size: var(--tab-font-size);
     459    cursor: pointer;
     460    -webkit-user-select: none;
     461    user-select: none;
     462    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
     463    box-shadow: none;
     464}
     465
     466a.var-tab.var--box.var-tab--inactive:focus {
     467    box-shadow: none;
     468}
     469
     470.ec-app .var-tab--active {
     471    color: #005AE0;
     472    border-bottom: 3px solid #005AE0;
     473}
     474
     475.ec-app .var-tab--inactive {
     476    color: var(--tab-inactive-color)
     477}
     478
     479.ec-app .var-tabs {
     480    border-radius: var(--tabs-radius);
     481    background: var(--tabs-background);
     482    overflow: hidden;
     483    transition: background-color .25s
     484}
     485
     486.ec-app .var-tabs__tab-wrap {
     487    position: relative;
     488    display: flex;
     489    height: 100%
     490}
     491
     492.ec-app .var-tabs--layout-horizontal {
     493    flex-direction: row
     494}
     495
     496.ec-app .var-tabs--layout-horizontal-scrollable {
     497    overflow-x: auto;
     498    overflow-y: hidden
     499}
     500
     501.ec-app .var-tabs--layout-horizontal-scrollable::-webkit-scrollbar {
     502    display: none
     503}
     504
     505.ec-app .var-tabs--layout-horizontal-padding {
     506    padding: 0 var(--tabs-padding)
     507}
     508
     509.ec-app .var-tabs--layout-horizontal-indicator {
     510    bottom: 0;
     511    height: var(--tabs-indicator-size)
     512}
     513
     514.ec-app .var-tabs--layout-horizontal-indicator {
     515    right: 0
     516}
     517
     518.ec-app .var-tabs--layout-horizontal-reverse-indicator {
     519    top: 0;
     520    height: var(--tabs-indicator-size)
     521}
     522
     523.ec-app .var-tabs--layout-horizontal-reverse-indicator {
     524    right: 0
     525}
     526
     527.ec-app .var-tabs--layout-horizontal-indicator-inner {
     528    width: var(--tabs-indicator-inner-size);
     529    height: 100%
     530}
     531
     532
     533.ec-app .var-tabs--item-horizontal {
     534    height: var(--tabs-item-horizontal-height)
     535}
     536
     537.ec-app .ec-tabs {
     538    display: flex;
     539    align-items: center;
     540    --tabs-item-horizontal-height: 52px;
     541    --tabs-radius: 2px;
     542    --tabs-padding: 0;
     543    --tabs-indicator-size: 2px;
     544    --tabs-background: none;
     545    --tabs-indicator-inner-size: 100%;
     546    --tab-padding: 18px;
     547    --tab-inactive-color: #141B38;
     548    --tab-font-size: 14px;
     549}
     550
     551.ec-app .var-tabs {
     552    margin-bottom: -2px
     553}
     554
     555.ec-app .var-tabs .var-tab {
     556    font-weight: 600;
     557    white-space: pre;
     558    position: relative;
     559    overflow: hidden;
     560    text-decoration : none;
     561}
     562
     563.ec-app .ec-tabs {
     564    display: flex;
     565    border-bottom: 2px solid #E8E8EB;
     566    position: relative;
     567    margin-bottom: var(--ec-gutter)
     568}
     569
     570.ec-container {
     571    margin-right: auto;
     572    margin-left: auto;
     573    max-width: 1240px;
     574}
     575
     576
     577html:not([data-scroll="0"]) .ec-header {
     578    box-shadow: 0 2px 5px #0000000d;
     579    transition: box-shadow .6s
     580}
     581/* End Tabs*/
     582
     583/* start header */
     584.ec-header {
     585    z-index: 1051;
     586    top: 32px;
     587    right: 0;
     588    left: 160px;
     589    background-color: #fff;
     590    height: var(--ec-header-height, 72px);
     591    color: #141b38
     592}
     593
     594.ec-header .ec-header-content {
     595    padding: 0;
     596    display: flex;
     597    height: 72px;
     598    align-items: center;
     599    gap: 4px
     600}
     601
     602.ec-header .ec-header-content a:focus {
     603    box-shadow: none
     604}
     605
     606.ec-header .ec-header-content .spacer {
     607    display: inline-flex;
     608    width: 20px;
     609    height: 2px;
     610    background: #d0d1d7
     611}
     612
     613.ec-header .ec-header-content .spacer {
     614    transform: rotate(70deg)
     615}
     616
     617.ec-header .ec-header-content .page-name {
     618    display: inline-flex;
     619    font-size: 16px;
     620    font-weight: 400;
     621    flex: 1 0 auto
     622}
     623
     624.ec-header .ec-header-content .header-actions {
     625    display: flex
     626}
     627
     628.ec-header .ec-header-content .header-actions .round {
     629    position: relative;
     630    background-color: #f3f4f5;
     631    border-radius: 50%;
     632    width: 40px;
     633    height: 40px;
     634    display: flex;
     635    align-items: center;
     636    justify-content: center;
     637    cursor: pointer;
     638    transition: background-color .2s ease
     639}
     640
     641.ec-header .ec-header-content .header-actions .round {
     642    margin-right: 10px
     643}
     644
     645.ec-header .ec-header-content .header-actions .round svg {
     646    width: 20px;
     647    height: 20px
     648}
     649
     650.ec-header .ec-header-content .header-actions .round:hover {
     651    background-color: #e5e7e9
     652}
     653
     654@keyframes bounce {
     655
     656    0%,
     657    25%,
     658    50%,
     659    75%,
     660    to {
     661        transform: translate(-50%)
     662    }
     663
     664    40% {
     665        transform: translate(-50%, -8px)
     666    }
     667
     668    60% {
     669        transform: translate(-50%, -4px)
     670    }
     671}
     672
     673.ec-card {
     674    position: relative;
     675    color: #141b38;
     676    background-color: #fff;
     677    border: 1px solid #E8E8EB;
     678    box-shadow: 0 2px 5px #0000000d;
     679    margin: var(--ec-gutter) 0
     680}
     681
     682.ec-card svg.ec-circle-question-mark {
     683    width: 17px;
     684    height: 17px;
     685    color: #8c8f9a;
     686    transition: background-color .2s ease
     687}
     688
     689.ec-card svg.ec-circle-question-mark:hover {
     690    color: #5a5c66
     691}
     692
     693.ec-card>.header {
     694    display: flex;
     695    align-items: center;
     696    height: 60px;
     697    padding: 0 20px;
     698    font-weight: 600;
     699    font-size: 16px;
     700    border-bottom: 1px solid #E8E8EB
     701}
     702
     703.ec-card>.header.toggles {
     704    cursor: pointer
     705}
     706
     707.ec-card>.header .text {
     708    flex: 1 1 auto;
     709    display: flex;
     710    align-items: center
     711}
     712
     713.ec-card>.header .text>* {
     714    cursor: auto
     715}
     716
     717.ec-card>.header .text .header-icon {
     718    display: flex
     719}
     720
     721.ec-card>.header .text .header-icon svg {
     722    width: 24px;
     723    height: 24px
     724}
     725
     726.ec-card>.header .text .header-icon svg {
     727    margin-left: 16px
     728}
     729
     730.ec-card>.header .text .header-title {
     731    display: flex;
     732    align-items: center
     733}
     734
     735.ec-card>.header .text svg.ec-circle-question-mark {
     736    cursor: pointer;
     737    width: 17px;
     738    height: 17px
     739}
     740
     741.ec-header .wpdb-header-content {
     742    padding: 0;
     743    display: flex;
     744    height: 72px;
     745    align-items: center;
     746    gap: 4px;
     747}
     748.ec-header .wpdb-header-content .spacer {
     749    transform: rotate(-70deg);
     750}
     751.ec-header .wpdb-header-content .spacer {
     752    display: inline-flex;
     753    width: 20px;
     754    height: 2px;
     755    background: #d0d1d7;
     756}
     757
     758.ec-header .wpdb-header-content .page-name {
     759    display: inline-flex;
     760    font-size: 16px;
     761    font-weight: 400;
     762    flex: 1 0 auto;
     763}
     764.ec-header .wpdb-header-content .header-actions {
     765    display: flex;
     766}
     767
     768.ec-header .wpdb-header-content .header-actions .round {
     769    margin-left: 10px;
     770}
     771.ec-header .wpdb-header-content .header-actions .round {
     772    position: relative;
     773    background-color: #f3f4f5;
     774    border-radius: 50%;
     775    width: 40px;
     776    height: 40px;
     777    display: flex;
     778    align-items: center;
     779    justify-content: center;
     780    cursor: pointer;
     781    transition: background-color .2s ease;
     782}
     783/* end header*/
     784
     785/* plugin common Css start */
     786#wpcontent{
     787    padding-left: 0;
     788}
     789
     790#poststuff #post-body.columns-2 {
     791    margin-right: 0;
     792}
     793.notice{
     794  display: none !important;
     795}
     796.ec-notice{
     797  display: block !important;
     798}
     799/* plugin common css end */
     800
     801/* start footer section */
     802.ec-footer {
     803    display: flex;
     804    flex-direction: column;
     805    align-items: center;
     806    padding: 20px 0 30px;
     807    margin-top: 70px;
     808}
     809.ec-footer div:first-of-type {
     810    font-weight: 600;
     811}
     812.ec-footer div {
     813    margin-top: 10px;
     814}
     815.ec-footer .ec-links a {
     816    color: #005ae0;
     817}
     818
     819.ec-footer .ec-social-links a:focus {
     820    box-shadow: none;
     821}
     822
     823.ec-footer .ec-social-links a:hover {
     824    color: #005AE0;
     825}
     826
     827.ec-footer div svg.ec-facebook, .ec-footer div svg.ec-linkedin {
     828    width: 16px;
     829    height: 16px;
     830}
     831.ec-footer div svg.ec-twitter, .ec-footer div svg.ec-youtube {
     832    width: 17px;
     833    height: 16px;
     834}
     835.ec-footer .ec-social-links a{
     836    text-decoration : none;
     837    color: #787c82;
     838}
     839/* end footer section*/
     840
     841
     842.xtec-pro-badge {
     843    margin-left: 5px;
     844    height: 22px;
     845    border-radius: 3px;
     846    background: #005AE0;
     847    color: #FFF;
     848    font-size: 12px;
     849    line-height: 18px;
     850    font-weight: 600;
     851    display: inline-flex;
     852    padding: 0 4px;
     853    align-items: center;
     854}
     855
     856.ec-pro-upgrade-wrapper {
     857    position: relative;
     858    text-align: center;
     859    padding: 50px 20px;
     860    background: #ffffff;
     861    border: 2px dashed #005AE0;
     862    border-radius: 12px;
     863    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
     864}
     865
     866.ec-pro-upgrade-message {
     867    font-size: 18px;
     868    font-weight: bold;
     869    color: #005AE0;
     870    margin-bottom: 15px;
     871}
     872
     873.ec-pro-upgrade-btn {
     874    display: inline-block;
     875    padding: 12px 25px;
     876    background: #005AE0;
     877    color: #fff;
     878    font-weight: bold;
     879    text-decoration: none;
     880    border-radius: 8px;
     881    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
     882    transition: all 0.3s ease;
     883}
     884
     885.ec-pro-upgrade-btn:hover {
     886    background: #0041a8;
     887    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
     888    color:#fff;
     889}
     890
     891.ec-pro-upgrade-subtext {
     892    margin-top: 15px;
     893    font-size: 14px;
     894    color: #000000;
     895}
     896
     897.ec-card .ec-content {
     898  font-size: 14px;
     899  line-height: 22px;
     900  padding: 30px;
     901  position: relative;
     902  display: flex;
     903  flex-direction: column;
     904  gap: 30px;
     905}
     906
     907.xtlf_source_import input[type="text"],
     908.xtlf_source_import input[type="number"],
     909.xtlf_source_import select {
     910  width: 45%;
     911  max-width: 100%;
     912}
     913
     914.ec-title-text{
     915  font-weight: 600;
     916  font-size: 14px;
     917  line-height: 22px;
     918  display: flex;
     919  align-items: center;
     920}
     921
     922.wpec_button {
     923    font-weight: 600 !important;
     924    padding: 10px 15px;
     925    border-radius: 4px;
     926    cursor: pointer;
     927    transition: background-color .2s ease;
     928    position: relative;
     929    text-decoration: none;
     930    color: #fff;
     931    white-space: nowrap;
     932    letter-spacing: normal;
     933    background-color: #005AE0;
     934    border: 0;
     935}
     936.wpec_button:hover, .wpec_button:active, .wpec_button:focus {
     937    background-color: #0049b3;
     938    border: 0;
     939    color: #fff;
     940}
     941
     942.ec-inner-single-row-left{
     943  width: 30%;
     944}
     945.ec-inner-single-row-right{
     946  width: 70%;
     947}
     948
     949.xtei-settings-wrapper {
     950    background: #fff;
     951    padding: 25px;
     952    border-radius: 12px;
     953    max-width: 100%;
     954}
     955
     956.xtei-section-title {
     957    font-size: 20px !important;
     958    text-align: center;
     959    padding: 0 0 20px 0 !important;
     960    margin-bottom: 20px;
     961    font-weight: 600;
     962}
     963
     964.xtei-grid {
     965    display: grid;
     966    grid-template-columns: 1fr 1fr;
     967    gap: 25px;
     968}
     969@media (max-width: 768px) {
     970    .xtei-grid {
     971        grid-template-columns: 1fr;
     972    }
     973}
     974
     975.xtei-item {
     976    background: #f8f9fb;
     977    border: 1px solid #e3e3e3;
     978    padding: 18px 20px;
     979    border-radius: 10px;
     980    position: relative;
     981}
     982
     983
     984.xtei-pro-badge {
     985    position: absolute;
     986    top: 10px;
     987    right: 10px;
     988    background: #005AE0;
     989    color: #fff;
     990    padding: 4px 10px;
     991    border-radius: 6px;
     992    font-size: 11px;
     993    font-weight: 600;
     994}
     995
     996.xtei-item.xtei-pro .xtei-pro-badge {
     997    opacity: 1 !important;
     998}
     999
     1000.xtei-label {
     1001    font-size: 15px;
     1002    font-weight: 600;
     1003    margin-bottom: 8px;
     1004}
     1005
     1006.xtei-help {
     1007    font-size: 13px;
     1008    opacity: 0.75;
     1009    margin-top: 8px;
     1010    line-height: 1.4;
     1011}
     1012
     1013.xtei-switch {
     1014    position: relative;
     1015    width: 46px;
     1016    height: 22px;
     1017    display: inline-block;
     1018}
     1019
     1020.xtei-switch input {
     1021    display: none;
     1022}
     1023
     1024.xtei-slider {
     1025    position: absolute;
     1026    top: 0; left: 0;
     1027    right: 0; bottom: 0;
     1028    background: #ccc;
     1029    border-radius: 22px;
     1030    cursor: pointer;
     1031    transition: .3s ease;
     1032}
     1033
     1034.xtei-slider:before {
     1035    content: "";
     1036    position: absolute;
     1037    height: 18px;
     1038    width: 18px;
     1039    left: 2px;
     1040    bottom: 2px;
     1041    background: #fff;
     1042    border-radius: 50%;
     1043    transition: .3s ease;
     1044}
     1045
     1046.xtei-switch input:checked + .xtei-slider {
     1047    background: #005AE0;
     1048}
     1049
     1050.xtei-switch input:checked + .xtei-slider:before {
     1051    transform: translateX(24px);
     1052}
     1053
     1054.xtei-save-wrap {
     1055    margin-top: 25px;
     1056}
     1057svg.ec-circle-question-mark{
     1058    color : #000000;
     1059}
     1060
     1061
     1062.xtei-pro-link {
     1063    display: inline-block;
     1064    margin-top: 8px;
     1065    font-size: 13px;
     1066    font-weight: 600;
     1067    color: #005AE0;
     1068    text-decoration: underline;
     1069}
     1070
     1071.xtei-pro-link:hover {
     1072    color: #005AE0;
     1073}
     1074.wpec_upgrade_pro {
     1075  background: #1da867;
     1076}
  • event-schema/trunk/event-schema.php

    r3397154 r3487206  
    44 * Plugin URI:        http://xylusthemes.com/plugins/event-schema/
    55 * Description:       Event Schema is automatically generates Google Rich Snippet Schema for Events.
    6  * Version:           1.1.4
     6 * Version:           1.1.5
    77 * Author:            Xylus Themes
    88 * Author URI:        http://xylusthemes.com
     
    5353
    5454            add_action( 'plugins_loaded', array( self::$instance, 'load_textdomain' ) );
     55            add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), array( self::$instance, 'wpes_setting_doc_links' ) );
    5556
    5657            self::$instance->includes();
     
    8586     * @since 1.0.0
    8687     */
    87     public function __clone() { _doing_it_wrong( __FUNCTION__, esc_attr__( 'Cheatin&#8217; huh?', 'event-schema' ), '1.1.4' ); }
     88    public function __clone() { _doing_it_wrong( __FUNCTION__, esc_attr__( 'Cheatin&#8217; huh?', 'event-schema' ), '1.1.5' ); }
    8889
    8990    /**
     
    9293     * @since 1.0.0
    9394     */
    94     public function __wakeup() { _doing_it_wrong( __FUNCTION__, esc_attr__( 'Cheatin&#8217; huh?', 'event-schema' ), '1.1.4' ); }
     95    public function __wakeup() { _doing_it_wrong( __FUNCTION__, esc_attr__( 'Cheatin&#8217; huh?', 'event-schema' ), '1.1.5' ); }
    9596
    9697
     
    106107        // Plugin version.
    107108        if( ! defined( 'ES_VERSION' ) ){
    108             define( 'ES_VERSION', '1.1.4' );
     109            define( 'ES_VERSION', '1.1.5' );
    109110        }
    110111
     
    156157
    157158    /**
     159     * WPES setting And docs link add in plugin page.
     160     *
     161     * @since 1.0
     162     * @return void
     163     */
     164    public function wpes_setting_doc_links( $links ) {
     165        $iee_setting_doc_link = array(
     166            'wpes-event-setting' => sprintf(
     167                '<a href="%s">%s</a>',
     168                esc_url( admin_url( 'admin.php?page=event_schema&tab=settings' ) ),
     169                esc_html__( 'Setting', 'event-schema' )
     170            ),
     171            'wpes-event-docs' => sprintf(
     172                '<a target="_blank" href="%s">%s</a>',
     173                esc_url( 'https://docs.xylusthemes.com/docs/event-schema/' ),
     174                esc_html__( 'Docs', 'event-schema' )
     175            ),
     176            'wpes-event-pro-link' => sprintf(
     177                '<a href="%s" target="_blank" style="color:#1da867;font-weight: 900;">%s</a>',
     178                esc_url( 'https://xylusthemes.com/plugins/event-schema/' ),
     179                esc_html__( 'Upgrade to Pro', 'event-schema' )
     180            ),
     181        );
     182
     183        return array_merge( $links, $iee_setting_doc_link );
     184    }
     185
     186    /**
    158187     * Loads the plugin language files.
    159188     *
  • event-schema/trunk/includes/class-event-schema-admin.php

    r3269330 r3487206  
    4040
    4141        add_action( 'admin_menu', array( $this, 'add_menu_pages' ) );
     42        add_filter( 'submenu_file', array( $this, 'get_selected_tab_submenu_wpec' ) );
    4243        add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_admin_styles' ) );
    43         add_action( 'admin_notices', array( $this, 'display_notices' ) );
     44        add_action( 'admin_notices', array( $this,'ec_display_all_notices' ), 1 );
     45        add_action( 'ec_display_all_notice', array( $this, 'ec_display_notices' ) );
    4446        add_filter( 'admin_footer_text', array( $this, 'add_event_schema_credit' ) );
    4547        add_action( 'wp_dashboard_setup', array( $this, 'add_dashboard_widget') );
     
    5355     */
    5456    public function add_menu_pages() {
    55         add_options_page( __( 'Event Schema', 'event-schema' ), __( 'Event Schema', 'event-schema' ), 'manage_options', 'event_schema', array( $this, 'admin_page' ) );
    56     }
     57
     58        add_menu_page( __( 'Event Schema', 'event-schema' ), __( 'Event Schema', 'event-schema' ), 'manage_options', 'event_schema', array( $this, 'admin_page' ), 'dashicons-analytics', '30' );
     59        global $submenu;
     60        $submenu['event_schema'][] = array( __( 'Settings', 'event-schema' ), 'manage_options', admin_url( 'admin.php?page=event_schema&tab=settings' ) );
     61        $submenu['event_schema'][] = array( __( 'Support', 'event-schema' ), 'manage_options', admin_url( 'admin.php?page=event_schema&tab=support' ) );
     62        if( !wpec_is_pro() ){
     63            $submenu['event_schema'][] = array( '<li class="wpec_upgrade_pro current">' . __( 'Upgrade to Pro', 'event-schema' ) . '</li>', 'manage_options', esc_url( "https://xylusthemes.com/plugins/event-schema/") );
     64        }
     65    }
     66
     67    /**
     68     * Tab Submenu got selected.
     69     *
     70     * @since 1.6.7
     71     * @return void
     72     */
     73    public function get_selected_tab_submenu_wpec( $submenu_file ){
     74        if( !empty( $_GET['page'] ) && esc_attr( sanitize_text_field( wp_unslash( $_GET['page'] ) ) ) == 'event_schema' ){ // phpcs:ignore WordPress.Security.NonceVerification.Recommended
     75            $allowed_tabs = array( 'settings', 'support' );
     76            $tab = isset( $_GET['tab'] ) ? esc_attr( sanitize_text_field( wp_unslash( $_GET['tab'] ) ) ) : 'settings'; // phpcs:ignore WordPress.Security.NonceVerification.Recommended
     77            if( in_array( $tab, $allowed_tabs ) ){
     78                $submenu_file = admin_url( 'admin.php?page=event_schema&tab='.$tab );
     79            }
     80        }
     81        return $submenu_file;
     82    }
     83
    5784
    5885    /**
     
    6794    function enqueue_admin_styles( $hook ) {
    6895
    69         $css_dir = ES_PLUGIN_URL . 'assets/css/';
    70         wp_enqueue_style( 'event-schema', $css_dir . 'event-schema-admin.css', array(), ES_VERSION );
     96        $page    = isset( $_GET['page'] ) ? esc_attr( sanitize_text_field( wp_unslash( $_GET['page'] ) ) ) : '';
     97        $css_dir = ES_PLUGIN_URL . 'assets/css/';
     98        if( 'event_schema' == $page ){
     99            wp_enqueue_style( 'event-schema', $css_dir . 'event-schema-admin.css', array(), ES_VERSION );
     100        }
    71101    }
    72102
     
    78108     */
    79109    function admin_page() {
     110        global $event_schema;
     111       
     112        // phpcs:ignore WordPress.Security.NonceVerification.Recommended
     113        $page_title = isset( $_GET['tab'] ) ? esc_attr( sanitize_text_field( wp_unslash( ucwords( $_GET['tab'] ) ) ) ) : 'Settings';
     114        $active_tab = isset( $_GET['tab'] ) ? esc_attr( sanitize_text_field( wp_unslash( $_GET['tab'] ) ) ) : 'settings';
     115        $gettab     = ucwords( str_replace( '_', ' ', $active_tab ) );
     116        if( $active_tab == 'settings' || $active_tab == 'support' ){
     117            $gettab     = ucwords( str_replace( '_', ' ', $gettab ) );
     118            $page_title = $gettab;
     119        }
     120       
     121        $posts_header_result = $event_schema->common->wpec_render_common_header( $page_title );
     122        ?>
     123       
     124        <div class="ec-container" >
     125            <div class="ec-wrap" >
     126                <div id="poststuff">
     127                    <div id="post-body" class="metabox-holder columns-2">
     128                        <?php
     129                            do_action( 'ec_display_all_notice' );
     130                        ?>
     131                        <div class="ajax_wpec_notice"></div>
     132                        <div id="postbox-container-2" class="postbox-container">
     133                            <div class="ec-app">
     134                                <div class="ec-tabs">
     135                                    <div class="tabs-scroller">
     136                                        <div class="var-tabs var-tabs--item-horizontal var-tabs--layout-horizontal-padding">
     137                                            <div class="var-tabs__tab-wrap var-tabs--layout-horizontal">
     138                                                <a href="<?php echo esc_url( admin_url( 'admin.php?page=event_schema&tab=settings' ) ); ?>" class="var-tab <?php echo $active_tab == 'settings' ? 'var-tab--active' : 'var-tab--inactive'; ?>">
     139                                                    <span class="tab-label"><?php esc_attr_e( 'Settings', 'xt-feed-for-linkedin' ); ?></span>
     140                                                </a>
     141                                                <a href="<?php echo esc_url( admin_url( 'admin.php?page=event_schema&tab=support' ) ); ?>" class="var-tab <?php echo $active_tab == 'support' ? 'var-tab--active' : 'var-tab--inactive'; ?>">
     142                                                    <span class="tab-label"><?php esc_attr_e( 'Support & Help', 'xt-feed-for-linkedin' ); ?></span>
     143                                                </a>
     144                                            </div>
     145                                        </div>
     146                                    </div>
     147                                </div>
     148                            </div>
     149   
     150                            <?php
     151                       
     152                            if( $active_tab == 'settings' ){
     153                                require_once ES_PLUGIN_DIR . '/templates/event-schema-settings.php';
     154                            }elseif( $active_tab == 'support' ){
     155                                require_once ES_PLUGIN_DIR . '/templates/event-schema-support.php';
     156                            }
     157                            ?>
     158                        </div>
     159                    </div>
     160                    <br class="clear">
     161                </div>
     162            </div>
     163        </div>
     164        <?php
     165        $posts_footer_result = $event_schema->common->wpec_render_common_footer();
    80166        ?>
    81         <div class="wrap">
    82             <h2><?php esc_html_e( 'Event Schema', 'event-schema' ); ?></h2>
    83             <?php
    84             // Set Default Tab to Import.
    85             // phpcs:ignore WordPress.Security.NonceVerification.Recommended
    86             $tab = isset( $_GET['tab'] ) ? sanitize_text_field( wp_unslash( $_GET['tab'] ) ) : 'settings';
    87             ?>
    88             <div id="poststuff">
    89                 <div id="post-body" class="metabox-holder columns-2">
    90 
    91                     <div id="postbox-container-1" class="postbox-container">
    92                         <?php require_once ES_PLUGIN_DIR . '/templates/admin-sidebar.php'; ?>
    93                     </div>
    94                     <div id="postbox-container-2" class="postbox-container">
    95 
    96                         <h1 class="nav-tab-wrapper">
    97 
    98                             <a href="<?php echo esc_url( add_query_arg( 'tab', 'settings', $this->adminpage_url ) ); ?>" class="nav-tab <?php if ( 'settings' === $tab ) { echo 'nav-tab-active'; } ?>">
    99                                 <?php esc_html_e( 'Settings', 'event-schema' ); ?>
    100                             </a>
    101                             <a href="<?php echo esc_url( add_query_arg( 'tab', 'support', $this->adminpage_url ) ); ?>" class="nav-tab <?php if ( $tab == 'support' ) { echo 'nav-tab-active'; } ?>">
    102                                 <?php esc_html_e( 'Support & Help', 'event-schema' ); ?>
    103                             </a>
    104                         </h1>
    105 
    106                         <div class="event-schema-page">
    107 
    108                             <?php
    109                             if ( 'settings' === $tab ) {
    110 
    111                                 require_once ES_PLUGIN_DIR . '/templates/event-schema-settings.php';
    112 
    113                             }elseif ( $tab == 'support' ) {
    114                                
    115                                 require_once ES_PLUGIN_DIR . '/templates/event-schema-support.php';
    116 
    117                             }
    118                             ?>
    119                             <div style="clear: both"></div>
    120                         </div>
    121                 </div>             
    122             </div>
    123         </div>
    124167        <?php
    125168    }
    126169
    127170    /**
     171     * Remove All Notices
     172     */
     173    public function ec_display_all_notices() {
     174        // Remove default notices display.
     175        remove_action( 'admin_notices', 'wp_admin_notices' );
     176        remove_action( 'all_admin_notices', 'wp_admin_notices' );
     177    }
     178
     179    /**
    128180     * Display notices in admin.
    129181     *
    130182     * @since    1.0.0
    131183     */
    132     public function display_notices() {
     184    public function ec_display_notices() {
    133185        global $es_errors, $es_success_msg, $es_warnings, $es_info_msg;
    134186
     
    136188            foreach ( $es_errors as $error ) :
    137189                ?>
    138                 <div class="notice notice-error is-dismissible">
     190                <div class="notice notice-error is-dismissible ec-notice">
    139191                    <p><?php echo esc_attr( $error ); ?></p>
    140192                </div>
     
    146198            foreach ( $es_success_msg as $success ) :
    147199                ?>
    148                 <div class="notice notice-success is-dismissible">
     200                <div class="notice notice-success is-dismissible ec-notice">
    149201                    <p><?php echo esc_attr( $success ); ?></p>
    150202                </div>
     
    156208            foreach ( $es_warnings as $warning ) :
    157209                ?>
    158                 <div class="notice notice-warning is-dismissible">
     210                <div class="notice notice-warning is-dismissible ec-notice">
    159211                    <p><?php echo esc_attr( $warning ); ?></p>
    160212                </div>
     
    166218            foreach ( $es_info_msg as $info ) :
    167219                ?>
    168                 <div class="notice notice-info is-dismissible">
     220                <div class="notice notice-info is-dismissible ec-notice">
    169221                    <p><?php echo esc_attr( $info ); ?></p>
    170222                </div>
  • event-schema/trunk/includes/class-event-schema-common.php

    r3269330 r3487206  
    6060    public function get_active_supported_event_plugins() {
    6161
    62         $supported_plugins = array();
    63         if ( ! function_exists( 'is_plugin_active' ) ) {
    64             require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
    65         }
    66         // check Events Manager.
    67         if( defined( 'EM_VERSION' ) ){
    68             $supported_plugins['em'] = __( 'Events Manager', 'event-schema' );
    69         }
    70        
    71         // Check event_organizer.
    72         if( defined( 'EVENT_ORGANISER_VER' ) &&  defined( 'EVENT_ORGANISER_DIR' ) ){
    73             $supported_plugins['event_organizer'] = __( 'Event Organiser', 'event-schema' );
    74         }
    75 
    76         // check EventON.
    77         if( class_exists( 'EventON' ) ){
    78             $supported_plugins['eventon'] = __( 'EventON', 'event-schema' );
    79         }
    80 
    81         // check All in one Event Calendar
    82         if( class_exists( 'Ai1ec_Event' ) ){
    83             $supported_plugins['aioec'] = __( 'All in one Event Calendar', 'event-schema' );
    84         }
    85 
    86         // check Import Facebook Events
    87         if( class_exists( 'Import_Facebook_Events' ) ){
    88             $supported_plugins['import_facebook_events'] = __( 'Import Facebook Events', 'event-schema' );
    89         }
    90 
    91         // check Import Eventbrite Events
    92         if( class_exists( 'Import_Eventbrite_Events' ) ){
    93             $supported_plugins['import_eventbrite_events'] = __( 'Import Eventbrite Events', 'event-schema' );
    94         }
    95 
    96         // check Import Meetup Events
    97         if( class_exists( 'Import_Meetup_Events' ) ){
    98             $supported_plugins['import_meetup_events'] = __( 'Import Meetup Events', 'event-schema' );
    99         }
    100 
    101         // check WP Event Aggregator
    102         if( class_exists( 'WP_Event_Aggregator' ) ){
    103             $supported_plugins['wp_event_aggregator'] = __( 'WP Event Aggregator', 'event-schema' );
    104         }
    105 
    106         // check My Calendar
    107         /*if ( is_plugin_active( 'my-calendar/my-calendar.php' ) ) {
    108             $supported_plugins['my_calendar'] = __( 'My Calendar', 'event-schema' );
    109         }*/     
     62        $supported_plugins                             = array();
     63        $supported_plugins['em']                       = esc_attr__( 'Events Manager', 'event-schema' );
     64        $supported_plugins['event_organizer']          = esc_attr__( 'Event Organiser', 'event-schema' );
     65        $supported_plugins['eventon']                  = esc_attr__( 'EventON', 'event-schema' );
     66        $supported_plugins['aioec']                    = esc_attr__( 'All in One Event Calendar', 'event-schema' );
     67        $supported_plugins['import_facebook_events']   = esc_attr__( 'Import Facebook Events', 'event-schema' );
     68        $supported_plugins['import_eventbrite_events'] = esc_attr__( 'Import Eventbrite Events', 'event-schema' );
     69        $supported_plugins['import_meetup_events']     = esc_attr__( 'Import Meetup Events', 'event-schema' );
     70        $supported_plugins['wp_event_aggregator']      = esc_attr__( 'WP Event Aggregator', 'event-schema' );
     71        $supported_plugins['eventprime']               = esc_attr__( 'Event Prime', 'event-schema' );
     72        $supported_plugins['eventin']                  = esc_attr__( 'EventIn', 'event-schema' );
     73        $supported_plugins['wp_events_manager']        = esc_attr__( 'WP Events Manager', 'event-schema' );
     74        $supported_plugins['foo_event']                = esc_attr__( 'Foo Event', 'event-schema' );
    11075        return $supported_plugins;
    11176    }
     
    371336    }
    372337
     338    /**
     339     * Render Page header Section
     340     *
     341     * @since 1.1
     342     * @return void
     343     */
     344    public function wpec_render_common_header( $page_title  ){
     345        ?>
     346        <div class="ec-header" >
     347            <div class="ec-container" >
     348                <div class="ec-header-content" >
     349                    <span style="font-size:18px;"><?php esc_html_e('Dashboard','xt-feed-for-linkedin'); ?></span>
     350                    <span class="spacer"></span>
     351                    <span class="page-name"><?php echo esc_attr( $page_title ); ?></span></span>
     352                    <div class="header-actions" >
     353                        <span class="round" title="Documentation" >
     354                            <a href="<?php echo esc_url( 'https://docs.xylusthemes.com/docs/event-schema/' ); ?>" target="_blank">
     355                                <svg viewBox="0 0 20 20" fill="#000000" height="20px" xmlns="http://www.w3.org/2000/svg" class="ec-circle-question-mark">
     356                                    <path fill-rule="evenodd" clip-rule="evenodd" d="M1.6665 10.0001C1.6665 5.40008 5.39984 1.66675 9.99984 1.66675C14.5998 1.66675 18.3332 5.40008 18.3332 10.0001C18.3332 14.6001 14.5998 18.3334 9.99984 18.3334C5.39984 18.3334 1.6665 14.6001 1.6665 10.0001ZM10.8332 13.3334V15.0001H9.1665V13.3334H10.8332ZM9.99984 16.6667C6.32484 16.6667 3.33317 13.6751 3.33317 10.0001C3.33317 6.32508 6.32484 3.33341 9.99984 3.33341C13.6748 3.33341 16.6665 6.32508 16.6665 10.0001C16.6665 13.6751 13.6748 16.6667 9.99984 16.6667ZM6.6665 8.33341C6.6665 6.49175 8.15817 5.00008 9.99984 5.00008C11.8415 5.00008 13.3332 6.49175 13.3332 8.33341C13.3332 9.40251 12.6748 9.97785 12.0338 10.538C11.4257 11.0695 10.8332 11.5873 10.8332 12.5001H9.1665C9.1665 10.9824 9.9516 10.3806 10.6419 9.85148C11.1834 9.43642 11.6665 9.06609 11.6665 8.33341C11.6665 7.41675 10.9165 6.66675 9.99984 6.66675C9.08317 6.66675 8.33317 7.41675 8.33317 8.33341H6.6665Z" fill="currentColor"></path>
     357                                </svg>
     358                            </a>
     359                        </span>
     360                    </div>
     361                </div>
     362            </div>
     363        </div>
     364        <?php
     365       
     366    }
     367
     368    /**
     369     * Render Page Footer Section
     370     *
     371     * @since 1.1
     372     * @return void
     373     */
     374    public function wpec_render_common_footer(){
     375        ?>
     376            <div id="ec-footer-links" >
     377                <div class="ec-footer">
     378                    <div><?php esc_attr_e( 'Made with ♥ by the Xylus Themes','xt-feed-for-linkedin'); ?></div>
     379                    <div class="ec-links" >
     380                        <a href="<?php echo esc_url( 'https://xylusthemes.com/support/' ); ?>" target="_blank" ><?php esc_attr_e( 'Support','xt-feed-for-linkedin'); ?></a>
     381                        <span>/</span>
     382                        <a href="<?php echo esc_url( 'https://docs.xylusthemes.com/docs/event-schema/' ); ?>" target="_blank" ><?php esc_attr_e( 'Docs','xt-feed-for-linkedin'); ?></a>
     383                        <span>/</span>
     384                        <a href="<?php echo esc_url( admin_url( 'plugin-install.php?s=xylus&tab=search&type=term' ) ); ?>" ><?php esc_attr_e( 'Free Plugins','xt-feed-for-linkedin'); ?></a>
     385                    </div>
     386                    <div class="ec-social-links">
     387                        <a href="<?php echo esc_url( 'https://www.facebook.com/xylusinfo/' ); ?>" target="_blank" >
     388                            <svg class="ec-facebook">
     389                                <path fill="currentColor" d="M16 8.05A8.02 8.02 0 0 0 8 0C3.58 0 0 3.6 0 8.05A8 8 0 0 0 6.74 16v-5.61H4.71V8.05h2.03V6.3c0-2.02 1.2-3.15 3-3.15.9 0 1.8.16 1.8.16v1.98h-1c-1 0-1.31.62-1.31 1.27v1.49h2.22l-.35 2.34H9.23V16A8.02 8.02 0 0 0 16 8.05Z"></path>
     390                            </svg>
     391                        </a>
     392                        <a href="<?php echo esc_url( 'https://www.linkedin.com/company/xylus-consultancy-service-xcs-/' ); ?>" target="_blank" >
     393                            <svg class="ec-linkedin">
     394                                <path fill="currentColor" d="M14 1H1.97C1.44 1 1 1.47 1 2.03V14c0 .56.44 1 .97 1H14a1 1 0 0 0 1-1V2.03C15 1.47 14.53 1 14 1ZM5.22 13H3.16V6.34h2.06V13ZM4.19 5.4a1.2 1.2 0 0 1-1.22-1.18C2.97 3.56 3.5 3 4.19 3c.65 0 1.18.56 1.18 1.22 0 .66-.53 1.19-1.18 1.19ZM13 13h-2.1V9.75C10.9 9 10.9 8 9.85 8c-1.1 0-1.25.84-1.25 1.72V13H6.53V6.34H8.5v.91h.03a2.2 2.2 0 0 1 1.97-1.1c2.1 0 2.5 1.41 2.5 3.2V13Z"></path>
     395                            </svg>
     396                        </a>
     397                        <a href="<?php echo esc_url( 'https://x.com/XylusThemes" target="_blank' ); ?>" target="_blank" >
     398                            <svg class="ec-twitter" width="24" height="24" viewBox="0 0 24 24">
     399                                <circle cx="12" cy="12" r="12" fill="currentColor"></circle>
     400                                <g>
     401                                    <path d="M13.129 11.076L17.588 6H16.5315L12.658 10.4065L9.5665 6H6L10.676 12.664L6 17.9865H7.0565L11.1445 13.332L14.41 17.9865H17.9765L13.129 11.076ZM11.6815 12.7225L11.207 12.0585L7.4375 6.78H9.0605L12.1035 11.0415L12.576 11.7055L16.531 17.2445H14.908L11.6815 12.7225Z" fill="white"></path>
     402                                </g>
     403                            </svg>
     404                        </a>
     405                        <a href="<?php echo esc_url( 'https://www.youtube.com/@xylussupport7784' ); ?>" target="_blank" >
     406                            <svg class="ec-youtube">
     407                                <path fill="currentColor" d="M16.63 3.9a2.12 2.12 0 0 0-1.5-1.52C13.8 2 8.53 2 8.53 2s-5.32 0-6.66.38c-.71.18-1.3.78-1.49 1.53C0 5.2 0 8.03 0 8.03s0 2.78.37 4.13c.19.75.78 1.3 1.5 1.5C3.2 14 8.51 14 8.51 14s5.28 0 6.62-.34c.71-.2 1.3-.75 1.49-1.5.37-1.35.37-4.13.37-4.13s0-2.81-.37-4.12Zm-9.85 6.66V5.5l4.4 2.53-4.4 2.53Z"></path>
     408                            </svg>
     409                        </a>
     410                    </div>
     411                </div>
     412            </div>
     413        <?php   
     414    }
     415
    373416}
     417
     418/**
     419 * Check is pro active or not.
     420 *
     421 * @since  1.5.0
     422 * @return boolean
     423 */
     424function wpec_is_pro() {
     425    if ( ! function_exists( 'is_plugin_active' ) ) {
     426        include_once ABSPATH . 'wp-admin/includes/plugin.php';
     427    }
     428    if ( is_plugin_active( 'event-schema-pro/event-schema-pro.php' ) ) {
     429        return true;
     430    }
     431    return false;
     432}
  • event-schema/trunk/languages/event-schema.pot

    r3397154 r3487206  
    1 # Copyright (C) 2025 Xylus Themes
     1# Copyright (C) 2026 Xylus Themes
    22# This file is distributed under the GPL-2.0+.
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Event Schema 1.1.4\n"
     5"Project-Id-Version: Event Schema 1.1.5\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/event-schema\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2025-11-17T11:15:18+00:00\n"
     12"POT-Creation-Date: 2026-03-20T13:09:16+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.12.0\n"
     
    1717#. Plugin Name of the plugin
    1818#: event-schema.php
    19 #: includes/class-event-schema-admin.php:55
    20 #: includes/class-event-schema-admin.php:82
     19#: includes/class-event-schema-admin.php:58
    2120msgid "Event Schema"
    2221msgstr ""
     
    4241msgstr ""
    4342
    44 #: event-schema.php:87
    45 #: event-schema.php:94
     43#: event-schema.php:88
     44#: event-schema.php:95
    4645msgid "Cheatin&#8217; huh?"
    4746msgstr ""
    4847
    49 #: includes/class-event-schema-admin.php:99
     48#: event-schema.php:169
     49msgid "Setting"
     50msgstr ""
     51
     52#: event-schema.php:174
     53msgid "Docs"
     54msgstr ""
     55
     56#: event-schema.php:179
     57#: includes/class-event-schema-admin.php:63
     58msgid "Upgrade to Pro"
     59msgstr ""
     60
     61#: includes/class-event-schema-admin.php:60
    5062msgid "Settings"
    5163msgstr ""
    5264
    53 #: includes/class-event-schema-admin.php:102
    54 msgid "Support & Help"
    55 msgstr ""
    56 
    57 #: includes/class-event-schema-admin.php:183
     65#: includes/class-event-schema-admin.php:61
     66msgid "Support"
     67msgstr ""
     68
     69#: includes/class-event-schema-admin.php:235
    5870msgid "News from Xylus Themes"
    5971msgstr ""
    6072
    61 #: includes/class-event-schema-admin.php:212
     73#: includes/class-event-schema-admin.php:264
    6274#, php-format
    6375msgid " Rate %1$sEvent Schema%2$s %3$s"
    6476msgstr ""
    6577
    66 #: includes/class-event-schema-admin.php:229
    67 #: includes/class-event-schema-common.php:364
     78#: includes/class-event-schema-admin.php:281
     79#: includes/class-event-schema-common.php:329
    6880msgid "WP Bulk Delete"
    6981msgstr ""
    7082
    71 #: includes/class-event-schema-admin.php:230
    72 #: includes/class-event-schema-common.php:103
    73 #: includes/class-event-schema-common.php:365
     83#: includes/class-event-schema-admin.php:282
     84#: includes/class-event-schema-common.php:70
     85#: includes/class-event-schema-common.php:330
    7486msgid "WP Event Aggregator"
    7587msgstr ""
    7688
    77 #: includes/class-event-schema-admin.php:231
    78 #: includes/class-event-schema-common.php:88
     89#: includes/class-event-schema-admin.php:283
     90#: includes/class-event-schema-common.php:67
    7991msgid "Import Facebook Events"
    8092msgstr ""
    8193
    82 #: includes/class-event-schema-admin.php:232
    83 #: includes/class-event-schema-common.php:93
    84 #: includes/class-event-schema-common.php:367
     94#: includes/class-event-schema-admin.php:284
     95#: includes/class-event-schema-common.php:68
     96#: includes/class-event-schema-common.php:332
    8597msgid "Import Eventbrite Events"
    8698msgstr ""
    8799
    88 #: includes/class-event-schema-admin.php:233
    89 #: includes/class-event-schema-common.php:98
    90 #: includes/class-event-schema-common.php:368
     100#: includes/class-event-schema-admin.php:285
     101#: includes/class-event-schema-common.php:69
     102#: includes/class-event-schema-common.php:333
    91103msgid "Import Meetup Events"
    92104msgstr ""
     
    100112msgstr ""
    101113
    102 #: includes/class-event-schema-common.php:68
     114#: includes/class-event-schema-common.php:63
    103115msgid "Events Manager"
    104116msgstr ""
    105117
     118#: includes/class-event-schema-common.php:64
     119msgid "Event Organiser"
     120msgstr ""
     121
     122#: includes/class-event-schema-common.php:65
     123msgid "EventON"
     124msgstr ""
     125
     126#: includes/class-event-schema-common.php:66
     127msgid "All in One Event Calendar"
     128msgstr ""
     129
     130#: includes/class-event-schema-common.php:71
     131msgid "Event Prime"
     132msgstr ""
     133
     134#: includes/class-event-schema-common.php:72
     135msgid "EventIn"
     136msgstr ""
     137
    106138#: includes/class-event-schema-common.php:73
    107 msgid "Event Organiser"
    108 msgstr ""
    109 
    110 #: includes/class-event-schema-common.php:78
    111 msgid "EventON"
    112 msgstr ""
    113 
    114 #: includes/class-event-schema-common.php:83
    115 msgid "All in one Event Calendar"
    116 msgstr ""
    117 
    118 #: includes/class-event-schema-common.php:366
     139msgid "WP Events Manager"
     140msgstr ""
     141
     142#: includes/class-event-schema-common.php:74
     143msgid "Foo Event"
     144msgstr ""
     145
     146#: includes/class-event-schema-common.php:331
    119147msgid "Import Social Events"
    120148msgstr ""
    121149
    122 #: includes/class-event-schema-common.php:369
     150#: includes/class-event-schema-common.php:334
    123151msgid "WP Smart Import : Import any XML File to WordPress"
    124152msgstr ""
    125153
    126 #: templates/admin-sidebar.php:16
    127 msgid "Custom WordPress Development Services"
    128 msgstr ""
    129 
    130 #: templates/admin-sidebar.php:17
    131 msgid "From small blog to complex web apps, we push the limits of what's possible with WordPress."
    132 msgstr ""
    133 
    134 #: templates/admin-sidebar.php:19
    135 msgid "Hire Us"
    136 msgstr ""
    137 
    138 #: templates/admin-sidebar.php:25
    139 msgid "Would you like to remove these ads?"
    140 msgstr ""
    141 
    142 #: templates/admin-sidebar.php:27
    143 msgid "Get Premium"
    144 msgstr ""
    145 
    146 #: templates/event-schema-settings.php:21
     154#: templates/event-schema-settings.php:11
     155msgid "Event Schema Controls"
     156msgstr ""
     157
     158#: templates/event-schema-settings.php:28
    147159#, php-format
    148160msgid "Disable Event Schema for %s"
    149161msgstr ""
    150162
    151 #: templates/event-schema-settings.php:29
     163#: templates/event-schema-settings.php:42
    152164#, php-format
    153 msgid "Check to disable event schema(structured data) for %s ."
    154 msgstr ""
    155 
    156 #: templates/event-schema-settings.php:46
     165msgid "Disable structured data (schema.org) output for %s."
     166msgstr ""
     167
     168#: templates/event-schema-settings.php:47
     169msgid "Get PRO version"
     170msgstr ""
     171
     172#: templates/event-schema-settings.php:59
    157173msgid "Save Settings"
    158174msgstr ""
  • event-schema/trunk/templates/event-schema-settings.php

    r3269330 r3487206  
    66$active_plugins = $event_schema->common->get_active_supported_event_plugins();
    77?>
    8 <div class="es_container">
    9     <div class="es_row">
    10        
    11         <form method="post" id="es_setting_form">               
     8<div class="ec-card" style="margin-top: 20px;">
     9    <form method="post" id="es_setting_form">
     10        <div class="xtei-settings-wrapper">
     11            <h2 class="xtei-section-title"><?php esc_html_e( 'Event Schema Controls', 'event-schema' ); ?></h2>
     12            <div class="xtei-grid">
     13                <?php
     14                $pro_plugins = array( 'eventprime', 'eventin', 'wp_events_manager', 'foo_event' );
    1215
    13             <table class="form-table">
    14                 <tbody>
    15                     <?php
    16                         if ( !empty( $active_plugins ) ) {
    17                             foreach ($active_plugins as $key => $value) {
    18                                 ?>
    19                                 <tr> 
    20                                     <th scope="row">
    21                                         <?php printf( esc_attr__( 'Disable Event Schema for %s', 'event-schema' ), esc_attr( $value ) ) ; // phpcs:ignore WordPress.WP.I18n.MissingTranslatorsComment ?> :
    22                                     </th>
    23                                     <td>
    24                                         <?php
    25                                         $update_facebook_events = isset( $facebook_options['update_events'] ) ? $facebook_options['update_events'] : 'no';
    26                                         ?>
    27                                         <input type="checkbox" name="event_schema[<?php echo esc_attr( $key ); ?>]" value="<?php echo esc_attr( $key ); ?>" <?php if( in_array( $key, $schema_options ) ) { echo 'checked="checked"'; } ?> />
    28                                         <span class="xtei_small">
    29                                             <?php printf( esc_attr__( 'Check to disable event schema(structured data) for %s .', 'event-schema' ), esc_attr( $value ) ); // phpcs:ignore WordPress.WP.I18n.MissingTranslatorsComment ?>
    30                                         </span>
    31                                     </td>
    32                                 </tr>
    33                                 <?php                               
    34                             }
    35                         } else {
     16                if ( ! empty( $active_plugins ) ) {
     17                    foreach ( $active_plugins as $key => $value ) {
    3618
    37                         }
    38                     ?>
    39                 </tbody>
    40             </table>
    41             <br/>
     19                        $is_pro = in_array( $key, $pro_plugins, true );
     20                        $is_checked = in_array( $key, $schema_options ) ? 'checked="checked"' : '';
     21                        ?>
     22                        <div class="xtei-item <?php echo $is_pro ? 'xtei-pro' : ''; ?>">
     23                            <?php if ( $is_pro ) : ?>
     24                                <span class="xtei-pro-badge">PRO</span>
     25                            <?php endif; ?>
    4226
    43             <div class="es_element">
    44                 <input type="hidden" name="es_action" value="es_save_settings" />
     27                            <div class="xtei-label">
     28                                <?php printf( esc_html__( 'Disable Event Schema for %s', 'event-schema' ), esc_html( $value ) ); ?>
     29                            </div>
     30
     31                            <label class="xtei-switch" <?php echo $is_pro ? 'style="opacity: 0.5"' : ''; ?> >
     32                                <input type="checkbox"
     33                                    name="<?php echo $is_pro ? '' : 'event_schema[' . esc_attr( $key ) . ']'; ?>"
     34                                    value="<?php echo esc_attr( $key ); ?>"
     35                                    <?php echo $is_checked; ?>
     36                                    <?php echo $is_pro ? 'disabled' : ''; ?>
     37                                >
     38                                <span class="xtei-slider"></span>
     39                            </label>
     40
     41                            <p class="xtei-help">
     42                                <?php printf( esc_html__( 'Disable structured data (schema.org) output for %s.', 'event-schema' ), esc_html( $value ) ); ?>
     43                            </p>
     44
     45                            <?php if ( $is_pro ) : ?>
     46                                <a href="https://xylusthemes.com/plugins/event-schema/" target="_blank" class="xtei-pro-link">
     47                                    <?php esc_html_e( 'Get PRO version', 'event-schema' ); ?>
     48                                </a>
     49                            <?php endif; ?>
     50                        </div>
     51                        <?php
     52                    }
     53                }
     54                ?>
     55            </div>
     56            <div class="xtei-save-wrap">
     57                <input type="hidden" name="es_action" value="es_save_settings">
    4558                <?php wp_nonce_field( 'es_setting_form_nonce_action', 'es_setting_form_nonce' ); ?>
    46                 <input type="submit" class="button-primary xtei_submit_button" style=""  value="<?php esc_attr_e( 'Save Settings', 'event-schema' ); ?>" />
     59                <input type="submit" class="wpec_button xtei_submit_button" value="<?php esc_attr_e( 'Save Settings', 'event-schema' ); ?>">
    4760            </div>
    48             </form>
    49     </div>
     61        </div>
     62    </form>
    5063</div>
Note: See TracChangeset for help on using the changeset viewer.