Vai al contenuto principale
< All Topics
Print

Programs

General structure of the programs

Some pages are normal WordPress pages  (Home, About us, Moisa bylaws, Journal, Join Moisa Society, Renew Membership, Recordings, Send a Message).

The other page are customized and have a template ad hoc and call an action in functions.php. The structure of php programs and JavaScript functions are similar and hereafter reported.

Bibliography

Program name: Bibliography.php and template name: Bibliography

On window.onload a jQuery function (ajaxSelect) is triggered and  performs the call to the action readSelect in functions.php (parameter  pageno = 1). This action reads and formats the data to display in the container named biblio (class contenitore).

The function ajaxSelect is triggered also when the user clicks on a scroll button in the bottom of the display

If called with pageno = 1 readSelect executes a SELECT to determine the total number of items. This number will be sent as a parameter of the function pagination.

The function readEntry (via ajaxReadEntry in Bibliography.php) is triggered when the user clicks on the title of an entry to display all the data relevant to the entry itself.

Element

Program name: Element.php and template name: Element.

It manages four types of elements: Meetings, Panels, Seminars and Summer school. The type is determined by reading the name of the page.

On window.onload a jQuery function (ajaxSelectElement) is triggered and  performs the call to the action readSelectElement in functions.php (parameter  pageno = 1). This action reads and formats the data to display in the container named element (class contenitore_element).

The function ajaxSelectElement is triggered also when the user clicks on a scroll button in the bottom of the display.

If called with pageno = 1 readSelectElement executes a SELECT to determine the total number of items. This number will be sent as a parameter of the function pagination.

Member_directory

Program name: Member_directory.php and template name: Member_directory.

It provides to manage the associates list.

On window.onload a jQuery function (ajaxSelectDirectory) is triggered and  performs the call to the action readSelectDirectory in functions.php (parameter  pageno = 1). This action reads and formats the data to display in the container named directory(class contenitore_directory).

The function ajaxSelectDirectory is triggered also when the user clicks on a scroll button in the bottom of the display.

If called with pageno = 1 readSelectDirectory executes a SELECT to determine the total number of items. This number will be sent as a parameter of the function pagination.

The function ajaxReadEntryDirectory (via ajaxReadEntryDirectory in Member_directory.php) is triggered when the user clicks on the name of a member to display all the data relevant to him.

News

Program name: News.php and template name: News.

It provides to manage the events list.

On window.onload a jQuery function (ajaxSelectNews) is triggered and  performs the call to the action readSelectNews in functions.php (parameter  pageno = 1). This action reads and formats the data to display in the container named news (class contenitore_news).

The function ajaxSelectNews is triggered also when the user clicks on a scroll button in the bottom of the display.

If called with pageno = 1 readSelectNews executes a SELECT to determine the total number of items. This number will be sent as a parameter of the function pagination.

Officers

Program name: Officers.php and template name: Officers

It provides to manage the list of the members of the executive boards and of the operations managers.

In the member profile (Ultimate Membership Pro, Showcases, Registration Form) the Custom Field Executive_position allows to specify the position of the member. The number at the end of the text is the order number to display the member in the list (e.g. President 1).
The same for the custom field Operations_manager

Topic

Program name: Topic.php and template name: Topic.

It provides to manage the list of the topics sent to the associates in the forum.

On window.onload a jQuery function (ajaxSelectTopic) is triggered and  performs the call to the action readSelectTopic in functions.php (parameter  pageno = 1). This action reads and formats the data to display in the container named topic (class contenitore_topic).

The function ajaxSelectTopic is triggered also when the user clicks on a scroll button in the bottom of the display.

If called with pageno = 1 readSelectTopic executes a SELECT to determine the total number of items. This number will be sent as a parameter of the function pagination.

In case of click on the button New Topic Javascript function forumManager

Pagination

It is called by all the the actions in functions.php to manage the display of the selected items with the buttons to to go to the next or preceding page.

CSS

The CSS scripts mentioned above are stored as different scripts even if have the same content: this to avoid unwanted side effects in case of update of a script. An exception is the script loader_biblio to display the loading_waiting.gif that is unique.

CLASSES and CONSTANTS

 Two classes are stored in wp-content/themes/estore/classes:

– membership.php: to determine the type of membership of the user (see the module Associates)
– utilities.php: it can contain some routines used by different program: at this time just GetLanguage.

Two files of constants are stored wp-content/themes/estore:

– Membership_constants.php: to define the types of associates
– Pagination_constants.php: to define some constants used by functions.php to format the page of bibliography, meetings, panels, seminars, summer schools, events, membership directory and forum:

NO_OF_RECORDS_PER_PAGE: max number of lines in the frame
MAX_PAGES: max number of  pages displayed in the bottom of the frame to select the page where to go
SCROLLTOY: parameter used by the routine pagination in functions.php to set the method window.scrollTo.

Table of Contents
Moisa Society
Panoramica privacy

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.