"View" files contain the statements to render the web pages. In addition, FladsClassifieds stores the main stylesheet file together with the "View" files.
Follow the steps below to create your own set of "View" files :
system/application/views/my_theme/
index.html
file in
your subdirectory (to do that, copy thesystem/application/views/theme0/index.html
file to create system/application/views/my_theme/index.html
, for example).
system/application/views/my_theme/style.css
,system/application/views/my_theme/header_ads.php
,system/application/views/my_theme/footer_ads.php
,system/application/config/Fl_viewconfig.php
file, add your own "View" subdirectory in the $config['Fl_view_dir_list']
variable. For example,$config['Fl_view_dir_list'] =
array('', 'theme0/', 'my_theme/');
my_theme/
item.Important:
Once you have created your own set of "View" files, do not forget
to
adapt them when you apply a FladsClassifieds upgrade.
FladsClassifieds allows you to customize the "View" files used for posting/editing an advertisement and the "View" files used to display advertisement list and advertisement details.
Those files are the following:
system/application/views/Fl_ads/post1.php
(used to display the post/edit an advertisement form)system/application/views/Fl_ads/post2.php
(used to display the post/edit an advertisement form)system/application/views/Fl_ads/post3.php
(used to display the post/edit an advertisement form)system/application/views/Fl_ads/ads_body.php
(used to display the list of the advertisements in a category)system/application/views/Fl_ads/ads_details_body.php
(used to display advertisement details)In addition, 2.), 4.) and 5.) can be made specific to a
category. For example, system/application/views/Fl_ads/ads_body_75.php
will be used only for category whose ID is 75.
Note:
Category specific "View" files are considered first. For example, suppose you have set your "View" files in thesystem/application/views/my_theme
directory. Then, when
FladsClassifieds displays advertisements for category whose ID is 75, it will search the
"View" files in the order shown below
and it will use the first file it finds:system/application/views/my_theme
directory,
i.e.system/application/views/my_theme/Fl_ads/ads_body_75.php
system/application/views/Fl_ads/ads_body_75.php
system/application/views/my_theme
directory,
i.e.system/application/views/my_theme/Fl_ads/ads_body.php
system/application/views/Fl_ads/ads_body.php
Note:
If a "View" file in the default "View" directory (system/application/views/Fl_ads/
) suits you,
you do not have to copy it in your "View" directory.