Skip to content

Commit

Permalink
GitBook: [master] 20 pages and 18 assets modified
Browse files Browse the repository at this point in the history
  • Loading branch information
Enterprise Branding authored and gitbook-bot committed Jun 4, 2021
1 parent 7f841cd commit cb6f8eb
Show file tree
Hide file tree
Showing 38 changed files with 726 additions and 799 deletions.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .gitbook/assets/image (1).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .gitbook/assets/image (10).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .gitbook/assets/image (2).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .gitbook/assets/image (3).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .gitbook/assets/image (4).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .gitbook/assets/image (5).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .gitbook/assets/image (6).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .gitbook/assets/image (7).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .gitbook/assets/image (8).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .gitbook/assets/image (9).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 0 additions & 2 deletions fields/fields-3/field-template.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,3 @@ array(
{% endtab %}
{% endtabs %}



2 changes: 2 additions & 0 deletions installation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@

{% page-ref page="include-in-plugin.md" %}

{% endpage-ref %}

{% page-ref page="include-in-theme.md" %}

2 changes: 1 addition & 1 deletion installation/include-in-plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Take a look for config files from `your-plugin/wponion/config` folder
* Read for about configuration

> ### Folder Structure
> ## Folder Structure
```text
├── wp-content
Expand Down
2 changes: 1 addition & 1 deletion installation/include-in-theme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Take a look for config files from `your-theme-name/wponion` folder
* Read for about configuration

> ### Folder Structure
> ## Folder Structure
```php
├── wp-content
Expand Down
14 changes: 4 additions & 10 deletions modules/admin-bar.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,11 @@ description: >-

## Arguments

Please Refer below website on available Arguments
Please Refer below website on available Arguments

{% embed url="https://codex.wordpress.org/Function\_Reference/add\_node" %}

{% embed url="https://codex.wordpress.org/Function\_Reference/add\_menu" %}

## Demo

![](https://vsp.ams3.cdn.digitaloceanspaces.com/sshots/i/2019/Jan/17/1547723533-112.gif)

{% embed url="https://gist.github.com/wponion-framework/501b161cc4a20bcdb9099c22268f138b" %}
{% embed url="https://codex.wordpress.org/Function\_Reference/add\_node" caption="" %}

{% embed url="https://codex.wordpress.org/Function\_Reference/add\_menu" caption="" %}

{% embed url="https://gist.github.com/wponion-framework/501b161cc4a20bcdb9099c22268f138b" caption="" %}

91 changes: 32 additions & 59 deletions modules/admin-columns.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,81 +2,54 @@

## Arguments

| Key | Default | Description |
| :--- | :--- | :--- |


<table>
<thead>
<tr>
<th style="text-align:left">Key</th>
<th style="text-align:left">Default</th>
<th style="text-align:left">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left"><b>post_type</b>
</td>
<td style="text-align:left"><code>false</code>
</td>
<td style="text-align:left">
<th style="text-align:left"><b>post_type</b>
</th>
<th style="text-align:left"><code>false</code>
</th>
<th style="text-align:left">
<p><code>array()</code> or <code>string</code> of a post type slug.</p>
<p>if provided &amp; none of them matches current
<br />post type then column will not be rendered</p>
</td>
</tr>
<tr>
<td style="text-align:left"><b>name</b>
</td>
<td style="text-align:left"><code>title</code>/ <code>false</code>
</td>
<td style="text-align:left">Column Slug. if not provided then
<br />it uses <code>title</code> attribute value</td>
</tr>
<tr>
<td style="text-align:left"><b>title</b>
</td>
<td style="text-align:left"><code>false</code>
</td>
<td style="text-align:left">Column Title</td>
</tr>
<tr>
<td style="text-align:left"><b>render</b>
</td>
<td style="text-align:left"><code>false</code>
</td>
<td style="text-align:left">String / Array of callback to render output.</td>
</tr>
<tr>
<td style="text-align:left"><b>reorder</b>
</td>
<td style="text-align:left"><code>false</code>
</td>
<td style="text-align:left">provide a column slug to show after it or
<br />a callable function to do custom reordering</td>
</tr>
<tr>
<td style="text-align:left"></td>
<td style="text-align:left"></td>
<td style="text-align:left"></td>
</th>
</tr>
</tbody>
</table>## Demo
</thead>
<tbody></tbody>
</table>

### Custom Column In Default Post - Post Type
| **name** | `title`/ `false` | Column Slug. if not provided then it uses `title` attribute value |
| :--- | :--- | :--- |

![](https://vsp.ams3.cdn.digitaloceanspaces.com/sshots/i/2019/Jan/17/1547705103-165.jpg)

{% embed url="https://gist.github.com/wponion-framework/c9c91c3c888346c3b69bc92498eca260\#file-admin-columns-php" %}
| **title** | `false` | Column Title |
| :--- | :--- | :--- |

### Column Reorder Options

![](https://vsp.ams3.cdn.digitaloceanspaces.com/sshots/i/2019/Jan/17/1547705134-169.jpg)
| **render** | `false` | String / Array of callback to render output. |
| :--- | :--- | :--- |

{% embed url="https://gist.github.com/wponion-framework/c9c91c3c888346c3b69bc92498eca260\#file-admin-columns-reorder-php" %}

### Multiple Columns @ Once
| **reorder** | `false` | provide a column slug to show after it or a callable function to do custom reordering |
| :--- | :--- | :--- |

![](../.gitbook/assets/image.png)

{% embed url="https://gist.github.com/wponion-framework/c9c91c3c888346c3b69bc92498eca260\#file-admin-columns-multiple-php" %}
| | | |
| :--- | :--- | :--- |


### Custom Column In Default Post - Post Type

![](https://vsp.ams3.cdn.digitaloceanspaces.com/sshots/i/2019/Jan/17/1547705103-165.jpg)

{% embed url="https://gist.github.com/wponion-framework/c9c91c3c888346c3b69bc92498eca260\#file-admin-columns-php" caption="" %}

{% embed url="https://gist.github.com/wponion-framework/c9c91c3c888346c3b69bc92498eca260\#file-admin-columns-reorder-php" caption="" %}

{% embed url="https://gist.github.com/wponion-framework/c9c91c3c888346c3b69bc92498eca260\#file-admin-columns-multiple-php" caption="" %}

36 changes: 7 additions & 29 deletions modules/admin-notice.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
| **dismissible** | `true` | if set to true then it appends a clone button to notice |

{% hint style="info" %}
**Note :** For Each Notice Type WPOnion Builtin Function To Render It Quickly
**Note :** For Each Notice Type WPOnion Builtin Function To Render It Quickly
{% endhint %}

* Success : `wponion_success_admin_notice`
Expand All @@ -31,37 +31,15 @@

![](https://vsp.ams3.cdn.digitaloceanspaces.com/sshots/i/2019/Jan/17/1547710698-169.jpg)

{% embed url="https://gist.github.com/wponion-framework/44c457ba6c9cd64a5861a4eb7149e3b1\#file-basic-config-php" %}
{% embed url="https://gist.github.com/wponion-framework/44c457ba6c9cd64a5861a4eb7149e3b1\#file-basic-config-php" caption="" %}

### Success
{% embed url="https://gist.github.com/wponion-framework/44c457ba6c9cd64a5861a4eb7149e3b1\#file-success-php" caption="" %}

![](https://vsp.ams3.cdn.digitaloceanspaces.com/sshots/i/2019/Jan/17/1547709941-18.jpg)
{% embed url="https://gist.github.com/wponion-framework/44c457ba6c9cd64a5861a4eb7149e3b1\#file-info-php" caption="" %}

{% embed url="https://gist.github.com/wponion-framework/44c457ba6c9cd64a5861a4eb7149e3b1\#file-success-php" %}

### Info

![](https://vsp.ams3.cdn.digitaloceanspaces.com/sshots/i/2019/Jan/17/1547710026-128.jpg)

{% embed url="https://gist.github.com/wponion-framework/44c457ba6c9cd64a5861a4eb7149e3b1\#file-info-php" %}

### Warning

![](https://vsp.ams3.cdn.digitaloceanspaces.com/sshots/i/2019/Jan/17/1547710117-18.jpg)

{% embed url="https://gist.github.com/wponion-framework/44c457ba6c9cd64a5861a4eb7149e3b1\#file-warning-php" %}

### Error

![](https://vsp.ams3.cdn.digitaloceanspaces.com/sshots/i/2019/Jan/17/1547710171-197.jpg)

{% embed url="https://gist.github.com/wponion-framework/44c457ba6c9cd64a5861a4eb7149e3b1\#file-error-php" %}

### Upgrade

![](https://vsp.ams3.cdn.digitaloceanspaces.com/sshots/i/2019/Jan/17/1547710292-131.jpg)

{% embed url="https://gist.github.com/wponion-framework/44c457ba6c9cd64a5861a4eb7149e3b1\#file-upgrade-php" %}
{% embed url="https://gist.github.com/wponion-framework/44c457ba6c9cd64a5861a4eb7149e3b1\#file-warning-php" caption="" %}

{% embed url="https://gist.github.com/wponion-framework/44c457ba6c9cd64a5861a4eb7149e3b1\#file-error-php" caption="" %}

{% embed url="https://gist.github.com/wponion-framework/44c457ba6c9cd64a5861a4eb7149e3b1\#file-upgrade-php" caption="" %}

50 changes: 8 additions & 42 deletions modules/admin-page.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@
</tr>
</thead>
<tbody></tbody>
</table>| **icon** | `none` | The URL to the icon to be used for this menu. \* `base64-encoded` SVG using a data URI, which will be colored to match the color scheme. `data:image/svg+xml;base64` \* Name of a Dashicons helper class to use a font icon e.g.`dashicons-chart-pie` \* Pass `none` to leave `div.wp-menu-image` empty so an icon can be added via CSS. |
| :--- | :--- | :--- |

</table>

| **position** | `null` | The position in the menu order this one should appear |
| :--- | :--- | :--- |
Expand Down Expand Up @@ -70,7 +68,9 @@
</tr>
</thead>
<tbody></tbody>
</table><table>
</table>

<table>
<thead>
<tr>
<th style="text-align:left"><b>submenu</b>
Expand All @@ -88,7 +88,9 @@
</tr>
</thead>
<tbody></tbody>
</table><table>
</table>

<table>
<thead>
<tr>
<th style="text-align:left"><b>on_load</b>
Expand All @@ -103,9 +105,7 @@
</tr>
</thead>
<tbody></tbody>
</table>| **assets** | `false` | Pass an array or string of Callback Functions / style or script handles to trigger when page loaded to **enqueue** assets |
| :--- | :--- | :--- |

</table>

| **hook\_priority** | `10` | **priority** argument to be passed for `add_action` |
| :--- | :--- | :--- |
Expand All @@ -131,54 +131,20 @@

{% tabs %}



{% embed url="https://gist.github.com/wponion-framework/cb9b0e46d3ff7323a0cbdc86a41536fc\#file-onload-single-callback-php" caption="" %}



{% embed url="https://gist.github.com/wponion-framework/cb9b0e46d3ff7323a0cbdc86a41536fc\#file-onload-multiple-callback-php" caption="" %}

### assets

{% embed url="https://gist.github.com/wponion-framework/cb9b0e46d3ff7323a0cbdc86a41536fc\#file-assets-loading-php" caption="" %}

## Demo

### Menu & Sub menu's

{% tabs %}



Below code will create a new main admin page.

{% embed url="https://gist.github.com/wponion-framework/f48d58d061c5ab347116012e0b6569e2\#file-single-page-php" caption="" %}

![](../.gitbook/assets/1541383988-162.jpg)



{% embed url="https://gist.github.com/wponion-framework/f48d58d061c5ab347116012e0b6569e2\#file-admin-page-with-submenus-php" caption="" %}

![](../.gitbook/assets/1541468326-122.gif)

### WP Sub menus

{% tabs %}

{% embed url="https://gist.github.com/wponion-framework/f48d58d061c5ab347116012e0b6569e2\#file-dashboard-submenu-php" caption="" %}

![](../.gitbook/assets/1541384688-137.jpg)

### Multiple Main Menus

{% embed url="https://gist.github.com/wponion-framework/f48d58d061c5ab347116012e0b6569e2\#file-multiple-main-menus-php" caption="" %}

![](../.gitbook/assets/1541466937-141.jpg)

### Page With Help Tabs

{% embed url="https://gist.github.com/wponion-framework/f48d58d061c5ab347116012e0b6569e2\#file-page-with-help-tabs-php" caption="" %}

![](../.gitbook/assets/1541572289-175.gif)
Expand Down
Loading

0 comments on commit cb6f8eb

Please sign in to comment.