encoder(); $prodid = $this->param( 'd-product-id' ); $params = $this->get( 'actionsParams', array() ); $login = ( $this->get( 'actionsUserId', '' ) ? 0 : 1 ); $pinTarget = $this->config( 'client/html/account/pinned/url/target' ); $pinController = $this->config( 'client/html/account/pinned/url/controller', 'catalog' ); $pinAction = $this->config( 'client/html/account/pinned/url/action', 'detail' ); $pinConfig = $this->config( 'client/html/account/pinned/url/config', array() ); $watchTarget = $this->config( 'client/html/account/watch/url/target' ); $watchController = $this->config( 'client/html/account/watch/url/controller', 'account' ); $watchAction = $this->config( 'client/html/account/watch/url/action', 'watch' ); $watchConfig = $this->config( 'client/html/account/watch/url/config', array() ); $favTarget = $this->config( 'client/html/account/favorite/url/target' ); $favController = $this->config( 'client/html/account/favorite/url/controller', 'account' ); $favAction = $this->config( 'client/html/account/favorite/url/action', 'favorite' ); $favConfig = $this->config( 'client/html/account/favorite/url/config', array() ); /** client/html/catalog/detail/actions/list * List of user action names that should be displayed in the catalog detail view * * Users can add products to several personal lists that are either only * available during the session or permanently if the user is logged in. The list * of pinned products is session based while the watch list and the favorite * products are durable. For the later two lists, the user has to be logged in * so the products can be associated to the user account. * * The order of the action names in the configuration determines the order of * the actions on the catalog detail page. * * @param array List of user action names * @since 2014.09 * @category User * @category Developer */ $list = $this->config( 'client/html/catalog/detail/actions/list', array( 'pin', 'watch', 'favorite' ) ); $urls = array( 'pin' => $this->url( $pinTarget, $pinController, $pinAction, array( 'pin-action' => 'add', 'pin-id' => $prodid ) + $params, $pinConfig ), 'watch' => $this->url( $watchTarget, $watchController, $watchAction, array( 'watch-action' => 'add', 'watch-id' => $prodid ) + $params, $watchConfig ), 'favorite' => $this->url( $favTarget, $favController, $favAction, array( 'fav-action' => 'add', 'fav-id' => $prodid ) + $params, $favConfig ), ); ?>