Skip to content

Commit

Permalink
Update composer
Browse files Browse the repository at this point in the history
  • Loading branch information
raftaar1191 committed Nov 30, 2023
1 parent 396eb6b commit 15ef3f1
Show file tree
Hide file tree
Showing 465 changed files with 47 additions and 72,237 deletions.
7 changes: 7 additions & 0 deletions admin/class-view-analytics-admin.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
<?php



use Carbon_Fields\Container;
use Carbon_Fields\Field;


// Exit if accessed directly
defined( 'ABSPATH' ) || exit;

Expand Down
20 changes: 10 additions & 10 deletions admin/menu/class-view-analytics-settings-menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,38 +111,38 @@ public function setting_menu(){
'menu_title' => __( 'Settings', 'view-analytics' ),
'capability' => 'manage_options',
'menu_slug' => 'view-analytics-settings',
'items' => array(
'items' => array(
array(
'type' => 'checkbox',
'title' => __( 'View Analytics', 'view-analytics' ),
'type' => 'toggle',
'title' => __( 'View Media Analytics', 'view-analytics' ),
'label' => __( 'Enable Media View Count', 'view-analytics' ),
'id' => $this->media_common->view_count_key(),
),
array(
'type' => 'checkbox',
'type' => 'toggle',
'title' => __( 'View Profile Count', 'view-analytics' ),
'label' => __( 'Enable Profile View Count', 'view-analytics' ),
'id' => $this->profile_common->view_count_key(),
'id' => $this->profile_common->view_count_key(),
),
array(
'type' => 'checkbox',
'type' => 'toggle',
'title' => __( 'View Group Count', 'view-analytics' ),
'label' => __( 'Enable Group View Count', 'view-analytics' ),
'id' => $this->group_common->view_count_key(),
),
array(
'type' => 'checkbox',
'type' => 'toggle',
'title' => __( 'View Avatar Count', 'view-analytics' ),
'label' => __( 'Enable Avatar View Count', 'view-analytics' ),
'id' => $this->avatar_common->view_count_key(),
),
array(
'type' => 'checkbox',
'type' => 'toggle',
'title' => __( 'View Forum/Topic/Reply Count', 'view-analytics' ),
'label' => __( 'Enable Forum/Topic/Reply View Count', 'view-analytics' ),
'id' => $this->forum_common->view_count_key(),
),
),
),
),
) );
}
}
8 changes: 4 additions & 4 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions includes/class-view-analytics-activator.php
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,23 @@ public static function create_table() {
maybe_create_table( $profile_view_table_name, $profile_view_sql );
maybe_create_table( $profile_view_table_name_log, $profile_view_sql_log );


/**
* Add the option to enable the all the setting if the plugin is activiating for the first time
*/
$default_active_keys = array(
'_view_analytics_media_table_count_enable',
'_view_analytics_profile_table_count_enable',
'_view_analytics_group_table_count_enable',
'_view_analytics_avatar_table_count_enable',
'_view_analytics_forum_table_count_enable',
);

foreach( $default_active_keys as $key ) {
if ( option_exists( $key ) ) {
update_option( $key, true );
}
}
}

}
8 changes: 4 additions & 4 deletions vendor/composer/installed.json
Original file line number Diff line number Diff line change
Expand Up @@ -197,12 +197,12 @@
"source": {
"type": "git",
"url": "[email protected]:wpify/custom-fields.git",
"reference": "cd55e4f45aead746e6cfab63000ed1b5d4328409"
"reference": "138666c03fb47f02a09c6fe16f73d763e536590c"
},
"dist": {
"type": "zip",
"url": "https://gitlab.com/api/v4/projects/wpify%2Fcustom-fields/repository/archive.zip?sha=cd55e4f45aead746e6cfab63000ed1b5d4328409",
"reference": "cd55e4f45aead746e6cfab63000ed1b5d4328409",
"url": "https://gitlab.com/api/v4/projects/wpify%2Fcustom-fields/repository/archive.zip?sha=138666c03fb47f02a09c6fe16f73d763e536590c",
"reference": "138666c03fb47f02a09c6fe16f73d763e536590c",
"shasum": ""
},
"require": {
Expand All @@ -212,7 +212,7 @@
"require-dev": {
"symfony/var-dumper": "^v5.4"
},
"time": "2023-11-29T14:20:47+00:00",
"time": "2023-11-30T14:56:39+00:00",
"default-branch": true,
"type": "library",
"installation-source": "dist",
Expand Down
6 changes: 3 additions & 3 deletions vendor/composer/installed.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
'name' => 'acrosswp/view-analytics',
'pretty_version' => 'dev-main',
'version' => 'dev-main',
'reference' => '66a8d6b737a1f8805d6fdf7fc852908549acb18e',
'reference' => '396eb6bcb6beabd0f74c76d16bcb8fa6aff89ef9',
'type' => 'library',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand Down Expand Up @@ -57,7 +57,7 @@
'acrosswp/view-analytics' => array(
'pretty_version' => 'dev-main',
'version' => 'dev-main',
'reference' => '66a8d6b737a1f8805d6fdf7fc852908549acb18e',
'reference' => '396eb6bcb6beabd0f74c76d16bcb8fa6aff89ef9',
'type' => 'library',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand All @@ -66,7 +66,7 @@
'wpify/custom-fields' => array(
'pretty_version' => 'dev-master',
'version' => 'dev-master',
'reference' => 'cd55e4f45aead746e6cfab63000ed1b5d4328409',
'reference' => '138666c03fb47f02a09c6fe16f73d763e536590c',
'type' => 'library',
'install_path' => __DIR__ . '/../wpify/custom-fields',
'aliases' => array(
Expand Down
26 changes: 0 additions & 26 deletions vendor/htmlburger/carbon-fields/.babelrc.js

This file was deleted.

1 change: 0 additions & 1 deletion vendor/htmlburger/carbon-fields/.browserlistrc

This file was deleted.

25 changes: 0 additions & 25 deletions vendor/htmlburger/carbon-fields/.editorconfig

This file was deleted.

135 changes: 0 additions & 135 deletions vendor/htmlburger/carbon-fields/.eslintrc.js

This file was deleted.

5 changes: 0 additions & 5 deletions vendor/htmlburger/carbon-fields/.huskyrc.js

This file was deleted.

5 changes: 0 additions & 5 deletions vendor/htmlburger/carbon-fields/.lintstagedrc.js

This file was deleted.

1 change: 0 additions & 1 deletion vendor/htmlburger/carbon-fields/.nvmrc

This file was deleted.

Loading

0 comments on commit 15ef3f1

Please sign in to comment.