-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat/update-free-version-for-pro-upgrade-prompts (#459)
* feat: 1st trying approach * enhance: added lite modules prompts page with swiffy slider * enhance: pro prompts overall demo * enhance: use reuseable components * enhance: add-tooltip-feature-at-task-settings * fix: removed-redunded-files-part-1 * fix: revert package.json file * fix: redunded-codes-part-2-&-added-task-report-overview * fix: ui-related-issues-after-design-team-review * fix: remove-wp-badge-tooltip * fix: task report page menu related issue * fix: popup-spacing * fix: kanboard-design-update * fix: revert pro badge tooltip from task popup * fix: upgrader-popup-content-related-issue * enhance: update overlay effects & fixes design related issues * fix: update task name * fix: update all enhance & also fix issues * fix: popup slider slide inconsistency issue * enhance: update lang file & added popup spacing fix * fix: kanbanboard-spell-mistake-&-update-upgrade-url * fix: redunded-codes
- Loading branch information
1 parent
3c93844
commit 873df92
Showing
119 changed files
with
10,764 additions
and
830 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
<?php | ||
|
||
namespace WeDevs\PM\Core\Pro; | ||
|
||
/** | ||
* Class Menu | ||
* | ||
* @since 2.6.0 | ||
* | ||
* @package WeDevs\PM\Core\Pro | ||
*/ | ||
class Menu { | ||
|
||
/** | ||
* Prompts menu capabilities. | ||
* | ||
* @since 2.6.0 | ||
* | ||
* @var string | ||
*/ | ||
private static $capability = 'read'; | ||
|
||
/** | ||
* Register pro prompts menu. | ||
* | ||
* @since 2.6.0 | ||
* | ||
* @param string $slug | ||
* | ||
* @return void | ||
*/ | ||
public function admin_menu( $slug ) { | ||
global $submenu, $wedevs_pm_pro; | ||
|
||
// If pm pro exists then stop pro execution. | ||
if ( $wedevs_pm_pro ) { | ||
return; | ||
} | ||
|
||
// if ( pm_has_manage_capability() ) { | ||
// $submenu['pm_projects'][] = array( __( 'Woo Project', 'wedevs-project-manager' ), self::$capability, 'admin.php?page=pm_projects#/woo-project' ); | ||
// } | ||
|
||
$submenu['pm_projects'][] = array( __( 'Calendar', 'wedevs-project-manager' ), self::$capability, 'admin.php?page=pm_projects#/calendar' ); | ||
if ( pm_has_manage_capability() ) { | ||
$submenu['pm_projects'][] = array( __( 'Progress', 'wedevs-project-manager' ), self::$capability, 'admin.php?page=pm_projects#/progress' ); | ||
$submenu['pm_projects'][] = array( __( 'Reports', 'wedevs-project-manager' ), self::$capability, 'admin.php?page=pm_projects#/reports' ); | ||
$submenu['pm_projects'][] = array( __( 'Modules', 'wedevs-project-manager' ), self::$capability, 'admin.php?page=pm_projects#/modules' ); | ||
} | ||
|
||
add_action( 'admin_print_styles-' . $slug, array( $this, 'scripts' ) ); | ||
} | ||
|
||
/** | ||
* Enqueue pro prompts related styles. | ||
* | ||
* @since 2.6.0 | ||
* | ||
* @return void | ||
*/ | ||
public function scripts() { | ||
wp_enqueue_style( 'swiffy-slider' ); | ||
wp_enqueue_style( 'pm-pro-styles' ); | ||
|
||
wp_enqueue_script( 'swiffy-slider' ); | ||
wp_enqueue_script( 'swiffy-slider-extension' ); | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.