FEATURE #1544: add social profile links into settings
This commit is contained in:
@@ -134,6 +134,8 @@ class AppServiceProvider extends ServiceProvider
|
|||||||
|
|
||||||
$registrator->register('basic', 'admin/settings.basic', 'admin.settings.parts.basic');
|
$registrator->register('basic', 'admin/settings.basic', 'admin.settings.parts.basic');
|
||||||
$registrator->register('meta', 'admin/settings.meta', 'admin.settings.parts.meta');
|
$registrator->register('meta', 'admin/settings.meta', 'admin.settings.parts.meta');
|
||||||
|
$registrator->register('social', 'admin/settings.socialSites', 'admin.settings.parts.social');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -10,5 +10,14 @@ return [
|
|||||||
'author' => 'Page owner',
|
'author' => 'Page owner',
|
||||||
'successfullySaved' => 'Settings successfully saved',
|
'successfullySaved' => 'Settings successfully saved',
|
||||||
'nothingToSave' => 'You have submitted unchanged form. Try to change some attribute first.',
|
'nothingToSave' => 'You have submitted unchanged form. Try to change some attribute first.',
|
||||||
'meta' => 'Meta information'
|
'meta' => 'Meta information',
|
||||||
|
'socialSites' => 'Social networks',
|
||||||
|
'social' => [
|
||||||
|
'facebook' => 'Facebook profile',
|
||||||
|
'instagram' => 'Instagram profile',
|
||||||
|
'twitter' => 'Twitter profile',
|
||||||
|
'pinterest' => 'Pinterest profile',
|
||||||
|
'gplus' => 'G+ profile'
|
||||||
|
]
|
||||||
|
|
||||||
];
|
];
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
<label>
|
||||||
|
@lang('admin/settings.social.facebook')
|
||||||
|
|
||||||
|
<input type="text" name="facebookProfile" value="{{old('facebookProfile', isset($settings->facebookProfile) ? $settings->facebookProfile : '')}}" />
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<label>
|
||||||
|
@lang('admin/settings.social.twitter')
|
||||||
|
|
||||||
|
<input type="text" name="twitterProfile" value="{{old('twitterProfile', isset($settings->twitterProfile) ? $settings->twitterProfile : '')}}" />
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<label>
|
||||||
|
@lang('admin/settings.social.pinterest')
|
||||||
|
|
||||||
|
<input type="text" name="pinterestProfile" value="{{old('pinterestProfile', isset($settings->pinterestProfile) ? $settings->pinterestProfile : '')}}" />
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<label>
|
||||||
|
@lang('admin/settings.social.gplus')
|
||||||
|
|
||||||
|
<input type="text" name="gplusProfile" value="{{old('gplusProfile', isset($settings->gplusProfile) ? $settings->gplusProfile : '')}}" />
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<label>
|
||||||
|
@lang('admin/settings.social.instagram')
|
||||||
|
|
||||||
|
<input type="text" name="instagramProfile" value="{{old('instagramProfile', isset($settings->instagramProfile) ? $settings->instagramProfile : '')}}" />
|
||||||
|
</label>
|
||||||
Reference in New Issue
Block a user