├── .eslintignore
├── .eslintrc.js
├── .github
└── ISSUE_TEMPLATE
│ ├── bug_report.md
│ └── feature_request.md
├── .gitignore
├── .prettierrc
├── .travis.yml
├── LICENSE
├── README.md
├── assets
├── css
│ ├── adminiconstyle.css
│ ├── base-admin.css
│ ├── boldgrid-cart.css
│ ├── boldgrid-dashboard.css
│ ├── boldgrid-feedback.css
│ ├── boldgrid-in-menu.css
│ ├── boldgrid-inspirations.css
│ ├── boldgrid-login.css
│ ├── bootstrap
│ │ └── bootstrap.min.css
│ ├── easy-attachment-preview-size.css
│ ├── fancybox.css
│ ├── grid.css
│ ├── my-inspiration.css
│ ├── purchase_for_publish.css
│ └── wp_iframe-media_upload.css
├── fonts
│ ├── boldgrid.eot
│ ├── boldgrid.svg
│ ├── boldgrid.ttf
│ └── boldgrid.woff
├── images
│ ├── bg-coin-toolbar-graphic.png
│ ├── bg-logo.svg
│ ├── bg-seal.png
│ ├── boldgrid-login-logo.png
│ ├── bullet-selected.png
│ ├── bullet-unselected.png
│ ├── categoryarrow.png
│ ├── cc
│ │ └── cc.png
│ ├── continue-rightarrow.png
│ ├── customize.png
│ ├── fancybox
│ │ ├── blank.gif
│ │ ├── fancybox_loading.gif
│ │ ├── fancybox_loading@2x.gif
│ │ ├── fancybox_overlay.png
│ │ ├── fancybox_sprite.png
│ │ └── fancybox_sprite@2x.png
│ ├── goback-leftarrow.png
│ ├── inspirations
│ │ ├── arrow-left-filled.png
│ │ ├── arrow-right-filled.png
│ │ ├── arrow.png
│ │ ├── cache
│ │ │ └── w3-total-cache.png
│ │ ├── click.png
│ │ ├── contact-info-close-24ac47.png
│ │ ├── features-templates-gridpic.png
│ │ ├── features-themes-gridpic.png
│ │ ├── fill.png
│ │ ├── header-bg.png
│ │ └── invoice
│ │ │ └── sprout-invoices.png
│ ├── minus.png
│ ├── mobile-active.png
│ ├── mobile-inactive.png
│ ├── mobile.png
│ ├── monitor-active.png
│ ├── monitor-inactive.png
│ ├── plus.png
│ ├── preview-eye.png
│ ├── previewbg1.png
│ ├── search-glass.png
│ ├── select-thumb.png
│ ├── step1-active.png
│ ├── step1-inactive.png
│ ├── step2-active.png
│ ├── step2-inactive.png
│ ├── step3-active.png
│ ├── step3-inactive.png
│ ├── steps-arrow.png
│ ├── steps-arrow1.png
│ ├── steps-checkmark.png
│ ├── steps-gear.png
│ ├── tablet-active.png
│ ├── tablet-inactive.png
│ ├── tablet.png
│ ├── wordpressinmotion.png
│ ├── wordpresslogo.png
│ └── wordpresswebhostinghub.png
└── js
│ ├── ajax
│ └── ajax.js
│ ├── all-pages-mine-count.js
│ ├── base-admin.js
│ ├── boldgrid-admin-notices.js
│ ├── boldgrid-cart.js
│ ├── boldgrid-feedback.js
│ ├── boldgrid-inspirations.js
│ ├── boldgrid-options.js
│ ├── boldgrid-options.min.js
│ ├── easy-attachment-preview-size.js
│ ├── fancybox.js
│ ├── handlebars
│ ├── handle-bar-helpers.js
│ ├── handlebars-v2.0.0.js
│ └── templates
│ │ ├── category.php
│ │ ├── language.php
│ │ ├── pagesetversion.php
│ │ ├── preview.php
│ │ ├── subcategory.php
│ │ ├── theme.php
│ │ ├── themegroup.php
│ │ └── themeversion.php
│ ├── image_search.js
│ ├── inline
│ ├── checking_out.js
│ ├── checking_out_complete.js
│ ├── checking_out_complete_with_errors.js
│ ├── hide_plugin_list_during_installation.js
│ └── print_pointers_in_header.js
│ ├── insert-media-tab-manager.js
│ ├── lazyload.js
│ ├── manage_menu_assignment_within_editor.js
│ ├── my-inspiration.js
│ ├── screen
│ └── id
│ │ ├── appearance_page_staged-theme.js
│ │ ├── media_page_boldgrid-connect-search.js
│ │ ├── page.js
│ │ ├── toplevel_page_boldgrid-inspirations.js
│ │ └── upload.js
│ ├── tinymce-plugin.js
│ └── transaction_history.js
├── bin
└── install-wp-tests.sh
├── boldgrid-inspirations.php
├── composer.json
├── composer.lock
├── includes
├── class-boldgrid-inspirations-admin-menu.php
├── class-boldgrid-inspirations-admin-notices.php
├── class-boldgrid-inspirations-ajax.php
├── class-boldgrid-inspirations-api.php
├── class-boldgrid-inspirations-asset-manager.php
├── class-boldgrid-inspirations-attachment.php
├── class-boldgrid-inspirations-attribution-asset.php
├── class-boldgrid-inspirations-attribution-page.php
├── class-boldgrid-inspirations-attribution-update.php
├── class-boldgrid-inspirations-attribution.php
├── class-boldgrid-inspirations-blog.php
├── class-boldgrid-inspirations-branding.php
├── class-boldgrid-inspirations-built.php
├── class-boldgrid-inspirations-cache.php
├── class-boldgrid-inspirations-coins.php
├── class-boldgrid-inspirations-config.php
├── class-boldgrid-inspirations-customizer.php
├── class-boldgrid-inspirations-dashboard-widget.php
├── class-boldgrid-inspirations-dashboard.php
├── class-boldgrid-inspirations-deploy-api.php
├── class-boldgrid-inspirations-deploy-bps.php
├── class-boldgrid-inspirations-deploy-cta.php
├── class-boldgrid-inspirations-deploy-image.php
├── class-boldgrid-inspirations-deploy-messages.php
├── class-boldgrid-inspirations-deploy-metadata.php
├── class-boldgrid-inspirations-deploy-pages.php
├── class-boldgrid-inspirations-deploy-post.php
├── class-boldgrid-inspirations-deploy-status.php
├── class-boldgrid-inspirations-deploy-theme.php
├── class-boldgrid-inspirations-deploy.php
├── class-boldgrid-inspirations-easy-attachment-preview-size.php
├── class-boldgrid-inspirations-enable-media-replace.php
├── class-boldgrid-inspirations-external-plugin.php
├── class-boldgrid-inspirations-feedback.php
├── class-boldgrid-inspirations-file.php
├── class-boldgrid-inspirations-filter-storage.php
├── class-boldgrid-inspirations-image-utility.php
├── class-boldgrid-inspirations-inspiration.php
├── class-boldgrid-inspirations-install-backup.php
├── class-boldgrid-inspirations-installed.php
├── class-boldgrid-inspirations-my-inspiration.php
├── class-boldgrid-inspirations-onboarding-progress.php
├── class-boldgrid-inspirations-onboarding-tasks.php
├── class-boldgrid-inspirations-options.php
├── class-boldgrid-inspirations-pages-and-posts.php
├── class-boldgrid-inspirations-purchase-coins.php
├── class-boldgrid-inspirations-purchase-for-publish.php
├── class-boldgrid-inspirations-receipts.php
├── class-boldgrid-inspirations-redirect.php
├── class-boldgrid-inspirations-screen.php
├── class-boldgrid-inspirations-staging.php
├── class-boldgrid-inspirations-start-over.php
├── class-boldgrid-inspirations-stock-photography.php
├── class-boldgrid-inspirations-survey.php
├── class-boldgrid-inspirations-theme-install.php
├── class-boldgrid-inspirations-update.php
├── class-boldgrid-inspirations-utility.php
├── class-boldgrid-inspirations-widget.php
├── class-boldgrid-inspirations-wp-help-pointers.php
├── class-boldgrid-inspirations.php
├── config
│ ├── .gitignore
│ ├── config.onboarding.php
│ ├── config.plugin.php
│ ├── config.sample.php
│ ├── networks.config.php
│ └── survey.config.php
├── configure_plugin
│ ├── contact-form-7.php
│ └── wc-gallery.php
├── deploy
│ ├── class-author-ids.php
│ ├── class-cache.php
│ ├── class-crio-premium-utility.php
│ ├── class-crio-utility.php
│ ├── class-invoice.php
│ ├── class-logo.php
│ ├── class-menus.php
│ ├── class-post-meta.php
│ ├── class-social-menu.php
│ └── invoice
│ │ ├── forms
│ │ └── get-a-quote.json
│ │ └── posts
│ │ └── get-a-quote.php
├── onboarding
│ ├── class-task-card.php
│ └── class-task.php
├── sprout
│ └── class-utility.php
├── w3tc
│ └── class-utility.php
└── weforms
│ └── class-utility.php
├── languages
├── boldgrid-inspirations-de_DE.mo
├── boldgrid-inspirations-de_DE.po
└── boldgrid-inspirations.pot
├── package.json
├── pages
├── attribution.php
├── boldgrid-inspirations.php
├── cart.php
├── cart
│ └── checking-out.php
├── deploy.php
├── image_search.php
├── includes
│ ├── boldgrid-inspirations
│ │ ├── contact.php
│ │ └── menu.php
│ ├── boldgrid-settings
│ │ └── start_over.php
│ ├── browse_category.php
│ ├── cart_header.php
│ └── post_submitbox_misc_actions_auto_add_to_menu.php
├── my-inspiration.php
├── purchase_coins.php
├── templates
│ ├── attachment_details.php
│ ├── boldgrid-connection-issue.php
│ ├── boldgrid-inspirations.php
│ ├── feedback-notice-1-1.php
│ ├── feedback-widget.php
│ ├── image_search_results.php
│ ├── restrict-direct-access.php
│ ├── settings-saved.php
│ ├── transaction_history.php
│ ├── unauthorized-request.php
│ └── widget_customization.php
└── transaction_history.php
├── phpunit.xml
├── readme.txt
├── tests
├── bootstrap.php
└── test-boldgrid-inspiration.php
├── uninstall.php
└── yarn.lock
/.eslintignore:
--------------------------------------------------------------------------------
1 | assets/js/fancybox.js
2 | assets/js/handlebars/
3 | assets/js/jquery-toggles/
4 | assets/js/lazyload.js
5 | vendor/
6 |
--------------------------------------------------------------------------------
/.eslintrc.js:
--------------------------------------------------------------------------------
1 | // http://eslint.org/docs/user-guide/configuring
2 |
3 | module.exports = {
4 | root: true,
5 | env: {
6 | browser: true
7 | },
8 | // https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style
9 | extends: 'wordpress',
10 | plugins: [
11 | 'html'
12 | ],
13 | // Add your custom rules here
14 | 'rules': {
15 | 'space-in-parens': ['error', 'always'],
16 | "wrap-iife": [2, "any"],
17 | // Allow async-await
18 | 'generator-star-spacing': 0,
19 | // Allow debugger during development
20 | 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0
21 | }
22 | };
23 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/bug_report.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Bug report
3 | about: Create a report to help us improve
4 | title: ''
5 | labels: ''
6 | assignees: ''
7 |
8 | ---
9 |
10 | **Describe the bug**
11 | A clear and concise description of what the bug is.
12 |
13 | **To Reproduce**
14 | Steps to reproduce the behavior:
15 | 1. Go to '...'
16 | 2. Click on '....'
17 | 3. Scroll down to '....'
18 | 4. See error
19 |
20 | **Expected behavior**
21 | A clear and concise description of what you expected to happen.
22 |
23 | **Screenshots**
24 | If applicable, add screenshots to help explain your problem.
25 |
26 | **Desktop (please complete the following information):**
27 | - OS: [e.g. iOS]
28 | - Browser [e.g. chrome, safari]
29 | - Version [e.g. 22]
30 |
31 | **Smartphone (please complete the following information):**
32 | - Device: [e.g. iPhone6]
33 | - OS: [e.g. iOS8.1]
34 | - Browser [e.g. stock browser, safari]
35 | - Version [e.g. 22]
36 |
37 | **Additional context**
38 | Add any other context about the problem here.
39 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/feature_request.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Feature request
3 | about: Suggest an idea for this project
4 | title: ''
5 | labels: ''
6 | assignees: ''
7 |
8 | ---
9 |
10 | **Is your feature request related to a problem? Please describe.**
11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12 |
13 | **Describe the solution you'd like**
14 | A clear and concise description of what you want to happen.
15 |
16 | **Describe alternatives you've considered**
17 | A clear and concise description of any alternative solutions or features you've considered.
18 |
19 | **Additional context**
20 | Add any other context or screenshots about the feature request here.
21 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | config.php
2 | error_log
3 | *.swp
4 | logs*
5 | .buildpath
6 | .project
7 | .settings
8 | node_modules
9 | vendor
10 | assets/css/font-awesome/
11 | assets/css/jquery-toggles/
12 | assets/js/jquery-toggles/
13 |
--------------------------------------------------------------------------------
/.prettierrc:
--------------------------------------------------------------------------------
1 | {
2 | "printWidth": 100,
3 | "bracketSpacing": true,
4 | "useTabs": true,
5 | "singleQuote": true
6 | }
7 |
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | language: php
2 |
3 | # Distrubution / environments: https://docs.travis-ci.com/user/reference/overview/
4 | # Ubuntu Trusty does not support php8: https://docs.travis-ci.com/user/languages/php/
5 | dist: xenial
6 |
7 | services:
8 | # Specifically including MySQL was not needed with Trusty, but other environments do need it.
9 | - mysql
10 |
11 | notifications:
12 | email:
13 | on_success: never
14 | on_failure: change
15 | slack:
16 | secure: "hku/sEQX6jMCmLaZx7GciHru54QkLwBmovONr3jMDBV5C1GxIDkmCvcmFiIGqQ9neMsL615diGN2tBqUXe90kqsy7vkUer75/8wCR47ClPXEmFns2f4bAG2/DRU/Zd6myWe5n/703j9WhS/IKTc85sVoxiJ+rrgGDmY5b5xG3huatRVE5clYD+c9dnIgj/upebgyytsLzOnHarqb/lYQ5dV51CQkYUnRa4RaY5tbrxxq6H0LllRLWe/tDCd+LH+ktnmCFHgdg9YG01RXd6HiIrzBiAqFVQ9HbnZlWbW1kfTJqPgH7sSN3+4CYnKiOZbMbJTVLapoOgkINJ515WVmZAx/9XEBeOnoK14QweusiThXCVdTGi01bcsSDs9DR9cUImHjutPf7v1p9U7lubk7hZ1k8c21lvpWV/IANm55QyXVulTI9P+j1bpTPhMWAgpw+KvzR/5tsq1FnsY14jpUAzkNYSI9BOb95BKz+utn3MOEk+OuuI4Fhmdfmr8ptpc5J5UChA8hmBI81WsKUjX4SsEk3FCOUhSAN4UGrAcZQDdXwhNJ5CgUo/s/fkOVRHgInMq5BaCLkMCBMDiYEG7gQdlqg4zHfBljHg0vkp2FTkja20e+gZFCxzoGWG4wt0nbzOO6qQ5rcWyStQwfq2nvw5Fyo+kcHXfNV7dYHyxQQ3I="
17 |
18 | matrix:
19 | include:
20 | - php: 7.4
21 | before_script:
22 | - nvm install 10
23 | - nvm use 10
24 | - yarn
25 | - composer self-update --1
26 | - composer install -o
27 | - bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
28 | - php: 8.0
29 | before_script:
30 | - nvm install 10
31 | - nvm use 10
32 | - yarn
33 | - composer self-update --1
34 | # Lock file has phpunit 7. Remove it and install latest phpunit for php 8.
35 | - composer remove --dev phpunit/phpunit
36 | - composer require --dev phpunit/phpunit
37 | - composer install -o
38 | - bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
39 |
40 | env:
41 | - WP_VERSION=latest WP_MULTISITE=0
42 |
43 | script:
44 | - find . -name composer -prune -o -name node_modules -prune -o -name '*.php' -exec php -lf {} \; > /dev/null
45 | - vendor/phpunit/phpunit/phpunit --debug
46 | # Composer install was run above in the matrix, and included dev scripts. Run it again with --no-dev
47 | # to remove them.
48 | - composer install -o --no-dev
49 | before_deploy:
50 | - yes | gem update --system --force
51 | - gem install bundler
52 | - gem install uri
53 | - gem install logger
54 | deploy:
55 | - provider: releases
56 | api_key: "${GITHUB_TOKEN}"
57 | file: "boldgrid-inspirations.zip"
58 | skip_cleanup: true
59 | on:
60 | tags: true
61 | php: 7.4
62 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # BoldGrid Inspirations #
2 |
3 | [](https://raw.githubusercontent.com/BoldGrid/boldgrid-inspirations/master/LICENSE)
4 | [](https://travis-ci.org/BoldGrid/boldgrid-inspirations)
5 | [](https://php.net)
6 |
7 | BoldGrid Inspirations is an inspiration-driven plugin to assist with creating a fresh new website, or to customize an existing website.
8 |
9 | ## Description ##
10 |
11 | BoldGrid Inspirations is an inspiration-driven plugin to assist with creating a fresh new website, or to customize an existing website.
12 |
13 | The first phase is Inspiration; the guided tool creates your base website. If you already have a website, then you can skip this step.
14 |
15 | The second phase is Customization; tools to transform your website into your vision.
16 |
17 | ## Installation ##
18 |
19 | ### Minimum Requirements ###
20 |
21 | * PHP 5.4 or higher. PHP 7.3 or higher is recommended.
22 | * PHP cURL.
23 | * PHP setting "opcache.save_comments = 1"
24 | * PHP setting "opcache.load_comments = 1"
25 |
26 | ### Manually ###
27 | 1. Upload the entire boldgrid-inspirations folder to the /wp-content/plugins/ directory.
28 | 1. Run the development build commands to install the dependencies.
29 | 1. Activate the plugin through the Plugins menu in WordPress.
30 |
31 | ## Development ##
32 |
33 | Before you can use the development version of this plugin you must install the dependencies.
34 |
35 | ```
36 | yarn
37 | composer install -o
38 | ```
39 |
--------------------------------------------------------------------------------
/assets/css/adminiconstyle.css:
--------------------------------------------------------------------------------
1 | /**
2 | * #.# Error alerts.
3 | *
4 | * These styles appear to be used by the BoldGrid library. @todo, confirm and move them to the library.
5 | */
6 |
7 | .error-alerts {
8 | color: red;
9 | }
10 |
11 | .error-color::before {
12 | content: '*';
13 | padding-right: 5px;
14 | }
15 |
16 | .error-color {
17 | color: red;
18 | }
19 |
20 | /**
21 | * #.# Theme install.
22 | *
23 | * These styles are for theme-install.php
24 | */
25 |
26 | .theme-install-php #recommend-boldgrid p {
27 | margin: 0;
28 | position: relative;
29 | }
30 |
31 | .theme-install-php #recommend-boldgrid .recommend-boldgrid-text {
32 | padding-left: 41px;
33 | display: inline-block;
34 | left: 18px;
35 | padding-top: 10px;
36 | padding-bottom: 10px;
37 | }
38 |
39 | .theme-install-php .boldgrid-cert,
40 | .theme-install-php .theme[aria-describedby*="boldgrid-"] .theme-name:after {
41 | background: url(../images/bg-seal.png) no-repeat;
42 | }
43 |
44 | .theme-install-php .theme[aria-describedby*="boldgrid-"] .theme-name:after {
45 | content: ' ';
46 | width: 40px;
47 | height: 40px;
48 | display: block;
49 | position: absolute;
50 | left: -6px;
51 | bottom: 36px;
52 | background-size: 37px auto;
53 | }
54 |
55 | .theme-install-php .theme[aria-describedby*="boldgrid-"] .theme-name:before {
56 | content: 'Certified';
57 | display: block;
58 | width: 100%;
59 | height: 18px;
60 | background: #262626; /* Old browsers */
61 | background: -moz-linear-gradient(left, #262626 0%, #ffffff 100%); /* FF3.6-15 */
62 | background: -webkit-linear-gradient(left, #262626 0%,#ffffff 100%); /* Chrome10-25,Safari5.1-6 */
63 | background: linear-gradient(to right, #262626 0%,#ffffff 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
64 | background-size: 100% 100%;
65 | padding: 2px 0px;
66 | position: absolute;
67 | bottom: 48px;
68 | left: 0px;
69 | color: white;
70 | text-transform: uppercase;
71 | text-indent: 38px;
72 | font-size: 10px;
73 | font-family: Josefin Sans;
74 | letter-spacing: .1em;
75 | font-weight: 500;
76 | }
77 |
78 | .theme-install-php .boldgrid-cert {
79 | width: 39px;
80 | height: 44px;
81 | display: inline-block;
82 | position: absolute;
83 | top: 50%;
84 | transform: translateY(-50%);
85 | }
86 |
87 | .theme-install-php .boldgrid-cert {
88 | background-position: -1px 5px;
89 | }
90 |
91 | #toplevel_page_boldgrid-inspirations span.bginsp-progress.complete {
92 | display: none;
93 | }
94 |
95 | #toplevel_page_boldgrid-inspirations span.bginsp-progress {
96 | background: green;
97 | padding: 2px 4px;
98 | border-radius: 35%;
99 | color: white;
100 | font-weight: 600;
101 | }
102 |
--------------------------------------------------------------------------------
/assets/css/boldgrid-cart.css:
--------------------------------------------------------------------------------
1 | .container-fluid {
2 | max-width: 1024px;
3 | margin: 10px 0px 0px 0px;
4 | padding-left: 0px;
5 | padding-right: 0px;
6 | }
7 |
8 | .plugin-card-top .col-md-3 {
9 | width: 23%;
10 | padding: 0px;
11 | margin: 1%;
12 | }
13 |
14 | .plugin-card-top .col-md-3>div:first-child {
15 | border: 1px solid #ddd;
16 | padding: 10px;
17 | min-height: 64px;
18 | }
19 |
20 | .image-info {
21 | position: absolute;
22 | bottom: 10px;
23 | right: 10px;
24 | }
25 |
26 | .image-dimensions:before {
27 | content: "\f165";
28 | display: inline-block;
29 | -webkit-font-smoothing: antialiased;
30 | font: normal 17px/1 'dashicons';
31 | vertical-align: top;
32 | margin-right: 7px;
33 | margin-bottom: 5px;
34 | color: #a8a8a8;
35 | }
36 |
37 | .col-md-3 .spinner,
38 | #purchase_for_publish .image-select {
39 | position: absolute;
40 | top: 10px;
41 | right: 10px;
42 | margin: 0px;
43 | }
44 |
45 | /*
46 | * When an ajax call is being made to update the checked_in_cart attribute, all other checkboxes are
47 | * disabled. Change the cursor to show users they are disabled.
48 | */
49 | #purchase_for_publish input[disabled] {
50 | cursor: progress;
51 | }
52 |
53 | .image-thumbnail {
54 | max-width: 40%;
55 | }
56 |
57 | .row-title {
58 | text-decoration: none;
59 | }
60 |
61 | .cart-summary .row {
62 | margin-left: 0px;
63 | margin-right: 0px;
64 | }
65 |
66 | .text-right {
67 | text-align: right;
68 | }
69 |
70 | /* cart-summary ************************************************************ */
71 | hr {
72 | margin: 0px;
73 | }
74 |
75 | .cart-summary {
76 | margin-top: 15px;
77 | }
78 |
79 | .cart-summary .col-md-6.col-md-offset-6 {
80 | padding: 0px;
81 | }
82 |
83 | .cart-summary table tbody tr:first-child td {
84 | padding-bottom: 10px;
85 | }
86 |
87 | .cart-summary .plugin-card-top {
88 | min-height: initial;
89 | padding: 10px;
90 | }
91 |
92 | /* When you unselect an image, add opacity to show it is not selected */
93 | .unselected-image {
94 | opacity: 0.3;
95 | background-color: #ddd;
96 | }
97 |
98 | .unselected-image .image-select{
99 | outline: 1px solid #000;
100 | outline-offset: -2px;
101 | }
102 |
103 | /* When you hover over a page title, show the "Edit | View" links */
104 | .row:hover div.row-actions {
105 | visibility: visible;
106 | }
107 |
108 | /* When we add the error class to plugin-card, it makes all borders red. We only want the left border changed. */
109 | .plugin-card.error {
110 | border-top: 0px;
111 | border-right: 0px;
112 | border-bottom: 0px;
113 | }
--------------------------------------------------------------------------------
/assets/css/boldgrid-dashboard.css:
--------------------------------------------------------------------------------
1 | /** BoldGrid Feedback Widget Styles **/
2 | #boldgrid_feedback_widget select,
3 | #boldgrid_feedback_widget textarea,
4 | #boldgrid_feedback_widget input[type="text"] {
5 | width: 100%;
6 | }
7 | #boldgrid_feedback_widget .feedback-form-label {
8 | padding: .4em 0;
9 | }
10 | #boldgrid_feedback_widget #feedback-email-address,
11 | #boldgrid_feedback_widget #feedback-comment-area {
12 | display: none;
13 | }
14 |
--------------------------------------------------------------------------------
/assets/css/boldgrid-feedback.css:
--------------------------------------------------------------------------------
1 | /**
2 | * This file should not be auto formatted.
3 | */
4 |
5 | /* feedback-notice-1-1 . */
6 |
7 | .feedback-form-label {
8 | float: left;
9 | font-weight: bold;
10 | margin-top: 11px;
11 | width: 170px;
12 | }
13 |
14 | .feedback-form-field {
15 | margin-top: 7px;
16 | margin-bottom: 7px;
17 | }
18 |
19 | #feedback-comment-area,
20 | #feedback-email-address,
21 | #feedback-diagnostic-report,
22 | #feedback-submit {
23 | display: none;
24 | }
25 |
26 | #feedback-notice-1-1 .boldgrid-icon:before {
27 | color: #f95b26;
28 | font-size: 41px;
29 | overflow: hidden;
30 | padding-right: 15px !important;
31 | }
32 |
33 | #feedback-notice-1-1-header .boldgrid-icon {
34 | float: left;
35 | margin-top: 21px;
36 | }
37 |
38 | #feedback-notice-1-1-intro h2 {
39 | margin-top: 10px;
40 | margin-bottom: 10px;
41 | }
42 |
43 | #boldgrid_feedback_widget #feedback-notice-1-1-intro p {
44 | margin: 0;
45 | }
46 |
47 | #feedback-notice-1-1-intro p {
48 | margin-top: -5px;
49 | margin-bottom: -5px;
50 | margin-left: 56px;
51 | overflow: hidden;
52 | }
53 |
54 | #feedback-notice-1-1-content {
55 | margin-top: 15px;
56 | }
57 |
58 | #feedback-email {
59 | margin-top: 7px;
60 | }
61 |
62 | #feedback-diagnostic-text {
63 | margin-top: 7px;
64 | }
65 |
66 | .feedback-form-field #feedback-submit {
67 | margin-top: 10px;
68 | margin-bottom: 10px;
69 | }
70 |
71 | #feedback-error-message {
72 | color: #ff0000;
73 | display: none;
74 | font-weight: bold;
75 | }
76 |
77 | #boldgrid-feedback-form .spinner {
78 | float: none;
79 | margin-top: 14px;
80 | }
81 |
--------------------------------------------------------------------------------
/assets/css/boldgrid-in-menu.css:
--------------------------------------------------------------------------------
1 | /**
2 | * This file should not be auto formatted.
3 | */
4 |
5 |
6 | .boldgrid-auto-add-to-menu:before {
7 | content: "\f203";
8 | font: 400 20px/1 dashicons;
9 | speak: none;
10 | display: inline-block;
11 | padding: 0 2px 0 0;
12 | top: 0;
13 | left: -1px;
14 | position: relative;
15 | vertical-align: top;
16 | -webkit-font-smoothing: antialiased;
17 | -moz-osx-font-smoothing: grayscale;
18 | text-decoration: none !important;
19 | color: #82878c;
20 | }
21 |
22 | #boldgrid-auto-add-to-menu-menu-listing {
23 | margin-top: 3px;
24 | }
25 |
26 | #boldgrid-auto-add-to-menu-menu-listing ul{
27 | font-size: 12px;
28 | list-style: disc outside none !important;
29 | margin: 0px;
30 | padding-left: 30px;
31 | }
32 |
33 | .hide-boldgrid-auto-add-to-menu.button {
34 | margin-top: 8px;
35 | }
36 |
37 | #selected-menu-names {
38 | font-weight: bold;
39 | }
40 |
--------------------------------------------------------------------------------
/assets/css/boldgrid-login.css:
--------------------------------------------------------------------------------
1 | body.login {
2 | background: #F1F1F1;
3 | }
4 | .login h1 a {
5 | background-size: 318px 158px;
6 | background-position: center top;
7 | background-repeat: no-repeat;
8 | color: #999;
9 | height: 159px;
10 | font-size: 20px;
11 | font-weight: normal;
12 | line-height: 1.3em;
13 | margin: 0 auto 25px;
14 | padding: 0;
15 | text-decoration: none;
16 | width: 318px;
17 | text-indent: -9999px;
18 | outline: none;
19 | overflow: hidden;
20 | display: block;
21 | }
22 | .login #login_error {
23 | border-left: 4px solid firebrick;
24 | background: #fff;
25 | }
26 | .login .message {
27 | border-left: 4px solid #00a0d2;
28 | background-color: #fff;
29 | }
30 | .login .button-primary:active,
31 | .login .button-primary {
32 | border: none !important;
33 | box-shadow: none;
34 | background-color:#FF6600 !important;
35 | text-shadow: none;
36 | }
37 | input, textarea, select, a {
38 | border: 1px solid transparent;
39 | }
40 | .boldgrid-login-bottom-text {
41 | text-align:center;
42 | }
43 | .login center > img {
44 | max-height: 60px;
45 | }
46 |
--------------------------------------------------------------------------------
/assets/css/easy-attachment-preview-size.css:
--------------------------------------------------------------------------------
1 | select.easy-attachment-preview-size option {
2 | background: #fff;
3 | color: #000;
4 | }
5 |
6 | select.easy-attachment-preview-size option:hover {
7 | background: #1e90ff;
8 | color: #fff;
9 | }
10 |
11 | select#image_size option.recommended_image_size:hover {
12 | background: #009E00;
13 | }
14 |
15 | div#easy_attachment_preview_size {
16 | position: fixed;
17 | top: 30px;
18 | left: 30px;
19 | background-color: rgba(51, 204, 255, 0.75);
20 | font-size: 20px;
21 | padding: 0px;
22 | border: 3px solid #33CCFF;
23 | z-index: 200000;
24 | font-weight: bold;
25 | text-shadow: rgb(221, 221, 221) 1px 1px;
26 | }
27 |
28 | div#easy_attachment_preview_size.easy_attachment_preview_size_iframed {
29 | top: 0px;
30 | left: 0px;
31 | }
32 |
33 | div#easy_attachment_preview_size.easy_attachment_preview_size_100 {
34 | font-size: 12px;
35 | line-height: 14px;
36 | }
37 |
38 | select#image_size, select.easy-attachment-preview-size {
39 | position: absolute;
40 | z-index: 300001;
41 | width: 90%;
42 | max-width: 100%;
43 | }
44 |
45 | .easy-attachment-preview-size-hidden {
46 | visibility: hidden;
47 | }
48 |
49 | label.setting {
50 | min-height: 45px;
51 | }
--------------------------------------------------------------------------------
/assets/css/purchase_for_publish.css:
--------------------------------------------------------------------------------
1 | #wpadminbar #wp-admin-bar-pfp .ab-icon:before {
2 | content: "\f174";
3 | display: inline-block;
4 | -webkit-font-smoothing: antialiased;
5 | font: normal 20px/1 'dashicons';
6 | vertical-align: top;
7 | }
8 |
9 | li#wp-admin-bar-pfp {
10 | float: right;
11 | }
12 |
13 | #coin_balance_container {
14 | float: right;
15 | margin: 15px 15px 0px 0px;
16 | }
17 |
18 | table.receipt .thumbnail img {
19 | max-width: 60px;
20 | }
21 |
22 | table.receipt .redownload a {
23 | visibility: hidden;
24 | }
25 |
26 | table.receipt tr:hover .redownload a {
27 | visibility: visible;
28 | }
29 |
30 | /* receipts - pagination */
31 | .tablenav .tablenav-pages a.pagination-go-to-page {
32 | border: 0px;
33 | background-color: transparent;
34 | font-size: inherit;
35 | }
36 |
37 | /* receipts - pagination */
38 | .tablenav .tablenav-pages a.pagination-go-to-page:hover {
39 | background-color: #0073aa;
40 | }
41 |
42 | /* receipts - pagination */
43 | .tablenav .tablenav-pages a.pagination-go-to-page.current {
44 | font-weight: bold;
45 | border-bottom: 1px solid #ccc;
46 | }
47 |
48 | /* receipts - pagination */
49 | .pagination-links {
50 | margin-left: 50px;
51 | }
52 |
53 | /* purchase coins */
54 | div#boldgrid-transaction-tabs + .plugin-card {
55 | margin-top: 10px;
56 | }
--------------------------------------------------------------------------------
/assets/fonts/boldgrid.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BoldGrid/boldgrid-inspirations/ac2c50772ec7e60fd75023e64b5dddd740a96aaa/assets/fonts/boldgrid.eot
--------------------------------------------------------------------------------
/assets/fonts/boldgrid.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/fonts/boldgrid.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BoldGrid/boldgrid-inspirations/ac2c50772ec7e60fd75023e64b5dddd740a96aaa/assets/fonts/boldgrid.ttf
--------------------------------------------------------------------------------
/assets/fonts/boldgrid.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BoldGrid/boldgrid-inspirations/ac2c50772ec7e60fd75023e64b5dddd740a96aaa/assets/fonts/boldgrid.woff
--------------------------------------------------------------------------------
/assets/images/bg-coin-toolbar-graphic.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BoldGrid/boldgrid-inspirations/ac2c50772ec7e60fd75023e64b5dddd740a96aaa/assets/images/bg-coin-toolbar-graphic.png
--------------------------------------------------------------------------------
/assets/images/bg-logo.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/images/bg-seal.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BoldGrid/boldgrid-inspirations/ac2c50772ec7e60fd75023e64b5dddd740a96aaa/assets/images/bg-seal.png
--------------------------------------------------------------------------------
/assets/images/boldgrid-login-logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BoldGrid/boldgrid-inspirations/ac2c50772ec7e60fd75023e64b5dddd740a96aaa/assets/images/boldgrid-login-logo.png
--------------------------------------------------------------------------------
/assets/images/bullet-selected.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BoldGrid/boldgrid-inspirations/ac2c50772ec7e60fd75023e64b5dddd740a96aaa/assets/images/bullet-selected.png
--------------------------------------------------------------------------------
/assets/images/bullet-unselected.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BoldGrid/boldgrid-inspirations/ac2c50772ec7e60fd75023e64b5dddd740a96aaa/assets/images/bullet-unselected.png
--------------------------------------------------------------------------------
/assets/images/categoryarrow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BoldGrid/boldgrid-inspirations/ac2c50772ec7e60fd75023e64b5dddd740a96aaa/assets/images/categoryarrow.png
--------------------------------------------------------------------------------
/assets/images/cc/cc.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BoldGrid/boldgrid-inspirations/ac2c50772ec7e60fd75023e64b5dddd740a96aaa/assets/images/cc/cc.png
--------------------------------------------------------------------------------
/assets/images/continue-rightarrow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BoldGrid/boldgrid-inspirations/ac2c50772ec7e60fd75023e64b5dddd740a96aaa/assets/images/continue-rightarrow.png
--------------------------------------------------------------------------------
/assets/images/customize.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BoldGrid/boldgrid-inspirations/ac2c50772ec7e60fd75023e64b5dddd740a96aaa/assets/images/customize.png
--------------------------------------------------------------------------------
/assets/images/fancybox/blank.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BoldGrid/boldgrid-inspirations/ac2c50772ec7e60fd75023e64b5dddd740a96aaa/assets/images/fancybox/blank.gif
--------------------------------------------------------------------------------
/assets/images/fancybox/fancybox_loading.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BoldGrid/boldgrid-inspirations/ac2c50772ec7e60fd75023e64b5dddd740a96aaa/assets/images/fancybox/fancybox_loading.gif
--------------------------------------------------------------------------------
/assets/images/fancybox/fancybox_loading@2x.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BoldGrid/boldgrid-inspirations/ac2c50772ec7e60fd75023e64b5dddd740a96aaa/assets/images/fancybox/fancybox_loading@2x.gif
--------------------------------------------------------------------------------
/assets/images/fancybox/fancybox_overlay.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BoldGrid/boldgrid-inspirations/ac2c50772ec7e60fd75023e64b5dddd740a96aaa/assets/images/fancybox/fancybox_overlay.png
--------------------------------------------------------------------------------
/assets/images/fancybox/fancybox_sprite.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BoldGrid/boldgrid-inspirations/ac2c50772ec7e60fd75023e64b5dddd740a96aaa/assets/images/fancybox/fancybox_sprite.png
--------------------------------------------------------------------------------
/assets/images/fancybox/fancybox_sprite@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BoldGrid/boldgrid-inspirations/ac2c50772ec7e60fd75023e64b5dddd740a96aaa/assets/images/fancybox/fancybox_sprite@2x.png
--------------------------------------------------------------------------------
/assets/images/goback-leftarrow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BoldGrid/boldgrid-inspirations/ac2c50772ec7e60fd75023e64b5dddd740a96aaa/assets/images/goback-leftarrow.png
--------------------------------------------------------------------------------
/assets/images/inspirations/arrow-left-filled.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BoldGrid/boldgrid-inspirations/ac2c50772ec7e60fd75023e64b5dddd740a96aaa/assets/images/inspirations/arrow-left-filled.png
--------------------------------------------------------------------------------
/assets/images/inspirations/arrow-right-filled.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BoldGrid/boldgrid-inspirations/ac2c50772ec7e60fd75023e64b5dddd740a96aaa/assets/images/inspirations/arrow-right-filled.png
--------------------------------------------------------------------------------
/assets/images/inspirations/arrow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BoldGrid/boldgrid-inspirations/ac2c50772ec7e60fd75023e64b5dddd740a96aaa/assets/images/inspirations/arrow.png
--------------------------------------------------------------------------------
/assets/images/inspirations/cache/w3-total-cache.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BoldGrid/boldgrid-inspirations/ac2c50772ec7e60fd75023e64b5dddd740a96aaa/assets/images/inspirations/cache/w3-total-cache.png
--------------------------------------------------------------------------------
/assets/images/inspirations/click.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BoldGrid/boldgrid-inspirations/ac2c50772ec7e60fd75023e64b5dddd740a96aaa/assets/images/inspirations/click.png
--------------------------------------------------------------------------------
/assets/images/inspirations/contact-info-close-24ac47.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BoldGrid/boldgrid-inspirations/ac2c50772ec7e60fd75023e64b5dddd740a96aaa/assets/images/inspirations/contact-info-close-24ac47.png
--------------------------------------------------------------------------------
/assets/images/inspirations/features-templates-gridpic.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BoldGrid/boldgrid-inspirations/ac2c50772ec7e60fd75023e64b5dddd740a96aaa/assets/images/inspirations/features-templates-gridpic.png
--------------------------------------------------------------------------------
/assets/images/inspirations/features-themes-gridpic.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BoldGrid/boldgrid-inspirations/ac2c50772ec7e60fd75023e64b5dddd740a96aaa/assets/images/inspirations/features-themes-gridpic.png
--------------------------------------------------------------------------------
/assets/images/inspirations/fill.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BoldGrid/boldgrid-inspirations/ac2c50772ec7e60fd75023e64b5dddd740a96aaa/assets/images/inspirations/fill.png
--------------------------------------------------------------------------------
/assets/images/inspirations/header-bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BoldGrid/boldgrid-inspirations/ac2c50772ec7e60fd75023e64b5dddd740a96aaa/assets/images/inspirations/header-bg.png
--------------------------------------------------------------------------------
/assets/images/inspirations/invoice/sprout-invoices.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BoldGrid/boldgrid-inspirations/ac2c50772ec7e60fd75023e64b5dddd740a96aaa/assets/images/inspirations/invoice/sprout-invoices.png
--------------------------------------------------------------------------------
/assets/images/minus.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BoldGrid/boldgrid-inspirations/ac2c50772ec7e60fd75023e64b5dddd740a96aaa/assets/images/minus.png
--------------------------------------------------------------------------------
/assets/images/mobile-active.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BoldGrid/boldgrid-inspirations/ac2c50772ec7e60fd75023e64b5dddd740a96aaa/assets/images/mobile-active.png
--------------------------------------------------------------------------------
/assets/images/mobile-inactive.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BoldGrid/boldgrid-inspirations/ac2c50772ec7e60fd75023e64b5dddd740a96aaa/assets/images/mobile-inactive.png
--------------------------------------------------------------------------------
/assets/images/mobile.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BoldGrid/boldgrid-inspirations/ac2c50772ec7e60fd75023e64b5dddd740a96aaa/assets/images/mobile.png
--------------------------------------------------------------------------------
/assets/images/monitor-active.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BoldGrid/boldgrid-inspirations/ac2c50772ec7e60fd75023e64b5dddd740a96aaa/assets/images/monitor-active.png
--------------------------------------------------------------------------------
/assets/images/monitor-inactive.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BoldGrid/boldgrid-inspirations/ac2c50772ec7e60fd75023e64b5dddd740a96aaa/assets/images/monitor-inactive.png
--------------------------------------------------------------------------------
/assets/images/plus.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BoldGrid/boldgrid-inspirations/ac2c50772ec7e60fd75023e64b5dddd740a96aaa/assets/images/plus.png
--------------------------------------------------------------------------------
/assets/images/preview-eye.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BoldGrid/boldgrid-inspirations/ac2c50772ec7e60fd75023e64b5dddd740a96aaa/assets/images/preview-eye.png
--------------------------------------------------------------------------------
/assets/images/previewbg1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BoldGrid/boldgrid-inspirations/ac2c50772ec7e60fd75023e64b5dddd740a96aaa/assets/images/previewbg1.png
--------------------------------------------------------------------------------
/assets/images/search-glass.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BoldGrid/boldgrid-inspirations/ac2c50772ec7e60fd75023e64b5dddd740a96aaa/assets/images/search-glass.png
--------------------------------------------------------------------------------
/assets/images/select-thumb.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BoldGrid/boldgrid-inspirations/ac2c50772ec7e60fd75023e64b5dddd740a96aaa/assets/images/select-thumb.png
--------------------------------------------------------------------------------
/assets/images/step1-active.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BoldGrid/boldgrid-inspirations/ac2c50772ec7e60fd75023e64b5dddd740a96aaa/assets/images/step1-active.png
--------------------------------------------------------------------------------
/assets/images/step1-inactive.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BoldGrid/boldgrid-inspirations/ac2c50772ec7e60fd75023e64b5dddd740a96aaa/assets/images/step1-inactive.png
--------------------------------------------------------------------------------
/assets/images/step2-active.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BoldGrid/boldgrid-inspirations/ac2c50772ec7e60fd75023e64b5dddd740a96aaa/assets/images/step2-active.png
--------------------------------------------------------------------------------
/assets/images/step2-inactive.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BoldGrid/boldgrid-inspirations/ac2c50772ec7e60fd75023e64b5dddd740a96aaa/assets/images/step2-inactive.png
--------------------------------------------------------------------------------
/assets/images/step3-active.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BoldGrid/boldgrid-inspirations/ac2c50772ec7e60fd75023e64b5dddd740a96aaa/assets/images/step3-active.png
--------------------------------------------------------------------------------
/assets/images/step3-inactive.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BoldGrid/boldgrid-inspirations/ac2c50772ec7e60fd75023e64b5dddd740a96aaa/assets/images/step3-inactive.png
--------------------------------------------------------------------------------
/assets/images/steps-arrow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BoldGrid/boldgrid-inspirations/ac2c50772ec7e60fd75023e64b5dddd740a96aaa/assets/images/steps-arrow.png
--------------------------------------------------------------------------------
/assets/images/steps-arrow1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BoldGrid/boldgrid-inspirations/ac2c50772ec7e60fd75023e64b5dddd740a96aaa/assets/images/steps-arrow1.png
--------------------------------------------------------------------------------
/assets/images/steps-checkmark.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BoldGrid/boldgrid-inspirations/ac2c50772ec7e60fd75023e64b5dddd740a96aaa/assets/images/steps-checkmark.png
--------------------------------------------------------------------------------
/assets/images/steps-gear.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BoldGrid/boldgrid-inspirations/ac2c50772ec7e60fd75023e64b5dddd740a96aaa/assets/images/steps-gear.png
--------------------------------------------------------------------------------
/assets/images/tablet-active.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BoldGrid/boldgrid-inspirations/ac2c50772ec7e60fd75023e64b5dddd740a96aaa/assets/images/tablet-active.png
--------------------------------------------------------------------------------
/assets/images/tablet-inactive.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BoldGrid/boldgrid-inspirations/ac2c50772ec7e60fd75023e64b5dddd740a96aaa/assets/images/tablet-inactive.png
--------------------------------------------------------------------------------
/assets/images/tablet.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BoldGrid/boldgrid-inspirations/ac2c50772ec7e60fd75023e64b5dddd740a96aaa/assets/images/tablet.png
--------------------------------------------------------------------------------
/assets/images/wordpressinmotion.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BoldGrid/boldgrid-inspirations/ac2c50772ec7e60fd75023e64b5dddd740a96aaa/assets/images/wordpressinmotion.png
--------------------------------------------------------------------------------
/assets/images/wordpresslogo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BoldGrid/boldgrid-inspirations/ac2c50772ec7e60fd75023e64b5dddd740a96aaa/assets/images/wordpresslogo.png
--------------------------------------------------------------------------------
/assets/images/wordpresswebhostinghub.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BoldGrid/boldgrid-inspirations/ac2c50772ec7e60fd75023e64b5dddd740a96aaa/assets/images/wordpresswebhostinghub.png
--------------------------------------------------------------------------------
/assets/js/ajax/ajax.js:
--------------------------------------------------------------------------------
1 | var IMHWPB = IMHWPB || {};
2 |
3 | IMHWPB.Ajax = function( configs ) {
4 | var self = this;
5 |
6 | this.configs = configs;
7 | this.api_url = this.configs.asset_server;
8 | this.api_key = this.configs.api_key;
9 | this.site_hash = this.configs.site_hash;
10 | this.lang = BoldGridInspirationsAjax;
11 |
12 | /**
13 | * Execute an AJAX call.
14 | *
15 | * @param array data Data to sent via POST.
16 | * @param string requestUrlKey Configuration index for the URL.
17 | * @param function successAction The success/done callback function.
18 | * @param function errorAction The errorAction/fail callback function.
19 | * @param function completeAction The completeAction/always callback function.
20 | */
21 | this.ajaxCall = function( data, requestUrlKey, successAction, errorAction, completeAction ) {
22 | self.data = data || {};
23 | self.requestUrlKey = requestUrlKey;
24 |
25 | if ( 'function' !== typeof errorAction ) {
26 | errorAction = self.errorAction;
27 | }
28 | if ( 'function' !== typeof completeAction ) {
29 | completeAction = function() {
30 | /** No Default * */
31 | };
32 | }
33 |
34 | data.key = self.api_key;
35 | data.site_hash = self.site_hash;
36 |
37 | jQuery.ajax( {
38 | type : 'POST',
39 | url : self.api_url + self.configs.ajax_calls[requestUrlKey],
40 | data : data,
41 | timeout : 120000,
42 | requestHeaders : {
43 | Accept : 'application/json'
44 | },
45 | dataType : 'json',
46 | } )
47 | .done( successAction )
48 | .fail ( [
49 | errorAction,
50 | self.errorLogAction
51 | ] )
52 | .always( completeAction );
53 | };
54 |
55 | /**
56 | * Error handling.
57 | */
58 | this.errorAction = function( jqXHR, textStatus, errorThrown ) {
59 | var message, $wpbody;
60 |
61 | switch ( textStatus ) {
62 | case 'timeout':
63 | message = self.lang.timeout;
64 | break;
65 |
66 | case 'parsererror':
67 | message = self.lang.unexpected;
68 | break;
69 |
70 | default:
71 | break;
72 | }
73 |
74 | if ( window.parent.jQuery( '#wpbody-content' ).length ) {
75 | $wpbody = window.parent.jQuery( '#wpbody-content' );
76 | } else {
77 | $wpbody = jQuery( '#wpbody-content' );
78 | }
79 |
80 | // Provide a friendly error for comm failure, if notice is not already displayed.
81 | if ( ! window.parent.jQuery( '#container_boldgrid_connection_notice' ).length &&
82 | ! jQuery( '#container_boldgrid_connection_notice' ).length ) {
83 | if ( message ) {
84 | message += '
';
85 | } else {
86 | message = '';
87 | }
88 |
89 | $wpbody
90 | .hide()
91 | .before(
92 | '
' + 97 | self.lang.pleaseTryAgain + 98 | '
' + 99 | '' + 100 | self.lang.checkStatusPage + 101 | '
' + 102 | '' + 103 | message + 104 | '' + 107 | '
' + 108 | 'This is a paragraph with an image aligned to the left. Replace this text with your own text. It\'s easy! This is a paragraph with an image aligned to the left. Replace this text with your own text. It\'s easy! This is a paragraph with an image aligned to the left. Replace this text with your own text. It\'s easy! This is a paragraph with an image aligned to the left. Replace this text with your own text. It\'s easy!
This is a paragraph with an image aligned to the left. Replace this text with your own text. It\'s easy!
' . wp_kses( 40 | sprintf( 41 | // translators: 1 The opening anchor tag to the Inspirations page, 2 its closing tag. 42 | __( 'It looks like you haven\'t completed the Inspirations process yet. %1$sClick here to begin%2$s.', 'boldgrid-inspirations' ), 43 | '', 44 | '' 45 | ), 46 | [ 'a' => [ 'href' => [] ] ] 47 | ) . '
' . wp_kses( 50 | sprintf( 51 | // translators: 1 The opening anchor tag to the Inspirations page, 2 its closing tag. 52 | __( 'It looks like there is still more you can do with BoldGrid. %1$sClick here to continue%2$s.', 'boldgrid-inspirations' ), 53 | '', 54 | '' 55 | ), 56 | array( 'a' => array( 'href' => array() ) ) 57 | ) . '
" . print_r( $this->screen, 1 ) . "" ); 132 | } 133 | } 134 | } 135 | -------------------------------------------------------------------------------- /includes/class-boldgrid-inspirations-widget.php: -------------------------------------------------------------------------------- 1 | 9 | */ 10 | 11 | /** 12 | * BoldGrid Widget class. 13 | * 14 | * @since 1.4 15 | */ 16 | class Boldgrid_Inspirations_Widget { 17 | 18 | /** 19 | * Create a widget. 20 | * 21 | * Create a widget based upon the standard WordPress widgets. The option name is widget_$type, 22 | * it's an array, and each instance of that widget has a numeric key. 23 | * 24 | * @since 1.4 25 | * 26 | * @param string $type Such as "search" or "recent-posts". 27 | * @param mixed $value The value of your new widget, such as array(). 28 | * @return int The key of the new widget. 29 | */ 30 | public static function create_widget( $type, $value ) { 31 | $widget_name = 'widget_' . $type; 32 | 33 | $widgets = get_option( $widget_name ); 34 | 35 | $widgets[] = $value; 36 | 37 | update_option( $widget_name, $widgets ); 38 | 39 | return max( array_keys( $widgets ) ); 40 | } 41 | 42 | /** 43 | * Return the sidebars_widgets option. 44 | * 45 | * @since 1.4 46 | * 47 | * @return array 48 | */ 49 | public static function get_sidebars_widgets() { 50 | return get_option( 'sidebars_widgets', array() ); 51 | } 52 | 53 | /** 54 | * Update sidebars_widgets. 55 | * 56 | * @since 1.4 57 | * 58 | * @param string $sidebar The sidebar to update, such as 'sidebar-1'. 59 | * @param string $id The new widget to add, such as 'search-4'. 60 | * @return bool True if update was successful. 61 | */ 62 | public static function add_to_sidebars( $sidebar, $id ) { 63 | $widgets = self::get_sidebars_widgets(); 64 | 65 | $widgets[ $sidebar ][] = $id; 66 | 67 | return self::update_sidebars_widgets( $widgets ); 68 | } 69 | 70 | /** 71 | * Empty a sidebar within the sidebars_widgets option. 72 | * 73 | * @since 1.4 74 | * 75 | * @param string $sidebar The sidebar to empty, such as 'sidebar-1'. 76 | */ 77 | public static function empty_sidebar( $sidebar ) { 78 | $sidebars_widgets = self::get_sidebars_widgets(); 79 | 80 | $sidebars_widgets[ $sidebar ] = array(); 81 | 82 | self::update_sidebars_widgets( $sidebars_widgets ); 83 | } 84 | 85 | /** 86 | * Update the sidebars_widgets option. 87 | * 88 | * @since 1.4 89 | * 90 | * @param array $value The new value. 91 | */ 92 | public static function update_sidebars_widgets( $value ) { 93 | return update_option( 'sidebars_widgets', $value ); 94 | } 95 | } 96 | -------------------------------------------------------------------------------- /includes/config/.gitignore: -------------------------------------------------------------------------------- 1 | *.local.php -------------------------------------------------------------------------------- /includes/config/config.sample.php: -------------------------------------------------------------------------------- 1 | 'https://wp-assets-dev.boldgrid.com', 16 | 'preview_server' => 'https://wp-preview-dev.boldgrid.com', 17 | 'author_preview_server' => 'https://wp-staging-dev.boldgrid.com', 18 | ); 19 | /* @formatter:on */ -------------------------------------------------------------------------------- /includes/config/survey.config.php: -------------------------------------------------------------------------------- 1 | %1$s', 21 | $email 22 | ); 23 | 24 | $map_iframe = sprintf( 25 | '', 26 | urlencode( $address ) 27 | ); 28 | 29 | return array( 30 | 'find_and_replace' => array( 31 | array( 32 | 'removal_key' => 'phone', 33 | 'value' => $phone, 34 | 'display' => $display_phone, 35 | 'on_success' => 'node_value', 36 | ), 37 | array( 38 | 'removal_key' => 'address', 39 | 'value' => $address, 40 | 'display' => $display_address, 41 | 'on_success' => 'node_value', 42 | ), 43 | array( 44 | 'removal_key' => 'email', 45 | 'value' => $email, 46 | 'display' => $display_email, 47 | 'parent_attributes' => array( 'href' => 'mailto:' . $email, ), 48 | 'on_success' => 'node_value', 49 | ), 50 | array( 51 | 'removal_key' => 'map', 52 | 'value' => $map_iframe, 53 | 'display' => $display_address, 54 | 'on_success' => 'remove_children', 55 | 'parent_style' => true, 56 | ), 57 | ), 58 | 'footer_company_details' => array( 59 | '© ' . date( 'Y' ) . ' ' . $blogname, 60 | $display_address ? $address : null, 61 | $display_phone ? $phone : null, 62 | $display_email ? $mailto : null, 63 | ), 64 | ); 65 | ?> -------------------------------------------------------------------------------- /includes/configure_plugin/contact-form-7.php: -------------------------------------------------------------------------------- 1 | ID . '" title="Contact form 1"]'; 13 | 14 | // update the post and replace [imhwpb-form] with the shortcode used by cf7 15 | // $post_id is coming from the file in which this was included 16 | $page_needing_form = get_post( $post_id ); 17 | $page_needing_form->post_content = str_replace( '[imhwpb-form]', $short_code, 18 | $page_needing_form->post_content ); 19 | wp_update_post( $page_needing_form ); 20 | 21 | // update the email address of the recipient 22 | global $current_user; 23 | get_currentuserinfo(); 24 | $postmeta = get_post_meta( $auto_created_form->ID, '_mail', true ); 25 | $postmeta['recipient'] = "wpb@boldgrid.com"; 26 | if ( $current_user->user_email != "" ) { 27 | $postmeta['recipient'] = $current_user->user_email; 28 | } 29 | update_post_meta( $auto_created_form->ID, '_mail', $postmeta ); 30 | 31 | -------------------------------------------------------------------------------- /includes/configure_plugin/wc-gallery.php: -------------------------------------------------------------------------------- 1 | 9 | */ 10 | 11 | namespace Boldgrid\Inspirations\Deploy; 12 | 13 | /** 14 | * Crio Premium Utility class. 15 | * 16 | * This handles the storing of author ids and coorelation between them and local IDs. 17 | * 18 | * @since sinceversion 19 | */ 20 | class Author_Ids { 21 | 22 | /** 23 | * Set Author IDs. 24 | * 25 | * Sets the author IDs option. 26 | * 27 | * @param array $author_ids Author IDs. 28 | * 29 | * @static 30 | */ 31 | public static function set_author_ids( $author_ids_to_local ) { 32 | update_option( 'boldgrid_author_ids_to_local', $author_ids_to_local ); 33 | } 34 | 35 | /** 36 | * Get Author ID From Local ID. 37 | * 38 | * Returns the author id using the local ID as reference. 39 | * 40 | * @return string Author ID. 41 | * 42 | * @static 43 | */ 44 | public static function get_from_local( $local_id ) { 45 | $ids_option = get_option( 'boldgrid_author_ids_to_local', array() ); 46 | 47 | return array_search( $local_id, $ids_option ) ? array_search( $local_id, $ids_option ) : $local_id; 48 | } 49 | 50 | /** 51 | * Get Local ID from Author ID. 52 | * 53 | * Returns the local ID using the author ID as reference. 54 | * 55 | * @return string Local ID. 56 | * 57 | * @static 58 | */ 59 | public static function get_from_author( $author_id ) { 60 | $ids_option = get_option( 'boldgrid_author_ids_to_local', array() ); 61 | 62 | return isset( $ids_option[ $author_id ] ) ? $ids_option[ $author_id ] : $author_id; 63 | } 64 | } 65 | 66 | -------------------------------------------------------------------------------- /includes/deploy/class-cache.php: -------------------------------------------------------------------------------- 1 | 9 | */ 10 | 11 | namespace Boldgrid\Inspirations\Deploy; 12 | 13 | /** 14 | * Deploy Cache class. 15 | * 16 | * @since 2.5.0 17 | */ 18 | class Cache { 19 | /** 20 | * Our deploy class. 21 | * 22 | * @since 2.5.0 23 | * @access private 24 | * @var Boldgrid_Inspirations_Deploy 25 | */ 26 | private $deploy; 27 | 28 | /** 29 | * Constructor. 30 | * 31 | * @since 2.5.0 32 | * 33 | * @param Boldgrid_Inspirations_Deploy $deploy 34 | */ 35 | public function __construct( \Boldgrid_Inspirations_Deploy $deploy ) { 36 | $this->deploy = $deploy; 37 | } 38 | 39 | /** 40 | * Install our caching plugin. 41 | * 42 | * @since 2.5.0 43 | */ 44 | public function install() { 45 | $data = (object) [ 46 | 'plugin_zip_url' => 'https://downloads.wordpress.org/plugin/w3-total-cache.zip', 47 | 'plugin_title' => 'W3 Total Cache', 48 | 'plugin_activate_path' => 'w3-total-cache/w3-total-cache.php', 49 | ]; 50 | 51 | $this->deploy->download_and_install_plugin( 52 | $data->plugin_zip_url, 53 | $data->plugin_activate_path, 54 | null, 55 | $data 56 | ); 57 | 58 | $slug = explode( '/', $data->plugin_activate_path )[0]; 59 | $this->deploy->messages->print_plugin( $data->plugin_title, $slug ); 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /includes/deploy/class-crio-utility.php: -------------------------------------------------------------------------------- 1 | 9 | */ 10 | 11 | namespace Boldgrid\Inspirations\Deploy; 12 | 13 | /** 14 | * Crio Utility class. 15 | * 16 | * @since sinceversion 17 | */ 18 | class Crio_Utility { 19 | /** 20 | * Setup our template locations taxonomy. 21 | * 22 | * This code is copied directly from Crio. In the future, it would help if these were static methods 23 | * within Crio that we could call directly. 24 | * @see /src/includes/page-headers/templates/class-crio-premium-page-headers-templates.php 25 | * 26 | * @since SINCEVERSION 27 | */ 28 | public static function register_template_locations() { 29 | $taxonomy = 'template_locations'; 30 | 31 | // Labels part for the GUI 32 | $labels = array( 33 | 'name' => __( 'Template Location', 'bgtfw' ), 34 | 'singular_name' => _x( 'Template Location', 'taxonomy singular name' ), 35 | 'search_items' => __( 'Search Template Locations', 'bgtfw' ), 36 | 'all_items' => null, 37 | 'parent_item' => null, 38 | 'parent_item_colon' => null, 39 | 'edit_item' => __( 'Edit Template Location', 'bgtfw' ), 40 | 'update_item' => __( 'Update Template Location', 'bgtfw' ), 41 | 'add_new_item' => null, 42 | 'new_item_name' => null, 43 | 'menu_name' => __( 'Template Locations', 'bgtfw' ), 44 | 'most_used' => null, 45 | ); 46 | 47 | $locations = array( 48 | 'header', 49 | 'sticky-header', 50 | 'footer', 51 | ); 52 | 53 | // Register our taxonomy. It may already exist if Crio is already installed. 54 | if ( ! taxonomy_exists( $taxonomy ) ) { 55 | register_taxonomy( 56 | $taxonomy, 57 | 'crio_page_header', 58 | array( 59 | 'hierarchical' => true, 60 | 'labels' => $labels, 61 | 'public' => true, 62 | 'show_ui' => true, 63 | 'show_in_menu' => false, 64 | 'show_in_rest' => true, 65 | 'update_count_callback' => '_update_post_term_count', 66 | 'query_var' => true, 67 | 'rewrite' => array( 'slug' => 'template_location' ), 68 | 'meta_box_cb' => false, 69 | 'capabilities' => array( 70 | 'manage_terms' => '', 71 | 'edit_terms' => '', 72 | 'delete_terms' => '', 73 | 'assign_terms' => 'edit_posts', 74 | ), 75 | ) 76 | ); 77 | } 78 | 79 | // Add our terms. 80 | foreach ( $locations as $slug ) { 81 | $name = ucwords( str_replace( '-', ' ', $slug ) ); 82 | // Crio may already be installed, so check for existing terms. 83 | if ( ! term_exists( $slug, $taxonomy ) ) { 84 | wp_insert_term( $name, $taxonomy, array( 'slug' => $slug ) ); 85 | } 86 | } 87 | } 88 | } 89 | -------------------------------------------------------------------------------- /includes/deploy/class-invoice.php: -------------------------------------------------------------------------------- 1 | 9 | */ 10 | 11 | namespace Boldgrid\Inspirations\Deploy; 12 | 13 | /** 14 | * Deploy Invoice class. 15 | * 16 | * @since 2.5.0 17 | */ 18 | class Invoice { 19 | /** 20 | * Our deploy class. 21 | * 22 | * @since 2.5.0 23 | * @access private 24 | * @var Boldgrid_Inspirations_Deploy 25 | */ 26 | private $deploy; 27 | 28 | /** 29 | * Constructor. 30 | * 31 | * @since 2.5.0 32 | * 33 | * @param Boldgrid_Inspirations_Deploy $deploy 34 | */ 35 | public function __construct( \Boldgrid_Inspirations_Deploy $deploy ) { 36 | $this->deploy = $deploy; 37 | } 38 | 39 | /** 40 | * Run the deployment of our invoicing plugin. 41 | * 42 | * @since 2.5.0 43 | * 44 | * @param array $args An array of arguments. 45 | */ 46 | public function deploy( $args = array() ) { 47 | $this->install(); 48 | 49 | // Import our weForms form and get the id. 50 | \Boldgrid\Inspirations\Weforms\Utility::import_json_file( dirname( __FILE__ ) . '/invoice/forms/get-a-quote.json' ); 51 | $form = \Boldgrid\Inspirations\Weforms\Utility::get_by_title( 'Get a Quote Form' ); 52 | if ( empty( $form->id ) ) { 53 | return false; 54 | } 55 | 56 | // Insert our "Get a Quote" page. $form->id is used in get-a-quote.php below. 57 | $post = include 'invoice/posts/get-a-quote.php'; 58 | $post_id = wp_insert_post( $post ); 59 | 60 | // Add the new post to the menu. 61 | wp_update_nav_menu_item( $args['menu_id'], 0, array( 62 | 'menu-item-object-id' => $post_id, 63 | 'menu-item-parent-id' => 0, 64 | 'menu-item-object' => 'page', 65 | 'menu-item-type' => 'post_type', 66 | 'menu-item-status' => 'publish' 67 | ) ); 68 | 69 | // Print a message to the user that we just created this page. 70 | $post_object = new \stdClass(); 71 | $post_object->page_title = $post['post_title']; 72 | $this->deploy->messages->print_page( $post_object ); 73 | } 74 | 75 | /** 76 | * Install Sprout Invoices. 77 | * 78 | * @since 2.5.0 79 | */ 80 | public function install() { 81 | $data = (object) [ 82 | 'plugin_zip_url' => 'https://downloads.wordpress.org/plugin/sprout-invoices.zip', 83 | 'plugin_title' => 'Sprout Invoices', 84 | 'plugin_activate_path' => 'sprout-invoices/sprout-invoices.php', 85 | ]; 86 | 87 | $this->deploy->download_and_install_plugin( 88 | $data->plugin_zip_url, 89 | $data->plugin_activate_path, 90 | null, 91 | $data 92 | ); 93 | } 94 | } 95 | -------------------------------------------------------------------------------- /includes/deploy/class-logo.php: -------------------------------------------------------------------------------- 1 | 9 | */ 10 | 11 | namespace Boldgrid\Inspirations\Deploy; 12 | 13 | /** 14 | * Deploy Logo class. 15 | * 16 | * @since SINCEVERSION 17 | */ 18 | class Logo { 19 | /** 20 | * Download and setup a logo. 21 | * 22 | * @since SINCEVERSION 23 | * 24 | * @param int $asset_id The asset_id of our logo. 25 | * @param Boldgrid_Inspirations_Deploy $deploy Our deployment class. 26 | */ 27 | public static function deploy( $asset_id, $deploy ) { 28 | if ( ! is_numeric( $asset_id ) ) { 29 | return false; 30 | } 31 | 32 | $attachment_data = $deploy->asset_manager->download_and_attach_asset( false, $asset_id, null, 'all' ); 33 | 34 | if ( empty( $attachment_data['attachment_id'] ) || ! is_numeric( $attachment_data['attachment_id'] ) ) { 35 | return false; 36 | } else { 37 | $attachment_id = $attachment_data['attachment_id']; 38 | } 39 | 40 | set_theme_mod( 'custom_logo', $attachment_id ); 41 | update_option( 'site_logo', $attachment_id ); 42 | 43 | return true; 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /includes/deploy/class-post-meta.php: -------------------------------------------------------------------------------- 1 | 9 | */ 10 | 11 | namespace Boldgrid\Inspirations\Deploy; 12 | 13 | /** 14 | * Post Meta Class. 15 | * 16 | * This handles the deploying of post meta. 17 | * 18 | * @since sinceversion 19 | */ 20 | class Post_Meta { 21 | /** 22 | * Post Meta Keys. 23 | * 24 | * These post meta keys are to be imported when setting 25 | * post meta. Any post meta that is not in this array will 26 | * not be imported during the inspirations process. 27 | * 28 | * @var array post meta keys. 29 | */ 30 | public static $post_meta_keys = array( 31 | 'crio-premium-page-header-override', 32 | 'crio-premium-page-header-select', 33 | 'crio-premium-page-header-background', 34 | 'crio-premium-page-header-featured-image-background', 35 | 'crio-premium-template-has-page-title', 36 | 'crio-premium-include-site-header', 37 | ); 38 | 39 | /** 40 | * Set Post Meta 41 | * 42 | * This is run after all pages / posts are added to the site. 43 | * 44 | * Currently this is only used to add post meta fields for Crio Premium, 45 | * but it can be used by other plugins as well. 46 | * 47 | * @param int $post_id Post ID. 48 | * @param array $post_meta Post Meta. 49 | * @param bool $filter_post_meta Whether or not the post_meta should be filtered to replace the local ID with the author ID. 50 | */ 51 | public static function set_post_meta( $post_id, $post_meta, $filter_post_meta = false ) { 52 | foreach ( $post_meta as $key => $value ) { 53 | if ( false !== array_search( $key, self::$post_meta_keys, true ) && false !== $filter_post_meta ) { 54 | $filtered_value = \Boldgrid\Inspirations\Deploy\Author_Ids::get_from_author( $value[0] ); 55 | update_post_meta( $post_id, $key, $filtered_value ); 56 | } else if ( false !== array_search( $key, self::$post_meta_keys, true ) ) { 57 | update_post_meta( $post_id, $key, $value ); 58 | } 59 | } 60 | } 61 | 62 | } 63 | 64 | -------------------------------------------------------------------------------- /includes/deploy/class-social-menu.php: -------------------------------------------------------------------------------- 1 | 9 | */ 10 | 11 | namespace Boldgrid\Inspirations\Deploy; 12 | 13 | /** 14 | * Social Menu class. 15 | * 16 | * @since 2.5.0 17 | */ 18 | class Social_Menu { 19 | /** 20 | * Our deploy class. 21 | * 22 | * @since 2.5.0 23 | * @access private 24 | * @var Boldgrid_Inspirations_Deploy 25 | */ 26 | private $deploy; 27 | 28 | /** 29 | * Constructor. 30 | * 31 | * @since 2.5.0 32 | * 33 | * @param Boldgrid_Inspirations_Deploy $deploy 34 | */ 35 | public function __construct( \Boldgrid_Inspirations_Deploy $deploy ) { 36 | $this->deploy = $deploy; 37 | } 38 | 39 | /** 40 | * Create a unique menu for our social links. 41 | * 42 | * @since 2.5.0 43 | * 44 | * @param string $name Menu name. 45 | * @return int Id of menu created. 46 | */ 47 | public function create_menu( $name ) { 48 | $original_name = $name; 49 | $count = 2; 50 | 51 | /* 52 | * Get a unique name for our menu. 53 | * 54 | * Start off by trying to create $name. If it doesn't exist, try $name-1, $name-2, etc. 55 | */ 56 | $menu_object = wp_get_nav_menu_object( $name ); 57 | while( ! empty( $menu_object ) ) { 58 | $name = $original_name . '-' . $count; 59 | $menu_object = wp_get_nav_menu_object( $name ); 60 | $count++; 61 | } 62 | 63 | return wp_create_nav_menu( $name ); 64 | } 65 | 66 | /** 67 | * Create a social media menu based off of survey data and assign to social nav menu location. 68 | * 69 | * This method should only be ran for Crio themes. 70 | * 71 | * This method has been introduced for Crio. Prior, the social media menu was created by filtering 72 | * the bgtfw configs. As of Crio, that code no longer exists, and so we must actually create a menu. 73 | * 74 | * @since 2.5.0 75 | */ 76 | public function deploy() { 77 | // Make sure we have social media data. 78 | $socials = $this->get_social(); 79 | if ( empty( $socials ) ) { 80 | return; 81 | } 82 | 83 | // Create a menu. 84 | $menu_id = $this->create_menu( 'social' ); 85 | if ( is_wp_error( $menu_id ) ) { 86 | return; 87 | } 88 | 89 | // Add all of our menu items. 90 | foreach ( $socials as $network => $url ) { 91 | wp_update_nav_menu_item( 92 | $menu_id, 93 | 0, 94 | [ 95 | 'menu-item-title' => $network, 96 | 'menu-item-url' => $url, 97 | 'menu-item-status' => 'publish', 98 | ] 99 | ); 100 | } 101 | 102 | // Save our new menu to the theme's nav_menu_locations. 103 | $locations = get_theme_mod( 'nav_menu_locations', array() ); 104 | $locations['footer-social'] = $menu_id; 105 | $locations['social'] = $menu_id; 106 | set_theme_mod( 'nav_menu_locations', $locations ); 107 | } 108 | 109 | /** 110 | * Get our social media data. 111 | * 112 | * Data is gathered from the user via the Inspirations process. 113 | * 114 | * @since 2.5.0 115 | * 116 | * @return array Example: https://pastebin.com/ANt5G8uq 117 | */ 118 | public function get_social() { 119 | $social = $this->deploy->survey->get_social(); 120 | 121 | // Preview sites should show a social media menu. If preview server, set dummy data. 122 | if ( empty( $social ) && $this->deploy->is_preview_server ) { 123 | $social = [ 124 | 'facebook' => 'https://facebook.com', 125 | 'twitter' => 'https://twitter.com', 126 | ]; 127 | } 128 | 129 | return $social; 130 | } 131 | } 132 | -------------------------------------------------------------------------------- /includes/deploy/invoice/posts/get-a-quote.php: -------------------------------------------------------------------------------- 1 | 'get-a-quote', 7 | 'post_title' => 'Get a Quote', 8 | 'post_status' => 'publish', 9 | 'post_type' => 'page', 10 | 'comment_status' => 'closed', 11 | 'post_content' => ' 12 |
17 |
Are you looking to get a quote for our services? Please fill out the form below and provide us with all necessary information for us to generate a quote. We will get back with you within 1 to 2 business days.
18 |[weforms id="' . $form->id . '"]
19 |%4$s
121 |' . esc_html__( 'In particular, a special thanks goes to the following for content running on this site:', 'boldgrid-inspirations' ) . '
'; 7 | 8 | // Create attribution for the web host reseller. 9 | $reseller = get_option( 'boldgrid_reseller' ); 10 | 11 | if ( false !== $reseller && ! empty( $reseller['reseller_title'] ) ) { 12 | if ( ! empty( $reseller['reseller_website_url'] ) ) { 13 | $reseller_link = '' . esc_html( $reseller['reseller_title'] ) . '.'; 14 | } else { 15 | $reseller_link = $reseller['reseller_title'] . '.'; 16 | } 17 | // translators: 1 a link to the resller. 18 | $reseller_attribution = ' ' . sprintf( __( 'Web hosting support is provided by %1$s', 'boldgrid-inspirations' ), $reseller_link ); 19 | } else { 20 | $reseller_attribution = ''; 21 | } 22 | 23 | // This var used by includes/class-boldgrid-inspirations-attribution.php. 24 | $attribution_wordpress_and_inspirations = 25 | '%s ' . 26 | sprintf( 27 | wp_kses( 28 | // translators: 1 a link to boldgrid.com, 2 a link to wordpress.org. 29 | __( 'site was built on a powerful, Inspirations based web builder called %1$s. It is running on %2$s, the most popular content management software online today.', 'boldgrid-inspirations' ), 30 | array( 'a' => array( 'href' => array() ), 'target' => array(), ) 31 | ), 32 | 'BoldGrid', 33 | 'WordPress' 34 | ) . 35 | $reseller_attribution . 36 | '
'; 37 | 38 | /* 39 | * Create attribution for plugins we install from 3rd Party sources. 40 | * 41 | * This var used by includes/class-boldgrid-inspirations-attribution.php 42 | */ 43 | $attribution_additional_plugins = ''; 44 | if ( function_exists( 'is_plugin_active' ) ) { 45 | // Check if some plugins are active. 46 | $is_boldgrid_ninja_forms_active = ( bool ) is_plugin_active( 'boldgrid-ninja-forms/ninja-forms.php' ); 47 | $is_boldgrid_gallery_active = ( bool ) is_plugin_active( 'boldgrid-gallery/wc-gallery.php' ); 48 | 49 | if ( $is_boldgrid_ninja_forms_active || $is_boldgrid_gallery_active ) { 50 | $attribution_additional_plugins .= ' 51 |' . esc_html__( 'Additional functionality provided by', 'boldgrid-inspirations' ) . ':
53 |103 | BoldGrid Inspirations', esc_url( add_query_arg( 'page', 'boldgrid-inspirations', admin_url( 'admin.php' ) ) ) ); 105 | // translators: 1 The url to access BoldGrid Inspirations in your WordPress dashboard. 106 | printf( __( 'You do not have a BoldGrid site to delete! You can build a new website using %1$s.', 'boldgrid-inspirations' ), $link ); 107 | ?> 108 |
109 | 112 | 113 |27 | ✓ 28 |
29 |19 | 25 |
26 |27 | ', 35 | '' 36 | ); 37 | ?> 38 |
39 |