Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dic-global-dev
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Manzar Hussain
dic-global-dev
Commits
8af6c687
Commit
8af6c687
authored
Dec 27, 2020
by
Manzar Hussain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
recent investor
parent
7c6344c5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
96 additions
and
0 deletions
+96
-0
envigo.theme
themes/custom/envigo/envigo.theme
+43
-0
views-view-unformatted--recent-investor--block.html.twig
themes/custom/envigo/templates/views/views-view-unformatted--recent-investor--block.html.twig
+53
-0
No files found.
themes/custom/envigo/envigo.theme
View file @
8af6c687
...
...
@@ -18,4 +18,46 @@ function envigo_preprocess_html(&$variables) {
if (is_object($node)) {
$variables['attributes']['class'][] = 'node-' . $node->id();
}
}
function envigo_form_contact_message_feedback_form_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state, $form_id) {
// Name
$form['name']['#prefix'] = '<div class="row"><div class="col-md-6"><div class="form-group">';
$form['name']['#suffix'] = '</div>';
$form['name']['#attributes']['placeholder'][] = $form['name']['#title'].'*';
$form['name']['#attributes']['class'][] = 'form-control';
unset($form['name']['#title']);
// Mail
$form['mail']['#prefix'] = '<div class="form-group">';
$form['mail']['#suffix'] = '</div>';
$form['mail']['#attributes']['placeholder'][] = $form['mail']['#title'].'*';
$form['mail']['#attributes']['class'][] = 'form-control';
unset($form['mail']['#title']);
// Subject
$form['subject']['widget'][0]['value']['#attributes']['class'][] = 'form-control';
$form['subject']['widget'][0]['value']['#attributes']['placeholder'][] = $form['subject']['widget'][0]['#title'].'*';
$form['subject']['widget'][0]['#title'] = '';
unset($form['subject']['widget'][0]['value']['#title']);
$form['subject']['widget'][0]['#prefix'] = '<div class="form-group">';
$form['subject']['widget'][0]['#suffix'] = '</div></div>';
// Message
$form['message']['widget'][0]['value']['#attributes']['class'][] = 'form-control';
$form['message']['widget'][0]['value']['#attributes']['placeholder'][] = $form['message']['widget'][0]['#title'].'*';
$form['message']['widget'][0]['#title'] = '';
unset($form['message']['widget'][0]['value']['#title']);
$form['message']['widget'][0]['#prefix'] = '<div class="col-md-6"><div class="form-group">';
$form['message']['widget'][0]['#suffix'] = '</div></div></div>';
// Submit
$form['actions']['#prefix'] = '<div class="clearfix">';
$form['actions']['#suffix'] = '</div>';
$form['actions']['submit']['#attributes']['class'][] = 'btn';
$form['actions']['submit']['#attributes']['class'][] = 'btn-success';
$form['actions']['submit']['#attributes']['class'][] = 'pull-right';
}
\ No newline at end of file
themes/custom/envigo/templates/views/views-view-unformatted--recent-investor--block.html.twig
0 → 100644
View file @
8af6c687
{#
/**
* @file
* Default theme implementation to display a view of unformatted rows.
*
* Available variables:
* - title: The title of this group of rows. May be empty.
* - rows: A list of the view's row items.
* - attributes: The row's HTML attributes.
* - content: The row's content.
* - view: The view object.
* - default_row_class: A flag indicating whether default classes should be
* used on rows.
*
* @see template_preprocess_views_view_unformatted()
*
* @ingroup themeable
*/
#}
<div
class=
"container-fluid spacerTB slider_m_c_b"
>
<div
class=
"row"
>
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
"col-12"
>
<div
class=
"p_c_slider"
>
<div
class=
"inner_m_slider slider_strip_container"
>
{%
for
row
in
rows
%}
<div
class=
"c_item_slide"
>
<h6>
Recently Updated
</h6>
<div
class=
"row"
>
<div
class=
"col"
>
{{
row.content
[
'#view'
]
.
style_plugin.render_tokens
[
loop.index0
][
'{{ body }}'
]
}}
</div>
<div
class=
"btn_c_b_mn"
>
<a
href=
""
>
Download PDF
<img
src=
"images/pdf.png"
/></a>
</div>
</div>
</div>
{%
endfor
%}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment