-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1193f47
commit b06a635
Showing
14 changed files
with
84 additions
and
178 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1 +1 @@ | ||
{"pluginName":"User Initials Photo","pluginDescription":"A plugin to assign profile picture of user with their name initials.","pluginVersion":"1.0.0","pluginAuthorName":"Hashtag Errors","pluginVendorName":"hashtagerrors","pluginAuthorUrl":"http://www.hashtagerrors.com","pluginAuthorGithub":"hashtagerror","codeComments":"","pluginComponents":["services"],"consolecommandName":"","controllerName":"","cpsectionName":"","elementName":"","fieldName":"","modelName":"","purchasableName":"","recordName":"","serviceName":"","taskName":"","utilityName":"","widgetName":"","apiVersion":"api_version_3_0"} | ||
{"pluginName":"User Initials Photo","pluginDescription":"A plugin to assign profile picture of user with their name initials.","pluginVersion":"1.0.0","pluginAuthorName":"Hashtag Errors","pluginVendorName":"bhashkar007","pluginAuthorUrl":"https://360adaptive.com","pluginAuthorGithub":"bhashkar007","codeComments":"","pluginComponents":["services"],"consolecommandName":"","controllerName":"","cpsectionName":"","elementName":"","fieldName":"","modelName":"","purchasableName":"","recordName":"","serviceName":"","taskName":"","utilityName":"","widgetName":"","apiVersion":"api_version_3_0"} |
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
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
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
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 |
---|---|---|
@@ -1,45 +1,32 @@ | ||
<?php | ||
/** | ||
* User Initials Photo plugin for Craft CMS 3.x | ||
* | ||
* User Initials Photo plugin for Craft CMS 4.x | ||
* A plugin to assign profile picture of user with their name initials. | ||
* | ||
* @link http://www.hashtagerrors.com | ||
* @copyright Copyright (c) 2019 Hashtag Errors | ||
* @link https://360adaptive.com | ||
* @copyright Copyright (c) 2023 360Adaptive Technologies | ||
*/ | ||
|
||
namespace hashtagerrors\userinitialsphoto\controllers; | ||
namespace bhashkar007\userinitialsphoto\controllers; | ||
|
||
use hashtagerrors\userinitialsphoto\UserInitialsPhoto; | ||
use bhashkar007\userinitialsphoto\UserInitialsPhoto; | ||
|
||
use Craft; | ||
use craft\web\Controller; | ||
|
||
/** | ||
* @author Hashtag Errors | ||
* @author 360Adaptive Technologies | ||
* @package UserInitialsPhoto | ||
* @since 1.1.0 | ||
* @since 2.0.0 | ||
*/ | ||
class DefaultController extends Controller | ||
{ | ||
|
||
// Protected Properties | ||
// ========================================================================= | ||
|
||
/** | ||
* @var bool|array Allows anonymous access to this controller's actions. | ||
* The actions must be in 'kebab-case' | ||
* @access protected | ||
*/ | ||
protected $allowAnonymous = false; | ||
|
||
// Public Methods | ||
// ========================================================================= | ||
protected array|int|bool $allowAnonymous = false; | ||
|
||
public function actionAssignPhoto() | ||
{ | ||
$overwrite = Craft::$app->getRequest()->getParam('ui-overwrite'); | ||
UserInitialsPhoto::$plugin->userInitialsPhotoService->assignPhotos($overwrite); | ||
return $this->redirectToPostedUrl(); | ||
} | ||
} | ||
} |
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
Oops, something went wrong.