From dc2967389cd04fae378ea8a8c7ac43659408989c Mon Sep 17 00:00:00 2001 From: XavierChao Date: Thu, 12 Dec 2024 17:56:16 +0100 Subject: [PATCH 1/4] feat: add cookie policy, privacy policy, and terms and conditions pages with routing --- app/src/app/Controllers/AppController.php | 28 +++++ .../app/Layouts/Customer/CustomerLayout.php | 2 + app/src/app/Views/Documents/CookiePolicy.php | 1 + app/src/app/Views/Documents/PrivacyPolicy.php | 1 + .../app/Views/Documents/TermsConditions.php | 1 + .../public/assets/js/cookieconsent-config.js | 106 ++++++++++++++++++ app/src/routes/app.php | 12 ++ database/start-scripts/1-seed.sql | 2 +- 8 files changed, 152 insertions(+), 1 deletion(-) create mode 100644 app/src/app/Views/Documents/CookiePolicy.php create mode 100644 app/src/app/Views/Documents/PrivacyPolicy.php create mode 100644 app/src/app/Views/Documents/TermsConditions.php create mode 100644 app/src/public/assets/js/cookieconsent-config.js diff --git a/app/src/app/Controllers/AppController.php b/app/src/app/Controllers/AppController.php index 6ff9ca2..1872a04 100644 --- a/app/src/app/Controllers/AppController.php +++ b/app/src/app/Controllers/AppController.php @@ -3,6 +3,7 @@ namespace App\Controllers; use App\Core\Session; +use App\Core\View; class AppController { @@ -21,4 +22,31 @@ public function index($queryParams) header('Location: /auth/login'); } } + + public function cookiePolicy($queryParams) + { + View::render([ + 'view' => 'Documents/CookiePolicy', + 'title' => 'Cookie Policy', + 'layout' => 'Customer/CustomerLayout', + ]); + } + + public function privacyPolicy($queryParams) + { + View::render([ + 'view' => 'Documents/PrivacyPolicy', + 'title' => 'Privacy Policy', + 'layout' => 'Customer/CustomerLayout', + ]); + } + + public function termsConditions($queryParams) + { + View::render([ + 'view' => 'Documents/TermsConditions', + 'title' => 'Terms and conditions of use', + 'layout' => 'Customer/CustomerLayout', + ]); + } } diff --git a/app/src/app/Layouts/Customer/CustomerLayout.php b/app/src/app/Layouts/Customer/CustomerLayout.php index 2e13e6f..17e75f2 100644 --- a/app/src/app/Layouts/Customer/CustomerLayout.php +++ b/app/src/app/Layouts/Customer/CustomerLayout.php @@ -10,10 +10,12 @@ + + diff --git a/app/src/app/Views/Documents/CookiePolicy.php b/app/src/app/Views/Documents/CookiePolicy.php new file mode 100644 index 0000000..5b9aae6 --- /dev/null +++ b/app/src/app/Views/Documents/CookiePolicy.php @@ -0,0 +1 @@ +

Cookie Policy

\ No newline at end of file diff --git a/app/src/app/Views/Documents/PrivacyPolicy.php b/app/src/app/Views/Documents/PrivacyPolicy.php new file mode 100644 index 0000000..013d692 --- /dev/null +++ b/app/src/app/Views/Documents/PrivacyPolicy.php @@ -0,0 +1 @@ +

Privacy Policy

\ No newline at end of file diff --git a/app/src/app/Views/Documents/TermsConditions.php b/app/src/app/Views/Documents/TermsConditions.php new file mode 100644 index 0000000..a58649b --- /dev/null +++ b/app/src/app/Views/Documents/TermsConditions.php @@ -0,0 +1 @@ +

Terms and conditions of use

\ No newline at end of file diff --git a/app/src/public/assets/js/cookieconsent-config.js b/app/src/public/assets/js/cookieconsent-config.js new file mode 100644 index 0000000..ddef8c7 --- /dev/null +++ b/app/src/public/assets/js/cookieconsent-config.js @@ -0,0 +1,106 @@ +import "https://cdn.jsdelivr.net/gh/orestbida/cookieconsent@3.0.1/dist/cookieconsent.umd.js"; + +// Enable dark mode +document.documentElement.classList.add("cc--darkmode"); + +CookieConsent.run({ + guiOptions: { + consentModal: { + layout: "box", + position: "bottom left", + equalWeightButtons: true, + flipButtons: false, + }, + preferencesModal: { + layout: "box", + position: "right", + equalWeightButtons: true, + flipButtons: false, + }, + }, + categories: { + necessary: { + readOnly: true, + }, + }, + language: { + default: "es", + autoDetect: "browser", + translations: { + en: { + consentModal: { + title: "Hello traveller, it's cookie time!", + description: + "We use cookies to enhance your browsing experience. By continuing to use our site, you consent to our use of cookies. For more details, please review our Cookie Policy.", + acceptAllBtn: "Accept all", + acceptNecessaryBtn: "Reject all", + showPreferencesBtn: "Manage preferences", + footer: 'Privacy Policy\nTerms and conditions', + }, + preferencesModal: { + title: "Consent Preferences Center", + acceptAllBtn: "Accept all", + acceptNecessaryBtn: "Reject all", + savePreferencesBtn: "Save preferences", + closeIconLabel: "Close modal", + serviceCounterLabel: "Service|Services", + sections: [ + { + title: "Cookie Usage", + description: + "We use cookies to enhance your browsing experience. By continuing to use our site, you consent to our use of cookies. For more details, please review our Cookie Policy.", + }, + { + title: 'Strictly Necessary Cookies Always Enabled', + description: + "Strictly necessary cookies are essential for the basic functioning of the website and cannot be disabled in our systems. These cookies enable functions such as access to secure areas of the website, like user accounts, remembering essential settings such as privacy or language preferences, and ensuring the secure and proper operation of the site.", + linkedCategory: "necessary", + }, + { + title: "More information", + description: + 'For any query in relation to my policy on cookies and your choices, please contact me.', + }, + ], + }, + }, + es: { + consentModal: { + title: "Hola viajero, es la hora de las galletas!", + description: + "Utilizamos cookies para mejorar tu experiencia de navegación. Al continuar navegando en este sitio, aceptas el uso de cookies. Para más información, consulta nuestra Política de Cookies.", + acceptAllBtn: "Aceptar todo", + acceptNecessaryBtn: "Rechazar todo", + showPreferencesBtn: "Gestionar preferencias", + footer: 'Política de privacidad\nTérminos y condiciones', + }, + preferencesModal: { + title: "Preferencias de Consentimiento", + acceptAllBtn: "Aceptar todo", + acceptNecessaryBtn: "Rechazar todo", + savePreferencesBtn: "Guardar preferencias", + closeIconLabel: "Cerrar modal", + serviceCounterLabel: "Servicios", + sections: [ + { + title: "Uso de Cookies", + description: + "Utilizamos cookies para mejorar tu experiencia de navegación. Al continuar navegando en este sitio, aceptas el uso de cookies. Para más información, consulta nuestra Política de Cookies.", + }, + { + title: 'Cookies Estrictamente Necesarias Siempre Habilitado', + description: + "Las cookies estrictamente necesarias son esenciales para el funcionamiento básico del sitio web y no pueden ser desactivadas en nuestros sistemas. Estas cookies permiten funciones como acceso a áreas seguras del sitio web, como cuentas de usuario. Recordar configuraciones esenciales, como preferencias de privacidad o idioma y garantizar el funcionamiento seguro y correcto de la página.", + linkedCategory: "necessary", + }, + { + title: "Más información", + description: + 'For any query in relation to my policy on cookies and your choices, please email us.', + }, + ], + }, + }, + }, + }, +}); diff --git a/app/src/routes/app.php b/app/src/routes/app.php index 388a801..66f4031 100644 --- a/app/src/routes/app.php +++ b/app/src/routes/app.php @@ -8,5 +8,17 @@ 'controller' => AppController::class, 'method' => 'index', ], + '/privacy-policy' => [ + 'controller' => AppController::class, + 'method' => 'privacyPolicy', + ], + '/cookie-policy' => [ + 'controller' => AppController::class, + 'method' => 'cookiePolicy', + ], + '/terms-and-conditions' => [ + 'controller' => AppController::class, + 'method' => 'termsConditions', + ], ], ]; diff --git a/database/start-scripts/1-seed.sql b/database/start-scripts/1-seed.sql index ef3d9d0..7a7835b 100644 --- a/database/start-scripts/1-seed.sql +++ b/database/start-scripts/1-seed.sql @@ -1,6 +1,6 @@ --* Users INSERT INTO users (company, name, surname, dni, password, email, role) VALUES -('TechCorp', 'Carlos', 'García', '12345678A', '$2y$10$BvILqM2m0pJlHNzyugbIu.RqhLIKwKetsRCo3FQbpcOiVx2nHBc9m', 'carlos.garcia@example.com', 1), -- Password: demopass +('TechCorp', 'Carlos', 'García', '12345678A', '$2y$10$BvILqM2m0pJlHNzyugbIu.RqhLIKwKetsRCo3FQbpcOiVx2nHBc9m', 'carlos.garcia@example.com', 0), -- Password: demopass ('InnovaTech', 'Ana', 'Martínez', '23456789B', '$2y$10$BvILqM2m0pJlHNzyugbIu.RqhLIKwKetsRCo3FQbpcOiVx2nHBc9m', 'ana.martinez@example.com', 1), -- Password: demopass ('DesignWorks', 'José', 'Rodríguez', '34567890C', '$2y$10$BvILqM2m0pJlHNzyugbIu.RqhLIKwKetsRCo3FQbpcOiVx2nHBc9m', 'jose.rodriguez@example.com', 2); -- Password: demopass From e8d771f0fbca5afabd70bf35fb0f4c22b3158e15 Mon Sep 17 00:00:00 2001 From: XavierChao Date: Thu, 12 Dec 2024 20:35:04 +0100 Subject: [PATCH 2/4] feat: add text to documents --- app/src/app/Views/Documents/CookiePolicy.php | 63 +++++++- app/src/app/Views/Documents/PrivacyPolicy.php | 135 +++++++++++++++++- .../app/Views/Documents/TermsConditions.php | 67 ++++++++- 3 files changed, 262 insertions(+), 3 deletions(-) diff --git a/app/src/app/Views/Documents/CookiePolicy.php b/app/src/app/Views/Documents/CookiePolicy.php index 5b9aae6..9bcd6ab 100644 --- a/app/src/app/Views/Documents/CookiePolicy.php +++ b/app/src/app/Views/Documents/CookiePolicy.php @@ -1 +1,62 @@ -

Cookie Policy

\ No newline at end of file +
+

Cookies Policy

+

Last updated: December 12, 2024

+

This Cookies Policy explains what Cookies are and how We use them. You should read this policy so You can understand what type of cookies We use, or the information We collect using Cookies and how that information is used. This Cookies Policy has been created with the help of the Cookies Policy Generator.

+

Cookies do not typically contain any information that personally identifies a user, but personal information that we store about You may be linked to the information stored in and obtained from Cookies. For further information on how We use, store and keep your personal data secure, see our Privacy Policy.

+

We do not store sensitive personal information, such as mailing addresses, account passwords, etc. in the Cookies We use.

+

Interpretation and Definitions

+

Interpretation

+

The words of which the initial letter is capitalized have meanings defined under the following conditions. The following definitions shall have the same meaning regardless of whether they appear in singular or in plural.

+

Definitions

+

For the purposes of this Cookies Policy:

+
    +
  • Company (referred to as either "the Company", "We", "Us" or "Our" in this Cookies Policy) refers to UrbanTree.
  • +
  • Cookies means small files that are placed on Your computer, mobile device or any other device by a website, containing details of your browsing history on that website among its many uses.
  • +
  • Website refers to UrbanTree, accessible from urbantree.alumnat.iemsontsia.org
  • +
  • You means the individual accessing or using the Website, or a company, or any legal entity on behalf of which such individual is accessing or using the Website, as applicable.
  • +
+

The use of the Cookies

+

Type of Cookies We Use

+

Cookies can be "Persistent" or "Session" Cookies. Persistent Cookies remain on your personal computer or mobile device when You go offline, while Session Cookies are deleted as soon as You close your web browser.

+

We use both session and persistent Cookies for the purposes set out below:

+
    +
  • +

    Necessary / Essential Cookies

    +

    Type: Session Cookies

    +

    Administered by: Us

    +

    Purpose: These Cookies are essential to provide You with services available through the Website and to enable You to use some of its features. They help to authenticate users and prevent fraudulent use of user accounts. Without these Cookies, the services that You have asked for cannot be provided, and We only use these Cookies to provide You with those services.

    +
  • +
  • +

    Functionality Cookies

    +

    Type: Persistent Cookies

    +

    Administered by: Us

    +

    Purpose: These Cookies allow us to remember choices You make when You use the Website, such as remembering your login details or language preference. The purpose of these Cookies is to provide You with a more personal experience and to avoid You having to re-enter your preferences every time You use the Website.

    +
  • +
+

Your Choices Regarding Cookies

+

If You prefer to avoid the use of Cookies on the Website, first You must disable the use of Cookies in your browser and then delete the Cookies saved in your browser associated with this website. You may use this option for preventing the use of Cookies at any time.

+

If You do not accept Our Cookies, You may experience some inconvenience in your use of the Website and some features may not function properly.

+

If You'd like to delete Cookies or instruct your web browser to delete or refuse Cookies, please visit the help pages of your web browser.

+ +

For any other web browser, please visit your web browser's official web pages.

+

More Information about Cookies

+

You can learn more about cookies here: All About Cookies by TermsFeed.

+

Contact Us

+

If you have any questions about this Cookies Policy, You can contact us:

+
    +
  • By email: urbantree@iesmontsia.org
  • +
+
\ No newline at end of file diff --git a/app/src/app/Views/Documents/PrivacyPolicy.php b/app/src/app/Views/Documents/PrivacyPolicy.php index 013d692..d42641e 100644 --- a/app/src/app/Views/Documents/PrivacyPolicy.php +++ b/app/src/app/Views/Documents/PrivacyPolicy.php @@ -1 +1,134 @@ -

Privacy Policy

\ No newline at end of file +
+

Privacy Policy

+

Last updated: December 12, 2024

+

This Privacy Policy describes Our policies and procedures on the collection, use and disclosure of Your information when You use the Service and tells You about Your privacy rights and how the law protects You.

+

We use Your Personal data to provide and improve the Service. By using the Service, You agree to the collection and use of information in accordance with this Privacy Policy. This Privacy Policy has been created with the help of the Privacy Policy Generator.

+

Interpretation and Definitions

+

Interpretation

+

The words of which the initial letter is capitalized have meanings defined under the following conditions. The following definitions shall have the same meaning regardless of whether they appear in singular or in plural.

+

Definitions

+

For the purposes of this Privacy Policy:

+
    +
  • Account means a unique account created for You to access our Service or parts of our Service.
  • +
  • Affiliate means an entity that controls, is controlled by or is under common control with a party, where "control" means ownership of 50% or more of the shares, equity interest or other securities entitled to vote for election of directors or other managing authority.
  • +
  • Application refers to Urbantree, the software program provided by the Company.
  • +
  • Company (referred to as either "the Company", "We", "Us" or "Our" in this Agreement) refers to Urbantree.
  • +
  • Cookies are small files that are placed on Your computer, mobile device or any other device by a website, containing the details of Your browsing history on that website among its many uses.
  • +
  • Country refers to: Spain
  • +
  • Device means any device that can access the Service such as a computer, a cellphone or a digital tablet.
  • +
  • Personal Data is any information that relates to an identified or identifiable individual.
  • +
  • Service refers to the Application or the Website or both.
  • +
  • Service Provider means any natural or legal person who processes the data on behalf of the Company. It refers to third-party companies or individuals employed by the Company to facilitate the Service, to provide the Service on behalf of the Company, to perform services related to the Service or to assist the Company in analyzing how the Service is used.
  • +
  • Usage Data refers to data collected automatically, either generated by the use of the Service or from the Service infrastructure itself (for example, the duration of a page visit).
  • +
  • Website refers to Urbantree, accessible from urbantree.alumnat.iesmontsia.org
  • +
  • You means the individual accessing or using the Service, or the company, or other legal entity on behalf of which such individual is accessing or using the Service, as applicable.
  • +
+

Collecting and Using Your Personal Data

+

Types of Data Collected

+

Personal Data

+

While using Our Service, We may ask You to provide Us with certain personally identifiable information that can be used to contact or identify You. Personally identifiable information may include, but is not limited to:

+
    +
  • Email address
  • +
  • First name and last name
  • +
  • Usage Data
  • +
+

Usage Data

+

Usage Data is collected automatically when using the Service.

+

Usage Data may include information such as Your Device's Internet Protocol address (e.g. IP address), browser type, browser version, the pages of our Service that You visit, the time and date of Your visit, the time spent on those pages, unique device identifiers and other diagnostic data.

+

When You access the Service by or through a mobile device, We may collect certain information automatically, including, but not limited to, the type of mobile device You use, Your mobile device unique ID, the IP address of Your mobile device, Your mobile operating system, the type of mobile Internet browser You use, unique device identifiers and other diagnostic data.

+

We may also collect information that Your browser sends whenever You visit our Service or when You access the Service by or through a mobile device.

+

Information Collected while Using the Application

+

While using Our Application, in order to provide features of Our Application, We may collect, with Your prior permission:

+
    +
  • Pictures and other information from your Device's camera and photo library
  • +
+

We use this information to provide features of Our Service, to improve and customize Our Service. The information may be uploaded to the Company's servers and/or a Service Provider's server or it may be simply stored on Your device.

+

You can enable or disable access to this information at any time, through Your Device settings.

+

Tracking Technologies and Cookies

+

We use Cookies and similar tracking technologies to track the activity on Our Service and store certain information. Tracking technologies used are beacons, tags, and scripts to collect and track information and to improve and analyze Our Service. The technologies We use may include:

+
    +
  • Cookies or Browser Cookies. A cookie is a small file placed on Your Device. You can instruct Your browser to refuse all Cookies or to indicate when a Cookie is being sent. However, if You do not accept Cookies, You may not be able to use some parts of our Service. Unless you have adjusted Your browser setting so that it will refuse Cookies, our Service may use Cookies.
  • +
  • Web Beacons. Certain sections of our Service and our emails may contain small electronic files known as web beacons (also referred to as clear gifs, pixel tags, and single-pixel gifs) that permit the Company, for example, to count users who have visited those pages or opened an email and for other related website statistics (for example, recording the popularity of a certain section and verifying system and server integrity).
  • +
+

Cookies can be "Persistent" or "Session" Cookies. Persistent Cookies remain on Your personal computer or mobile device when You go offline, while Session Cookies are deleted as soon as You close Your web browser. Learn more about cookies on the Privacy Policies website article.

+

We use both Session and Persistent Cookies for the purposes set out below:

+
    +
  • Necessary / Essential Cookies + Type: Session Cookies + Administered by: Us + Purpose: These Cookies are essential to provide You with services available through the Website and to enable You to use some of its features. They help to authenticate users and prevent fraudulent use of user accounts. Without these Cookies, the services that You have asked for cannot be provided, and We only use these Cookies to provide You with those services.
  • +
  • Cookies Policy / Notice Acceptance Cookies + Type: Persistent Cookies + Administered by: Us + Purpose: These Cookies identify if users have accepted the use of cookies on the Website.
  • +
  • Functionality Cookies + Type: Persistent Cookies + Administered by: Us + Purpose: These Cookies allow us to remember choices You make when You use the Website, such as remembering your login details or language preference. The purpose of these Cookies is to provide You with a more personal experience and to avoid You having to re-enter your preferences every time You use the Website.
  • +
+

For more information about the cookies we use and your choices regarding cookies, please visit our Cookies Policy or the Cookies section of our Privacy Policy.

+

Use of Your Personal Data

+

The Company may use Personal Data for the following purposes:

+
    +
  • To provide and maintain our Service, including to monitor the usage of our Service.
  • +
  • To manage Your Account: to manage Your registration as a user of the Service. The Personal Data You provide can give You access to different functionalities of the Service that are available to You as a registered user.
  • +
  • For the performance of a contract: the development, compliance and undertaking of the purchase contract for the products, items or services You have purchased or of any other contract with Us through the Service.
  • +
  • To contact You: To contact You by email, telephone calls, SMS, or other equivalent forms of electronic communication, such as a mobile application's push notifications regarding updates or informative communications related to the functionalities, products or contracted services, including the security updates, when necessary or reasonable for their implementation.
  • +
  • To provide You with news, special offers and general information about other goods, services and events which we offer that are similar to those that you have already purchased or enquired about unless You have opted not to receive such information.
  • +
  • To manage Your requests: To attend and manage Your requests to Us.
  • +
  • For business transfers: We may use Your information to evaluate or conduct a merger, divestiture, restructuring, reorganization, dissolution, or other sale or transfer of some or all of Our assets, whether as a going concern or as part of bankruptcy, liquidation, or similar proceeding, in which Personal Data held by Us about our Service users is among the assets transferred.
  • +
  • For other purposes: We may use Your information for other purposes, such as data analysis, identifying usage trends, determining the effectiveness of our promotional campaigns and to evaluate and improve our Service, products, services, marketing and your experience.
  • +
+

We may share Your personal information in the following situations:

+
    +
  • With Service Providers: We may share Your personal information with Service Providers to monitor and analyze the use of our Service, to contact You.
  • +
  • For business transfers: We may share or transfer Your personal information in connection with, or during negotiations of, any merger, sale of Company assets, financing, or acquisition of all or a portion of Our business to another company.
  • +
  • With Affiliates: We may share Your information with Our affiliates, in which case we will require those affiliates to honor this Privacy Policy. Affiliates include Our parent company and any other subsidiaries, joint venture partners or other companies that We control or that are under common control with Us.
  • +
  • With business partners: We may share Your information with Our business partners to offer You certain products, services or promotions.
  • +
  • With other users: when You share personal information or otherwise interact in the public areas with other users, such information may be viewed by all users and may be publicly distributed outside.
  • +
  • With Your consent: We may disclose Your personal information for any other purpose with Your consent.
  • +
+

Retention of Your Personal Data

+

The Company will retain Your Personal Data only for as long as is necessary for the purposes set out in this Privacy Policy. We will retain and use Your Personal Data to the extent necessary to comply with our legal obligations (for example, if we are required to retain your data to comply with applicable laws), resolve disputes, and enforce our legal agreements and policies.

+

The Company will also retain Usage Data for internal analysis purposes. Usage Data is generally retained for a shorter period of time, except when this data is used to strengthen the security or to improve the functionality of Our Service, or We are legally obligated to retain this data for longer time periods.

+

Transfer of Your Personal Data

+

Your information, including Personal Data, is processed at the Company's operating offices and in any other places where the parties involved in the processing are located. It means that this information may be transferred to — and maintained on — computers located outside of Your state, province, country or other governmental jurisdiction where the data protection laws may differ than those from Your jurisdiction.

+

Your consent to this Privacy Policy followed by Your submission of such information represents Your agreement to that transfer.

+

The Company will take all steps reasonably necessary to ensure that Your data is treated securely and in accordance with this Privacy Policy and no transfer of Your Personal Data will take place to an organization or a country unless there are adequate controls in place including the security of Your data and other personal information.

+

Delete Your Personal Data

+

You have the right to delete or request that We assist in deleting the Personal Data that We have collected about You.

+

Our Service may give You the ability to delete certain information about You from within the Service.

+

You may update, amend, or delete Your information at any time by signing in to Your Account, if you have one, and visiting the account settings section that allows you to manage Your personal information. You may also contact Us to request access to, correct, or delete any personal information that You have provided to Us.

+

Please note, however, that We may need to retain certain information when we have a legal obligation or lawful basis to do so.

+

Disclosure of Your Personal Data

+

Business Transactions

+

If the Company is involved in a merger, acquisition or asset sale, Your Personal Data may be transferred. We will provide notice before Your Personal Data is transferred and becomes subject to a different Privacy Policy.

+

Law enforcement

+

Under certain circumstances, the Company may be required to disclose Your Personal Data if required to do so by law or in response to valid requests by public authorities (e.g. a court or a government agency).

+

Other legal requirements

+

The Company may disclose Your Personal Data in the good faith belief that such action is necessary to:

+
    +
  • Comply with a legal obligation
  • +
  • Protect and defend the rights or property of the Company
  • +
  • Prevent or investigate possible wrongdoing in connection with the Service
  • +
  • Protect the personal safety of Users of the Service or the public
  • +
  • Protect against legal liability
  • +
+

Security of Your Personal Data

+

The security of Your Personal Data is important to Us, but remember that no method of transmission over the Internet, or method of electronic storage is 100% secure. While We strive to use commercially acceptable means to protect Your Personal Data, We cannot guarantee its absolute security.

+

Children's Privacy

+

Our Service does not address anyone under the age of 13. We do not knowingly collect personally identifiable information from anyone under the age of 13. If You are a parent or guardian and You are aware that Your child has provided Us with Personal Data, please contact Us. If We become aware that We have collected Personal Data from anyone under the age of 13 without verification of parental consent, We take steps to remove that information from Our servers.

+

If We need to rely on consent as a legal basis for processing Your information and Your country requires consent from a parent, We may require Your parent's consent before We collect and use that information.

+

Links to Other Websites

+

Our Service may contain links to other websites that are not operated by Us. If You click on a third party link, You will be directed to that third party's site. We strongly advise You to review the Privacy Policy of every site You visit.

+

We have no control over and assume no responsibility for the content, privacy policies or practices of any third party sites or services.

+

Changes to this Privacy Policy

+

We may update Our Privacy Policy from time to time. We will notify You of any changes by posting the new Privacy Policy on this page.

+

We will let You know via email and/or a prominent notice on Our Service, prior to the change becoming effective and update the "Last updated" date at the top of this Privacy Policy.

+

You are advised to review this Privacy Policy periodically for any changes. Changes to this Privacy Policy are effective when they are posted on this page.

+

Contact Us

+

If you have any questions about this Privacy Policy, You can contact us:

+ +
\ No newline at end of file diff --git a/app/src/app/Views/Documents/TermsConditions.php b/app/src/app/Views/Documents/TermsConditions.php index a58649b..5b90fd3 100644 --- a/app/src/app/Views/Documents/TermsConditions.php +++ b/app/src/app/Views/Documents/TermsConditions.php @@ -1 +1,66 @@ -

Terms and conditions of use

\ No newline at end of file +

Terms and Conditions

+

Last updated: December 12, 2024

+

Please read these terms and conditions carefully before using Our Service.

+

Interpretation and Definitions

+

Interpretation

+

The words of which the initial letter is capitalized have meanings defined under the following conditions. The following definitions shall have the same meaning regardless of whether they appear in singular or in plural.

+

Definitions

+

For the purposes of these Terms and Conditions:

+ +

Acknowledgment

+

These are the Terms and Conditions governing the use of this Service and the agreement that operates between You and the Company. These Terms and Conditions set out the rights and obligations of all users regarding the use of the Service.

+

Your access to and use of the Service is conditioned on Your acceptance of and compliance with these Terms and Conditions. These Terms and Conditions apply to all visitors, users and others who access or use the Service.

+

By accessing or using the Service You agree to be bound by these Terms and Conditions. If You disagree with any part of these Terms and Conditions then You may not access the Service.

+

You represent that you are over the age of 18. The Company does not permit those under 18 to use the Service.

+

Your access to and use of the Service is also conditioned on Your acceptance of and compliance with the Privacy Policy of the Company. Our Privacy Policy describes Our policies and procedures on the collection, use and disclosure of Your personal information when You use the Application or the Website and tells You about Your privacy rights and how the law protects You. Please read Our Privacy Policy carefully before using Our Service.

+

Links to Other Websites

+

Our Service may contain links to third-party web sites or services that are not owned or controlled by the Company.

+

The Company has no control over, and assumes no responsibility for, the content, privacy policies, or practices of any third party web sites or services. You further acknowledge and agree that the Company shall not be responsible or liable, directly or indirectly, for any damage or loss caused or alleged to be caused by or in connection with the use of or reliance on any such content, goods or services available on or through any such web sites or services.

+

We strongly advise You to read the terms and conditions and privacy policies of any third-party web sites or services that You visit.

+

Termination

+

We may terminate or suspend Your access immediately, without prior notice or liability, for any reason whatsoever, including without limitation if You breach these Terms and Conditions.

+

Upon termination, Your right to use the Service will cease immediately.

+

Limitation of Liability

+

Notwithstanding any damages that You might incur, the entire liability of the Company and any of its suppliers under any provision of this Terms and Your exclusive remedy for all of the foregoing shall be limited to the amount actually paid by You through the Service or 100 USD if You haven't purchased anything through the Service.

+

To the maximum extent permitted by applicable law, in no event shall the Company or its suppliers be liable for any special, incidental, indirect, or consequential damages whatsoever (including, but not limited to, damages for loss of profits, loss of data or other information, for business interruption, for personal injury, loss of privacy arising out of or in any way related to the use of or inability to use the Service, third-party software and/or third-party hardware used with the Service, or otherwise in connection with any provision of this Terms), even if the Company or any supplier has been advised of the possibility of such damages and even if the remedy fails of its essential purpose.

+

Some states do not allow the exclusion of implied warranties or limitation of liability for incidental or consequential damages, which means that some of the above limitations may not apply. In these states, each party's liability will be limited to the greatest extent permitted by law.

+

"AS IS" and "AS AVAILABLE" Disclaimer

+

The Service is provided to You "AS IS" and "AS AVAILABLE" and with all faults and defects without warranty of any kind. To the maximum extent permitted under applicable law, the Company, on its own behalf and on behalf of its Affiliates and its and their respective licensors and service providers, expressly disclaims all warranties, whether express, implied, statutory or otherwise, with respect to the Service, including all implied warranties of merchantability, fitness for a particular purpose, title and non-infringement, and warranties that may arise out of course of dealing, course of performance, usage or trade practice. Without limitation to the foregoing, the Company provides no warranty or undertaking, and makes no representation of any kind that the Service will meet Your requirements, achieve any intended results, be compatible or work with any other software, applications, systems or services, operate without interruption, meet any performance or reliability standards or be error free or that any errors or defects can or will be corrected.

+

Without limiting the foregoing, neither the Company nor any of the company's provider makes any representation or warranty of any kind, express or implied: (i) as to the operation or availability of the Service, or the information, content, and materials or products included thereon; (ii) that the Service will be uninterrupted or error-free; (iii) as to the accuracy, reliability, or currency of any information or content provided through the Service; or (iv) that the Service, its servers, the content, or e-mails sent from or on behalf of the Company are free of viruses, scripts, trojan horses, worms, malware, timebombs or other harmful components.

+

Some jurisdictions do not allow the exclusion of certain types of warranties or limitations on applicable statutory rights of a consumer, so some or all of the above exclusions and limitations may not apply to You. But in such a case the exclusions and limitations set forth in this section shall be applied to the greatest extent enforceable under applicable law.

+

Governing Law

+

The laws of the Country, excluding its conflicts of law rules, shall govern this Terms and Your use of the Service. Your use of the Application may also be subject to other local, state, national, or international laws.

+

Disputes Resolution

+

If You have any concern or dispute about the Service, You agree to first try to resolve the dispute informally by contacting the Company.

+

For European Union (EU) Users

+

If You are a European Union consumer, you will benefit from any mandatory provisions of the law of the country in which You are resident.

+

United States Legal Compliance

+

You represent and warrant that (i) You are not located in a country that is subject to the United States government embargo, or that has been designated by the United States government as a "terrorist supporting" country, and (ii) You are not listed on any United States government list of prohibited or restricted parties.

+

Severability and Waiver

+

Severability

+

If any provision of these Terms is held to be unenforceable or invalid, such provision will be changed and interpreted to accomplish the objectives of such provision to the greatest extent possible under applicable law and the remaining provisions will continue in full force and effect.

+

Waiver

+

Except as provided herein, the failure to exercise a right or to require performance of an obligation under these Terms shall not affect a party's ability to exercise such right or require such performance at any time thereafter nor shall the waiver of a breach constitute a waiver of any subsequent breach.

+

Translation Interpretation

+

These Terms and Conditions may have been translated if We have made them available to You on our Service. +You agree that the original English text shall prevail in the case of a dispute.

+

Changes to These Terms and Conditions

+

We reserve the right, at Our sole discretion, to modify or replace these Terms at any time. If a revision is material We will make reasonable efforts to provide at least 30 days' notice prior to any new terms taking effect. What constitutes a material change will be determined at Our sole discretion.

+

By continuing to access or use Our Service after those revisions become effective, You agree to be bound by the revised terms. If You do not agree to the new terms, in whole or in part, please stop using the website and the Service.

+

Contact Us

+

If you have any questions about these Terms and Conditions, You can contact us:

+ \ No newline at end of file From 41559415b794bbef0cd28983b7719f3102f65e15 Mon Sep 17 00:00:00 2001 From: XavierChao Date: Thu, 12 Dec 2024 20:40:03 +0100 Subject: [PATCH 3/4] feat: update layouts to use PublicLayout for cookie, privacy, and terms documents --- app/src/app/Controllers/AppController.php | 6 +++--- app/src/app/Layouts/Customer/CustomerLayout.php | 2 -- app/src/app/Layouts/PublicLayout.php | 2 ++ 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/app/Controllers/AppController.php b/app/src/app/Controllers/AppController.php index 1872a04..857f631 100644 --- a/app/src/app/Controllers/AppController.php +++ b/app/src/app/Controllers/AppController.php @@ -28,7 +28,7 @@ public function cookiePolicy($queryParams) View::render([ 'view' => 'Documents/CookiePolicy', 'title' => 'Cookie Policy', - 'layout' => 'Customer/CustomerLayout', + 'layout' => 'PublicLayout', ]); } @@ -37,7 +37,7 @@ public function privacyPolicy($queryParams) View::render([ 'view' => 'Documents/PrivacyPolicy', 'title' => 'Privacy Policy', - 'layout' => 'Customer/CustomerLayout', + 'layout' => 'PublicLayout', ]); } @@ -46,7 +46,7 @@ public function termsConditions($queryParams) View::render([ 'view' => 'Documents/TermsConditions', 'title' => 'Terms and conditions of use', - 'layout' => 'Customer/CustomerLayout', + 'layout' => 'PublicLayout', ]); } } diff --git a/app/src/app/Layouts/Customer/CustomerLayout.php b/app/src/app/Layouts/Customer/CustomerLayout.php index 68bfed2..51b34d0 100644 --- a/app/src/app/Layouts/Customer/CustomerLayout.php +++ b/app/src/app/Layouts/Customer/CustomerLayout.php @@ -10,12 +10,10 @@ - - \ No newline at end of file diff --git a/app/src/app/Layouts/PublicLayout.php b/app/src/app/Layouts/PublicLayout.php index 51b34d0..68bfed2 100644 --- a/app/src/app/Layouts/PublicLayout.php +++ b/app/src/app/Layouts/PublicLayout.php @@ -10,10 +10,12 @@ + + \ No newline at end of file From 9edc7234bf8e23c063bd1b21e50e5df55b80eb35 Mon Sep 17 00:00:00 2001 From: XavierChao Date: Thu, 12 Dec 2024 20:55:37 +0100 Subject: [PATCH 4/4] feat: update cookie consent messages with links to policy documents --- app/src/public/assets/js/cookieconsent-config.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/src/public/assets/js/cookieconsent-config.js b/app/src/public/assets/js/cookieconsent-config.js index ddef8c7..3e3727b 100644 --- a/app/src/public/assets/js/cookieconsent-config.js +++ b/app/src/public/assets/js/cookieconsent-config.js @@ -31,11 +31,11 @@ CookieConsent.run({ consentModal: { title: "Hello traveller, it's cookie time!", description: - "We use cookies to enhance your browsing experience. By continuing to use our site, you consent to our use of cookies. For more details, please review our Cookie Policy.", + "We use cookies to enhance your browsing experience. By continuing to use our site, you consent to our use of cookies. For more details, please review our Cookie Policy.", acceptAllBtn: "Accept all", acceptNecessaryBtn: "Reject all", showPreferencesBtn: "Manage preferences", - footer: 'Privacy Policy\nTerms and conditions', + footer: 'Privacy Policy\nTerms and conditions', }, preferencesModal: { title: "Consent Preferences Center", @@ -48,7 +48,7 @@ CookieConsent.run({ { title: "Cookie Usage", description: - "We use cookies to enhance your browsing experience. By continuing to use our site, you consent to our use of cookies. For more details, please review our Cookie Policy.", + "We use cookies to enhance your browsing experience. By continuing to use our site, you consent to our use of cookies. For more details, please review our Cookie Policy.", }, { title: 'Strictly Necessary Cookies Always Enabled', @@ -68,11 +68,11 @@ CookieConsent.run({ consentModal: { title: "Hola viajero, es la hora de las galletas!", description: - "Utilizamos cookies para mejorar tu experiencia de navegación. Al continuar navegando en este sitio, aceptas el uso de cookies. Para más información, consulta nuestra Política de Cookies.", + "Utilizamos cookies para mejorar tu experiencia de navegación. Al continuar navegando en este sitio, aceptas el uso de cookies. Para más información, consulta nuestra Política de Cookies.", acceptAllBtn: "Aceptar todo", acceptNecessaryBtn: "Rechazar todo", showPreferencesBtn: "Gestionar preferencias", - footer: 'Política de privacidad\nTérminos y condiciones', + footer: 'Política de privacidad\nTérminos y condiciones', }, preferencesModal: { title: "Preferencias de Consentimiento", @@ -85,7 +85,7 @@ CookieConsent.run({ { title: "Uso de Cookies", description: - "Utilizamos cookies para mejorar tu experiencia de navegación. Al continuar navegando en este sitio, aceptas el uso de cookies. Para más información, consulta nuestra Política de Cookies.", + "Utilizamos cookies para mejorar tu experiencia de navegación. Al continuar navegando en este sitio, aceptas el uso de cookies. Para más información, consulta nuestra Política de Cookies.", }, { title: 'Cookies Estrictamente Necesarias Siempre Habilitado',