RCCWP_ManagementPage::GetCustomWritePanelGenericUrl PHP Method

GetCustomWritePanelGenericUrl() public static method

Generates a url containing the write panel id and the action
public static GetCustomWritePanelGenericUrl ( $mfAction, $customWritePanelId = null ) : unknown
return unknown
    public static function GetCustomWritePanelGenericUrl($mfAction, $customWritePanelId = null)
    {
        if (empty($customWritePanelId) && isset($_REQUEST['custom-write-panel-id'])) {
            $customWritePanelId = $_REQUEST['custom-write-panel-id'];
        }
        if (!empty($customWritePanelId)) {
            $url = RCCWP_ManagementPage::GetPanelPage() . "&custom-write-panel-id={$customWritePanelId}&mf_action={$mfAction}";
        } else {
            $url = RCCWP_ManagementPage::GetPanelPage() . "&mf_action={$mfAction}";
        }
        return $url;
    }

Usage Example

    function Main()
    {
        global $flutter_domain;
        ?>

		<div class="wrap">

		<h2><?php 
        _e('Create Custom Write Panel', $flutter_domain);
        ?>
</h2>
		
		<form action="<?php 
        echo RCCWP_ManagementPage::GetCustomWritePanelGenericUrl('finish-create-custom-write-panel');
        ?>
" method="post" id="create-new-write-panel-form">
		
		<?php 
        RCCWP_CustomWritePanelPage::Content();
        ?>
		
		<p class="submit" >
			<a style="color:black" href="<?php 
        echo RCCWP_ManagementPage::GetCustomWritePanelGenericUrl('cancel-create-custom-write-panel');
        ?>
" class="button"><?php 
        _e('Cancel');
        ?>
</a>
			<input type="submit" id="finish-create-custom-write-panel" value="<?php 
        _e('Finish');
        ?>
" />
		</p>
		
		</form>

		</div>
        <br />
        <a href="http://flutter.freshout.us"><img src="<?php 
        echo FLUTTER_URI . "/images/flutter_logo.jpg";
        ?>
" /></a>

		<?php 
    }
All Usage Examples Of RCCWP_ManagementPage::GetCustomWritePanelGenericUrl