Follow

Functional structure of "FlatClassifieds" theme

Functional structure of "FlatClassifieds" theme

1. The features of the theme files

/sites/all/themes/flatclassifieds/flatclassifieds.info
Contains information about the theme name, default settings, available regions, and also the enabling of stylesheet files and scripts

/sites/all/themes/flatclassifieds/page.tpl.php
Contains the template of appearance design for internal pages of the site

/sites/all/themes/flatclassifieds/node.tpl.php
Contains the template of appearance design for nodes of all content types except "Blog entry", "Classified Ad", "Classified Ad NoEx" and "Product" content types

/sites/all/themes/flatclassifieds/node--blog.tpl.php
Contains the template of appearance design for nodes of "Blog entry" content type

/sites/all/themes/flatclassifieds/node--classified.tpl.php
Contains the template of appearance design for nodes of "Classified Ad" content type

/sites/all/themes/flatclassifieds/node--classified_noex.tpl.php
Contains the template of appearance design for nodes of "Classified Ad NoEx" content type

/sites/all/themes/flatclassifieds/node--product.tpl.php
Contains the template of appearance design for nodes of "Product" content type

/sites/all/themes/flatclassifieds/block.tpl.php
Contains the template of appearance design for blocks

/sites/all/themes/flatclassifieds/comment-wrapper.tpl.php
Contains the template of appearance design of comments container

/sites/all/themes/flatclassifieds/comment.tpl.php
Contains the template of appearance design of container of a separate comment

/sites/all/themes/flatclassifieds/views-slideshow--featured-ads.tpl.php
/sites/all/themes/flatclassifieds/views-view-fields--biggooglemap--block.tpl.php
/sites/all/themes/flatclassifieds/views-view-fields--most-popular--block.tpl.php
/sites/all/themes/flatclassifieds/views-view-fields--nodegooglemap--block.tpl.php
/sites/all/themes/flatclassifieds/views-view-unformatted--biggooglemap--block.tpl.php
/sites/all/themes/flatclassifieds/views-view-unformatted--featured-ads.tpl.php
/sites/all/themes/flatclassifieds/views-view-unformatted--home-content-block-.tpl.php
/sites/all/themes/flatclassifieds/views-view-unformatted--nodegooglemap--block.tpl.php
/sites/all/themes/flatclassifieds/views-view-unformatted--search-page--page.tpl.php
/sites/all/themes/flatclassifieds/views-view-unformatted--taxonomy-term-block---block.tpl.php
/sites/all/themes/flatclassifieds/views-view-unformatted--user-ads--page.tpl.php
Contains the template of appearance design of Views

/sites/all/themes/flatclassifieds/html.tpl.php
Contains html titles and the theme container

/sites/all/themes/flatclassifieds/template.php
Contains the auxiliary php code that is required for the functioning of the theme

/sites/all/themes/flatclassifieds/theme-settings.php
Contains the description of the additional fields of the form settings of the theme

/sites/all/themes/flatclassifieds/screenshot.png
The screenshot of the theme

/sites/all/themes/flatclassifieds/logo.png
Default logo of the theme

/sites/all/themes/flatclassifieds/author-picture.gif
Default user avatar

/sites/all/themes/flatclassifieds/css/style.css
/sites/all/themes/flatclassifieds/css/style-rtl.css
The stylesheet files of the site design

/sites/all/themes/flatclassifieds/i
This folder contains image files for the theme design

/sites/all/themes/flatclassifieds/j
This folder contains JavaScript files that provide the functionality of the theme

2. The site structure

The pages consist of the following regions
Sidebar Top Menu
Sidebar Search
Content
Sidebar
Footer Sidebar 1
Footer Sidebar 2
Footer Sidebar 3
Footer Sidebar 4
Footer Copyright

The content types:
"Basic page" is used for separate pages such as "About Us"
"Blog entry" is used for articles of blogs section
"Classified Ad" is used for posting ads, this type of ads has limitations by time, the settings of the limitations are available on the settings page of Classified Ads ( /admin/config/content/classified )
"Classified Ad NoEx" is used for posting ads, this type of ads has no limitations by time
"Product" is used for posting products, different products can be sold with the help of this content type, this functionality is implemented with the help of "Commerce" module
"Classified Ad", "Classified Ad NoEx" and "Product" content types are displayed on the main page, in the categories section
You can use all these content types together or one by one at your discretion

The main page is implemented using Page manager, Panels and Views, the settings are available on "Pages" pages ( /admin/structure/pages/edit/page-home ), Panels ( /admin/structure/panels/layouts/list/home/edit ) and Views ( /admin/structure/views )

User page is implemented using Page manager, Panels and Views, the settings are available on "Pages" pages ( /admin/structure/pages/edit/user_view ), Panels ( /admin/structure/panels/layouts/list/user_page/edit ) and Views ( /admin/structure/views )

The page of node display is implemented using Page manager, Panels and Views, the settings are available on "Pages" pages ( /admin/structure/pages/edit/node_view ), Panels ( /admin/structure/panels/layouts/list/node_classified/edit and /admin/structure/panels/layouts/list/default/edit ) and Views ( /admin/structure/views ), please take into account that "Classified Ad", "Classified Ad NoEx" and "Product" content types use Classifieds variant and all the rest content types use Nodes

"Category" section is implemented using Views, Page manager and Panels, the settings are available on "Pages" pages ( /admin/structure/pages/edit/term_view ), Panels ( /admin/structure/panels/layouts/list/taxonomy/edit ) and Views ( /admin/structure/views )

"Blogs" section is based on standard "Blog" module

"Location" and "GMap" modules are installed and partialy configured to specify location on the map, it's necessary to indicate Google Maps API Key in the settings of the modules in order to complete the configuration completely ( /admin/config/content/location , /admin/config/services/gmap ) see the documentation of these modules, the location that a user specifies in the account has priority when specifying location

The filter that deletes links and e-mails is applied to message body in order to prevent spam, this functionality is implemented with the help of "Filter" and "Custom filter" modules, see the documentation of these modules for any modifications

"E-mail" field can be displayed as e-mail, by default this field is displayed as the link to "send message" form, see the documentation of this module for changing any settings

"Private messages" module is installed on the site, this module allows users to send messages to each other, see the documentation of this module for changing any settings

"Pay to..." product type is used for system of paid options for ads

SKU "pay_to_highlight", "pay_to_featured" and "pay_to_sticky" are used for "Pay to Highlight", "Pay to Featured" and "Pay to Sticky" correspondingly, the price of one product item is specified for 24 hours of placing, these products must not be deleted since it will break the work of the system of paid options for ads

3. Warnings

It's necessary to make a backup of all files and a database before updating any modules, theme or Drupal core.

Additional theme settings are in the section of the settings of flatclassifieds 7.x-1.0 theme that is set by default for this site /admin/appearance/settings/flatclassifieds
The following additional theme settings are available:
Bootstrap - indicates to the location where Bootstrap must be taken from: localy or Bootstrap CDN
Automatic creation of terms for Locations - indicates whether terms must be created automatically in "Locations" category
Colors - allows to change the colors of the basic elements of pages, if the field is empty then a standard color that is specified in the theme is used
Font settings are on @font-your-face page ( /admin/appearance/fontyourface )

0 Comments

Please sign in to leave a comment.